Versions in this module Expand all Collapse all v1 v1.1.0-alpha.0 Jul 11, 2015 v1.0.7 Oct 27, 2015 v1.0.4 Aug 25, 2015 v1.0.1 Jul 17, 2015 v0 v0.21.3 Jul 16, 2015 v0.19.2 Jun 22, 2015 v0.17.0 May 12, 2015 Changes in this version + const Tarball + const Zipball + func Bool(v bool) *bool + func CheckResponse(r *http.Response) error + func Int(v int) *int + func String(v string) *string + func Stringify(message interface{}) string + type APIMeta struct + Git []string + Hooks []string + VerifiablePasswordAuthentication *bool + type ActivityListStarredOptions struct + Direction string + Sort string + type ActivityService struct + func (s *ActivityService) DeleteRepositorySubscription(owner, repo string) (*Response, error) + func (s *ActivityService) DeleteThreadSubscription(id string) (*Response, error) + func (s *ActivityService) GetRepositorySubscription(owner, repo string) (*Subscription, *Response, error) + func (s *ActivityService) GetThread(id string) (*Notification, *Response, error) + func (s *ActivityService) GetThreadSubscription(id string) (*Subscription, *Response, error) + func (s *ActivityService) IsStarred(owner, repo string) (bool, *Response, error) + func (s *ActivityService) ListEvents(opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListEventsForOrganization(org string, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListEventsForRepoNetwork(owner, repo string, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListEventsPerformedByUser(user string, publicOnly bool, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListEventsRecievedByUser(user string, publicOnly bool, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListIssueEventsForRepository(owner, repo string, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListNotifications(opt *NotificationListOptions) ([]Notification, *Response, error) + func (s *ActivityService) ListRepositoryEvents(owner, repo string, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListRepositoryNotifications(owner, repo string, opt *NotificationListOptions) ([]Notification, *Response, error) + func (s *ActivityService) ListStargazers(owner, repo string, opt *ListOptions) ([]User, *Response, error) + func (s *ActivityService) ListStarred(user string, opt *ActivityListStarredOptions) ([]Repository, *Response, error) + func (s *ActivityService) ListUserEventsForOrganization(org, user string, opt *ListOptions) ([]Event, *Response, error) + func (s *ActivityService) ListWatched(user string) ([]Repository, *Response, error) + func (s *ActivityService) ListWatchers(owner, repo string, opt *ListOptions) ([]User, *Response, error) + func (s *ActivityService) MarkNotificationsRead(lastRead time.Time) (*Response, error) + func (s *ActivityService) MarkRepositoryNotificationsRead(owner, repo string, lastRead time.Time) (*Response, error) + func (s *ActivityService) MarkThreadRead(id string) (*Response, error) + func (s *ActivityService) SetRepositorySubscription(owner, repo string, subscription *Subscription) (*Subscription, *Response, error) + func (s *ActivityService) SetThreadSubscription(id string, subscription *Subscription) (*Subscription, *Response, error) + func (s *ActivityService) Star(owner, repo string) (*Response, error) + func (s *ActivityService) Unstar(owner, repo string) (*Response, error) + type Blob struct + Content *string + Encoding *string + SHA *string + Size *int + URL *string + type Branch struct + Commit *Commit + Name *string + type Client struct + Activity *ActivityService + BaseURL *url.URL + Gists *GistsService + Git *GitService + Gitignores *GitignoresService + Issues *IssuesService + Licenses *LicensesService + Organizations *OrganizationsService + PullRequests *PullRequestsService + Rate Rate + Repositories *RepositoriesService + Search *SearchService + UploadURL *url.URL + UserAgent string + Users *UsersService + func NewClient(httpClient *http.Client) *Client + func (c *Client) APIMeta() (*APIMeta, *Response, error) + func (c *Client) Do(req *http.Request, v interface{}) (*Response, error) + func (c *Client) ListEmojis() (map[string]string, *Response, error) + func (c *Client) ListServiceHooks() ([]ServiceHook, *Response, error) + func (c *Client) Markdown(text string, opt *MarkdownOptions) (string, *Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string) (*http.Request, error) + func (c *Client) Octocat(message string) (string, *Response, error) + func (c *Client) RateLimit() (*Rate, *Response, error) + func (c *Client) RateLimits() (*RateLimits, *Response, error) + func (c *Client) Zen() (string, *Response, error) + type CodeResult struct + HTMLURL *string + Name *string + Path *string + Repository *Repository + SHA *string + TextMatches []TextMatch + func (c CodeResult) String() string + type CodeSearchResult struct + CodeResults []CodeResult + Total *int + type CombinedStatus struct + CommitURL *string + Name *string + RepositoryURL *string + SHA *string + State *string + Statuses []RepoStatus + TotalCount *int + func (s CombinedStatus) String() string + type Commit struct + Author *CommitAuthor + CommentCount *int + Committer *CommitAuthor + Message *string + Parents []Commit + SHA *string + Stats *CommitStats + Tree *Tree + URL *string + func (c Commit) String() string + type CommitAuthor struct + Date *time.Time + Email *string + Name *string + func (c CommitAuthor) String() string + type CommitFile struct + Additions *int + Changes *int + Deletions *int + Filename *string + Patch *string + SHA *string + Status *string + func (c CommitFile) String() string + type CommitStats struct + Additions *int + Deletions *int + Total *int + func (c CommitStats) String() string + type CommitsComparison struct + AheadBy *int + BaseCommit *RepositoryCommit + BehindBy *int + Commits []RepositoryCommit + Files []CommitFile + MergeBaseCommit *RepositoryCommit + Status *string + TotalCommits *int + func (c CommitsComparison) String() string + type CommitsListOptions struct + Author string + Path string + SHA string + Since time.Time + Until time.Time + type Contributor struct + AvatarURL *string + Contributions *int + EventsURL *string + FollowersURL *string + FollowingURL *string + GistsURL *string + GravatarID *string + HTMLURL *string + ID *int + Login *string + OrganizationsURL *string + ReceivedEventsURL *string + ReposURL *string + SiteAdmin *bool + StarredURL *string + SubscriptionsURL *string + Type *string + URL *string + type ContributorStats struct + Author *Contributor + Total *int + Weeks []WeeklyStats + func (c ContributorStats) String() string + type Deployment struct + CreatedAt *Timestamp + Creator *User + Description *string + Environment *string + ID *int + Payload json.RawMessage + Ref *string + SHA *string + Task *string + URL *string + UpdatedAt *Timestamp + type DeploymentRequest struct + AutoMerge *bool + Description *string + Environment *string + Payload *string + Ref *string + RequiredContexts *[]string + Task *string + type DeploymentStatus struct + CreatedAt *Timestamp + Creator *User + Description *string + ID *int + State *string + TargetURL *string + UpdatedAt *Timestamp + type DeploymentStatusRequest struct + Description *string + State *string + TargetURL *string + type DeploymentsListOptions struct + Environment string + Ref string + SHA string + Task string + type Error struct + Code string + Field string + Resource string + func (e *Error) Error() string + type ErrorResponse struct + Errors []Error + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Event struct + Actor *User + CreatedAt *time.Time + ID *string + Org *Organization + Public *bool + RawPayload *json.RawMessage + Repo *Repository + Type *string + func (e *Event) Payload() (payload interface{}) + func (e Event) String() string + type Gist struct + Comments *int + CreatedAt *time.Time + Description *string + Files map[GistFilename]GistFile + GitPullURL *string + GitPushURL *string + HTMLURL *string + ID *string + Owner *User + Public *bool + UpdatedAt *time.Time + func (g Gist) String() string + type GistComment struct + Body *string + CreatedAt *time.Time + ID *int + URL *string + User *User + func (g GistComment) String() string + type GistFile struct + Content *string + Filename *string + RawURL *string + Size *int + func (g GistFile) String() string + type GistFilename string + type GistListOptions struct + Since time.Time + type GistsService struct + func (s *GistsService) Create(gist *Gist) (*Gist, *Response, error) + func (s *GistsService) CreateComment(gistID string, comment *GistComment) (*GistComment, *Response, error) + func (s *GistsService) Delete(id string) (*Response, error) + func (s *GistsService) DeleteComment(gistID string, commentID int) (*Response, error) + func (s *GistsService) Edit(id string, gist *Gist) (*Gist, *Response, error) + func (s *GistsService) EditComment(gistID string, commentID int, comment *GistComment) (*GistComment, *Response, error) + func (s *GistsService) Fork(id string) (*Gist, *Response, error) + func (s *GistsService) Get(id string) (*Gist, *Response, error) + func (s *GistsService) GetComment(gistID string, commentID int) (*GistComment, *Response, error) + func (s *GistsService) GetRevision(id, sha string) (*Gist, *Response, error) + func (s *GistsService) IsStarred(id string) (bool, *Response, error) + func (s *GistsService) List(user string, opt *GistListOptions) ([]Gist, *Response, error) + func (s *GistsService) ListAll(opt *GistListOptions) ([]Gist, *Response, error) + func (s *GistsService) ListComments(gistID string, opt *ListOptions) ([]GistComment, *Response, error) + func (s *GistsService) ListStarred(opt *GistListOptions) ([]Gist, *Response, error) + func (s *GistsService) Star(id string) (*Response, error) + func (s *GistsService) Unstar(id string) (*Response, error) + type GitObject struct + SHA *string + Type *string + URL *string + func (o GitObject) String() string + type GitService struct + func (s *GitService) CreateBlob(owner string, repo string, blob *Blob) (*Blob, *Response, error) + func (s *GitService) CreateCommit(owner string, repo string, commit *Commit) (*Commit, *Response, error) + func (s *GitService) CreateRef(owner string, repo string, ref *Reference) (*Reference, *Response, error) + func (s *GitService) CreateTag(owner string, repo string, tag *Tag) (*Tag, *Response, error) + func (s *GitService) CreateTree(owner string, repo string, baseTree string, entries []TreeEntry) (*Tree, *Response, error) + func (s *GitService) DeleteRef(owner string, repo string, ref string) (*Response, error) + func (s *GitService) GetBlob(owner string, repo string, sha string) (*Blob, *Response, error) + func (s *GitService) GetCommit(owner string, repo string, sha string) (*Commit, *Response, error) + func (s *GitService) GetRef(owner string, repo string, ref string) (*Reference, *Response, error) + func (s *GitService) GetTag(owner string, repo string, sha string) (*Tag, *Response, error) + func (s *GitService) GetTree(owner string, repo string, sha string, recursive bool) (*Tree, *Response, error) + func (s *GitService) ListRefs(owner, repo string, opt *ReferenceListOptions) ([]Reference, *Response, error) + func (s *GitService) UpdateRef(owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error) + type Gitignore struct + Name *string + Source *string + func (g Gitignore) String() string + type GitignoresService struct + func (s GitignoresService) Get(name string) (*Gitignore, *Response, error) + func (s GitignoresService) List() ([]string, *Response, error) + type Hook struct + Active *bool + Config map[string]interface{} + CreatedAt *time.Time + Events []string + ID *int + Name *string + UpdatedAt *time.Time + func (h Hook) String() string + type Issue struct + Assignee *User + Body *string + ClosedAt *time.Time + Comments *int + CreatedAt *time.Time + HTMLURL *string + Labels []Label + Milestone *Milestone + Number *int + PullRequestLinks *PullRequestLinks + State *string + TextMatches []TextMatch + Title *string + URL *string + UpdatedAt *time.Time + User *User + func (i Issue) String() string + type IssueActivityEvent struct + Action *string + Issue *Issue + Repo *Repository + Sender *User + type IssueComment struct + Body *string + CreatedAt *time.Time + HTMLURL *string + ID *int + IssueURL *string + URL *string + UpdatedAt *time.Time + User *User + func (i IssueComment) String() string + type IssueCommentEvent struct + Action *string + Comment *IssueComment + Issue *Issue + Repo *Repository + Sender *User + type IssueEvent struct + Actor *User + CommitID *string + CreatedAt *time.Time + Event *string + ID *int + Issue *Issue + URL *string + type IssueListByRepoOptions struct + Assignee string + Creator string + Direction string + Labels []string + Mentioned string + Milestone string + Since time.Time + Sort string + State string + type IssueListCommentsOptions struct + Direction string + Since time.Time + Sort string + type IssueListOptions struct + Direction string + Filter string + Labels []string + Since time.Time + Sort string + State string + type IssueRequest struct + Assignee *string + Body *string + Labels *[]string + Milestone *int + State *string + Title *string + type IssuesSearchResult struct + Issues []Issue + Total *int + type IssuesService struct + func (s *IssuesService) AddLabelsToIssue(owner string, repo string, number int, labels []string) ([]Label, *Response, error) + func (s *IssuesService) Create(owner string, repo string, issue *IssueRequest) (*Issue, *Response, error) + func (s *IssuesService) CreateComment(owner string, repo string, number int, comment *IssueComment) (*IssueComment, *Response, error) + func (s *IssuesService) CreateLabel(owner string, repo string, label *Label) (*Label, *Response, error) + func (s *IssuesService) CreateMilestone(owner string, repo string, milestone *Milestone) (*Milestone, *Response, error) + func (s *IssuesService) DeleteComment(owner string, repo string, id int) (*Response, error) + func (s *IssuesService) DeleteLabel(owner string, repo string, name string) (*Response, error) + func (s *IssuesService) DeleteMilestone(owner string, repo string, number int) (*Response, error) + func (s *IssuesService) Edit(owner string, repo string, number int, issue *IssueRequest) (*Issue, *Response, error) + func (s *IssuesService) EditComment(owner string, repo string, id int, comment *IssueComment) (*IssueComment, *Response, error) + func (s *IssuesService) EditLabel(owner string, repo string, name string, label *Label) (*Label, *Response, error) + func (s *IssuesService) EditMilestone(owner string, repo string, number int, milestone *Milestone) (*Milestone, *Response, error) + func (s *IssuesService) Get(owner string, repo string, number int) (*Issue, *Response, error) + func (s *IssuesService) GetComment(owner string, repo string, id int) (*IssueComment, *Response, error) + func (s *IssuesService) GetEvent(owner, repo string, id int) (*IssueEvent, *Response, error) + func (s *IssuesService) GetLabel(owner string, repo string, name string) (*Label, *Response, error) + func (s *IssuesService) GetMilestone(owner string, repo string, number int) (*Milestone, *Response, error) + func (s *IssuesService) IsAssignee(owner string, repo string, user string) (bool, *Response, error) + func (s *IssuesService) List(all bool, opt *IssueListOptions) ([]Issue, *Response, error) + func (s *IssuesService) ListAssignees(owner string, repo string, opt *ListOptions) ([]User, *Response, error) + func (s *IssuesService) ListByOrg(org string, opt *IssueListOptions) ([]Issue, *Response, error) + func (s *IssuesService) ListByRepo(owner string, repo string, opt *IssueListByRepoOptions) ([]Issue, *Response, error) + func (s *IssuesService) ListComments(owner string, repo string, number int, opt *IssueListCommentsOptions) ([]IssueComment, *Response, error) + func (s *IssuesService) ListIssueEvents(owner, repo string, number int, opt *ListOptions) ([]IssueEvent, *Response, error) + func (s *IssuesService) ListLabels(owner string, repo string, opt *ListOptions) ([]Label, *Response, error) + func (s *IssuesService) ListLabelsByIssue(owner string, repo string, number int, opt *ListOptions) ([]Label, *Response, error) + func (s *IssuesService) ListLabelsForMilestone(owner string, repo string, number int, opt *ListOptions) ([]Label, *Response, error) + func (s *IssuesService) ListMilestones(owner string, repo string, opt *MilestoneListOptions) ([]Milestone, *Response, error) + func (s *IssuesService) ListRepositoryEvents(owner, repo string, opt *ListOptions) ([]IssueEvent, *Response, error) + func (s *IssuesService) RemoveLabelForIssue(owner string, repo string, number int, label string) (*Response, error) + func (s *IssuesService) RemoveLabelsForIssue(owner string, repo string, number int) (*Response, error) + func (s *IssuesService) ReplaceLabelsForIssue(owner string, repo string, number int, labels []string) ([]Label, *Response, error) + type Key struct + ID *int + Key *string + Title *string + URL *string + func (k Key) String() string + type Label struct + Color *string + Name *string + URL *string + func (l Label) String() string + type License struct + Body *string + Category *string + Description *string + Featured *bool + Forbidden *[]string + HTMLURL *string + Implementation *string + Key *string + Name *string + Permitted *[]string + Required *[]string + URL *string + func (l License) String() string + type LicensesService struct + func (s *LicensesService) Get(licenseName string) (*License, *Response, error) + func (s *LicensesService) List() ([]License, *Response, error) + type ListContributorsOptions struct + Anon string + type ListMembersOptions struct + Filter string + PublicOnly bool + type ListOptions struct + Page int + PerPage int + type ListOrgMembershipsOptions struct + State string + type MarkdownOptions struct + Context string + Mode string + type Match struct + Indices []int + Text *string + type Membership struct + Organization *Organization + OrganizationURL *string + Role *string + State *string + URL *string + User *User + func (m Membership) String() string + type Milestone struct + ClosedIssues *int + CreatedAt *time.Time + Creator *User + Description *string + DueOn *time.Time + Number *int + OpenIssues *int + State *string + Title *string + URL *string + UpdatedAt *time.Time + func (m Milestone) String() string + type MilestoneListOptions struct + Direction string + Sort string + State string + type NewPullRequest struct + Base *string + Body *string + Head *string + Issue *int + Title *string + type Notification struct + ID *string + LastReadAt *time.Time + Reason *string + Repository *Repository + Subject *NotificationSubject + URL *string + Unread *bool + UpdatedAt *time.Time + type NotificationListOptions struct + All bool + Participating bool + Since time.Time + type NotificationSubject struct + LatestCommentURL *string + Title *string + Type *string + URL *string + type Organization struct + AvatarURL *string + BillingEmail *string + Blog *string + Collaborators *int + Company *string + CreatedAt *time.Time + DiskUsage *int + Email *string + EventsURL *string + Followers *int + Following *int + HTMLURL *string + ID *int + Location *string + Login *string + MembersURL *string + Name *string + OwnedPrivateRepos *int + Plan *Plan + PrivateGists *int + PublicGists *int + PublicMembersURL *string + PublicRepos *int + ReposURL *string + TotalPrivateRepos *int + Type *string + URL *string + UpdatedAt *time.Time + func (o Organization) String() string + type OrganizationsService struct + func (s *OrganizationsService) AddTeamMembership(team int, user string) (*Membership, *Response, error) + func (s *OrganizationsService) AddTeamRepo(team int, owner string, repo string) (*Response, error) + func (s *OrganizationsService) ConcealMembership(org, user string) (*Response, error) + func (s *OrganizationsService) CreateHook(org string, hook *Hook) (*Hook, *Response, error) + func (s *OrganizationsService) CreateTeam(org string, team *Team) (*Team, *Response, error) + func (s *OrganizationsService) DeleteHook(org string, id int) (*Response, error) + func (s *OrganizationsService) DeleteTeam(team int) (*Response, error) + func (s *OrganizationsService) Edit(name string, org *Organization) (*Organization, *Response, error) + func (s *OrganizationsService) EditHook(org string, id int, hook *Hook) (*Hook, *Response, error) + func (s *OrganizationsService) EditOrgMembership(org string, membership *Membership) (*Membership, *Response, error) + func (s *OrganizationsService) EditTeam(id int, team *Team) (*Team, *Response, error) + func (s *OrganizationsService) Get(org string) (*Organization, *Response, error) + func (s *OrganizationsService) GetHook(org string, id int) (*Hook, *Response, error) + func (s *OrganizationsService) GetOrgMembership(org string) (*Membership, *Response, error) + func (s *OrganizationsService) GetTeam(team int) (*Team, *Response, error) + func (s *OrganizationsService) GetTeamMembership(team int, user string) (*Membership, *Response, error) + func (s *OrganizationsService) IsMember(org, user string) (bool, *Response, error) + func (s *OrganizationsService) IsPublicMember(org, user string) (bool, *Response, error) + func (s *OrganizationsService) IsTeamMember(team int, user string) (bool, *Response, error) + func (s *OrganizationsService) IsTeamRepo(team int, owner string, repo string) (bool, *Response, error) + func (s *OrganizationsService) List(user string, opt *ListOptions) ([]Organization, *Response, error) + func (s *OrganizationsService) ListHooks(org string, opt *ListOptions) ([]Hook, *Response, error) + func (s *OrganizationsService) ListMembers(org string, opt *ListMembersOptions) ([]User, *Response, error) + func (s *OrganizationsService) ListOrgMemberships(opt *ListOrgMembershipsOptions) ([]Membership, *Response, error) + func (s *OrganizationsService) ListTeamMembers(team int, opt *ListOptions) ([]User, *Response, error) + func (s *OrganizationsService) ListTeamRepos(team int, opt *ListOptions) ([]Repository, *Response, error) + func (s *OrganizationsService) ListTeams(org string, opt *ListOptions) ([]Team, *Response, error) + func (s *OrganizationsService) ListUserTeams(opt *ListOptions) ([]Team, *Response, error) + func (s *OrganizationsService) PingHook(org string, id int) (*Response, error) + func (s *OrganizationsService) PublicizeMembership(org, user string) (*Response, error) + func (s *OrganizationsService) RemoveMember(org, user string) (*Response, error) + func (s *OrganizationsService) RemoveTeamMembership(team int, user string) (*Response, error) + func (s *OrganizationsService) RemoveTeamRepo(team int, owner string, repo string) (*Response, error) + type Pages struct + CNAME *string + Custom404 *bool + Status *string + URL *string + type PagesBuild struct + Commit *string + CreatedAt *Timestamp + Duration *int + Error *PagesError + Pusher *User + Status *string + URL *string + UpdatedAt *Timestamp + type PagesError struct + Message *string + type Plan struct + Collaborators *int + Name *string + PrivateRepos *int + Space *int + func (p Plan) String() string + type PullRequest struct + Additions *int + Base *PullRequestBranch + Body *string + ChangedFiles *int + ClosedAt *time.Time + Comments *int + Commits *int + CreatedAt *time.Time + Deletions *int + DiffURL *string + HTMLURL *string + Head *PullRequestBranch + IssueURL *string + Mergeable *bool + Merged *bool + MergedAt *time.Time + MergedBy *User + Number *int + PatchURL *string + State *string + StatusesURL *string + Title *string + URL *string + UpdatedAt *time.Time + User *User + func (p PullRequest) String() string + type PullRequestBranch struct + Label *string + Ref *string + Repo *Repository + SHA *string + User *User + type PullRequestComment struct + Body *string + CommitID *string + CreatedAt *time.Time + ID *int + Path *string + Position *int + UpdatedAt *time.Time + User *User + func (p PullRequestComment) String() string + type PullRequestEvent struct + Action *string + Number *int + PullRequest *PullRequest + Repo *Repository + Sender *User + type PullRequestLinks struct + DiffURL *string + HTMLURL *string + PatchURL *string + URL *string + type PullRequestListCommentsOptions struct + Direction string + Since time.Time + Sort string + type PullRequestListOptions struct + Base string + Direction string + Head string + Sort string + State string + type PullRequestMergeResult struct + Merged *bool + Message *string + SHA *string + type PullRequestsService struct + func (s *PullRequestsService) Create(owner string, repo string, pull *NewPullRequest) (*PullRequest, *Response, error) + func (s *PullRequestsService) CreateComment(owner string, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error) + func (s *PullRequestsService) DeleteComment(owner string, repo string, number int) (*Response, error) + func (s *PullRequestsService) Edit(owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error) + func (s *PullRequestsService) EditComment(owner string, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error) + func (s *PullRequestsService) Get(owner string, repo string, number int) (*PullRequest, *Response, error) + func (s *PullRequestsService) GetComment(owner string, repo string, number int) (*PullRequestComment, *Response, error) + func (s *PullRequestsService) IsMerged(owner string, repo string, number int) (bool, *Response, error) + func (s *PullRequestsService) List(owner string, repo string, opt *PullRequestListOptions) ([]PullRequest, *Response, error) + func (s *PullRequestsService) ListComments(owner string, repo string, number int, opt *PullRequestListCommentsOptions) ([]PullRequestComment, *Response, error) + func (s *PullRequestsService) ListCommits(owner string, repo string, number int, opt *ListOptions) ([]RepositoryCommit, *Response, error) + func (s *PullRequestsService) ListFiles(owner string, repo string, number int, opt *ListOptions) ([]CommitFile, *Response, error) + func (s *PullRequestsService) Merge(owner string, repo string, number int, commitMessage string) (*PullRequestMergeResult, *Response, error) + type PunchCard struct + Commits *int + Day *int + Hour *int + type PushEvent struct + Commits []PushEventCommit + Head *string + PushID *int + Ref *string + Repo *Repository + Size *int + func (p PushEvent) String() string + type PushEventCommit struct + Added []string + Author *CommitAuthor + Distinct *bool + Message *string + Modified []string + Removed []string + SHA *string + URL *string + func (p PushEventCommit) String() string + type Rate struct + Limit int + Remaining int + Reset Timestamp + func (r Rate) String() string + type RateLimits struct + Core *Rate + Search *Rate + func (r RateLimits) String() string + type Reference struct + Object *GitObject + Ref *string + URL *string + func (r Reference) String() string + type ReferenceListOptions struct + Type string + type ReleaseAsset struct + BrowserDownloadURL *string + ContentType *string + CreatedAt *Timestamp + DownloadCount *int + ID *int + Label *string + Name *string + Size *int + State *string + URL *string + UpdatedAt *Timestamp + Uploader *User + func (r ReleaseAsset) String() string + type RepoStatus struct + Context *string + CreatedAt *time.Time + Creator *User + Description *string + ID *int + State *string + TargetURL *string + URL *string + UpdatedAt *time.Time + func (r RepoStatus) String() string + type RepositoriesSearchResult struct + Repositories []Repository + Total *int + type RepositoriesService struct + func (s *RepositoriesService) AddCollaborator(owner, repo, user string) (*Response, error) + func (s *RepositoriesService) CompareCommits(owner, repo string, base, head string) (*CommitsComparison, *Response, error) + func (s *RepositoriesService) Create(org string, repo *Repository) (*Repository, *Response, error) + func (s *RepositoriesService) CreateComment(owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error) + func (s *RepositoriesService) CreateDeployment(owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error) + func (s *RepositoriesService) CreateDeploymentStatus(owner, repo string, deployment int, request *DeploymentStatusRequest) (*DeploymentStatus, *Response, error) + func (s *RepositoriesService) CreateFile(owner, repo, path string, opt *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) + func (s *RepositoriesService) CreateFork(owner, repo string, opt *RepositoryCreateForkOptions) (*Repository, *Response, error) + func (s *RepositoriesService) CreateHook(owner, repo string, hook *Hook) (*Hook, *Response, error) + func (s *RepositoriesService) CreateKey(owner string, repo string, key *Key) (*Key, *Response, error) + func (s *RepositoriesService) CreateRelease(owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error) + func (s *RepositoriesService) CreateStatus(owner, repo, ref string, status *RepoStatus) (*RepoStatus, *Response, error) + func (s *RepositoriesService) Delete(owner, repo string) (*Response, error) + func (s *RepositoriesService) DeleteComment(owner, repo string, id int) (*Response, error) + func (s *RepositoriesService) DeleteFile(owner, repo, path string, opt *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) + func (s *RepositoriesService) DeleteHook(owner, repo string, id int) (*Response, error) + func (s *RepositoriesService) DeleteKey(owner string, repo string, id int) (*Response, error) + func (s *RepositoriesService) DeleteRelease(owner, repo string, id int) (*Response, error) + func (s *RepositoriesService) DeleteReleaseAsset(owner, repo string, id int) (*Response, error) + func (s *RepositoriesService) DownloadContents(owner, repo, filepath string, opt *RepositoryContentGetOptions) (io.ReadCloser, error) + func (s *RepositoriesService) Edit(owner, repo string, repository *Repository) (*Repository, *Response, error) + func (s *RepositoriesService) EditHook(owner, repo string, id int, hook *Hook) (*Hook, *Response, error) + func (s *RepositoriesService) EditKey(owner string, repo string, id int, key *Key) (*Key, *Response, error) + func (s *RepositoriesService) EditRelease(owner, repo string, id int, release *RepositoryRelease) (*RepositoryRelease, *Response, error) + func (s *RepositoriesService) EditReleaseAsset(owner, repo string, id int, release *ReleaseAsset) (*ReleaseAsset, *Response, error) + func (s *RepositoriesService) Get(owner, repo string) (*Repository, *Response, error) + func (s *RepositoriesService) GetArchiveLink(owner, repo string, archiveformat archiveFormat, ...) (*url.URL, *Response, error) + func (s *RepositoriesService) GetBranch(owner, repo, branch string) (*Branch, *Response, error) + func (s *RepositoriesService) GetCombinedStatus(owner, repo, ref string, opt *ListOptions) (*CombinedStatus, *Response, error) + func (s *RepositoriesService) GetComment(owner, repo string, id int) (*RepositoryComment, *Response, error) + func (s *RepositoriesService) GetCommit(owner, repo, sha string) (*RepositoryCommit, *Response, error) + func (s *RepositoriesService) GetContents(owner, repo, path string, opt *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, ...) + func (s *RepositoriesService) GetHook(owner, repo string, id int) (*Hook, *Response, error) + func (s *RepositoriesService) GetKey(owner string, repo string, id int) (*Key, *Response, error) + func (s *RepositoriesService) GetLatestPagesBuild(owner string, repo string) (*PagesBuild, *Response, error) + func (s *RepositoriesService) GetPagesInfo(owner string, repo string) (*Pages, *Response, error) + func (s *RepositoriesService) GetReadme(owner, repo string, opt *RepositoryContentGetOptions) (*RepositoryContent, *Response, error) + func (s *RepositoriesService) GetRelease(owner, repo string, id int) (*RepositoryRelease, *Response, error) + func (s *RepositoriesService) GetReleaseAsset(owner, repo string, id int) (*ReleaseAsset, *Response, error) + func (s *RepositoriesService) IsCollaborator(owner, repo, user string) (bool, *Response, error) + func (s *RepositoriesService) List(user string, opt *RepositoryListOptions) ([]Repository, *Response, error) + func (s *RepositoriesService) ListAll(opt *RepositoryListAllOptions) ([]Repository, *Response, error) + func (s *RepositoriesService) ListBranches(owner string, repo string, opt *ListOptions) ([]Branch, *Response, error) + func (s *RepositoriesService) ListByOrg(org string, opt *RepositoryListByOrgOptions) ([]Repository, *Response, error) + func (s *RepositoriesService) ListCodeFrequency(owner, repo string) ([]WeeklyStats, *Response, error) + func (s *RepositoriesService) ListCollaborators(owner, repo string, opt *ListOptions) ([]User, *Response, error) + func (s *RepositoriesService) ListComments(owner, repo string, opt *ListOptions) ([]RepositoryComment, *Response, error) + func (s *RepositoriesService) ListCommitActivity(owner, repo string) ([]WeeklyCommitActivity, *Response, error) + func (s *RepositoriesService) ListCommitComments(owner, repo, sha string, opt *ListOptions) ([]RepositoryComment, *Response, error) + func (s *RepositoriesService) ListCommits(owner, repo string, opt *CommitsListOptions) ([]RepositoryCommit, *Response, error) + func (s *RepositoriesService) ListContributors(owner string, repository string, opt *ListContributorsOptions) ([]Contributor, *Response, error) + func (s *RepositoriesService) ListContributorsStats(owner, repo string) ([]ContributorStats, *Response, error) + func (s *RepositoriesService) ListDeploymentStatuses(owner, repo string, deployment int, opt *ListOptions) ([]DeploymentStatus, *Response, error) + func (s *RepositoriesService) ListDeployments(owner, repo string, opt *DeploymentsListOptions) ([]Deployment, *Response, error) + func (s *RepositoriesService) ListForks(owner, repo string, opt *RepositoryListForksOptions) ([]Repository, *Response, error) + func (s *RepositoriesService) ListHooks(owner, repo string, opt *ListOptions) ([]Hook, *Response, error) + func (s *RepositoriesService) ListKeys(owner string, repo string, opt *ListOptions) ([]Key, *Response, error) + func (s *RepositoriesService) ListLanguages(owner string, repo string) (map[string]int, *Response, error) + func (s *RepositoriesService) ListPagesBuilds(owner string, repo string) ([]PagesBuild, *Response, error) + func (s *RepositoriesService) ListParticipation(owner, repo string) (*RepositoryParticipation, *Response, error) + func (s *RepositoriesService) ListPunchCard(owner, repo string) ([]PunchCard, *Response, error) + func (s *RepositoriesService) ListReleaseAssets(owner, repo string, id int, opt *ListOptions) ([]ReleaseAsset, *Response, error) + func (s *RepositoriesService) ListReleases(owner, repo string, opt *ListOptions) ([]RepositoryRelease, *Response, error) + func (s *RepositoriesService) ListServiceHooks() ([]ServiceHook, *Response, error) + func (s *RepositoriesService) ListStatuses(owner, repo, ref string, opt *ListOptions) ([]RepoStatus, *Response, error) + func (s *RepositoriesService) ListTags(owner string, repo string, opt *ListOptions) ([]RepositoryTag, *Response, error) + func (s *RepositoriesService) ListTeams(owner string, repo string, opt *ListOptions) ([]Team, *Response, error) + func (s *RepositoriesService) Merge(owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error) + func (s *RepositoriesService) PingHook(owner, repo string, id int) (*Response, error) + func (s *RepositoriesService) RemoveCollaborator(owner, repo, user string) (*Response, error) + func (s *RepositoriesService) TestHook(owner, repo string, id int) (*Response, error) + func (s *RepositoriesService) UpdateComment(owner, repo string, id int, comment *RepositoryComment) (*RepositoryComment, *Response, error) + func (s *RepositoriesService) UpdateFile(owner, repo, path string, opt *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) + func (s *RepositoriesService) UploadReleaseAsset(owner, repo string, id int, opt *UploadOptions, file *os.File) (*ReleaseAsset, *Response, error) + type Repository struct + ArchiveURL *string + AssigneesURL *string + AutoInit *bool + BlobsURL *string + BranchesURL *string + CloneURL *string + CollaboratorsURL *string + CommentsURL *string + CommitsURL *string + CompareURL *string + ContentsURL *string + ContributorsURL *string + CreatedAt *Timestamp + DefaultBranch *string + Description *string + DownloadsURL *string + EventsURL *string + Fork *bool + ForksCount *int + ForksURL *string + FullName *string + GitCommitsURL *string + GitRefsURL *string + GitTagsURL *string + GitURL *string + HTMLURL *string + HasDownloads *bool + HasIssues *bool + HasWiki *bool + Homepage *string + HooksURL *string + ID *int + IssueCommentURL *string + IssueEventsURL *string + IssuesURL *string + KeysURL *string + LabelsURL *string + Language *string + LanguagesURL *string + License *License + MasterBranch *string + MergesURL *string + MilestonesURL *string + MirrorURL *string + Name *string + NetworkCount *int + NotificationsURL *string + OpenIssuesCount *int + Organization *Organization + Owner *User + Parent *Repository + Permissions *map[string]bool + Private *bool + PullsURL *string + PushedAt *Timestamp + ReleasesURL *string + SSHURL *string + SVNURL *string + Size *int + Source *Repository + StargazersCount *int + StargazersURL *string + StatusesURL *string + SubscribersCount *int + SubscribersURL *string + SubscriptionURL *string + TagsURL *string + TeamID *int + TeamsURL *string + TextMatches []TextMatch + TreesURL *string + URL *string + UpdatedAt *Timestamp + WatchersCount *int + func (r Repository) String() string + type RepositoryComment struct + Body *string + CommitID *string + CreatedAt *time.Time + HTMLURL *string + ID *int + Path *string + Position *int + URL *string + UpdatedAt *time.Time + User *User + func (r RepositoryComment) String() string + type RepositoryCommit struct + Author *User + Commit *Commit + Committer *User + Files []CommitFile + HTMLURL *string + Message *string + Parents []Commit + SHA *string + Stats *CommitStats + func (r RepositoryCommit) String() string + type RepositoryContent struct + Content *string + DownloadURL *string + Encoding *string + GitURL *string + HTMLURL *string + Name *string + Path *string + SHA *string + Size *int + Type *string + URL *string + func (r *RepositoryContent) Decode() ([]byte, error) + func (r RepositoryContent) String() string + type RepositoryContentFileOptions struct + Author *CommitAuthor + Branch *string + Committer *CommitAuthor + Content []byte + Message *string + SHA *string + type RepositoryContentGetOptions struct + Ref string + type RepositoryContentResponse struct + Content *RepositoryContent + type RepositoryCreateForkOptions struct + Organization string + type RepositoryListAllOptions struct + Since int + type RepositoryListByOrgOptions struct + Type string + type RepositoryListForksOptions struct + Sort string + type RepositoryListOptions struct + Direction string + Sort string + Type string + type RepositoryMergeRequest struct + Base *string + CommitMessage *string + Head *string + type RepositoryParticipation struct + All []int + Owner []int + func (r RepositoryParticipation) String() string + type RepositoryRelease struct + Assets []ReleaseAsset + AssetsURL *string + Body *string + CreatedAt *Timestamp + Draft *bool + HTMLURL *string + ID *int + Name *string + Prerelease *bool + PublishedAt *Timestamp + TagName *string + TarballURL *string + TargetCommitish *string + URL *string + UploadURL *string + ZipballURL *string + func (r RepositoryRelease) String() string + type RepositoryTag struct + Commit *Commit + Name *string + TarballURL *string + ZipballURL *string + type Response struct + FirstPage int + LastPage int + NextPage int + PrevPage int + type SearchOptions struct + Order string + Sort string + TextMatch bool + type SearchService struct + func (s *SearchService) Code(query string, opt *SearchOptions) (*CodeSearchResult, *Response, error) + func (s *SearchService) Issues(query string, opt *SearchOptions) (*IssuesSearchResult, *Response, error) + func (s *SearchService) Repositories(query string, opt *SearchOptions) (*RepositoriesSearchResult, *Response, error) + func (s *SearchService) Users(query string, opt *SearchOptions) (*UsersSearchResult, *Response, error) + type ServiceHook struct + Events []string + Name *string + Schema [][]string + SupportedEvents []string + func (s *ServiceHook) String() string + type Subscription struct + CreatedAt *Timestamp + Ignored *bool + Reason *string + RepositoryURL *string + Subscribed *bool + ThreadURL *string + URL *string + type Tag struct + Message *string + Object *GitObject + SHA *string + Tag *string + Tagger *CommitAuthor + URL *string + type Team struct + ID *int + MembersCount *int + Name *string + Organization *Organization + Permission *string + ReposCount *int + Slug *string + URL *string + func (t Team) String() string + type TextMatch struct + Fragment *string + Matches []Match + ObjectType *string + ObjectURL *string + Property *string + func (tm TextMatch) String() string + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(data []byte) (err error) + func (t Timestamp) Equal(u Timestamp) bool + func (t Timestamp) String() string + type Tree struct + Entries []TreeEntry + SHA *string + func (t Tree) String() string + type TreeEntry struct + Content *string + Mode *string + Path *string + SHA *string + Size *int + Type *string + func (t TreeEntry) String() string + type UnauthenticatedRateLimitedTransport struct + ClientID string + ClientSecret string + Transport http.RoundTripper + func (t *UnauthenticatedRateLimitedTransport) Client() *http.Client + func (t *UnauthenticatedRateLimitedTransport) RoundTrip(req *http.Request) (*http.Response, error) + type UploadOptions struct + Name string + type User struct + AvatarURL *string + Bio *string + Blog *string + Collaborators *int + Company *string + CreatedAt *Timestamp + DiskUsage *int + Email *string + EventsURL *string + Followers *int + FollowersURL *string + Following *int + FollowingURL *string + GistsURL *string + GravatarID *string + HTMLURL *string + Hireable *bool + ID *int + Location *string + Login *string + Name *string + OrganizationsURL *string + OwnedPrivateRepos *int + Plan *Plan + PrivateGists *int + PublicGists *int + PublicRepos *int + ReceivedEventsURL *string + ReposURL *string + SiteAdmin *bool + StarredURL *string + SubscriptionsURL *string + TextMatches []TextMatch + TotalPrivateRepos *int + Type *string + URL *string + UpdatedAt *Timestamp + func (u User) String() string + type UserEmail struct + Email *string + Primary *bool + Verified *bool + type UserListOptions struct + Since int + type UsersSearchResult struct + Total *int + Users []User + type UsersService struct + func (s *UsersService) AddEmails(emails []string) ([]UserEmail, *Response, error) + func (s *UsersService) CreateKey(key *Key) (*Key, *Response, error) + func (s *UsersService) DeleteEmails(emails []string) (*Response, error) + func (s *UsersService) DeleteKey(id int) (*Response, error) + func (s *UsersService) DemoteSiteAdmin(user string) (*Response, error) + func (s *UsersService) Edit(user *User) (*User, *Response, error) + func (s *UsersService) Follow(user string) (*Response, error) + func (s *UsersService) Get(user string) (*User, *Response, error) + func (s *UsersService) GetKey(id int) (*Key, *Response, error) + func (s *UsersService) IsFollowing(user, target string) (bool, *Response, error) + func (s *UsersService) ListAll(opt *UserListOptions) ([]User, *Response, error) + func (s *UsersService) ListEmails(opt *ListOptions) ([]UserEmail, *Response, error) + func (s *UsersService) ListFollowers(user string, opt *ListOptions) ([]User, *Response, error) + func (s *UsersService) ListFollowing(user string, opt *ListOptions) ([]User, *Response, error) + func (s *UsersService) ListKeys(user string, opt *ListOptions) ([]Key, *Response, error) + func (s *UsersService) PromoteSiteAdmin(user string) (*Response, error) + func (s *UsersService) Suspend(user string) (*Response, error) + func (s *UsersService) Unfollow(user string) (*Response, error) + func (s *UsersService) Unsuspend(user string) (*Response, error) + type WebHookAuthor struct + Email *string + Name *string + Username *string + func (w WebHookAuthor) String() string + type WebHookCommit struct + Added []string + Author *WebHookAuthor + Committer *WebHookAuthor + Distinct *bool + ID *string + Message *string + Modified []string + Removed []string + Timestamp *time.Time + func (w WebHookCommit) String() string + type WebHookPayload struct + After *string + Before *string + Commits []WebHookCommit + Compare *string + Created *bool + Deleted *bool + Forced *bool + HeadCommit *WebHookCommit + Pusher *User + Ref *string + Repo *Repository + func (w WebHookPayload) String() string + type WeeklyCommitActivity struct + Days []int + Total *int + Week *Timestamp + func (w WeeklyCommitActivity) String() string + type WeeklyStats struct + Additions *int + Commits *int + Deletions *int + Week *Timestamp + func (w WeeklyStats) String() string