Documentation ¶
Index ¶
- Constants
- Variables
- type AccessToken
- type AccessTokenParams
- type App
- type Asset
- type Authorization
- type AuthorizationParams
- type Client
- func (c *Client) AddComment(repo Repo, number, body string) (comment Comment, err error)
- func (c *Client) ApplyLabel(repo Repo, issue *Issue, labels []string) error
- func (c *Client) Authorizations(options *Options) (auths []Authorization, err error)
- func (c *Client) CombinedStatus(repo Repo, sha string, options *Options) (status CombinedStatus, err error)
- func (c *Client) Comments(repo Repo, number string, options *Options) (comments []Comment, err error)
- func (c *Client) Commit(repo Repo, ref string, options *Options) (commit Commit, err error)
- func (c *Client) Commits(repo Repo, number string, options *Options) (commits []Commit, err error)
- func (c *Client) Contributors(repo Repo, options *Options) (contributors []*Contributor, err error)
- func (c *Client) CreateAuthorization(options *Options) (auth *Authorization, err error)
- func (c *Client) CreateGist(desc string, public bool, files map[string]File) (gist Gist, err error)
- func (c *Client) CreatePullRequest(repo Repo, options *Options) (pr *PullRequest, err error)
- func (c *Client) CreateRelease(repo Repo, options *Options) (release *Release, err error)
- func (c *Client) CreateRepository(org string, options *Options) (repository *Repository, err error)
- func (c *Client) Fork(repo Repo, options *Options) (repository *Repository, err error)
- func (c *Client) Issue(repo Repo, number int, options *Options) (issue *Issue, err error)
- func (c *Client) Issues(repo Repo, options *Options) (issues []*Issue, err error)
- func (c *Client) Labels(repo Repo) (labels []*Label, err error)
- func (c *Client) MergePullRequest(repo Repo, number string, options *Options) (merge Merge, err error)
- func (c *Client) OrganizationRepositories(org string, options *Options) (repos []Repository, err error)
- func (c *Client) Organizations(user string, options *Options) (orgs []Organization, err error)
- func (c *Client) PatchComment(repo Repo, number, body string) (comment Comment, err error)
- func (c *Client) PatchIssue(repo Repo, number string, options *Options) (patchedIssue *Issue, err error)
- func (c *Client) PullRequest(repo Repo, number string, options *Options) (pr *PullRequest, err error)
- func (c *Client) PullRequestFiles(repo Repo, number string, options *Options) (prfs []*PullRequestFile, err error)
- func (c *Client) PullRequests(repo Repo, options *Options) (prs []*PullRequest, err error)
- func (c *Client) Releases(repo Repo, options *Options) (releases []Release, err error)
- func (c *Client) RemoveComment(repo Repo, commentId int) error
- func (c *Client) RemoveLabel(repo Repo, issue *Issue, label string) error
- func (c *Client) Repositories(username string, options *Options) (repositories []Repository, err error)
- func (c *Client) Repository(repo Repo, options *Options) (repository *Repository, err error)
- func (c *Client) Root(options *Options) (root *Root, err error)
- func (c *Client) SearchIssues(query string, options *Options) (issues []*SearchItem, err error)
- func (c *Client) SetStatus(repo Repo, sha string, options *StatusOptions) (status *Status, err error)
- func (c *Client) Statuses(repo Repo, sha string, options *Options) (statuses []Status, err error)
- func (c *Client) User(login string, options *Options) (user *User, err error)
- func (c *Client) WithHTTPClient(httpClient *http.Client) *Client
- func (c *Client) WithLogin(login, password string) *Client
- func (c *Client) WithToken(token string) *Client
- type CombinedStatus
- type Comment
- type Commit
- type CommitCommit
- type CommitFile
- type CommitStats
- type Contributor
- type File
- type Gist
- type Headers
- type Hyperlink
- type Issue
- type IssueHook
- type Label
- type Merge
- type Options
- type Organization
- type Params
- type PostReceiveHook
- type PullRequest
- type PullRequestFile
- type PullRequestForIssueParams
- type PullRequestHook
- type PullRequestParams
- type Release
- type ReleaseParams
- type Repo
- type Repository
- type RepositoryParams
- type Root
- type SearchIssue
- type SearchItem
- type Status
- type StatusOptions
- type User
Constants ¶
const ( GitHubURL = "https://github.com" GitHubAPIURL = "https://api.github.com" UserAgent = "Octokat Go " + Version MediaType = "application/vnd.github.beta+json" DefaultContentType = "application/json" PreviewMediaType = "application/vnd.github.manifold-preview" Version = "0.3.0" )
Variables ¶
var ErrInvalidPostReceiveHook = errors.New("Invalid Post Receive Hook")
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { Token string `json:"access_token,omitempty"` TokenType string `json:"token_type,omitempty"` }
func CreateAccessToken ¶
func CreateAccessToken(options *Options) (accessToken *AccessToken, err error)
type AccessTokenParams ¶
type Asset ¶
type Asset struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` Label string `json:"label,omitempty"` ContentType string `json:"content_type,omitempty"` State string `json:"state,omitempty"` Size int `json:"size,omitempty"` DownloadCount int `json:"download_count,omitempty"` URL string `json:"url,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type Authorization ¶
type Authorization struct { ID int `json:"id,omitempty"` URL string `json:"url,omitempty"` App App `json:"app,omitempty"` Token string `json:"token,omitempty"` Note string `json:"note,omitempty"` NoteURL string `json:"note_url,omitempty"` Scopes []string `json:"scopes,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type AuthorizationParams ¶
type Client ¶
type Client struct { BaseURL string Login string Password string Token string // contains filtered or unexported fields }
func (*Client) AddComment ¶
Add a comment to an issue or pull request
See http://developer.github.com/v3/issues/comments/#create-a-comment
func (*Client) ApplyLabel ¶
func (*Client) Authorizations ¶
func (c *Client) Authorizations(options *Options) (auths []Authorization, err error)
List the authenticated user's authorizations
API for users to manage their own tokens. You can only access your own tokens, and only through Basic Authentication.
See http://developer.github.com/v3/oauth/#list-your-authorizations
func (*Client) CombinedStatus ¶
func (*Client) Comments ¶
func (c *Client) Comments(repo Repo, number string, options *Options) (comments []Comment, err error)
Get comments for an issue for pull request
func (*Client) Contributors ¶
func (c *Client) Contributors(repo Repo, options *Options) (contributors []*Contributor, err error)
Get a list of contributors
http://developer.github.com/v3/repos/statistics/#contributors
func (*Client) CreateAuthorization ¶
func (c *Client) CreateAuthorization(options *Options) (auth *Authorization, err error)
Create an authorization for the authenticated user.
You can create your own tokens, and only through Basic Authentication.
See http://developer.github.com/v3/oauth/#scopes Available scopes See http://developer.github.com/v3/oauth/#create-a-new-authorization
func (*Client) CreateGist ¶
func (*Client) CreatePullRequest ¶
func (c *Client) CreatePullRequest(repo Repo, options *Options) (pr *PullRequest, err error)
Create a pull request
See http://developer.github.com/v3/pulls/#create-a-pull-request See http://developer.github.com/v3/pulls/#alternative-input
func (*Client) CreateRelease ¶
Create a release
See http://developer.github.com/v3/repos/releases/#create-a-release
func (*Client) CreateRepository ¶
func (c *Client) CreateRepository(org string, options *Options) (repository *Repository, err error)
Create a repository for a user or organization
If org is not specified, create a repository for current user.
func (*Client) Fork ¶
func (c *Client) Fork(repo Repo, options *Options) (repository *Repository, err error)
Fork a repository
See http://developer.github.com/v3/repos/forks/#create-a-fork
func (*Client) Issue ¶
Fetch a single issue
See http://developer.github.com/v3/issues/#get-a-single-issue
func (*Client) Issues ¶
List issues
See http://developer.github.com/v3/issues/#list-issues-for-a-repository
func (*Client) MergePullRequest ¶
func (c *Client) MergePullRequest(repo Repo, number string, options *Options) (merge Merge, err error)
Merge a pull request
See http://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade
func (*Client) OrganizationRepositories ¶
func (c *Client) OrganizationRepositories(org string, options *Options) (repos []Repository, err error)
func (*Client) Organizations ¶
func (c *Client) Organizations(user string, options *Options) (orgs []Organization, err error)
func (*Client) PatchComment ¶
Add a comment to an issue or pull request
See https://developer.github.com/v3/issues/comments/#edit-a-comment
func (*Client) PatchIssue ¶
func (c *Client) PatchIssue(repo Repo, number string, options *Options) (patchedIssue *Issue, err error)
Edit an issue
func (*Client) PullRequest ¶
func (c *Client) PullRequest(repo Repo, number string, options *Options) (pr *PullRequest, err error)
Get a pull request
See http://developer.github.com/v3/pulls/#get-a-single-pull-request
func (*Client) PullRequestFiles ¶
func (c *Client) PullRequestFiles(repo Repo, number string, options *Options) (prfs []*PullRequestFile, err error)
Get all pull request files
See http://developer.github.com/v3/pulls/#list-pull-requests-files
func (*Client) PullRequests ¶
func (c *Client) PullRequests(repo Repo, options *Options) (prs []*PullRequest, err error)
Get all pull requests
See http://developer.github.com/v3/pulls/#list-pull-requests
func (*Client) Releases ¶
List releases for a repository
http://developer.github.com/v3/repos/releases/#list-releases-for-a-repository
func (*Client) RemoveLabel ¶
func (*Client) Repositories ¶
func (c *Client) Repositories(username string, options *Options) (repositories []Repository, err error)
List repositories
If username is not supplied, repositories for the current authenticated user are returned
See http://developer.github.com/v3/repos/#list-your-repositories
func (*Client) Repository ¶
func (c *Client) Repository(repo Repo, options *Options) (repository *Repository, err error)
Get a single repository
func (*Client) SearchIssues ¶
func (c *Client) SearchIssues(query string, options *Options) (issues []*SearchItem, err error)
Search issues
func (*Client) SetStatus ¶
func (c *Client) SetStatus(repo Repo, sha string, options *StatusOptions) (status *Status, err error)
Set a status for a given sha
See https://developer.github.com/v3/repos/statuses/#create-a-status
type CombinedStatus ¶
type Comment ¶
type Comment struct { Url string `json:"url,omitempty,omitempty"` Id int `json:"id,omitempty"` Body string `json:"body,omitempty"` Path string `json:"path,omitempty"` Position int `json:"position,omitempty"` User User `json:"user,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type Commit ¶
type Commit struct { Label string `json:"label,omitempty"` Ref string `json:"ref,omitempty"` User User `json:"user,omitempty"` Repo Repository `json:"repo,omitempty"` CommentsURL string `json:"comments_url,omitempty"` Commit *CommitCommit `json:"commit,omitempty"` Files []CommitFile `json:"files,omitempty"` HtmlURL string `json:"html_url,omitempty"` Parents []Commit `json:"parents,omitempty"` Sha string `json:"sha,omitempty"` Stats CommitStats `json:"stats,omitempty"` URL string `json:"url,omitempty"` }
type CommitCommit ¶
type CommitCommit struct { Author struct { Date *time.Time `json:"date,omitempty"` Email string `json:"email,omitempty"` Name string `json:"name,omitempty"` } `json:"author,omitempty"` CommentCount int `json:"comment_count,omitempty"` Committer struct { Date *time.Time `json:"date,omitempty"` Email string `json:"email,omitempty"` Name string `json:"name,omitempty"` } `json:"committer,omitempty"` Message string `json:"message,omitempty"` Tree struct { Sha string `json:"sha,omitempty"` URL string `json:"url,omitempty"` } `json:"tree,omitempty"` URL string `json:"url,omitempty"` }
type CommitFile ¶
type CommitFile struct { Additions int `json:"additions,omitempty"` BlobURL string `json:"blob_url,omitempty"` Changes int `json:"changes,omitempty"` ContentsURL string `json:"contents_url,omitempty"` Deletions int `json:"deletions,omitempty"` Filename string `json:"filename,omitempty"` Patch string `json:"patch,omitempty"` RawURL string `json:"raw_url,omitempty"` Sha string `json:"sha,omitempty"` Status string `json:"status,omitempty"` }
type CommitStats ¶
type Contributor ¶
type Contributor struct { Total int `json:"total,omitempty"` Weeks []struct { WeekStart int `json:"w,omitempty"` Additions int `json:"a,omitempty"` Deletions int `json:"d,omitempty"` Commits int `json:"c,omitempty"` } `json:"weeks,omitempty"` Author struct { Login string `json:"login,omitempty"` Id int `json:"id,omitempty"` AvatarURL string `json:"avatar_url,omitempty"` GravatarID string `json:"gravatar_id,omitempty"` URL string `json:"url,omitempty"` HTMLURL string `json:"html_url,omitempty"` FollowersURL string `json:"followers_url,omitempty"` FollowingURL string `json:"following_url,omitempty"` GistsURL string `json:"gists_url,omitempty"` StarredURL string `json:"starred_url,omitempty"` SubscriptionsURL string `json:"subscriptions_url,omitempty"` OrganizationsURL string `json:"organizations_url,omitempty"` ReposURL string `json:"repos_url,omitempty"` EventsURL string `json:"events_url,omitempty"` ReceivedEventsURL string `json:"received_events_url,omitempty"` Type string `json:"type,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` } `json:"author,omitempty"` }
type Gist ¶
type Gist struct { Id string `json:"id,omitempty"` Public bool `json:"public,omitempty"` Description string `json:"description,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Url string `json:"url,omitempty"` Files File `json:"files,omitempty"` User User `json:"user,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type Issue ¶
type Issue struct { URL string `json:"url,omitempty,omitempty"` HTMLURL string `json:"html_url,omitempty,omitempty"` Number int `json:"number,omitempty"` State string `json:"state,omitempty"` Title string `json:"title,omitempty"` Body string `json:"body,omitempty"` User User `json:"user,omitempty"` Labels []*Label `json:"labels,omitempty"` Assignee User `json:"assignee,omitempty"` Milestone struct { URL string `json:"url,omitempty"` Number int `json:"number,omitempty"` State string `json:"state,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Creator User `json:"creator,omitempty"` OpenIssues int `json:"open_issues,omitempty"` ClosedIssues int `json:"closed_issues,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` DueOn *time.Time `json:"due_on,omitempty"` } Comments int `json:"comments,omitempty"` PullRequest struct { HTMLURL string `json:"html_url,omitempty"` DiffURL string `json:"diff_url,omitempty"` PatchURL string `json:"patch_url,omitempty"` } `json:"pull_request,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` ClosedAt *time.Time `json:"closed_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
type IssueHook ¶
type IssueHook struct { Action string `json:"action"` Sender *User `json:"sender"` Repo *Repository `json:"repository"` Issue *Issue `json:"issue"` Comment *Comment `json:"comment, omitempty"` }
func ParseIssueHook ¶
type Organization ¶
type Organization struct { AvatarURL string `json:"avatar_url,omitempty"` PublicMembersURL string `json:"public_member_url,omitempty"` MembersURL string `json:"members_url,omitempty"` EventsURL string `json:"events_url,omitempty"` ReposURL string `json:"repos_url,omitempty"` URL string `json:"url,omitempty"` ID int `json:"id,omitempty"` Login string `json:"login,omitempty"` }
type PostReceiveHook ¶
type PostReceiveHook struct { Before string `json:"before"` After string `json:"after"` Ref string `json:"ref"` Repo *Repository `json:"repository"` Commits []*Commit `json:"commits"` Head *Commit `json:"head_commit"` Deleted bool `json:"deleted"` }
func ParseHook ¶
func ParseHook(raw []byte) (*PostReceiveHook, error)
func (*PostReceiveHook) Branch ¶
func (h *PostReceiveHook) Branch() string
func (*PostReceiveHook) IsDeleted ¶
func (h *PostReceiveHook) IsDeleted() bool
func (*PostReceiveHook) IsGithubPages ¶
func (h *PostReceiveHook) IsGithubPages() bool
func (*PostReceiveHook) IsHead ¶
func (h *PostReceiveHook) IsHead() bool
func (*PostReceiveHook) IsTag ¶
func (h *PostReceiveHook) IsTag() bool
type PullRequest ¶
type PullRequest struct { URL string `json:"url,omitempty"` ID int `json:"id,omitempty"` HTMLURL string `json:"html_url,omitempty"` DiffURL string `json:"diff_url,omitempty"` PatchURL string `json:"patch_url,omitempty"` IssueURL string `json:"issue_url,omitempty"` Number int `json:"number,omitempty"` State string `json:"state,omitempty"` Title string `json:"title,omitempty"` User User `json:"user,omitempty"` Body string `json:"body,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` ClosedAt *time.Time `json:"closed_at,omitempty"` MergedAt *time.Time `json:"merged_at,omitempty"` MergeCommitSha string `json:"merge_commit_sha,omitempty"` Assignee *User `json:"assignee,omitempty"` CommitsURL string `json:"commits_url,omitempty"` ReviewCommentsURL string `json:"review_comments_url,omitempty"` ReviewCommentURL string `json:"review_comment_url,omitempty"` CommentsURL string `json:"comments_url,omitempty"` Head Commit `json:"head,omitempty"` Base Commit `json:"base,omitempty"` Merged bool `json:"merged,omitempty"` MergedBy User `json:"merged_by,omitempty"` Comments int `json:"comments,omitempty"` ReviewComments int `json:"review_comments,omitempty"` Commits int `json:"commits,omitempty"` Additions int `json:"additions,omitempty"` Deletions int `json:"deletions,omitempty"` ChangedFiles int `json:"changed_files,omitempty"` Mergeable *bool `json:"mergeable,omitempty"` CommentsBody []Comment `json:"-"` }
type PullRequestFile ¶
type PullRequestFile struct { FileName string `json:"filename,omitempty"` Sha string `json:"sha,omitempty"` Status string `json:"status,omitempty"` Additions int `json:"additions,omitempty"` Deletions int `json:"deletions,omitempty"` Changes int `json:"changes,omitempty"` BlobUrl string `json:"blob_url,omitempty"` RawUrl string `json:"raw_url,omitempty"` ContentsUrl string `json:"contents_url,omitempty"` Patch string `json:"patch,omitempty"` }
type PullRequestHook ¶
type PullRequestHook struct { Action string `json:"action"` Number int `json:"number"` Sender *User `json:"sender"` Repo *Repository `json:"repository"` PullRequest *PullRequest `json:"pull_request"` }
func ParsePullRequestHook ¶
func ParsePullRequestHook(raw []byte) (*PullRequestHook, error)
func (*PullRequestHook) IsOpened ¶
func (h *PullRequestHook) IsOpened() bool
func (*PullRequestHook) IsSynchronize ¶
func (h *PullRequestHook) IsSynchronize() bool
type PullRequestParams ¶
type Release ¶
type Release struct { ID int `json:"id,omitempty"` URL string `json:"url,omitempty"` HTMLURL string `json:"html_url,omitempty"` AssetsURL string `json:"assets_url,omitempty"` UploadURL string `json:"upload_url,omitempty"` TagName string `json:"tag_name,omitempty"` TargetCommitsh 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"` CreatedAt time.Time `json:"created_at,omitempty"` PublishedAt time.Time `json:"published_at,omitempty"` Assets []Asset `json:"assets,omitempty"` }
type ReleaseParams ¶
type Repository ¶
type Repository struct { ID int `json:"id,omitempty"` Owner User `json:"owner,omitempty"` Name string `json:"name,omitempty"` FullName string `json:"full_name,omitempty"` Description string `json:"description,omitempty"` Private bool `json:"private,omitempty"` Fork bool `json:"fork,omitempty"` URL string `json:"url,omitempty"` HTMLURL string `json:"html_url,omitempty"` CloneURL string `json:"clone_url,omitempty"` GitURL string `json:"git_url,omitempty"` SSHURL string `json:"ssh_url,omitempty"` SVNURL string `json:"svn_url,omitempty"` MirrorURL string `json:"mirror_url,omitempty"` Homepage string `json:"homepage,omitempty"` Language string `json:"language,omitempty"` Forks int `json:"forks,omitempty"` ForksCount int `json:"forks_count,omitempty"` Watchers int `json:"watchers,omitempty"` WatchersCount int `json:"watchers_count,omitempty"` Size int `json:"size,omitempty"` MasterBranch string `json:"master_branch,omitempty"` OpenIssues int `json:"open_issues,omitempty"` PushedAt time.Time `json:"pushed_at,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Organization *Organization `json:"organization,omitempty"` Parent *Repository `json:"parent,omitempty"` Source *Repository `json:"source,omitempty"` HasIssues bool `json:"has_issues,omitempty"` HasWiki bool `json:"has_wiki,omitempty"` HasDownloads bool `json:"has_downloads,omitempty"` }
type RepositoryParams ¶
type RepositoryParams struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Homepage string `json:"homepage,omitempty"` Private bool `json:"private,omitempty"` HasIssues bool `json:"has_issues,omitempty"` HasWiki bool `json:"has_wiki,omitempty"` HasDownloads bool `json:"has_downloads,omitempty"` TeamID int `json:"team_id,omitempty"` AutoInit bool `json:"auto_init,omitempty"` GitignoreTemplate string `json:"gitignore_template,omitempty"` }
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
func (*Root) UnmarshalJSON ¶
type SearchIssue ¶
type SearchIssue struct { TotalCount int `json:"total_count,omitempty"` Items []*SearchItem `json:"items,omitempty"` }
type SearchItem ¶
type SearchItem struct { URL string `json:"url,omitempty,omitempty"` LABELSURL string `json:"labels_url,omitempty,omitempty"` COMMENTSURL string `json:"comments_url,omitempty,omitempty"` EVENTSURL string `json:"events_url,omitempty,omitempty"` HTMLURL string `json:"html_url,omitempty,omitempty"` Id int `json:"id,omitempty"` Number int `json:"number,omitempty"` Title string `json:"title,omitempty"` User User `json:"user,omitempty"` Labels []struct { URL string `json:"url,omitempty"` Name string `json:"name,omitempty"` Color string `json:"color,omitempty"` } `json:"labels,omitempty"` State string `json:"state,omitempty"` Assignee User `json:"assignee,omitempty"` Milestone struct { URL string `json:"url,omitempty"` Number int `json:"number,omitempty"` State string `json:"state,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Creator User `json:"creator,omitempty"` OpenIssues int `json:"open_issues,omitempty"` ClosedIssues int `json:"closed_issues,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` DueOn *time.Time `json:"due_on,omitempty"` } `json:"milestone,omitempty"` Comments int `json:"comments,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` ClosedAt *time.Time `json:"closed_at,omitempty"` PullRequest struct { HTMLURL string `json:"html_url,omitempty"` DiffURL string `json:"diff_url,omitempty"` PatchURL string `json:"patch_url,omitempty"` } `json:"pull_request,omitempty"` Body string `json:"body,omitempty"` Score float64 `json:"score,omitempty"` }
type Status ¶
type Status struct { CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` State string `json:"state,omitempty"` TargetURL string `json:"target_url,omitempty"` Description string `json:"description,omitempty"` ID int `json:"id,omitempty"` URL string `json:"url,omitempty"` Creator User `json:"creator,omitempty"` Context string `json:"context,omitempty"` }
type StatusOptions ¶
type User ¶
type User struct { Login string `json:"login,omitempty"` ID int `json:"id,omitempty"` AvatarURL string `json:"avatar_url,omitempty"` GravatarID string `json:"gravatar_id,omitempty"` URL string `json:"url,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"` HTMLURL string `json:"html_url,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Type string `json:"type,omitempty"` // hypermedia relations FollowingURL string `json:"following_url,omitempty"` FollowersURL string `json:"followers_url,omitempty"` GistsURL string `json:"gists_url,omitempty"` StarredURL string `json:"starred_url,omitempty"` SubscriptionsURL string `json:"subscriptions_url,omitempty"` OrganizationsURL string `json:"organizations_url,omitempty"` ReposURL string `json:"repos_url,omitempty"` EventsURL string `json:"events_url,omitempty"` ReceivedEventsURL string `json:"received_events_url,omitempty"` }
Source Files ¶
- access_token.go
- assets.go
- authorizations.go
- client.go
- comments.go
- commits.go
- error.go
- gist.go
- hooks.go
- hyperlink.go
- issues.go
- label.go
- merge.go
- octokat.go
- options.go
- organizations.go
- params.go
- pull_requests.go
- releases.go
- repo.go
- repositories.go
- root.go
- searches.go
- statistics.go
- statuses.go
- users.go
- util.go