Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Release ¶
type Release struct { TagName string `json:"tag_name,omitempty"` TargetCommitish string `json:"target_commitish,omitempty"` Name string `json:"name,omitempty"` Body string `json:"body,omitempty"` Draft bool `json:"draft,omitempty"` Prerelease bool `json:"prerelease,omitempty"` // The following fields are not used in CreateRelease or EditRelease: ID int64 `json:"id,omitempty"` CreatedAt Timestamp `json:"created_at,omitempty"` PublishedAt Timestamp `json:"published_at,omitempty"` URL string `json:"url,omitempty"` HTMLURL string `json:"html_url,omitempty"` AssetsURL string `json:"assets_url,omitempty"` Assets []ReleaseAsset `json:"assets,omitempty"` UploadURL string `json:"upload_url,omitempty"` ZipballURL string `json:"zipball_url,omitempty"` TarballURL string `json:"tarball_url,omitempty"` Author User `json:"author,omitempty"` NodeID string `json:"node_id,omitempty"` }
Release represents a GitHub release in a repository.
func GetLatestRelease ¶
type ReleaseAsset ¶
type ReleaseAsset struct { ID int64 `json:"id,omitempty"` URL string `json:"url,omitempty"` Name string `json:"name,omitempty"` Label string `json:"label,omitempty"` State string `json:"state,omitempty"` ContentType string `json:"content_type,omitempty"` Size int `json:"size,omitempty"` DownloadCount int `json:"download_count,omitempty"` CreatedAt Timestamp `json:"created_at,omitempty"` UpdatedAt Timestamp `json:"updated_at,omitempty"` BrowserDownloadURL string `json:"browser_download_url,omitempty"` Uploader User `json:"uploader,omitempty"` NodeID string `json:"node_id,omitempty"` }
ReleaseAsset represents a GitHub release asset in a repository.
type Timestamp ¶
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or Unix timestamp. This is necessary for some fields since the GitHub API is inconsistent in how it represents times. All exported methods of time.Time can be called on Timestamp.
type User ¶
type User struct { Login string `json:"login,omitempty"` ID int64 `json:"id,omitempty"` NodeID string `json:"node_id,omitempty"` AvatarURL string `json:"avatar_url,omitempty"` HTMLURL string `json:"html_url,omitempty"` GravatarID string `json:"gravatar_id,omitempty"` Name string `json:"name,omitempty"` Company string `json:"company,omitempty"` Blog string `json:"blog,omitempty"` Location string `json:"location,omitempty"` Email string `json:"email,omitempty"` Hireable bool `json:"hireable,omitempty"` Bio string `json:"bio,omitempty"` PublicRepos int `json:"public_repos,omitempty"` PublicGists int `json:"public_gists,omitempty"` Followers int `json:"followers,omitempty"` Following int `json:"following,omitempty"` CreatedAt Timestamp `json:"created_at,omitempty"` UpdatedAt Timestamp `json:"updated_at,omitempty"` SuspendedAt Timestamp `json:"suspended_at,omitempty"` Type string `json:"type,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` TotalPrivateRepos int `json:"total_private_repos,omitempty"` OwnedPrivateRepos int `json:"owned_private_repos,omitempty"` PrivateGists int `json:"private_gists,omitempty"` DiskUsage int `json:"disk_usage,omitempty"` Collaborators int `json:"collaborators,omitempty"` TwoFactorAuthentication bool `json:"two_factor_authentication,omitempty"` LdapDn string `json:"ldap_dn,omitempty"` // API URLs URL string `json:"url,omitempty"` EventsURL string `json:"events_url,omitempty"` FollowingURL string `json:"following_url,omitempty"` FollowersURL string `json:"followers_url,omitempty"` GistsURL string `json:"gists_url,omitempty"` OrganizationsURL string `json:"organizations_url,omitempty"` ReceivedEventsURL string `json:"received_events_url,omitempty"` ReposURL string `json:"repos_url,omitempty"` StarredURL string `json:"starred_url,omitempty"` SubscriptionsURL string `json:"subscriptions_url,omitempty"` }
User represents a GitHub user.
Click to show internal directories.
Click to hide internal directories.