{"modulePath":"github.com/larrylv/go-github","version":"v0.0.0-20140517213534-dcc1981fd936","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github provides a client for using the GitHub API.\n\nConstruct a new GitHub client, then use the various services on the client to access different parts of the GitHub API. For example:\n\n\tclient := github.NewClient(nil)\n\n\t// list all organizations for user \"willnorris\"\n\torgs, _, err := client.Organizations.List(\"willnorris\", nil)\n\nSet optional parameters for an API method by passing an Options object.\n\n\t// list recently updated repositories for org \"github\"\n\topt := \u0026github.RepositoryListByOrgOptions{Sort: \"updated\"}\n\trepos, _, err := client.Repositories.ListByOrg(\"github\", opt)\n\nThe services of a client divide the API into logical chunks and correspond to the structure of the GitHub API documentation at [http://developer.github.com/v3/](http://developer.github.com/v3/).\n\n### Authentication {#hdr-Authentication}\n\nThe go-github library does not directly handle authentication. Instead, when creating a new client, pass an http.Client that can handle authentication for you. The easiest and recommended way to do this is using the goauth2 library, but you can always use any other library that provides an http.Client. If you have an OAuth2 access token (for example, a personal API token), you can use it with the goauth2 using:\n\n\timport \"code.google.com/p/goauth2/oauth\"\n\n\t// simple OAuth transport if you already have an access token;\n\t// see goauth2 library for full usage\n\tt := \u0026oauth.Transport{\n\t\tToken: \u0026oauth.Token{AccessToken: \"...\"},\n\t}\n\n\tclient := github.NewClient(t.Client())\n\n\t// list all repositories for the authenticated user\n\trepos, _, err := client.Repositories.List(\"\", nil)\n\nNote that when using an authenticated Client, all calls made by the client will include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users.\n\n### Rate Limiting {#hdr-Rate_Limiting}\n\nGitHub imposes a rate limit on all API clients.  Unauthenticated clients are limited to 60 requests per hour, while authenticated clients can make up to 5,000 requests per hour.  To receive the higher rate limit when making calls that are not issued on behalf of a user, use the UnauthenticatedRateLimitedTransport.\n\nThe Rate field on a client tracks the rate limit information based on the most recent API call.  This is updated on every call, but may be out of date if it's been some time since the last API call and other clients have made subsequent requests since then.  You can always call RateLimit() directly to get the most up-to-date rate limit data for the client.\n\nLearn more about GitHub rate limiting at [http://developer.github.com/v3/#rate-limiting](http://developer.github.com/v3/#rate-limiting).\n\n### Conditional Requests {#hdr-Conditional_Requests}\n\nThe GitHub API has good support for conditional requests which will help prevent you from burning through your rate limit, as well as help speed up your application.  go-github does not handle conditional requests directly, but is instead designed to work with a caching http.Transport.  We recommend using [https://github.com/gregjones/httpcache](https://github.com/gregjones/httpcache), which can be used in conjuction with [https://github.com/sourcegraph/apiproxy](https://github.com/sourcegraph/apiproxy) to provide additional flexibility and control of caching rules.\n\nLearn more about GitHub conditional requests at [https://developer.github.com/v3/#conditional-requests](https://developer.github.com/v3/#conditional-requests).\n\n### Creating and Updating Resources {#hdr-Creating_and_Updating_Resources}\n\nAll structs for GitHub resources use pointer values for all non-repeated fields. This allows distinguishing between unset fields and those set to a zero-value. Helper functions have been provided to easily create these pointers for string, bool, and int values.  For example:\n\n\t// create a new private repository named \"foo\"\n\trepo := \u0026github.Repository{\n\t\tName:    github.String(\"foo\"),\n\t\tPrivate: github.Bool(true),\n\t}\n\tclient.Repositories.Create(\"\", repo)\n\nUsers who have worked with protocol buffers should find this pattern familiar.\n\n## Constants\n\n```go\nconst (\n\t// Tarball specifies an archive in gzipped tar format.\n\tTarball archiveFormat = \"tarball\"\n\n\t// Zipball specifies an archive in zip format.\n\tZipball archiveFormat = \"zipball\"\n)\n```\n\n## Functions\n\n```go\nfunc Bool(v bool) *bool\n```\nBool is a helper routine that allocates a new bool value to store v and returns a pointer to it.\n\n```go\nfunc CheckResponse(r *http.Response) error\n```\nCheckResponse checks the API response for errors, and returns them if present.  A response is considered an error if it has a status code outside the 200 range.  API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse.  Any other response body will be silently ignored.\n\n```go\nfunc Int(v int) *int\n```\nInt is a helper routine that allocates a new int32 value to store v and returns a pointer to it, but unlike Int32 its argument value is an int.\n\n```go\nfunc String(v string) *string\n```\nString is a helper routine that allocates a new string value to store v and returns a pointer to it.\n\n```go\nfunc Stringify(message interface{}) string\n```\nStringify attempts to create a reasonable string representation of types in the GitHub library.  It does things like resolve pointers to their values and omits struct fields with nil values.\n\n## Types\n\n```go\ntype APIMeta struct {\n\t// An Array of IP addresses in CIDR format specifying the addresses\n\t// that incoming service hooks will originate from on GitHub.com.\n\tHooks []string `json:\"hooks,omitempty\"`\n\n\t// An Array of IP addresses in CIDR format specifying the Git servers\n\t// for GitHub.com.\n\tGit []string `json:\"git,omitempty\"`\n\n\t// Whether authentication with username and password is supported.\n\t// (GitHub Enterprise instances using CAS or OAuth for authentication\n\t// will return false. Features like Basic Authentication with a\n\t// username and password, sudo mode, and two-factor authentication are\n\t// not supported on these servers.)\n\tVerifiablePasswordAuthentication *bool `json:\"verifiable_password_authentication,omitempty\"`\n}\n```\nAPIMeta represents metadata about the GitHub API.\n\n```go\ntype ActivityListStarredOptions struct {\n\t// How to sort the repository list.  Possible values are: created, updated,\n\t// pushed, full_name.  Default is \"full_name\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories.  Possible values are: asc, desc.\n\t// Default is \"asc\" when sort is \"full_name\", otherwise default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nActivityListStarredOptions specifies the optional parameters to the ActivityService.ListStarred method.\n\n```go\ntype ActivityService struct {\n\t// contains filtered or unexported fields\n}\n```\nActivityService handles communication with the activity related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/activity/](http://developer.github.com/v3/activity/)\n\n```go\nfunc (s *ActivityService) DeleteRepositorySubscription(owner, repo string) (*Response, error)\n```\nDeleteRepositorySubscription deletes the subscription for the specified repository for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription](https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) DeleteThreadSubscription(id string) (*Response, error)\n```\nDeleteThreadSubscription deletes the subscription for the specified thread for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription](https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription)\n\n```go\nfunc (s *ActivityService) GetRepositorySubscription(owner, repo string) (*Subscription, *Response, error)\n```\nGetRepositorySubscription returns the subscription for the specified repository for the authenticated user.  If the authenticated user is not watching the repository, a nil Subscription is returned.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/watching/#get-a-repository-subscription](https://developer.github.com/v3/activity/watching/#get-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) GetThread(id string) (*Notification, *Response, error)\n```\nGetThread gets the specified notification thread.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#view-a-single-thread](https://developer.github.com/v3/activity/notifications/#view-a-single-thread)\n\n```go\nfunc (s *ActivityService) GetThreadSubscription(id string) (*Subscription, *Response, error)\n```\nGetThreadSubscription checks to see if the authenticated user is subscribed to a thread.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription](https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription)\n\n```go\nfunc (s *ActivityService) IsStarred(owner, repo string) (bool, *Response, error)\n```\nIsStarred checks if a repository is starred by authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository](https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository)\n\n```go\nfunc (s *ActivityService) ListEvents(opt *ListOptions) ([]Event, *Response, error)\n```\nListEvents drinks from the firehose of all public events across GitHub.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-public-events](http://developer.github.com/v3/activity/events/#list-public-events)\n\n```go\nfunc (s *ActivityService) ListEventsForOrganization(org string, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsForOrganization lists public events for an organization.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-public-events-for-an-organization](http://developer.github.com/v3/activity/events/#list-public-events-for-an-organization)\n\n```go\nfunc (s *ActivityService) ListEventsForRepoNetwork(owner, repo string, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsForRepoNetwork lists public events for a network of repositories.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories](http://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories)\n\n```go\nfunc (s *ActivityService) ListEventsPerformedByUser(user string, publicOnly bool, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsPerformedByUser lists the events performed by a user. If publicOnly is true, only public events will be returned.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user](http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user)\n\n```go\nfunc (s *ActivityService) ListEventsRecievedByUser(user string, publicOnly bool, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsRecievedByUser lists the events recieved by a user. If publicOnly is true, only public events will be returned.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received](http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received)\n\n```go\nfunc (s *ActivityService) ListIssueEventsForRepository(owner, repo string, opt *ListOptions) ([]Event, *Response, error)\n```\nListIssueEventsForRepository lists issue events for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository](http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository)\n\n```go\nfunc (s *ActivityService) ListNotifications(opt *NotificationListOptions) ([]Notification, *Response, error)\n```\nListNotifications lists all notifications for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#list-your-notifications](https://developer.github.com/v3/activity/notifications/#list-your-notifications)\n\n```go\nfunc (s *ActivityService) ListRepositoryEvents(owner, repo string, opt *ListOptions) ([]Event, *Response, error)\n```\nListRepositoryEvents lists events for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-repository-events](http://developer.github.com/v3/activity/events/#list-repository-events)\n\n```go\nfunc (s *ActivityService) ListRepositoryNotifications(owner, repo string, opt *NotificationListOptions) ([]Notification, *Response, error)\n```\nListRepositoryNotifications lists all notifications in a given repository for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository](https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository)\n\n```go\nfunc (s *ActivityService) ListStargazers(owner, repo string, opt *ListOptions) ([]User, *Response, error)\n```\nListStargazers lists people who have starred the specified repo.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/starring/#list-stargazers](https://developer.github.com/v3/activity/starring/#list-stargazers)\n\n```go\nfunc (s *ActivityService) ListStarred(user string, opt *ActivityListStarredOptions) ([]Repository, *Response, error)\n```\nListStarred lists all the repos starred by a user.  Passing the empty string will list the starred repositories for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/activity/starring/#list-repositories-being-starred](http://developer.github.com/v3/activity/starring/#list-repositories-being-starred)\n\n```go\nfunc (s *ActivityService) ListUserEventsForOrganization(org, user string, opt *ListOptions) ([]Event, *Response, error)\n```\nListUserEventsForOrganization provides the user’s organization dashboard. You must be authenticated as the user to view this.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-events-for-an-organization](http://developer.github.com/v3/activity/events/#list-events-for-an-organization)\n\n```go\nfunc (s *ActivityService) ListWatched(user string) ([]Repository, *Response, error)\n```\nListWatched lists the repositories the specified user is watching.  Passing the empty string will fetch watched repos for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/watching/#list-repositories-being-watched](https://developer.github.com/v3/activity/watching/#list-repositories-being-watched)\n\n```go\nfunc (s *ActivityService) ListWatchers(owner, repo string, opt *ListOptions) ([]User, *Response, error)\n```\nListWatchers lists watchers of a particular repo.\n\nGitHub API Docs: [http://developer.github.com/v3/activity/watching/#list-watchers](http://developer.github.com/v3/activity/watching/#list-watchers)\n\n```go\nfunc (s *ActivityService) MarkNotificationsRead(lastRead time.Time) (*Response, error)\n```\nMarkNotificationsRead marks all notifications up to lastRead as read.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#mark-as-read](https://developer.github.com/v3/activity/notifications/#mark-as-read)\n\n```go\nfunc (s *ActivityService) MarkRepositoryNotificationsRead(owner, repo string, lastRead time.Time) (*Response, error)\n```\nMarkRepositoryNotificationsRead marks all notifications up to lastRead in the specified repository as read.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository](https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository)\n\n```go\nfunc (s *ActivityService) MarkThreadRead(id string) (*Response, error)\n```\nMarkThreadRead marks the specified thread as read.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read](https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read)\n\n```go\nfunc (s *ActivityService) SetRepositorySubscription(owner, repo string, subscription *Subscription) (*Subscription, *Response, error)\n```\nSetRepositorySubscription sets the subscription for the specified repository for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/watching/#set-a-repository-subscription](https://developer.github.com/v3/activity/watching/#set-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) SetThreadSubscription(id string, subscription *Subscription) (*Subscription, *Response, error)\n```\nSetThreadSubscription sets the subscription for the specified thread for the authenticated user.\n\nGitHub API Docs: [https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription](https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription)\n\n```go\nfunc (s *ActivityService) Star(owner, repo string) (*Response, error)\n```\nStar a repository as the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/activity/starring/#star-a-repository](https://developer.github.com/v3/activity/starring/#star-a-repository)\n\n```go\nfunc (s *ActivityService) Unstar(owner, repo string) (*Response, error)\n```\nUnstar a repository as the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/activity/starring/#unstar-a-repository](https://developer.github.com/v3/activity/starring/#unstar-a-repository)\n\n```go\ntype Blob struct {\n\tContent  *string `json:\"content,omitempty\"`\n\tEncoding *string `json:\"encoding,omitempty\"`\n\tSHA      *string `json:\"sha,omitempty\"`\n\tSize     *int    `json:\"size,omitempty\"`\n\tURL      *string `json:\"url,omitempty\"`\n}\n```\nBlob represents a blob object.\n\n```go\ntype Branch struct {\n\tName   *string `json:\"name,omitempty\"`\n\tCommit *Commit `json:\"commit,omitempty\"`\n}\n```\nBranch represents a repository branch\n\n```go\ntype Client struct {\n\n\t// Base URL for API requests.  Defaults to the public GitHub API, but can be\n\t// set to a domain endpoint to use with GitHub Enterprise.  BaseURL should\n\t// always be specified with a trailing slash.\n\tBaseURL *url.URL\n\n\t// Base URL for uploading files.\n\tUploadURL *url.URL\n\n\t// User agent used when communicating with the GitHub API.\n\tUserAgent string\n\n\t// Rate specifies the current rate limit for the client as determined by the\n\t// most recent API call.  If the client is used in a multi-user application,\n\t// this rate may not always be up-to-date.  Call RateLimit() to check the\n\t// current rate.\n\tRate Rate\n\n\t// Services used for talking to different parts of the GitHub API.\n\tActivity      *ActivityService\n\tGists         *GistsService\n\tGit           *GitService\n\tGitignores    *GitignoresService\n\tIssues        *IssuesService\n\tOrganizations *OrganizationsService\n\tPullRequests  *PullRequestsService\n\tRepositories  *RepositoriesService\n\tSearch        *SearchService\n\tUsers         *UsersService\n\t// contains filtered or unexported fields\n}\n```\nA Client manages communication with the GitHub API.\n\n```go\nfunc NewClient(httpClient *http.Client) *Client\n```\nNewClient returns a new GitHub API client.  If a nil httpClient is provided, http.DefaultClient will be used.  To use API methods which require authentication, provide an http.Client that will perform the authentication for you (such as that provided by the goauth2 library).\n\n```go\nfunc (c *Client) APIMeta() (*APIMeta, *Response, error)\n```\nAPIMeta returns information about GitHub.com, the service. Or, if you access this endpoint on your organization’s GitHub Enterprise installation, this endpoint provides information about that installation.\n\nGitHub API docs: [https://developer.github.com/v3/meta/](https://developer.github.com/v3/meta/)\n\n```go\nfunc (c *Client) Do(req *http.Request, v interface{}) (*Response, error)\n```\nDo sends an API request and returns the API response.  The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred.  If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it.\n\n```go\nfunc (c *Client) ListEmojis() (map[string]string, *Response, error)\n```\nListEmojis returns the emojis available to use on GitHub.\n\nGitHub API docs: [https://developer.github.com/v3/emojis/](https://developer.github.com/v3/emojis/)\n\n```go\nfunc (c *Client) Markdown(text string, opt *MarkdownOptions) (string, *Response, error)\n```\nMarkdown renders an arbitrary Markdown document.\n\nGitHub API docs: [https://developer.github.com/v3/markdown/](https://developer.github.com/v3/markdown/)\n\n```go\nfunc (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)\n```\nNewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the BaseURL of the Client. Relative URLs should always be specified without a preceding slash.  If specified, the value pointed to by body is JSON encoded and included as the request body.\n\n```go\nfunc (c *Client) NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string) (*http.Request, error)\n```\nNewUploadRequest creates an upload request. A relative URL can be provided in urlStr, in which case it is resolved relative to the UploadURL of the Client. Relative URLs should always be specified without a preceding slash.\n\n```go\nfunc (c *Client) RateLimit() (*Rate, *Response, error)\n```\nRateLimit is deprecated.  Use RateLimits instead.\n\n```go\nfunc (c *Client) RateLimits() (*RateLimits, *Response, error)\n```\nRateLimits returns the rate limits for the current client.\n\n```go\ntype CodeResult struct {\n\tName       *string     `json:\"name,omitempty\"`\n\tPath       *string     `json:\"path,omitempty\"`\n\tSHA        *string     `json:\"sha,omitempty\"`\n\tHTMLURL    *string     `json:\"html_url,omitempty\"`\n\tRepository *Repository `json:\"repository,omitempty\"`\n}\n```\nCodeResult represents a single search result.\n\n```go\nfunc (c CodeResult) String() string\n```\n\n```go\ntype CodeSearchResult struct {\n\tTotal       *int         `json:\"total_count,omitempty\"`\n\tCodeResults []CodeResult `json:\"items,omitempty\"`\n}\n```\nCodeSearchResult represents the result of an code search.\n\n```go\ntype Commit struct {\n\tSHA       *string       `json:\"sha,omitempty\"`\n\tAuthor    *CommitAuthor `json:\"author,omitempty\"`\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n\tMessage   *string       `json:\"message,omitempty\"`\n\tTree      *Tree         `json:\"tree,omitempty\"`\n\tParents   []Commit      `json:\"parents,omitempty\"`\n\tStats     *CommitStats  `json:\"stats,omitempty\"`\n\tURL       *string       `json:url,omitempty\"`\n}\n```\nCommit represents a GitHub commit.\n\n```go\nfunc (c Commit) String() string\n```\n\n```go\ntype CommitAuthor struct {\n\tDate  *time.Time `json:\"date,omitempty\"`\n\tName  *string    `json:\"name,omitempty\"`\n\tEmail *string    `json:\"email,omitempty\"`\n}\n```\nCommitAuthor represents the author or committer of a commit.  The commit author may not correspond to a GitHub User.\n\n```go\nfunc (c CommitAuthor) String() string\n```\n\n```go\ntype CommitFile struct {\n\tSHA       *string `json:\"sha,omitempty\"`\n\tFilename  *string `json:\"filename,omitempty\"`\n\tAdditions *int    `json:\"additions,omitempty\"`\n\tDeletions *int    `json:\"deletions,omitempty\"`\n\tChanges   *int    `json:\"changes,omitempty\"`\n\tStatus    *string `json:\"status,omitempty\"`\n\tPatch     *string `json:\"patch,omitempty\"`\n}\n```\nCommitFile represents a file modified in a commit.\n\n```go\nfunc (c CommitFile) String() string\n```\n\n```go\ntype CommitStats struct {\n\tAdditions *int `json:\"additions,omitempty\"`\n\tDeletions *int `json:\"deletions,omitempty\"`\n\tTotal     *int `json:\"total,omitempty\"`\n}\n```\nCommitStats represents the number of additions / deletions from a file in a given RepositoryCommit.\n\n```go\nfunc (c CommitStats) String() string\n```\n\n```go\ntype CommitsComparison struct {\n\tBaseCommit *RepositoryCommit `json:\"base_commit,omitempty\"`\n\n\t// Head can be 'behind' or 'ahead'\n\tStatus       *string `json:\"status,omitempty\"`\n\tAheadBy      *int    `json:\"ahead_by,omitempty\"`\n\tBehindBy     *int    `json:\"behind_by,omitempty\"`\n\tTotalCommits *int    `json:\"total_commits,omitempty\"`\n\n\tCommits []RepositoryCommit `json:\"commits,omitempty\"`\n\n\tFiles []CommitFile `json:\"files,omitempty\"`\n}\n```\nCommitsComparison is the result of comparing two commits. See CompareCommits() for details.\n\n```go\nfunc (c CommitsComparison) String() string\n```\n\n```go\ntype CommitsListOptions struct {\n\t// SHA or branch to start listing Commits from.\n\tSHA string `url:\"sha,omitempty\"`\n\n\t// Path that should be touched by the returned Commits.\n\tPath string `url:\"path,omitempty\"`\n\n\t// Author of by which to filter Commits.\n\tAuthor string `url:\"author,omitempty\"`\n\n\t// Since when should Commits be included in the response.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\t// Until when should Commits be included in the response.\n\tUntil time.Time `url:\"until,omitempty\"`\n}\n```\nCommitsListOptions specifies the optional parameters to the RepositoriesService.ListCommits method.\n\n```go\ntype Contributor struct {\n\tLogin             *string `json:\"login,omitempty\"`\n\tID                *int    `json:\"id,omitempty\"`\n\tAvatarURL         *string `json:\"avatar_url,omitempty\"`\n\tGravatarID        *string `json:\"gravatar_id,omitempty\"`\n\tURL               *string `json:\"url,omitempty\"`\n\tHTMLURL           *string `json:\"html_url,omitempty\"`\n\tFollowersURL      *string `json:\"followers_url,omitempty\"`\n\tFollowingURL      *string `json:\"following_url,omitempty\"`\n\tGistsURL          *string `json:\"gists_url,omitempty\"`\n\tStarredURL        *string `json:\"starred_url,omitempty\"`\n\tSubscriptionsURL  *string `json:\"subscriptions_url,omitempty\"`\n\tOrganizationsURL  *string `json:\"organizations_url,omitempty\"`\n\tReposURL          *string `json:\"repos_url,omitempty\"`\n\tEventsURL         *string `json:\"events_url,omitempty\"`\n\tReceivedEventsURL *string `json:\"received_events_url,omitempty\"`\n\tType              *string `json:\"type,omitempty\"`\n\tSiteAdmin         *bool   `json:\"site_admin\"`\n\tContributions     *int    `json:\"contributions,omitempty\"`\n}\n```\nContributor represents a repository contributor\n\n```go\ntype ContributorStats struct {\n\tAuthor *Contributor  `json:\"author,omitempty\"`\n\tTotal  *int          `json:\"total,omitempty\"`\n\tWeeks  []WeeklyStats `json:\"weeks,omitempty\"`\n}\n```\nContributorStats represents a contributor to a repository and their weekly contributions to a given repo.\n\n```go\nfunc (c ContributorStats) String() string\n```\n\n```go\ntype Error struct {\n\tResource string `json:\"resource\"` // resource on which the error occurred\n\tField    string `json:\"field\"`    // field on which the error occurred\n\tCode     string `json:\"code\"`     // validation error code\n}\n```\nAn Error reports more details on an individual error in an ErrorResponse. These are the possible validation error codes:\n\n\tmissing:\n\t    resource does not exist\n\tmissing_field:\n\t    a required field on a resource has not been set\n\tinvalid:\n\t    the formatting of a field is invalid\n\talready_exists:\n\t    another resource has the same valid as this field\n\nGitHub API docs: [http://developer.github.com/v3/#client-errors](http://developer.github.com/v3/#client-errors)\n\n```go\nfunc (e *Error) Error() string\n```\n\n```go\ntype ErrorResponse struct {\n\tResponse *http.Response // HTTP response that caused this error\n\tMessage  string         `json:\"message\"` // error message\n\tErrors   []Error        `json:\"errors\"`  // more detail on individual errors\n}\n```\nAn ErrorResponse reports one or more errors caused by an API request.\n\nGitHub API docs: [http://developer.github.com/v3/#client-errors](http://developer.github.com/v3/#client-errors)\n\n```go\nfunc (r *ErrorResponse) Error() string\n```\n\n```go\ntype Event struct {\n\tType       *string          `json:\"type,omitempty\"`\n\tPublic     *bool            `json:\"public\"`\n\tRawPayload *json.RawMessage `json:\"payload,omitempty\"`\n\tRepo       *Repository      `json:\"repo,omitempty\"`\n\tActor      *User            `json:\"actor,omitempty\"`\n\tOrg        *Organization    `json:\"org,omitempty\"`\n\tCreatedAt  *time.Time       `json:\"created_at,omitempty\"`\n\tID         *string          `json:\"id,omitempty\"`\n}\n```\nEvent represents a GitHub event.\n\n```go\nfunc (e *Event) Payload() (payload interface{})\n```\nPayload returns the parsed event payload. For recognized event types (PushEvent), a value of the corresponding struct type will be returned.\n\n```go\nfunc (e Event) String() string\n```\n\n```go\ntype Gist struct {\n\tID          *string                   `json:\"id,omitempty\"`\n\tDescription *string                   `json:\"description,omitempty\"`\n\tPublic      *bool                     `json:\"public,omitempty\"`\n\tOwner       *User                     `json:\"owner,omitempty\"`\n\tFiles       map[GistFilename]GistFile `json:\"files,omitempty\"`\n\tComments    *int                      `json:\"comments,omitempty\"`\n\tHTMLURL     *string                   `json:\"html_url,omitempty\"`\n\tGitPullURL  *string                   `json:\"git_pull_url,omitempty\"`\n\tGitPushURL  *string                   `json:\"git_push_url,omitempty\"`\n\tCreatedAt   *time.Time                `json:\"created_at,omitempty\"`\n}\n```\nGist represents a GitHub's gist.\n\n```go\nfunc (g Gist) String() string\n```\n\n```go\ntype GistComment struct {\n\tID        *int       `json:\"id,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n}\n```\nGistComment represents a Gist comment.\n\n```go\nfunc (g GistComment) String() string\n```\n\n```go\ntype GistFile struct {\n\tSize     *int    `json:\"size,omitempty\"`\n\tFilename *string `json:\"filename,omitempty\"`\n\tRawURL   *string `json:\"raw_url,omitempty\"`\n\tContent  *string `json:\"content,omitempty\"`\n}\n```\nGistFile represents a file on a gist.\n\n```go\nfunc (g GistFile) String() string\n```\n\n```go\ntype GistFilename string\n```\nGistFilename represents filename on a gist.\n\n```go\ntype GistListOptions struct {\n\t// Since filters Gists by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nGistListOptions specifies the optional parameters to the GistsService.List, GistsService.ListAll, and GistsService.ListStarred methods.\n\n```go\ntype GistsService struct {\n\t// contains filtered or unexported fields\n}\n```\nGistsService handles communication with the Gist related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/gists/](http://developer.github.com/v3/gists/)\n\n```go\nfunc (s *GistsService) Create(gist *Gist) (*Gist, *Response, error)\n```\nCreate a gist for authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#create-a-gist](http://developer.github.com/v3/gists/#create-a-gist)\n\n```go\nfunc (s *GistsService) CreateComment(gistID string, comment *GistComment) (*GistComment, *Response, error)\n```\nCreateComment creates a comment for a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#create-a-comment](http://developer.github.com/v3/gists/comments/#create-a-comment)\n\n```go\nfunc (s *GistsService) Delete(id string) (*Response, error)\n```\nDelete a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#delete-a-gist](http://developer.github.com/v3/gists/#delete-a-gist)\n\n```go\nfunc (s *GistsService) DeleteComment(gistID string, commentID int) (*Response, error)\n```\nDeleteComment deletes a gist comment.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#delete-a-comment](http://developer.github.com/v3/gists/comments/#delete-a-comment)\n\n```go\nfunc (s *GistsService) Edit(id string, gist *Gist) (*Gist, *Response, error)\n```\nEdit a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#edit-a-gist](http://developer.github.com/v3/gists/#edit-a-gist)\n\n```go\nfunc (s *GistsService) EditComment(gistID string, commentID int, comment *GistComment) (*GistComment, *Response, error)\n```\nEditComment edits an existing gist comment.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#edit-a-comment](http://developer.github.com/v3/gists/comments/#edit-a-comment)\n\n```go\nfunc (s *GistsService) Fork(id string) (*Gist, *Response, error)\n```\nFork a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#fork-a-gist](http://developer.github.com/v3/gists/#fork-a-gist)\n\n```go\nfunc (s *GistsService) Get(id string) (*Gist, *Response, error)\n```\nGet a single gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#get-a-single-gist](http://developer.github.com/v3/gists/#get-a-single-gist)\n\n```go\nfunc (s *GistsService) GetComment(gistID string, commentID int) (*GistComment, *Response, error)\n```\nGetComment retrieves a single comment from a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#get-a-single-comment](http://developer.github.com/v3/gists/comments/#get-a-single-comment)\n\n```go\nfunc (s *GistsService) IsStarred(id string) (bool, *Response, error)\n```\nIsStarred checks if a gist is starred by authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#check-if-a-gist-is-starred](http://developer.github.com/v3/gists/#check-if-a-gist-is-starred)\n\n```go\nfunc (s *GistsService) List(user string, opt *GistListOptions) ([]Gist, *Response, error)\n```\nList gists for a user. Passing the empty string will list all public gists if called anonymously. However, if the call is authenticated, it will returns all gists for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#list-gists](http://developer.github.com/v3/gists/#list-gists)\n\n```go\nfunc (s *GistsService) ListAll(opt *GistListOptions) ([]Gist, *Response, error)\n```\nListAll lists all public gists.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#list-gists](http://developer.github.com/v3/gists/#list-gists)\n\n```go\nfunc (s *GistsService) ListComments(gistID string, opt *ListOptions) ([]GistComment, *Response, error)\n```\nListComments lists all comments for a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist](http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist)\n\n```go\nfunc (s *GistsService) ListStarred(opt *GistListOptions) ([]Gist, *Response, error)\n```\nListStarred lists starred gists of authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#list-gists](http://developer.github.com/v3/gists/#list-gists)\n\n```go\nfunc (s *GistsService) Star(id string) (*Response, error)\n```\nStar a gist on behalf of authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#star-a-gist](http://developer.github.com/v3/gists/#star-a-gist)\n\n```go\nfunc (s *GistsService) Unstar(id string) (*Response, error)\n```\nUnstar a gist on a behalf of authenticated user.\n\nGithub API docs: [http://developer.github.com/v3/gists/#unstar-a-gist](http://developer.github.com/v3/gists/#unstar-a-gist)\n\n```go\ntype GitObject struct {\n\tType *string `json:\"type\"`\n\tSHA  *string `json:\"sha\"`\n\tURL  *string `json:\"url\"`\n}\n```\nGitObject represents a Git object.\n\n```go\nfunc (o GitObject) String() string\n```\n\n```go\ntype GitService struct {\n\t// contains filtered or unexported fields\n}\n```\nGitService handles communication with the git data related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/git/](http://developer.github.com/v3/git/)\n\n```go\nfunc (s *GitService) CreateBlob(owner string, repo string, blob *Blob) (*Blob, *Response, error)\n```\nCreateBlob creates a blob object.\n\nGitHub API docs: [http://developer.github.com/v3/git/blobs/#create-a-blob](http://developer.github.com/v3/git/blobs/#create-a-blob)\n\n```go\nfunc (s *GitService) CreateCommit(owner string, repo string, commit *Commit) (*Commit, *Response, error)\n```\nCreateCommit creates a new commit in a repository.\n\nThe commit.Committer is optional and will be filled with the commit.Author data if omitted. If the commit.Author is omitted, it will be filled in with the authenticated user’s information and the current date.\n\nGitHub API docs: [http://developer.github.com/v3/git/commits/#create-a-commit](http://developer.github.com/v3/git/commits/#create-a-commit)\n\n```go\nfunc (s *GitService) CreateRef(owner string, repo string, ref *Reference) (*Reference, *Response, error)\n```\nCreateRef creates a new ref in a repository.\n\nGitHub API docs: [http://developer.github.com/v3/git/refs/#create-a-reference](http://developer.github.com/v3/git/refs/#create-a-reference)\n\n```go\nfunc (s *GitService) CreateTag(owner string, repo string, tag *Tag) (*Tag, *Response, error)\n```\nCreateTag creates a tag object.\n\nGitHub API docs: [http://developer.github.com/v3/git/tags/#create-a-tag-object](http://developer.github.com/v3/git/tags/#create-a-tag-object)\n\n```go\nfunc (s *GitService) CreateTree(owner string, repo string, baseTree string, entries []TreeEntry) (*Tree, *Response, error)\n```\nCreateTree creates a new tree in a repository.  If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.\n\nGitHub API docs: [http://developer.github.com/v3/git/trees/#create-a-tree](http://developer.github.com/v3/git/trees/#create-a-tree)\n\n```go\nfunc (s *GitService) DeleteRef(owner string, repo string, ref string) (*Response, error)\n```\nDeleteRef deletes a ref from a repository.\n\nGitHub API docs: [http://developer.github.com/v3/git/refs/#delete-a-reference](http://developer.github.com/v3/git/refs/#delete-a-reference)\n\n```go\nfunc (s *GitService) GetBlob(owner string, repo string, sha string) (*Blob, *Response, error)\n```\nGetBlob fetchs a blob from a repo given a SHA.\n\nGitHub API docs: [http://developer.github.com/v3/git/blobs/#get-a-blob](http://developer.github.com/v3/git/blobs/#get-a-blob)\n\n```go\nfunc (s *GitService) GetCommit(owner string, repo string, sha string) (*Commit, *Response, error)\n```\nGetCommit fetchs the Commit object for a given SHA.\n\nGitHub API docs: [http://developer.github.com/v3/git/commits/#get-a-commit](http://developer.github.com/v3/git/commits/#get-a-commit)\n\n```go\nfunc (s *GitService) GetRef(owner string, repo string, ref string) (*Reference, *Response, error)\n```\nGetRef fetches the Reference object for a given Git ref.\n\nGitHub API docs: [http://developer.github.com/v3/git/refs/#get-a-reference](http://developer.github.com/v3/git/refs/#get-a-reference)\n\n```go\nfunc (s *GitService) GetTag(owner string, repo string, sha string) (*Tag, *Response, error)\n```\nGetTag fetchs a tag from a repo given a SHA.\n\nGitHub API docs: [http://developer.github.com/v3/git/tags/#get-a-tag](http://developer.github.com/v3/git/tags/#get-a-tag)\n\n```go\nfunc (s *GitService) GetTree(owner string, repo string, sha string, recursive bool) (*Tree, *Response, error)\n```\nGetTree fetches the Tree object for a given sha hash from a repository.\n\nGitHub API docs: [http://developer.github.com/v3/git/trees/#get-a-tree](http://developer.github.com/v3/git/trees/#get-a-tree)\n\n```go\nfunc (s *GitService) ListRefs(owner, repo string, opt *ReferenceListOptions) ([]Reference, *Response, error)\n```\nListRefs lists all refs in a repository.\n\nGitHub API docs: [http://developer.github.com/v3/git/refs/#get-all-references](http://developer.github.com/v3/git/refs/#get-all-references)\n\n```go\nfunc (s *GitService) UpdateRef(owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error)\n```\nUpdateRef updates an existing ref in a repository.\n\nGitHub API docs: [http://developer.github.com/v3/git/refs/#update-a-reference](http://developer.github.com/v3/git/refs/#update-a-reference)\n\n```go\ntype Gitignore struct {\n\tName   *string `json:\"name,omitempty\"`\n\tSource *string `json:\"source,omitempty\"`\n}\n```\nGitignore represents a .gitignore file as returned by the GitHub API.\n\n```go\nfunc (g Gitignore) String() string\n```\n\n```go\ntype GitignoresService struct {\n\t// contains filtered or unexported fields\n}\n```\nGitignoresService provides access to the gitignore related functions in the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/gitignore/](http://developer.github.com/v3/gitignore/)\n\n```go\nfunc (s GitignoresService) Get(name string) (*Gitignore, *Response, error)\n```\nGet a Gitignore by name.\n\n[http://developer.github.com/v3/gitignore/#get-a-single-template](http://developer.github.com/v3/gitignore/#get-a-single-template)\n\n```go\nfunc (s GitignoresService) List() ([]string, *Response, error)\n```\nList all available Gitignore templates.\n\n[http://developer.github.com/v3/gitignore/#listing-available-templates](http://developer.github.com/v3/gitignore/#listing-available-templates)\n\n```go\ntype Hook struct {\n\tCreatedAt *time.Time             `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time             `json:\"updated_at,omitempty\"`\n\tName      *string                `json:\"name,omitempty\"`\n\tEvents    []string               `json:\"events,omitempty\"`\n\tActive    *bool                  `json:\"active,omitempty\"`\n\tConfig    map[string]interface{} `json:\"config,omitempty\"`\n\tID        *int                   `json:\"id,omitempty\"`\n}\n```\nHook represents a GitHub (web and service) hook for a repository.\n\n```go\nfunc (h Hook) String() string\n```\n\n```go\ntype Issue struct {\n\tNumber    *int       `json:\"number,omitempty\"`\n\tState     *string    `json:\"state,omitempty\"`\n\tTitle     *string    `json:\"title,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tLabels    []Label    `json:\"labels,omitempty\"`\n\tAssignee  *User      `json:\"assignee,omitempty\"`\n\tComments  *int       `json:\"comments,omitempty\"`\n\tClosedAt  *time.Time `json:\"closed_at,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tHTMLURL   *string    `json:\"html_url,omitempty\"`\n\tMilestone *Milestone `json:\"milestone,omitempty\"`\n}\n```\nIssue represents a GitHub issue on a repository.\n\n```go\nfunc (i Issue) String() string\n```\n\n```go\ntype IssueComment struct {\n\tID        *int       `json:\"id,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nIssueComment represents a comment left on an issue.\n\n```go\nfunc (i IssueComment) String() string\n```\n\n```go\ntype IssueEvent struct {\n\tID  *int    `json:\"id,omitempty\"`\n\tURL *string `json:\"url,omitempty\"`\n\n\t// The User that generated this event.\n\tActor *User `json:\"actor,omitempty\"`\n\n\t// Event identifies the actual type of Event that occurred.  Possible\n\t// values are:\n\t//\n\t//     closed\n\t//       The issue was closed by the actor. When the commit_id is\n\t//       present, it identifies the commit that closed the issue using\n\t//       “closes / fixes #NN” syntax.\n\t//\n\t//     reopened\n\t//       The issue was reopened by the actor.\n\t//\n\t//     subscribed\n\t//       The actor subscribed to receive notifications for an issue.\n\t//\n\t//     merged\n\t//       The issue was merged by the actor. The commit_id attribute is the SHA1 of the HEAD commit that was merged.\n\t//\n\t//     referenced\n\t//       The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where that happened.\n\t//\n\t//     mentioned\n\t//       The actor was @mentioned in an issue body.\n\t//\n\t//     assigned\n\t//       The issue was assigned to the actor.\n\t//\n\t//     head_ref_deleted\n\t//       The pull request’s branch was deleted.\n\t//\n\t//     head_ref_restored\n\t//       The pull request’s branch was restored.\n\tEvent *string `json:\"event,omitempty\"`\n\n\t// The SHA of the commit that referenced this commit, if applicable.\n\tCommitID *string `json:\"commit_id,omitempty\"`\n\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tIssue     *Issue     `json:\"issue,omitempty\"`\n}\n```\nIssueEvent represents an event that occurred around an Issue or Pull Request.\n\n```go\ntype IssueListByRepoOptions struct {\n\t// Milestone limits issues for the specified milestone.  Possible values are\n\t// a milestone number, \"none\" for issues with no milestone, \"*\" for issues\n\t// with any milestone.\n\tMilestone string `url:\"milestone,omitempty\"`\n\n\t// State filters issues based on their state.  Possible values are: open,\n\t// closed.  Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Assignee filters issues based on their assignee.  Possible values are a\n\t// user name, \"none\" for issues that are not assigned, \"*\" for issues with\n\t// any assigned user.\n\tAssignee string `url:\"assignee,omitempty\"`\n\n\t// Assignee filters issues based on their creator.\n\tCreator string `url:\"creator,omitempty\"`\n\n\t// Assignee filters issues to those mentioned a specific user.\n\tMentioned string `url:\"mentioned,omitempty\"`\n\n\t// Labels filters issues based on their label.\n\tLabels []string `url:\"labels,omitempty,comma\"`\n\n\t// Sort specifies how to sort issues.  Possible values are: created, updated,\n\t// and comments.  Default value is \"assigned\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues.  Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters issues by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListByRepoOptions specifies the optional parameters to the IssuesService.ListByRepo method.\n\n```go\ntype IssueListCommentsOptions struct {\n\t// Sort specifies how to sort comments.  Possible values are: created, updated.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort comments.  Possible values are: asc, desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters comments by time.\n\tSince time.Time `url:\"since,omitempty\"`\n}\n```\nIssueListCommentsOptions specifies the optional parameters to the IssuesService.ListComments method.\n\n```go\ntype IssueListOptions struct {\n\t// Filter specifies which issues to list.  Possible values are: assigned,\n\t// created, mentioned, subscribed, all.  Default is \"assigned\".\n\tFilter string `url:\"filter,omitempty\"`\n\n\t// State filters issues based on their state.  Possible values are: open,\n\t// closed.  Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Labels filters issues based on their label.\n\tLabels []string `url:\"labels,comma,omitempty\"`\n\n\t// Sort specifies how to sort issues.  Possible values are: created, updated,\n\t// and comments.  Default value is \"assigned\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues.  Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters issues by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListOptions specifies the optional parameters to the IssuesService.List and IssuesService.ListByOrg methods.\n\n```go\ntype IssueRequest struct {\n\tTitle     *string  `json:\"title,omitempty\"`\n\tBody      *string  `json:\"body,omitempty\"`\n\tLabels    []string `json:\"labels,omitempty\"`\n\tAssignee  *string  `json:\"assignee,omitempty\"`\n\tState     *string  `json:\"state,omitempty\"`\n\tMilestone *int     `json:\"milestone,omitempty\"`\n}\n```\nIssueRequest represents a request to create/edit an issue. It is separate from Issue above because otherwise Labels and Assignee fail to serialize to the correct JSON.\n\n```go\ntype IssuesSearchResult struct {\n\tTotal  *int    `json:\"total_count,omitempty\"`\n\tIssues []Issue `json:\"items,omitempty\"`\n}\n```\nIssuesSearchResult represents the result of an issues search.\n\n```go\ntype IssuesService struct {\n\t// contains filtered or unexported fields\n}\n```\nIssuesService handles communication with the issue related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/issues/](http://developer.github.com/v3/issues/)\n\n```go\nfunc (s *IssuesService) AddLabelsToIssue(owner string, repo string, number int, labels []string) ([]Label, *Response, error)\n```\nAddLabelsToIssue adds labels to an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository](http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository)\n\n```go\nfunc (s *IssuesService) Create(owner string, repo string, issue *IssueRequest) (*Issue, *Response, error)\n```\nCreate a new issue on the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#create-an-issue](http://developer.github.com/v3/issues/#create-an-issue)\n\n```go\nfunc (s *IssuesService) CreateComment(owner string, repo string, number int, comment *IssueComment) (*IssueComment, *Response, error)\n```\nCreateComment creates a new comment on the specified issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/comments/#create-a-comment](http://developer.github.com/v3/issues/comments/#create-a-comment)\n\n```go\nfunc (s *IssuesService) CreateLabel(owner string, repo string, label *Label) (*Label, *Response, error)\n```\nCreateLabel creates a new label on the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#create-a-label](http://developer.github.com/v3/issues/labels/#create-a-label)\n\n```go\nfunc (s *IssuesService) CreateMilestone(owner string, repo string, milestone *Milestone) (*Milestone, *Response, error)\n```\nCreateMilestone creates a new milestone on the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/issues/milestones/#create-a-milestone](https://developer.github.com/v3/issues/milestones/#create-a-milestone)\n\n```go\nfunc (s *IssuesService) DeleteComment(owner string, repo string, id int) (*Response, error)\n```\nDeleteComment deletes an issue comment.\n\nGitHub API docs: [http://developer.github.com/v3/issues/comments/#delete-a-comment](http://developer.github.com/v3/issues/comments/#delete-a-comment)\n\n```go\nfunc (s *IssuesService) DeleteLabel(owner string, repo string, name string) (*Response, error)\n```\nDeleteLabel deletes a label.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#delete-a-label](http://developer.github.com/v3/issues/labels/#delete-a-label)\n\n```go\nfunc (s *IssuesService) DeleteMilestone(owner string, repo string, number int) (*Response, error)\n```\nDeleteMilestone deletes a milestone.\n\nGitHub API docs: [https://developer.github.com/v3/issues/milestones/#delete-a-milestone](https://developer.github.com/v3/issues/milestones/#delete-a-milestone)\n\n```go\nfunc (s *IssuesService) Edit(owner string, repo string, number int, issue *IssueRequest) (*Issue, *Response, error)\n```\nEdit an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#edit-an-issue](http://developer.github.com/v3/issues/#edit-an-issue)\n\n```go\nfunc (s *IssuesService) EditComment(owner string, repo string, id int, comment *IssueComment) (*IssueComment, *Response, error)\n```\nEditComment updates an issue comment.\n\nGitHub API docs: [http://developer.github.com/v3/issues/comments/#edit-a-comment](http://developer.github.com/v3/issues/comments/#edit-a-comment)\n\n```go\nfunc (s *IssuesService) EditLabel(owner string, repo string, name string, label *Label) (*Label, *Response, error)\n```\nEditLabel edits a label.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#update-a-label](http://developer.github.com/v3/issues/labels/#update-a-label)\n\n```go\nfunc (s *IssuesService) EditMilestone(owner string, repo string, number int, milestone *Milestone) (*Milestone, *Response, error)\n```\nEditMilestone edits a milestone.\n\nGitHub API docs: [https://developer.github.com/v3/issues/milestones/#update-a-milestone](https://developer.github.com/v3/issues/milestones/#update-a-milestone)\n\n```go\nfunc (s *IssuesService) Get(owner string, repo string, number int) (*Issue, *Response, error)\n```\nGet a single issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#get-a-single-issue](http://developer.github.com/v3/issues/#get-a-single-issue)\n\n```go\nfunc (s *IssuesService) GetComment(owner string, repo string, id int) (*IssueComment, *Response, error)\n```\nGetComment fetches the specified issue comment.\n\nGitHub API docs: [http://developer.github.com/v3/issues/comments/#get-a-single-comment](http://developer.github.com/v3/issues/comments/#get-a-single-comment)\n\n```go\nfunc (s *IssuesService) GetEvent(owner, repo string, id int) (*IssueEvent, *Response, error)\n```\nGetEvent returns the specified issue event.\n\nGitHub API docs: [https://developer.github.com/v3/issues/events/#get-a-single-event](https://developer.github.com/v3/issues/events/#get-a-single-event)\n\n```go\nfunc (s *IssuesService) GetLabel(owner string, repo string, name string) (*Label, *Response, error)\n```\nGetLabel gets a single label.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#get-a-single-label](http://developer.github.com/v3/issues/labels/#get-a-single-label)\n\n```go\nfunc (s *IssuesService) GetMilestone(owner string, repo string, number int) (*Milestone, *Response, error)\n```\nGetMilestone gets a single milestone.\n\nGitHub API docs: [https://developer.github.com/v3/issues/milestones/#get-a-single-milestone](https://developer.github.com/v3/issues/milestones/#get-a-single-milestone)\n\n```go\nfunc (s *IssuesService) IsAssignee(owner string, repo string, user string) (bool, *Response, error)\n```\nIsAssignee checks if a user is an assignee for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/assignees/#check-assignee](http://developer.github.com/v3/issues/assignees/#check-assignee)\n\n```go\nfunc (s *IssuesService) List(all bool, opt *IssueListOptions) ([]Issue, *Response, error)\n```\nList the issues for the authenticated user.  If all is true, list issues across all the user's visible repositories including owned, member, and organization repositories; if false, list only owned and member repositories.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#list-issues](http://developer.github.com/v3/issues/#list-issues)\n\n```go\nfunc (s *IssuesService) ListAssignees(owner string, repo string, opt *ListOptions) ([]User, *Response, error)\n```\nListAssignees fetches all available assignees (owners and collaborators) to which issues may be assigned.\n\nGitHub API docs: [http://developer.github.com/v3/issues/assignees/#list-assignees](http://developer.github.com/v3/issues/assignees/#list-assignees)\n\n```go\nfunc (s *IssuesService) ListByOrg(org string, opt *IssueListOptions) ([]Issue, *Response, error)\n```\nListByOrg fetches the issues in the specified organization for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#list-issues](http://developer.github.com/v3/issues/#list-issues)\n\n```go\nfunc (s *IssuesService) ListByRepo(owner string, repo string, opt *IssueListByRepoOptions) ([]Issue, *Response, error)\n```\nListByRepo lists the issues for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#list-issues-for-a-repository](http://developer.github.com/v3/issues/#list-issues-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListComments(owner string, repo string, number int, opt *IssueListCommentsOptions) ([]IssueComment, *Response, error)\n```\nListComments lists all comments on the specified issue.  Specifying an issue number of 0 will return all comments on all issues for the repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue](http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue)\n\n```go\nfunc (s *IssuesService) ListIssueEvents(owner, repo string, number int, opt *ListOptions) ([]IssueEvent, *Response, error)\n```\nListIssueEvents lists events for the specified issue.\n\nGitHub API docs: [https://developer.github.com/v3/issues/events/#list-events-for-an-issue](https://developer.github.com/v3/issues/events/#list-events-for-an-issue)\n\n```go\nfunc (s *IssuesService) ListLabels(owner string, repo string, opt *ListOptions) ([]Label, *Response, error)\n```\nListLabels lists all labels for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository](http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository)\n\n```go\nfunc (s *IssuesService) ListLabelsByIssue(owner string, repo string, number int, opt *ListOptions) ([]Label, *Response, error)\n```\nListLabelsByIssue lists all labels for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository](http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository)\n\n```go\nfunc (s *IssuesService) ListLabelsForMilestone(owner string, repo string, number int, opt *ListOptions) ([]Label, *Response, error)\n```\nListLabelsForMilestone lists labels for every issue in a milestone.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone](http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone)\n\n```go\nfunc (s *IssuesService) ListMilestones(owner string, repo string, opt *MilestoneListOptions) ([]Milestone, *Response, error)\n```\nListMilestones lists all milestones for a repository.\n\nGitHub API docs: [https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository](https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListRepositoryEvents(owner, repo string, opt *ListOptions) ([]IssueEvent, *Response, error)\n```\nListRepositoryEvents lists events for the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/issues/events/#list-events-for-a-repository](https://developer.github.com/v3/issues/events/#list-events-for-a-repository)\n\n```go\nfunc (s *IssuesService) RemoveLabelForIssue(owner string, repo string, number int, label string) (*Response, error)\n```\nRemoveLabelForIssue removes a label for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue](http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveLabelsForIssue(owner string, repo string, number int) (*Response, error)\n```\nRemoveLabelsForIssue removes all labels for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue](http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue)\n\n```go\nfunc (s *IssuesService) ReplaceLabelsForIssue(owner string, repo string, number int, labels []string) ([]Label, *Response, error)\n```\nReplaceLabelsForIssue replaces all labels for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue](http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue)\n\n```go\ntype Key struct {\n\tID    *int    `json:\"id,omitempty\"`\n\tKey   *string `json:\"key,omitempty\"`\n\tURL   *string `json:\"url,omitempty\"`\n\tTitle *string `json:\"title,omitempty\"`\n}\n```\nKey represents a public SSH key used to authenticate a user or deploy script.\n\n```go\nfunc (k Key) String() string\n```\n\n```go\ntype Label struct {\n\tURL   *string `json:\"url,omitempty\"`\n\tName  *string `json:\"name,omitempty\"`\n\tColor *string `json:\"color,omitempty\"`\n}\n```\nLabel represents a GitHib label on an Issue\n\n```go\nfunc (l Label) String() string\n```\n\n```go\ntype ListContributorsOptions struct {\n\t// Include anonymous contributors in results or not\n\tAnon string `url:\"anon,omitempty\"`\n\n\tListOptions\n}\n```\nListContributorsOptions specifies the optional parameters to the RepositoriesService.ListContributors method.\n\n```go\ntype ListMembersOptions struct {\n\t// If true (or if the authenticated user is not an owner of the\n\t// organization), list only publicly visible members.\n\tPublicOnly bool `url:\"-\"`\n\n\t// Filter members returned in the list.  Possible values are:\n\t// 2fa_disabled, all.  Default is \"all\".\n\tFilter string `url:\"filter,omitempty\"`\n\n\tListOptions\n}\n```\nListMembersOptions specifies optional parameters to the OrganizationsService.ListMembers method.\n\n```go\ntype ListOptions struct {\n\t// For paginated result sets, page of results to retrieve.\n\tPage int `url:\"page,omitempty\"`\n\n\t// For paginated result sets, the number of results to include per page.\n\tPerPage int `url:\"per_page,omitempty\"`\n}\n```\nListOptions specifies the optional parameters to various List methods that support pagination.\n\n```go\ntype MarkdownOptions struct {\n\t// Mode identifies the rendering mode.  Possible values are:\n\t//   markdown - render a document as plain Markdown, just like\n\t//   README files are rendered.\n\t//\n\t//   gfm - to render a document as user-content, e.g. like user\n\t//   comments or issues are rendered. In GFM mode, hard line breaks are\n\t//   always taken into account, and issue and user mentions are linked\n\t//   accordingly.\n\t//\n\t// Default is \"markdown\".\n\tMode string\n\n\t// Context identifies the repository context.  Only taken into account\n\t// when rendering as \"gfm\".\n\tContext string\n}\n```\nMarkdownOptions specifies optional parameters to the Markdown method.\n\n```go\ntype Milestone struct {\n\tURL          *string    `json:\"url,omitempty\"`\n\tNumber       *int       `json:\"number,omitempty\"`\n\tState        *string    `json:\"state,omitempty\"`\n\tTitle        *string    `json:\"title,omitempty\"`\n\tDescription  *string    `json:\"description,omitempty\"`\n\tCreator      *User      `json:\"creator,omitempty\"`\n\tOpenIssues   *int       `json:\"open_issues,omitempty\"`\n\tClosedIssues *int       `json:\"closed_issues,omitempty\"`\n\tCreatedAt    *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt    *time.Time `json:\"updated_at,omitempty\"`\n\tDueOn        *time.Time `json:\"due_on,omitempty\"`\n}\n```\nMilestone represents a Github repository milestone.\n\n```go\nfunc (m Milestone) String() string\n```\n\n```go\ntype MilestoneListOptions struct {\n\t// State filters milestones based on their state. Possible values are:\n\t// open, closed. Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Sort specifies how to sort milestones. Possible values are: due_date, completeness.\n\t// Default value is \"due_date\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort milestones. Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n}\n```\nMilestoneListOptions specifies the optional parameters to the IssuesService.ListMilestones method.\n\n```go\ntype Notification struct {\n\tID         *string              `json:\"id,omitempty\"`\n\tRepository *Repository          `json:\"repository,omitempty\"`\n\tSubject    *NotificationSubject `json:\"subject,omitempty\"`\n\n\t// Reason identifies the event that triggered the notification.\n\t//\n\t// GitHub API Docs: https://developer.github.com/v3/activity/notifications/#notification-reasons\n\tReason *string `json:\"reason,omitempty\"`\n\n\tUnread     *bool      `json:\"unread,omitempty\"`\n\tUpdatedAt  *time.Time `json:\"updated_at,omitempty\"`\n\tLastReadAt *time.Time `json:\"last_read_at,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n}\n```\nNotification identifies a GitHub notification for a user.\n\n```go\ntype NotificationListOptions struct {\n\tAll           bool      `url:\"all,omitempty\"`\n\tParticipating bool      `url:\"participating,omitempty\"`\n\tSince         time.Time `url:\"since,omitempty\"`\n}\n```\nNotificationListOptions specifies the optional parameters to the ActivityService.ListNotifications method.\n\n```go\ntype NotificationSubject struct {\n\tTitle            *string `json:\"title,omitempty\"`\n\tURL              *string `json:\"url,omitempty\"`\n\tLatestCommentURL *string `json:\"latest_comment_url,omitempty\"`\n\tType             *string `json:\"type,omitempty\"`\n}\n```\nNotificationSubject identifies the subject of a notification.\n\n```go\ntype Organization struct {\n\tLogin             *string    `json:\"login,omitempty\"`\n\tID                *int       `json:\"id,omitempty\"`\n\tAvatarURL         *string    `json:\"avatar_url,omitempty\"`\n\tHTMLURL           *string    `json:\"html_url,omitempty\"`\n\tName              *string    `json:\"name,omitempty\"`\n\tCompany           *string    `json:\"company,omitempty\"`\n\tBlog              *string    `json:\"blog,omitempty\"`\n\tLocation          *string    `json:\"location,omitempty\"`\n\tEmail             *string    `json:\"email,omitempty\"`\n\tPublicRepos       *int       `json:\"public_repos,omitempty\"`\n\tPublicGists       *int       `json:\"public_gists,omitempty\"`\n\tFollowers         *int       `json:\"followers,omitempty\"`\n\tFollowing         *int       `json:\"following,omitempty\"`\n\tCreatedAt         *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt         *time.Time `json:\"updated_at,omitempty\"`\n\tTotalPrivateRepos *int       `json:\"total_private_repos,omitempty\"`\n\tOwnedPrivateRepos *int       `json:\"owned_private_repos,omitempty\"`\n\tPrivateGists      *int       `json:\"private_gists,omitempty\"`\n\tDiskUsage         *int       `json:\"disk_usage,omitempty\"`\n\tCollaborators     *int       `json:\"collaborators,omitempty\"`\n\tBillingEmail      *string    `json:\"billing_email,omitempty\"`\n\tType              *string    `json:\"type,omitempty\"`\n\tPlan              *Plan      `json:\"plan,omitempty\"`\n\n\t// API URLs\n\tURL              *string `json:\"url,omitempty\"`\n\tEventsURL        *string `json:\"events_url,omitempty\"`\n\tMembersURL       *string `json:\"members_url,omitempty\"`\n\tPublicMembersURL *string `json:\"public_members_url,omitempty\"`\n\tReposURL         *string `json:\"repos_url,omitempty\"`\n}\n```\nOrganization represents a GitHub organization account.\n\n```go\nfunc (o Organization) String() string\n```\n\n```go\ntype OrganizationsService struct {\n\t// contains filtered or unexported fields\n}\n```\nOrganizationsService provides access to the organization related functions in the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/](http://developer.github.com/v3/orgs/)\n\n```go\nfunc (s *OrganizationsService) AddTeamMember(team int, user string) (*Response, error)\n```\nAddTeamMember adds a user to a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#add-team-member](http://developer.github.com/v3/orgs/teams/#add-team-member)\n\n```go\nfunc (s *OrganizationsService) AddTeamRepo(team int, owner string, repo string) (*Response, error)\n```\nAddTeamRepo adds a repository to be managed by the specified team.  The specified repository must be owned by the organization to which the team belongs, or a direct fork of a repository owned by the organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#add-team-repo](http://developer.github.com/v3/orgs/teams/#add-team-repo)\n\n```go\nfunc (s *OrganizationsService) ConcealMembership(org, user string) (*Response, error)\n```\nConcealMembership conceals a user's membership in an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#conceal-a-users-membership](http://developer.github.com/v3/orgs/members/#conceal-a-users-membership)\n\n```go\nfunc (s *OrganizationsService) CreateTeam(org string, team *Team) (*Team, *Response, error)\n```\nCreateTeam creates a new team within an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#create-team](http://developer.github.com/v3/orgs/teams/#create-team)\n\n```go\nfunc (s *OrganizationsService) DeleteTeam(team int) (*Response, error)\n```\nDeleteTeam deletes a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#delete-team](http://developer.github.com/v3/orgs/teams/#delete-team)\n\n```go\nfunc (s *OrganizationsService) Edit(name string, org *Organization) (*Organization, *Response, error)\n```\nEdit an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/#edit-an-organization](http://developer.github.com/v3/orgs/#edit-an-organization)\n\n```go\nfunc (s *OrganizationsService) EditTeam(id int, team *Team) (*Team, *Response, error)\n```\nEditTeam edits a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#edit-team](http://developer.github.com/v3/orgs/teams/#edit-team)\n\n```go\nfunc (s *OrganizationsService) Get(org string) (*Organization, *Response, error)\n```\nGet fetches an organization by name.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/#get-an-organization](http://developer.github.com/v3/orgs/#get-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetTeam(team int) (*Team, *Response, error)\n```\nGetTeam fetches a team by ID.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#get-team](http://developer.github.com/v3/orgs/teams/#get-team)\n\n```go\nfunc (s *OrganizationsService) IsMember(org, user string) (bool, *Response, error)\n```\nIsMember checks if a user is a member of an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#check-membership](http://developer.github.com/v3/orgs/members/#check-membership)\n\n```go\nfunc (s *OrganizationsService) IsPublicMember(org, user string) (bool, *Response, error)\n```\nIsPublicMember checks if a user is a public member of an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#check-public-membership](http://developer.github.com/v3/orgs/members/#check-public-membership)\n\n```go\nfunc (s *OrganizationsService) IsTeamMember(team int, user string) (bool, *Response, error)\n```\nIsTeamMember checks if a user is a member of the specified team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#get-team-member](http://developer.github.com/v3/orgs/teams/#get-team-member)\n\n```go\nfunc (s *OrganizationsService) IsTeamRepo(team int, owner string, repo string) (bool, *Response, error)\n```\nIsTeamRepo checks if a team manages the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#get-team-repo](http://developer.github.com/v3/orgs/teams/#get-team-repo)\n\n```go\nfunc (s *OrganizationsService) List(user string, opt *ListOptions) ([]Organization, *Response, error)\n```\nList the organizations for a user.  Passing the empty string will list organizations for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/#list-user-organizations](http://developer.github.com/v3/orgs/#list-user-organizations)\n\n```go\nfunc (s *OrganizationsService) ListMembers(org string, opt *ListMembersOptions) ([]User, *Response, error)\n```\nListMembers lists the members for an organization.  If the authenticated user is an owner of the organization, this will return both concealed and public members, otherwise it will only return public members.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#members-list](http://developer.github.com/v3/orgs/members/#members-list)\n\n```go\nfunc (s *OrganizationsService) ListTeamMembers(team int, opt *ListOptions) ([]User, *Response, error)\n```\nListTeamMembers lists all of the users who are members of the specified team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#list-team-members](http://developer.github.com/v3/orgs/teams/#list-team-members)\n\n```go\nfunc (s *OrganizationsService) ListTeamRepos(team int, opt *ListOptions) ([]Repository, *Response, error)\n```\nListTeamRepos lists the repositories that the specified team has access to.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#list-team-repos](http://developer.github.com/v3/orgs/teams/#list-team-repos)\n\n```go\nfunc (s *OrganizationsService) ListTeams(org string, opt *ListOptions) ([]Team, *Response, error)\n```\nListTeams lists all of the teams for an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#list-teams](http://developer.github.com/v3/orgs/teams/#list-teams)\n\n```go\nfunc (s *OrganizationsService) PublicizeMembership(org, user string) (*Response, error)\n```\nPublicizeMembership publicizes a user's membership in an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#publicize-a-users-membership](http://developer.github.com/v3/orgs/members/#publicize-a-users-membership)\n\n```go\nfunc (s *OrganizationsService) RemoveMember(org, user string) (*Response, error)\n```\nRemoveMember removes a user from all teams of an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#remove-a-member](http://developer.github.com/v3/orgs/members/#remove-a-member)\n\n```go\nfunc (s *OrganizationsService) RemoveTeamMember(team int, user string) (*Response, error)\n```\nRemoveTeamMember removes a user from a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#remove-team-member](http://developer.github.com/v3/orgs/teams/#remove-team-member)\n\n```go\nfunc (s *OrganizationsService) RemoveTeamRepo(team int, owner string, repo string) (*Response, error)\n```\nRemoveTeamRepo removes a repository from being managed by the specified team.  Note that this does not delete the repository, it just removes it from the team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#remove-team-repo](http://developer.github.com/v3/orgs/teams/#remove-team-repo)\n\n```go\ntype Pages struct {\n\tURL       *string `json:\"url,omitempty\"`\n\tStatus    *string `json:\"status,omitempty\"`\n\tCNAME     *string `json:\"cname,omitempty\"`\n\tCustom404 *bool   `json:\"custom_404,omitempty\"`\n}\n```\nPages represents a GitHub Pages site configuration.\n\n```go\ntype PagesBuild struct {\n\tURL       *string     `json:\"url,omitempty\"`\n\tStatus    *string     `json:\"status,omitempty\"`\n\tError     *PagesError `json:\"error,omitempty\"`\n\tPusher    *User       `json:\"pusher,omitempty\"`\n\tCommit    *string     `json:\"commit,omitempty\"`\n\tDuration  *int        `json:\"duration,omitempty\"`\n\tCreatedAt *Timestamp  `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp  `json:\"created_at,omitempty\"`\n}\n```\nPagesBuild represents the build information for a GitHub Pages site.\n\n```go\ntype PagesError struct {\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nPagesError represents a build error for a GitHub Pages site.\n\n```go\ntype Plan struct {\n\tName          *string `json:\"name,omitempty\"`\n\tSpace         *int    `json:\"space,omitempty\"`\n\tCollaborators *int    `json:\"collaborators,omitempty\"`\n\tPrivateRepos  *int    `json:\"private_repos,omitempty\"`\n}\n```\nPlan represents the payment plan for an account.  See plans at [https://github.com/plans](https://github.com/plans).\n\n```go\nfunc (p Plan) String() string\n```\n\n```go\ntype PullRequest struct {\n\tNumber       *int       `json:\"number,omitempty\"`\n\tState        *string    `json:\"state,omitempty\"`\n\tTitle        *string    `json:\"title,omitempty\"`\n\tBody         *string    `json:\"body,omitempty\"`\n\tCreatedAt    *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt    *time.Time `json:\"updated_at,omitempty\"`\n\tClosedAt     *time.Time `json:\"closed_at,omitempty\"`\n\tMergedAt     *time.Time `json:\"merged_at,omitempty\"`\n\tUser         *User      `json:\"user,omitempty\"`\n\tMerged       *bool      `json:\"merged,omitempty\"`\n\tMergeable    *bool      `json:\"mergeable,omitempty\"`\n\tMergedBy     *User      `json:\"merged_by,omitempty\"`\n\tComments     *int       `json:\"comments,omitempty\"`\n\tCommits      *int       `json:\"commits,omitempty\"`\n\tAdditions    *int       `json:\"additions,omitempty\"`\n\tDeletions    *int       `json:\"deletions,omitempty\"`\n\tChangedFiles *int       `json:\"changed_files,omitempty\"`\n\tHTMLURL      *string    `json:\"html_url,omitempty\"`\n\tStatusesURL  *string    `json:\"statuses_url,omitempty\"`\n}\n```\nPullRequest represents a GitHub pull request on a repository.\n\n```go\nfunc (p PullRequest) String() string\n```\n\n```go\ntype PullRequestComment struct {\n\tID        *int       `json:\"id,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tPath      *string    `json:\"path,omitempty\"`\n\tPosition  *int       `json:\"position,omitempty\"`\n\tCommitID  *string    `json:\"commit_id,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nPullRequestComment represents a comment left on a pull request.\n\n```go\nfunc (p PullRequestComment) String() string\n```\n\n```go\ntype PullRequestListCommentsOptions struct {\n\t// Sort specifies how to sort comments.  Possible values are: created, updated.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort comments.  Possible values are: asc, desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters comments by time.\n\tSince time.Time `url:\"since,omitempty\"`\n}\n```\nPullRequestListCommentsOptions specifies the optional parameters to the PullRequestsService.ListComments method.\n\n```go\ntype PullRequestListOptions struct {\n\t// State filters pull requests based on their state.  Possible values are:\n\t// open, closed.  Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Head filters pull requests by head user and branch name in the format of:\n\t// \"user:ref-name\".\n\tHead string `url:\"head,omitempty\"`\n\n\t// Base filters pull requests by base branch name.\n\tBase string `url:\"base,omitempty\"`\n\n\tListOptions\n}\n```\nPullRequestListOptions specifies the optional parameters to the PullRequestsService.List method.\n\n```go\ntype PullRequestMergeResult struct {\n\tSHA     *string `json:\"sha,omitempty\"`\n\tMerged  *bool   `json:\"merged,omitempty\"`\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nPullRequestMergeResult represents the result of merging a pull request.\n\n```go\ntype PullRequestsService struct {\n\t// contains filtered or unexported fields\n}\n```\nPullRequestsService handles communication with the pull request related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/pulls/](http://developer.github.com/v3/pulls/)\n\n```go\nfunc (s *PullRequestsService) Create(owner string, repo string, pull *PullRequest) (*PullRequest, *Response, error)\n```\nCreate a new pull request on the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#create-a-pull-request](https://developer.github.com/v3/pulls/#create-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateComment(owner string, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error)\n```\nCreateComment creates a new comment on the specified pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#get-a-single-comment](https://developer.github.com/v3/pulls/comments/#get-a-single-comment)\n\n```go\nfunc (s *PullRequestsService) DeleteComment(owner string, repo string, number int) (*Response, error)\n```\nDeleteComment deletes a pull request comment.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#delete-a-comment](https://developer.github.com/v3/pulls/comments/#delete-a-comment)\n\n```go\nfunc (s *PullRequestsService) Edit(owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error)\n```\nEdit a pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#update-a-pull-request](https://developer.github.com/v3/pulls/#update-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) EditComment(owner string, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error)\n```\nEditComment updates a pull request comment.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#edit-a-comment](https://developer.github.com/v3/pulls/comments/#edit-a-comment)\n\n```go\nfunc (s *PullRequestsService) Get(owner string, repo string, number int) (*PullRequest, *Response, error)\n```\nGet a single pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#get-a-single-pull-request](https://developer.github.com/v3/pulls/#get-a-single-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetComment(owner string, repo string, number int) (*PullRequestComment, *Response, error)\n```\nGetComment fetches the specified pull request comment.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#get-a-single-comment](https://developer.github.com/v3/pulls/comments/#get-a-single-comment)\n\n```go\nfunc (s *PullRequestsService) IsMerged(owner string, repo string, number int) (bool, *Response, error)\n```\nIsMerged checks if a pull request has been merged.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged](https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged)\n\n```go\nfunc (s *PullRequestsService) List(owner string, repo string, opt *PullRequestListOptions) ([]PullRequest, *Response, error)\n```\nList the pull requests for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/pulls/#list-pull-requests](http://developer.github.com/v3/pulls/#list-pull-requests)\n\n```go\nfunc (s *PullRequestsService) ListComments(owner string, repo string, number int, opt *PullRequestListCommentsOptions) ([]PullRequestComment, *Response, error)\n```\nListComments lists all comments on the specified pull request.  Specifying a pull request number of 0 will return all comments on all pull requests for the repository.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request](https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListCommits(owner string, repo string, number int, opt *ListOptions) (*[]Commit, *Response, error)\n```\nListCommits lists the commits in a pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request](https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListFiles(owner string, repo string, number int, opt *ListOptions) (*[]CommitFile, *Response, error)\n```\nListFiles lists the files in a pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#list-pull-requests-files](https://developer.github.com/v3/pulls/#list-pull-requests-files)\n\n```go\nfunc (s *PullRequestsService) Merge(owner string, repo string, number int, commitMessage string) (*PullRequestMergeResult, *Response, error)\n```\nMerge a pull request (Merge Button™).\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade](https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade)\n\n```go\ntype PunchCard struct {\n\tDay     *int // Day of the week (0-6: =Sunday - Saturday).\n\tHour    *int // Hour of day (0-23).\n\tCommits *int // Number of commits.\n}\n```\nPunchCard respresents the number of commits made during a given hour of a day of thew eek.\n\n```go\ntype PushEvent struct {\n\tPushID  *int              `json:\"push_id,omitempty\"`\n\tHead    *string           `json:\"head,omitempty\"`\n\tRef     *string           `json:\"ref,omitempty\"`\n\tSize    *int              `json:\"ref,omitempty\"`\n\tCommits []PushEventCommit `json:\"commits,omitempty\"`\n}\n```\nPushEvent represents a git push to a GitHub repository.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/types/#pushevent](http://developer.github.com/v3/activity/events/types/#pushevent)\n\n```go\nfunc (p PushEvent) String() string\n```\n\n```go\ntype PushEventCommit struct {\n\tSHA      *string       `json:\"sha,omitempty\"`\n\tMessage  *string       `json:\"message,omitempty\"`\n\tAuthor   *CommitAuthor `json:\"author,omitempty\"`\n\tURL      *string       `json:\"url,omitempty\"`\n\tDistinct *bool         `json:\"distinct\"`\n}\n```\nPushEventCommit represents a git commit in a GitHub PushEvent.\n\n```go\nfunc (p PushEventCommit) String() string\n```\n\n```go\ntype Rate struct {\n\t// The number of requests per hour the client is currently limited to.\n\tLimit int `json:\"limit\"`\n\n\t// The number of remaining requests the client can make this hour.\n\tRemaining int `json:\"remaining\"`\n\n\t// The time at which the current rate limit will reset.\n\tReset Timestamp `json:\"reset\"`\n}\n```\nRate represents the rate limit for the current client.\n\n```go\nfunc (r Rate) String() string\n```\n\n```go\ntype RateLimits struct {\n\t// The rate limit for non-search API requests.  Unauthenticated\n\t// requests are limited to 60 per hour.  Authenticated requests are\n\t// limited to 5,000 per hour.\n\tCore *Rate `json:\"core\"`\n\n\t// The rate limit for search API requests.  Unauthenticated requests\n\t// are limited to 5 requests per minutes.  Authenticated requests are\n\t// limited to 20 per minute.\n\t//\n\t// GitHub API docs: https://developer.github.com/v3/search/#rate-limit\n\tSearch *Rate `json:\"search\"`\n}\n```\nRateLimits represents the rate limits for the current client.\n\n```go\nfunc (r RateLimits) String() string\n```\n\n```go\ntype Reference struct {\n\tRef    *string    `json:\"ref\"`\n\tURL    *string    `json:\"url\"`\n\tObject *GitObject `json:\"object\"`\n}\n```\nReference represents a GitHub reference.\n\n```go\nfunc (r Reference) String() string\n```\n\n```go\ntype ReferenceListOptions struct {\n\tType string `url:\"-\"`\n\n\tListOptions\n}\n```\nReferenceListOptions specifies optional parameters to the GitService.ListRefs method.\n\n```go\ntype ReleaseAsset struct {\n\tID            *int       `json:\"id,omitempty\"`\n\tURL           *string    `json:\"url,omitempty\"`\n\tName          *string    `json:\"name,omitempty\"`\n\tLabel         *string    `json:\"label,omitempty\"`\n\tState         *string    `json:\"state,omitempty\"`\n\tContentType   *string    `json:\"content_type,omitempty\"`\n\tSize          *int       `json:\"size,omitempty\"`\n\tDownloadCount *int       `json:\"download_count,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nReleaseAsset represents a Github release asset in a repository.\n\n```go\nfunc (r ReleaseAsset) String() string\n```\n\n```go\ntype RepoStatus struct {\n\tID *int `json:\"id,omitempty\"`\n\n\t// State is the current state of the repository.  Possible values are:\n\t// pending, success, error, or failure.\n\tState *string `json:\"state,omitempty\"`\n\n\t// TargetURL is the URL of the page representing this status.  It will be\n\t// linked from the GitHub UI to allow users to see the source of the status.\n\tTargetURL *string `json:\"target_url,omitempty\"`\n\n\t// Description is a short high level summary of the status.\n\tDescription *string `json:\"description,omitempty\"`\n\n\t// A string label to differentiate this status from the statuses of other systems.\n\tContext *string `json:\"context,omitempty\"`\n\n\tCreator   *User      `json:\"creator,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nRepoStatus represents the status of a repository at a particular reference.\n\n```go\nfunc (r RepoStatus) String() string\n```\n\n```go\ntype RepositoriesSearchResult struct {\n\tTotal        *int         `json:\"total_count,omitempty\"`\n\tRepositories []Repository `json:\"items,omitempty\"`\n}\n```\nRepositoriesSearchResult represents the result of a repositories search.\n\n```go\ntype RepositoriesService struct {\n\t// contains filtered or unexported fields\n}\n```\nRepositoriesService handles communication with the repository related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/repos/](http://developer.github.com/v3/repos/)\n\n```go\nfunc (s *RepositoriesService) AddCollaborator(owner, repo, user string) (*Response, error)\n```\nAddCollaborator adds the specified Github user as collaborator to the given repo.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#add-collaborator](http://developer.github.com/v3/repos/collaborators/#add-collaborator)\n\n```go\nfunc (s *RepositoriesService) CompareCommits(owner, repo string, base, head string) (*CommitsComparison, *Response, error)\n```\nCompareCommits compares a range of commits with each other. todo: support media formats - [https://github.com/google/go-github/issues/6](https://github.com/google/go-github/issues/6)\n\nGitHub API docs: [http://developer.github.com/v3/repos/commits/index.html#compare-two-commits](http://developer.github.com/v3/repos/commits/index.html#compare-two-commits)\n\n```go\nfunc (s *RepositoriesService) Create(org string, repo *Repository) (*Repository, *Response, error)\n```\nCreate a new repository.  If an organization is specified, the new repository will be created under that org.  If the empty string is specified, it will be created for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#create](http://developer.github.com/v3/repos/#create)\n\n```go\nfunc (s *RepositoriesService) CreateComment(owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error)\n```\nCreateComment creates a comment for the given commit. Note: GitHub allows for comments to be created for non-existing files and positions.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#create-a-commit-comment](http://developer.github.com/v3/repos/comments/#create-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) CreateFile(owner, repo, path string, opt *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)\n```\nCreateFile creates a new file in a repository at the given path and returns the commit and file metadata.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#create-a-file](http://developer.github.com/v3/repos/contents/#create-a-file)\n\n```go\nfunc (s *RepositoriesService) CreateFork(owner, repo string, opt *RepositoryCreateForkOptions) (*Repository, *Response, error)\n```\nCreateFork creates a fork of the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/forks/#list-forks](http://developer.github.com/v3/repos/forks/#list-forks)\n\n```go\nfunc (s *RepositoriesService) CreateHook(owner, repo string, hook *Hook) (*Hook, *Response, error)\n```\nCreateHook creates a Hook for the specified repository. Name and Config are required fields.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#create-a-hook](http://developer.github.com/v3/repos/hooks/#create-a-hook)\n\n```go\nfunc (s *RepositoriesService) CreateKey(owner string, repo string, key *Key) (*Key, *Response, error)\n```\nCreateKey adds a deploy key for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#create](http://developer.github.com/v3/repos/keys/#create)\n\n```go\nfunc (s *RepositoriesService) CreateRelease(owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error)\n```\nCreateRelease adds a new release for a repository.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#create-a-release](http://developer.github.com/v3/repos/releases/#create-a-release)\n\n```go\nfunc (s *RepositoriesService) CreateStatus(owner, repo, ref string, status *RepoStatus) (*RepoStatus, *Response, error)\n```\nCreateStatus creates a new status for a repository at the specified reference.  Ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [http://developer.github.com/v3/repos/statuses/#create-a-status](http://developer.github.com/v3/repos/statuses/#create-a-status)\n\n```go\nfunc (s *RepositoriesService) Delete(owner, repo string) (*Response, error)\n```\nDelete a repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/#delete-a-repository](https://developer.github.com/v3/repos/#delete-a-repository)\n\n```go\nfunc (s *RepositoriesService) DeleteComment(owner, repo string, id int) (*Response, error)\n```\nDeleteComment deletes a single comment from a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#delete-a-commit-comment](http://developer.github.com/v3/repos/comments/#delete-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) DeleteFile(owner, repo, path string, opt *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)\n```\nDeleteFile deletes a file from a repository and returns the commit. Requires the blob SHA of the file to be deleted.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#delete-a-file](http://developer.github.com/v3/repos/contents/#delete-a-file)\n\n```go\nfunc (s *RepositoriesService) DeleteHook(owner, repo string, id int) (*Response, error)\n```\nDeleteHook deletes a specified Hook.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#delete-a-hook](http://developer.github.com/v3/repos/hooks/#delete-a-hook)\n\n```go\nfunc (s *RepositoriesService) DeleteKey(owner string, repo string, id int) (*Response, error)\n```\nDeleteKey deletes a deploy key.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#delete](http://developer.github.com/v3/repos/keys/#delete)\n\n```go\nfunc (s *RepositoriesService) DeleteRelease(owner, repo string, id int) (*Response, error)\n```\nDeleteRelease delete a single release from a repository.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#delete-a-release](http://developer.github.com/v3/repos/releases/#delete-a-release)\n\n```go\nfunc (s *RepositoriesService) DeleteReleaseAsset(owner, repo string, id int) (*Response, error)\n```\nDeleteReleaseAsset delete a single release asset from a repository.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#delete-a-release-asset](http://developer.github.com/v3/repos/releases/#delete-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) Edit(owner, repo string, repository *Repository) (*Repository, *Response, error)\n```\nEdit updates a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#edit](http://developer.github.com/v3/repos/#edit)\n\n```go\nfunc (s *RepositoriesService) EditHook(owner, repo string, id int, hook *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#edit-a-hook](http://developer.github.com/v3/repos/hooks/#edit-a-hook)\n\n```go\nfunc (s *RepositoriesService) EditKey(owner string, repo string, id int, key *Key) (*Key, *Response, error)\n```\nEditKey edits a deploy key.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#edit](http://developer.github.com/v3/repos/keys/#edit)\n\n```go\nfunc (s *RepositoriesService) EditRelease(owner, repo string, id int, release *RepositoryRelease) (*RepositoryRelease, *Response, error)\n```\nEditRelease edits a repository release.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#edit-a-release](http://developer.github.com/v3/repos/releases/#edit-a-release)\n\n```go\nfunc (s *RepositoriesService) EditReleaseAsset(owner, repo string, id int, release *ReleaseAsset) (*ReleaseAsset, *Response, error)\n```\nEditReleaseAsset edits a repository release asset.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#edit-a-release-asset](http://developer.github.com/v3/repos/releases/#edit-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) Get(owner, repo string) (*Repository, *Response, error)\n```\nGet fetches a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#get](http://developer.github.com/v3/repos/#get)\n\n```go\nfunc (s *RepositoriesService) GetArchiveLink(owner, repo string, archiveformat archiveFormat, opt *RepositoryContentGetOptions) (*url.URL, *Response, error)\n```\nGetArchiveLink returns an URL to download a tarball or zipball archive for a repository. The archiveFormat can be specified by either the github.Tarball or github.Zipball constant.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#get-archive-link](http://developer.github.com/v3/repos/contents/#get-archive-link)\n\n```go\nfunc (s *RepositoriesService) GetBranch(owner, repo, branch string) (*Branch, *Response, error)\n```\nGetBranch gets the specified branch for a repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/#get-branch](https://developer.github.com/v3/repos/#get-branch)\n\n```go\nfunc (s *RepositoriesService) GetComment(owner, repo string, id int) (*RepositoryComment, *Response, error)\n```\nGetComment gets a single comment from a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment](http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment)\n\n```go\nfunc (s *RepositoriesService) GetCommit(owner, repo, sha string) (*RepositoryCommit, *Response, error)\n```\nGetCommit fetches the specified commit, including all details about it. todo: support media formats - [https://github.com/google/go-github/issues/6](https://github.com/google/go-github/issues/6)\n\nGitHub API docs: [http://developer.github.com/v3/repos/commits/#get-a-single-commit](http://developer.github.com/v3/repos/commits/#get-a-single-commit) See also: [http://developer.github.com//v3/git/commits/#get-a-single-commit](http://developer.github.com//v3/git/commits/#get-a-single-commit) provides the same functionality\n\n```go\nfunc (s *RepositoriesService) GetContents(owner, repo, path string, opt *RepositoryContentGetOptions) (fileContent *RepositoryContent,\n\tdirectoryContent []*RepositoryContent, resp *Response, err error)\n```\nGetContents can return either the metadata and content of a single file (when path references a file) or the metadata of all the files and/or subdirectories of a directory (when path references a directory). To make it easy to distinguish between both result types and to mimic the API as much as possible, both result types will be returned but only one will contain a value and the other will be nil.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#get-contents](http://developer.github.com/v3/repos/contents/#get-contents)\n\n```go\nfunc (s *RepositoriesService) GetHook(owner, repo string, id int) (*Hook, *Response, error)\n```\nGetHook returns a single specified Hook.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#get-single-hook](http://developer.github.com/v3/repos/hooks/#get-single-hook)\n\n```go\nfunc (s *RepositoriesService) GetKey(owner string, repo string, id int) (*Key, *Response, error)\n```\nGetKey fetches a single deploy key.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#get](http://developer.github.com/v3/repos/keys/#get)\n\n```go\nfunc (s *RepositoriesService) GetLatestPagesBuild(owner string, repo string) (*PagesBuild, *Response, error)\n```\nGetLatestPagesBuild fetches the latest build information for a GitHub pages site.\n\nGitHub API docs: [https://developer.github.com/v3/repos/pages/#list-latest-pages-build](https://developer.github.com/v3/repos/pages/#list-latest-pages-build)\n\n```go\nfunc (s *RepositoriesService) GetPagesInfo(owner string, repo string) (*Pages, *Response, error)\n```\nGetPagesInfo fetches information about a GitHub Pages site.\n\nGitHub API docs: [https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site](https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site)\n\n```go\nfunc (s *RepositoriesService) GetReadme(owner, repo string, opt *RepositoryContentGetOptions) (*RepositoryContent, *Response, error)\n```\nGetReadme gets the Readme file for the repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#get-the-readme](http://developer.github.com/v3/repos/contents/#get-the-readme)\n\n```go\nfunc (s *RepositoriesService) GetRelease(owner, repo string, id int) (*RepositoryRelease, *Response, error)\n```\nGetRelease fetches a single release.\n\nGitHub API docs: [http://developer.github.com/v3/repos/releases/#get-a-single-release](http://developer.github.com/v3/repos/releases/#get-a-single-release)\n\n```go\nfunc (s *RepositoriesService) GetReleaseAsset(owner, repo string, id int) (*ReleaseAsset, *Response, error)\n```\nGetReleaseAsset fetches a single release asset.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#get-a-single-release-asset](http://developer.github.com/v3/repos/releases/#get-a-single-release-asset)\n\n```go\nfunc (s *RepositoriesService) IsCollaborator(owner, repo, user string) (bool, *Response, error)\n```\nIsCollaborator checks whether the specified Github user has collaborator access to the given repo. Note: This will return false if the user is not a collaborator OR the user is not a GitHub user.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#get](http://developer.github.com/v3/repos/collaborators/#get)\n\n```go\nfunc (s *RepositoriesService) List(user string, opt *RepositoryListOptions) ([]Repository, *Response, error)\n```\nList the repositories for a user.  Passing the empty string will list repositories for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-user-repositories](http://developer.github.com/v3/repos/#list-user-repositories)\n\n```go\nfunc (s *RepositoriesService) ListAll(opt *RepositoryListAllOptions) ([]Repository, *Response, error)\n```\nListAll lists all GitHub repositories in the order that they were created.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-all-public-repositories](http://developer.github.com/v3/repos/#list-all-public-repositories)\n\n```go\nfunc (s *RepositoriesService) ListBranches(owner string, repo string, opt *ListOptions) ([]Branch, *Response, error)\n```\nListBranches lists branches for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-branches](http://developer.github.com/v3/repos/#list-branches)\n\n```go\nfunc (s *RepositoriesService) ListByOrg(org string, opt *RepositoryListByOrgOptions) ([]Repository, *Response, error)\n```\nListByOrg lists the repositories for an organization.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-organization-repositories](http://developer.github.com/v3/repos/#list-organization-repositories)\n\n```go\nfunc (s *RepositoriesService) ListCodeFrequency(owner, repo string) ([]WeeklyStats, *Response, error)\n```\nListCodeFrequency returns a weekly aggregate of the number of additions and deletions pushed to a repository.  Returned WeeklyStats will contain additiona and deletions, but not total commits.\n\nGitHub API Docs: [https://developer.github.com/v3/repos/statistics/#code-frequency](https://developer.github.com/v3/repos/statistics/#code-frequency)\n\n```go\nfunc (s *RepositoriesService) ListCollaborators(owner, repo string, opt *ListOptions) ([]User, *Response, error)\n```\nListCollaborators lists the Github users that have access to the repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#list](http://developer.github.com/v3/repos/collaborators/#list)\n\n```go\nfunc (s *RepositoriesService) ListComments(owner, repo string, opt *ListOptions) ([]RepositoryComment, *Response, error)\n```\nListComments lists all the comments for the repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository](http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListCommitActivity(owner, repo string) ([]WeeklyCommitActivity, *Response, error)\n```\nListCommitActivity returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday.\n\nIf this is the first time these statistics are requested for the given repository, this method will return a non-nil error and a status code of 202. This is because this is the status that github returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API Docs: [https://developer.github.com/v3/repos/statistics/#commit-activity](https://developer.github.com/v3/repos/statistics/#commit-activity)\n\n```go\nfunc (s *RepositoriesService) ListCommitComments(owner, repo, sha string, opt *ListOptions) ([]RepositoryComment, *Response, error)\n```\nListCommitComments lists all the comments for a given commit SHA.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit](http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit)\n\n```go\nfunc (s *RepositoriesService) ListCommits(owner, repo string, opt *CommitsListOptions) ([]RepositoryCommit, *Response, error)\n```\nListCommits lists the commits of a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/commits/#list](http://developer.github.com/v3/repos/commits/#list)\n\n```go\nfunc (s *RepositoriesService) ListContributors(owner string, repository string, opt *ListContributorsOptions) ([]Contributor, *Response, error)\n```\nListContributors lists contributors for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-contributors](http://developer.github.com/v3/repos/#list-contributors)\n\n```go\nfunc (s *RepositoriesService) ListContributorsStats(owner, repo string) ([]ContributorStats, *Response, error)\n```\nListContributorsStats gets a repo's contributor list with additions, deletions and commit counts.\n\nIf this is the first time these statistics are requested for the given repository, this method will return a non-nil error and a status code of 202. This is because this is the status that github returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API Docs: [https://developer.github.com/v3/repos/statistics/#contributors](https://developer.github.com/v3/repos/statistics/#contributors)\n\n```go\nfunc (s *RepositoriesService) ListForks(owner, repo string, opt *RepositoryListForksOptions) ([]Repository, *Response, error)\n```\nListForks lists the forks of the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/forks/#list-forks](http://developer.github.com/v3/repos/forks/#list-forks)\n\n```go\nfunc (s *RepositoriesService) ListHooks(owner, repo string, opt *ListOptions) ([]Hook, *Response, error)\n```\nListHooks lists all Hooks for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#list](http://developer.github.com/v3/repos/hooks/#list)\n\n```go\nfunc (s *RepositoriesService) ListKeys(owner string, repo string, opt *ListOptions) ([]Key, *Response, error)\n```\nListKeys lists the deploy keys for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#list](http://developer.github.com/v3/repos/keys/#list)\n\n```go\nfunc (s *RepositoriesService) ListLanguages(owner string, repo string) (map[string]int, *Response, error)\n```\nListLanguages lists languages for the specified repository. The returned map specifies the languages and the number of bytes of code written in that language. For example:\n\n\t{\n\t  \"C\": 78769,\n\t  \"Python\": 7769\n\t}\n\nGitHub API Docs: [http://developer.github.com/v3/repos/#list-languages](http://developer.github.com/v3/repos/#list-languages)\n\n```go\nfunc (s *RepositoriesService) ListPagesBuilds(owner string, repo string) ([]PagesBuild, *Response, error)\n```\nListPagesBuilds lists the builds for a GitHub Pages site.\n\nGitHub API docs: [https://developer.github.com/v3/repos/pages/#list-pages-builds](https://developer.github.com/v3/repos/pages/#list-pages-builds)\n\n```go\nfunc (s *RepositoriesService) ListParticipation(owner, repo string) (*RepositoryParticipation, *Response, error)\n```\nListParticipation returns the total commit counts for the 'owner' and total commit counts in 'all'. 'all' is everyone combined, including the 'owner' in the last 52 weeks. If you’d like to get the commit counts for non-owners, you can subtract 'all' from 'owner'.\n\nThe array order is oldest week (index 0) to most recent week.\n\nIf this is the first time these statistics are requested for the given repository, this method will return a non-nil error and a status code of 202. This is because this is the status that github returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API Docs: [https://developer.github.com/v3/repos/statistics/#participation](https://developer.github.com/v3/repos/statistics/#participation)\n\n```go\nfunc (s *RepositoriesService) ListPunchCard(owner, repo string) ([]PunchCard, *Response, error)\n```\nListPunchCard returns the number of commits per hour in each day.\n\nGitHub API Docs: [https://developer.github.com/v3/repos/statistics/#punch-card](https://developer.github.com/v3/repos/statistics/#punch-card)\n\n```go\nfunc (s *RepositoriesService) ListReleaseAssets(owner, repo string, id int, opt *ListOptions) ([]ReleaseAsset, *Response, error)\n```\nListReleaseAssets lists the release's assets.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#list-assets-for-a-release](http://developer.github.com/v3/repos/releases/#list-assets-for-a-release)\n\n```go\nfunc (s *RepositoriesService) ListReleases(owner, repo string, opt *ListOptions) ([]RepositoryRelease, *Response, error)\n```\nListReleases lists the releases for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/releases/#list-releases-for-a-repository](http://developer.github.com/v3/repos/releases/#list-releases-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListServiceHooks() ([]ServiceHook, *Response, error)\n```\nListServiceHooks lists all of the available service hooks.\n\nGitHub API docs: [https://developer.github.com/webhooks/#services](https://developer.github.com/webhooks/#services)\n\n```go\nfunc (s *RepositoriesService) ListStatuses(owner, repo, ref string, opt *ListOptions) ([]RepoStatus, *Response, error)\n```\nListStatuses lists the statuses of a repository at the specified reference.  ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [http://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref](http://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref)\n\n```go\nfunc (s *RepositoriesService) ListTags(owner string, repo string, opt *ListOptions) ([]RepositoryTag, *Response, error)\n```\nListTags lists tags for the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/#list-tags](https://developer.github.com/v3/repos/#list-tags)\n\n```go\nfunc (s *RepositoriesService) ListTeams(owner string, repo string, opt *ListOptions) ([]Team, *Response, error)\n```\nListTeams lists the teams for the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/#list-teams](https://developer.github.com/v3/repos/#list-teams)\n\n```go\nfunc (s *RepositoriesService) Merge(owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error)\n```\nMerge a branch in the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/merging/#perform-a-merge](https://developer.github.com/v3/repos/merging/#perform-a-merge)\n\n```go\nfunc (s *RepositoriesService) RemoveCollaborator(owner, repo, user string) (*Response, error)\n```\nRemoveCollaborator removes the specified Github user as collaborator from the given repo. Note: Does not return error if a valid user that is not a collaborator is removed.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#remove-collaborator](http://developer.github.com/v3/repos/collaborators/#remove-collaborator)\n\n```go\nfunc (s *RepositoriesService) TestHook(owner, repo string, id int) (*Response, error)\n```\nTestHook triggers a test Hook by github.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#test-a-push-hook](http://developer.github.com/v3/repos/hooks/#test-a-push-hook)\n\n```go\nfunc (s *RepositoriesService) UpdateComment(owner, repo string, id int, comment *RepositoryComment) (*RepositoryComment, *Response, error)\n```\nUpdateComment updates the body of a single comment.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#update-a-commit-comment](http://developer.github.com/v3/repos/comments/#update-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) UpdateFile(owner, repo, path string, opt *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)\n```\nUpdateFile updates a file in a repository at the given path and returns the commit and file metadata. Requires the blob SHA of the file being updated.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#update-a-file](http://developer.github.com/v3/repos/contents/#update-a-file)\n\n```go\nfunc (s *RepositoriesService) UploadReleaseAsset(owner, repo string, id int, opt *UploadOptions, file *os.File) (*ReleaseAsset, *Response, error)\n```\nUploadReleaseAsset creates an asset by uploading a file into a release repository. To upload assets that cannot be represented by an os.File, call NewUploadRequest directly.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#upload-a-release-asset](http://developer.github.com/v3/repos/releases/#upload-a-release-asset)\n\n```go\ntype Repository struct {\n\tID               *int             `json:\"id,omitempty\"`\n\tOwner            *User            `json:\"owner,omitempty\"`\n\tName             *string          `json:\"name,omitempty\"`\n\tFullName         *string          `json:\"full_name,omitempty\"`\n\tDescription      *string          `json:\"description,omitempty\"`\n\tHomepage         *string          `json:\"homepage,omitempty\"`\n\tDefaultBranch    *string          `json:\"default_branch,omitempty\"`\n\tMasterBranch     *string          `json:\"master_branch,omitempty\"`\n\tCreatedAt        *Timestamp       `json:\"created_at,omitempty\"`\n\tPushedAt         *Timestamp       `json:\"pushed_at,omitempty\"`\n\tUpdatedAt        *Timestamp       `json:\"updated_at,omitempty\"`\n\tHTMLURL          *string          `json:\"html_url,omitempty\"`\n\tCloneURL         *string          `json:\"clone_url,omitempty\"`\n\tGitURL           *string          `json:\"git_url,omitempty\"`\n\tMirrorURL        *string          `json:\"mirror_url,omitempty\"`\n\tSSHURL           *string          `json:\"ssh_url,omitempty\"`\n\tSVNURL           *string          `json:\"svn_url,omitempty\"`\n\tLanguage         *string          `json:\"language,omitempty\"`\n\tFork             *bool            `json:\"fork\"`\n\tForksCount       *int             `json:\"forks_count,omitempty\"`\n\tNetworkCount     *int             `json:\"network_count,omitempty\"`\n\tOpenIssuesCount  *int             `json:\"open_issues_count,omitempty\"`\n\tStargazersCount  *int             `json:\"stargazers_count,omitempty\"`\n\tSubscribersCount *int             `json:\"subscribers_count,omitempty\"`\n\tWatchersCount    *int             `json:\"watchers_count,omitempty\"`\n\tSize             *int             `json:\"size,omitempty\"`\n\tParent           *Repository      `json:\"parent,omitempty\"`\n\tSource           *Repository      `json:\"source,omitempty\"`\n\tOrganization     *Organization    `json:\"organization,omitempty\"`\n\tPermissions      *map[string]bool `json:\"permissions,omitempty\"`\n\n\t// Additional mutable fields when creating and editing a repository\n\tPrivate      *bool `json:\"private\"`\n\tHasIssues    *bool `json:\"has_issues\"`\n\tHasWiki      *bool `json:\"has_wiki\"`\n\tHasDownloads *bool `json:\"has_downloads\"`\n\n\t// API URLs\n\tURL              *string `json:\"url,omitempty\"`\n\tArchiveURL       *string `json:\"archive_url,omitempty\"`\n\tAssigneesURL     *string `json:\"assignees_url,omitempty\"`\n\tBlobsURL         *string `json:\"blobs_url,omitempty\"`\n\tBranchesURL      *string `json:\"branches_url,omitempty\"`\n\tCollaboratorsURL *string `json:\"collaborators_url,omitempty\"`\n\tCommentsURL      *string `json:\"comments_url,omitempty\"`\n\tCommitsURL       *string `json:\"commits_url,omitempty\"`\n\tCompareURL       *string `json:\"compare_url,omitempty\"`\n\tContentsURL      *string `json:\"contents_url,omitempty\"`\n\tContributorsURL  *string `json:\"contributors_url,omitempty\"`\n\tDownloadsURL     *string `json:\"downloads_url,omitempty\"`\n\tEventsURL        *string `json:\"events_url,omitempty\"`\n\tForksURL         *string `json:\"forks_url,omitempty\"`\n\tGitCommitsURL    *string `json:\"git_commits_url,omitempty\"`\n\tGitRefsURL       *string `json:\"git_refs_url,omitempty\"`\n\tGitTagsURL       *string `json:\"git_tags_url,omitempty\"`\n\tHooksURL         *string `json:\"hooks_url,omitempty\"`\n\tIssueCommentURL  *string `json:\"issue_comment_url,omitempty\"`\n\tIssueEventsURL   *string `json:\"issue_events_url,omitempty\"`\n\tIssuesURL        *string `json:\"issues_url,omitempty\"`\n\tKeysURL          *string `json:\"keys_url,omitempty\"`\n\tLabelsURL        *string `json:\"labels_url,omitempty\"`\n\tLanguagesURL     *string `json:\"languages_url,omitempty\"`\n\tMergesURL        *string `json:\"merges_url,omitempty\"`\n\tMilestonesURL    *string `json:\"milestones_url,omitempty\"`\n\tNotificationsURL *string `json:\"notifications_url,omitempty\"`\n\tPullsURL         *string `json:\"pulls_url,omitempty\"`\n\tReleasesURL      *string `json:\"releases_url,omitempty\"`\n\tStargazersURL    *string `json:\"stargazers_url,omitempty\"`\n\tStatusesURL      *string `json:\"statuses_url,omitempty\"`\n\tSubscribersURL   *string `json:\"subscribers_url,omitempty\"`\n\tSubscriptionURL  *string `json:\"subscription_url,omitempty\"`\n\tTagsURL          *string `json:\"tags_url,omitempty\"`\n\tTreesURL         *string `json:\"trees_url,omitempty\"`\n\tTeamsURL         *string `json:\"teams_url,omitempty\"`\n}\n```\nRepository represents a GitHub repository.\n\n```go\nfunc (r Repository) String() string\n```\n\n```go\ntype RepositoryComment struct {\n\tHTMLURL   *string    `json:\"html_url,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tID        *int       `json:\"id,omitempty\"`\n\tCommitID  *string    `json:\"commit_id,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\n\t// User-mutable fields\n\tBody *string `json:\"body\"`\n\t// User-initialized fields\n\tPath     *string `json:\"path,omitempty\"`\n\tPosition *int    `json:\"position,omitempty\"`\n}\n```\nRepositoryComment represents a comment for a commit, file, or line in a repository.\n\n```go\nfunc (r RepositoryComment) String() string\n```\n\n```go\ntype RepositoryCommit struct {\n\tSHA       *string  `json:\"sha,omitempty\"`\n\tCommit    *Commit  `json:\"commit,omitempty\"`\n\tAuthor    *User    `json:\"author,omitempty\"`\n\tCommitter *User    `json:\"committer,omitempty\"`\n\tParents   []Commit `json:\"parents,omitempty\"`\n\tMessage   *string  `json:\"message,omitempty\"`\n\n\t// Details about how many changes were made in this commit. Only filled in during GetCommit!\n\tStats *CommitStats `json:\"stats,omitempty\"`\n\t// Details about which files, and how this commit touched. Only filled in during GetCommit!\n\tFiles []CommitFile `json:\"files,omitempty\"`\n}\n```\nRepositoryCommit represents a commit in a repo. Note that it's wrapping a Commit, so author/committer information is in two places, but contain different details about them: in RepositoryCommit \"github details\", in Commit - \"git details\".\n\n```go\nfunc (r RepositoryCommit) String() string\n```\n\n```go\ntype RepositoryContent struct {\n\tType     *string `json:\"type,omitempty\"`\n\tEncoding *string `json:\"encoding,omitempty\"`\n\tSize     *int    `json:\"size,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tPath     *string `json:\"path,omitempty\"`\n\tContent  *string `json:\"content,omitempty\"`\n\tSHA      *string `json:\"sha,omitempty\"`\n\tURL      *string `json:\"url,omitempty\"`\n\tGitURL   *string `json:\"giturl,omitempty\"`\n\tHTMLURL  *string `json:\"htmlurl,omitempty\"`\n}\n```\nRepositoryContent represents a file or directory in a github repository.\n\n```go\nfunc (r *RepositoryContent) Decode() ([]byte, error)\n```\nDecode decodes the file content if it is base64 encoded.\n\n```go\nfunc (r RepositoryContent) String() string\n```\n\n```go\ntype RepositoryContentFileOptions struct {\n\tMessage   *string       `json:\"message,omitempty\"`\n\tContent   []byte        `json:\"content,omitempty\"`\n\tSHA       *string       `json:\"sha,omitempty\"`\n\tBranch    *string       `json:\"branch,omitempty\"`\n\tAuthor    *CommitAuthor `json:\"author,omitempty\"`\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n}\n```\nRepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile.\n\n```go\ntype RepositoryContentGetOptions struct {\n\tRef string `url:\"ref,omitempty\"`\n}\n```\nRepositoryContentGetOptions represents an optional ref parameter, which can be a SHA, branch, or tag\n\n```go\ntype RepositoryContentResponse struct {\n\tContent *RepositoryContent `json:\"content,omitempty\"`\n\tCommit  `json:\"commit,omitempty\"`\n}\n```\nRepositoryContentResponse holds the parsed response from CreateFile, UpdateFile, and DeleteFile.\n\n```go\ntype RepositoryCreateForkOptions struct {\n\t// The organization to fork the repository into.\n\tOrganization string `url:\"organization,omitempty\"`\n}\n```\nRepositoryCreateForkOptions specifies the optional parameters to the RepositoriesService.CreateFork method.\n\n```go\ntype RepositoryListAllOptions struct {\n\t// ID of the last repository seen\n\tSince int `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListAllOptions specifies the optional parameters to the RepositoriesService.ListAll method.\n\n```go\ntype RepositoryListByOrgOptions struct {\n\t// Type of repositories to list.  Possible values are: all, public, private,\n\t// forks, sources, member.  Default is \"all\".\n\tType string `url:\"type,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListByOrgOptions specifies the optional parameters to the RepositoriesService.ListByOrg method.\n\n```go\ntype RepositoryListForksOptions struct {\n\t// How to sort the forks list.  Possible values are: newest, oldest,\n\t// watchers.  Default is \"newest\".\n\tSort string `url:\"sort,omitempty\"`\n}\n```\nRepositoryListForksOptions specifies the optional parameters to the RepositoriesService.ListForks method.\n\n```go\ntype RepositoryListOptions struct {\n\t// Type of repositories to list.  Possible values are: all, owner, public,\n\t// private, member.  Default is \"all\".\n\tType string `url:\"type,omitempty\"`\n\n\t// How to sort the repository list.  Possible values are: created, updated,\n\t// pushed, full_name.  Default is \"full_name\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories.  Possible values are: asc, desc.\n\t// Default is \"asc\" when sort is \"full_name\", otherwise default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListOptions specifies the optional parameters to the RepositoriesService.List method.\n\n```go\ntype RepositoryMergeRequest struct {\n\tBase          *string `json:\"base,omitempty\"`\n\tHead          *string `json:\"head,omitempty\"`\n\tCommitMessage *string `json:\"commit_message,omitempty\"`\n}\n```\nRepositoryMergeRequest represents a request to merge a branch in a repository.\n\n```go\ntype RepositoryParticipation struct {\n\tAll   []int `json:\"all,omitempty\"`\n\tOwner []int `json:\"owner,omitempty\"`\n}\n```\nRepositoryParticipation is the number of commits by everyone who has contributed to the repository (including the owner) as well as the number of commits by the owner themself.\n\n```go\nfunc (r RepositoryParticipation) String() string\n```\n\n```go\ntype RepositoryRelease struct {\n\tID              *int       `json:\"id,omitempty\"`\n\tTagName         *string    `json:\"tag_name,omitempty\"`\n\tTargetCommitish *string    `json:\"target_commitish,omitempty\"`\n\tName            *string    `json:\"name,omitempty\"`\n\tBody            *string    `json:\"body,omitempty\"`\n\tDraft           *bool      `json:\"draft,omitempty\"`\n\tPrerelease      *bool      `json:\"prerelease,omitempty\"`\n\tCreatedAt       *Timestamp `json:\"created_at,omitempty\"`\n\tPublishedAt     *Timestamp `json:\"published_at,omitempty\"`\n\tURL             *string    `json:\"url,omitempty\"`\n\tHTMLURL         *string    `json:\"html_url,omitempty\"`\n\tAssetsURL       *string    `json:\"assets_url,omitempty\"`\n\tUploadURL       *string    `json:\"upload_url,omitempty\"`\n}\n```\nRepositoryRelease represents a GitHub release in a repository.\n\n```go\nfunc (r RepositoryRelease) String() string\n```\n\n```go\ntype RepositoryTag struct {\n\tName       *string `json:\"name,omitempty\"`\n\tCommit     *Commit `json:\"commit,omitempty\"`\n\tZipballURL *string `json:\"zipball_url,omitempty\"`\n\tTarballURL *string `json:\"tarball_url,omitempty\"`\n}\n```\nRepositoryTag represents a repository tag.\n\n```go\ntype Response struct {\n\t*http.Response\n\n\tNextPage  int\n\tPrevPage  int\n\tFirstPage int\n\tLastPage  int\n\n\tRate\n}\n```\nResponse is a GitHub API response.  This wraps the standard http.Response returned from GitHub and provides convenient access to things like pagination links.\n\n```go\ntype SearchOptions struct {\n\t// How to sort the search results.  Possible values are:\n\t//   - for repositories: stars, fork, updated\n\t//   - for code: indexed\n\t//   - for issues: comments, created, updated\n\t//   - for users: followers, repositories, joined\n\t//\n\t// Default is to sort by best match.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Sort order if sort parameter is provided. Possible values are: asc,\n\t// desc. Default is desc.\n\tOrder string `url:\"order,omitempty\"`\n\n\tListOptions\n}\n```\nSearchOptions specifies optional parameters to the SearchService methods.\n\n```go\ntype SearchService struct {\n\t// contains filtered or unexported fields\n}\n```\nSearchService provides access to the search related functions in the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/search/](http://developer.github.com/v3/search/)\n\n```go\nfunc (s *SearchService) Code(query string, opt *SearchOptions) (*CodeSearchResult, *Response, error)\n```\nCode searches code via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-code](http://developer.github.com/v3/search/#search-code)\n\n```go\nfunc (s *SearchService) Issues(query string, opt *SearchOptions) (*IssuesSearchResult, *Response, error)\n```\nIssues searches issues via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-issues](http://developer.github.com/v3/search/#search-issues)\n\n```go\nfunc (s *SearchService) Repositories(query string, opt *SearchOptions) (*RepositoriesSearchResult, *Response, error)\n```\nRepositories searches repositories via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-repositories](http://developer.github.com/v3/search/#search-repositories)\n\n```go\nfunc (s *SearchService) Users(query string, opt *SearchOptions) (*UsersSearchResult, *Response, error)\n```\nUsers searches users via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-users](http://developer.github.com/v3/search/#search-users)\n\n```go\ntype ServiceHook struct {\n\tName            *string    `json:\"name,omitempty\"`\n\tEvents          []string   `json:\"events,omitempty\"`\n\tSupportedEvents []string   `json:\"supported_events,omitempty\"`\n\tSchema          [][]string `json:\"schema,omitempty\"`\n}\n```\nServiceHook represents a hook that has configuration settings, a list of available events, and default events.\n\n```go\nfunc (s *ServiceHook) String() string\n```\n\n```go\ntype Subscription struct {\n\tSubscribed *bool      `json:\"subscribed,omitempty\"`\n\tIgnored    *bool      `json:\"ignored,omitempty\"`\n\tReason     *string    `json:\"reason,omitempty\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n\n\t// only populated for repository subscriptions\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n\n\t// only populated for thread subscriptions\n\tThreadURL *string `json:\"thread_url,omitempty\"`\n}\n```\nSubscription identifies a repository or thread subscription.\n\n```go\ntype Tag struct {\n\tTag     *string       `json:\"tag,omitempty\"`\n\tSHA     *string       `json:\"sha,omitempty\"`\n\tURL     *string       `json:\"url,omitempty\"`\n\tMessage *string       `json:\"message,omitempty\"`\n\tTagger  *CommitAuthor `json:\"tagger,omitempty\"`\n\tObject  *GitObject    `json:\"object,omitempty\"`\n}\n```\nTag represents a tag object.\n\n```go\ntype Team struct {\n\tID           *int    `json:\"id,omitempty\"`\n\tName         *string `json:\"name,omitempty\"`\n\tURL          *string `json:\"url,omitempty\"`\n\tSlug         *string `json:\"slug,omitempty\"`\n\tPermission   *string `json:\"permission,omitempty\"`\n\tMembersCount *int    `json:\"members_count,omitempty\"`\n\tReposCount   *int    `json:\"repos_count,omitempty\"`\n}\n```\nTeam represents a team within a GitHub organization.  Teams are used to manage access to an organization's repositories.\n\n```go\nfunc (t Team) String() string\n```\n\n```go\ntype Timestamp struct {\n\ttime.Time\n}\n```\nTimestamp 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.\n\n```go\nfunc (t Timestamp) Equal(u Timestamp) bool\n```\nEqual reports whether t and u are equal based on time.Equal\n\n```go\nfunc (t Timestamp) String() string\n```\n\n```go\nfunc (t *Timestamp) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON implements the json.Unmarshaler interface. Time is expected in RFC3339 or Unix format.\n\n```go\ntype Tree struct {\n\tSHA     *string     `json:\"sha,omitempty\"`\n\tEntries []TreeEntry `json:\"tree,omitempty\"`\n}\n```\nTree represents a GitHub tree.\n\n```go\nfunc (t Tree) String() string\n```\n\n```go\ntype TreeEntry struct {\n\tSHA  *string `json:\"sha,omitempty\"`\n\tPath *string `json:\"path,omitempty\"`\n\tMode *string `json:\"mode,omitempty\"`\n\tType *string `json:\"type,omitempty\"`\n\tSize *int    `json:\"size,omitempty\"`\n}\n```\nTreeEntry represents the contents of a tree structure.  TreeEntry can represent either a blob, a commit (in the case of a submodule), or another tree.\n\n```go\nfunc (t TreeEntry) String() string\n```\n\n```go\ntype UnauthenticatedRateLimitedTransport struct {\n\t// ClientID is the GitHub OAuth client ID of the current application, which\n\t// can be found by selecting its entry in the list at\n\t// https://github.com/settings/applications.\n\tClientID string\n\n\t// ClientSecret is the GitHub OAuth client secret of the current\n\t// application.\n\tClientSecret string\n\n\t// Transport is the underlying HTTP transport to use when making requests.\n\t// It will default to http.DefaultTransport if nil.\n\tTransport http.RoundTripper\n}\n```\nUnauthenticatedRateLimitedTransport allows you to make unauthenticated calls that need to use a higher rate limit associated with your OAuth application.\n\n\tt := \u0026github.UnauthenticatedRateLimitedTransport{\n\t\tClientID:     \"your app's client ID\",\n\t\tClientSecret: \"your app's client secret\",\n\t}\n\tclient := github.NewClient(t.Client())\n\nThis will append the querystring params client\\_id=xxx\u0026client\\_secret=yyy to all requests.\n\nSee [http://developer.github.com/v3/#unauthenticated-rate-limited-requests](http://developer.github.com/v3/#unauthenticated-rate-limited-requests) for more information.\n\n```go\nfunc (t *UnauthenticatedRateLimitedTransport) Client() *http.Client\n```\nClient returns an \\*http.Client that makes requests which are subject to the rate limit of your OAuth application.\n\n```go\nfunc (t *UnauthenticatedRateLimitedTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\nRoundTrip implements the RoundTripper interface.\n\n```go\ntype UploadOptions struct {\n\tName string `url:\"name,omitempty\"`\n}\n```\nUploadOptions specifies the parameters to methods that support uploads.\n\n```go\ntype User struct {\n\tLogin             *string    `json:\"login,omitempty\"`\n\tID                *int       `json:\"id,omitempty\"`\n\tAvatarURL         *string    `json:\"avatar_url,omitempty\"`\n\tHTMLURL           *string    `json:\"html_url,omitempty\"`\n\tGravatarID        *string    `json:\"gravatar_id,omitempty\"`\n\tName              *string    `json:\"name,omitempty\"`\n\tCompany           *string    `json:\"company,omitempty\"`\n\tBlog              *string    `json:\"blog,omitempty\"`\n\tLocation          *string    `json:\"location,omitempty\"`\n\tEmail             *string    `json:\"email,omitempty\"`\n\tHireable          *bool      `json:\"hireable,omitempty\"`\n\tBio               *string    `json:\"bio,omitempty\"`\n\tPublicRepos       *int       `json:\"public_repos,omitempty\"`\n\tPublicGists       *int       `json:\"public_gists,omitempty\"`\n\tFollowers         *int       `json:\"followers,omitempty\"`\n\tFollowing         *int       `json:\"following,omitempty\"`\n\tCreatedAt         *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt         *Timestamp `json:\"updated_at,omitempty\"`\n\tType              *string    `json:\"type,omitempty\"`\n\tSiteAdmin         *bool      `json:\"site_admin,omitempty\"`\n\tTotalPrivateRepos *int       `json:\"total_private_repos,omitempty\"`\n\tOwnedPrivateRepos *int       `json:\"owned_private_repos,omitempty\"`\n\tPrivateGists      *int       `json:\"private_gists,omitempty\"`\n\tDiskUsage         *int       `json:\"disk_usage,omitempty\"`\n\tCollaborators     *int       `json:\"collaborators,omitempty\"`\n\tPlan              *Plan      `json:\"plan,omitempty\"`\n\n\t// API URLs\n\tURL               *string `json:\"url,omitempty\"`\n\tEventsURL         *string `json:\"events_url,omitempty\"`\n\tFollowingURL      *string `json:\"following_url,omitempty\"`\n\tFollowersURL      *string `json:\"followers_url,omitempty\"`\n\tGistsURL          *string `json:\"gists_url,omitempty\"`\n\tOrganizationsURL  *string `json:\"organizations_url,omitempty\"`\n\tReceivedEventsURL *string `json:\"received_events_url,omitempty\"`\n\tReposURL          *string `json:\"repos_url,omitempty\"`\n\tStarredURL        *string `json:\"starred_url,omitempty\"`\n\tSubscriptionsURL  *string `json:\"subscriptions_url,omitempty\"`\n}\n```\nUser represents a GitHub user.\n\n```go\nfunc (u User) String() string\n```\n\n```go\ntype UserEmail struct {\n\tEmail    *string `json:\"email,omitempty\"`\n\tPrimary  *bool   `json:\"primary,omitempty\"`\n\tVerified *bool   `json:\"verified,omitempty\"`\n}\n```\nUserEmail represents user's email address\n\n```go\ntype UserListOptions struct {\n\t// ID of the last user seen\n\tSince int `url:\"since,omitempty\"`\n}\n```\nUserListOptions specifies optional parameters to the UsersService.List method.\n\n```go\ntype UsersSearchResult struct {\n\tTotal *int   `json:\"total_count,omitempty\"`\n\tUsers []User `json:\"items,omitempty\"`\n}\n```\nUsersSearchResult represents the result of an issues search.\n\n```go\ntype UsersService struct {\n\t// contains filtered or unexported fields\n}\n```\nUsersService handles communication with the user related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/users/](http://developer.github.com/v3/users/)\n\n```go\nfunc (s *UsersService) AddEmails(emails []string) ([]UserEmail, *Response, error)\n```\nAddEmails adds email addresses of the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/emails/#add-email-addresses](http://developer.github.com/v3/users/emails/#add-email-addresses)\n\n```go\nfunc (s *UsersService) CreateKey(key *Key) (*Key, *Response, error)\n```\nCreateKey adds a public key for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#create-a-public-key](http://developer.github.com/v3/users/keys/#create-a-public-key)\n\n```go\nfunc (s *UsersService) DeleteEmails(emails []string) (*Response, error)\n```\nDeleteEmails deletes email addresses from authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/emails/#delete-email-addresses](http://developer.github.com/v3/users/emails/#delete-email-addresses)\n\n```go\nfunc (s *UsersService) DeleteKey(id int) (*Response, error)\n```\nDeleteKey deletes a public key.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#delete-a-public-key](http://developer.github.com/v3/users/keys/#delete-a-public-key)\n\n```go\nfunc (s *UsersService) Edit(user *User) (*User, *Response, error)\n```\nEdit the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/#update-the-authenticated-user](http://developer.github.com/v3/users/#update-the-authenticated-user)\n\n```go\nfunc (s *UsersService) Follow(user string) (*Response, error)\n```\nFollow will cause the authenticated user to follow the specified user.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#follow-a-user](http://developer.github.com/v3/users/followers/#follow-a-user)\n\n```go\nfunc (s *UsersService) Get(user string) (*User, *Response, error)\n```\nGet fetches a user.  Passing the empty string will fetch the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/#get-a-single-user](http://developer.github.com/v3/users/#get-a-single-user)\n\n```go\nfunc (s *UsersService) GetKey(id int) (*Key, *Response, error)\n```\nGetKey fetches a single public key.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#get-a-single-public-key](http://developer.github.com/v3/users/keys/#get-a-single-public-key)\n\n```go\nfunc (s *UsersService) IsFollowing(user, target string) (bool, *Response, error)\n```\nIsFollowing checks if \"user\" is following \"target\".  Passing the empty string for \"user\" will check if the authenticated user is following \"target\".\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user](http://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user)\n\n```go\nfunc (s *UsersService) ListAll(opt *UserListOptions) ([]User, *Response, error)\n```\nListAll lists all GitHub users.\n\nGitHub API docs: [http://developer.github.com/v3/users/#get-all-users](http://developer.github.com/v3/users/#get-all-users)\n\n```go\nfunc (s *UsersService) ListEmails(opt *ListOptions) ([]UserEmail, *Response, error)\n```\nListEmails lists all email addresses for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user](http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user)\n\n```go\nfunc (s *UsersService) ListFollowers(user string, opt *ListOptions) ([]User, *Response, error)\n```\nListFollowers lists the followers for a user.  Passing the empty string will fetch followers for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#list-followers-of-a-user](http://developer.github.com/v3/users/followers/#list-followers-of-a-user)\n\n```go\nfunc (s *UsersService) ListFollowing(user string, opt *ListOptions) ([]User, *Response, error)\n```\nListFollowing lists the people that a user is following.  Passing the empty string will list people the authenticated user is following.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user](http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user)\n\n```go\nfunc (s *UsersService) ListKeys(user string, opt *ListOptions) ([]Key, *Response, error)\n```\nListKeys lists the verified public keys for a user.  Passing the empty string will fetch keys for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user](http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user)\n\n```go\nfunc (s *UsersService) Unfollow(user string) (*Response, error)\n```\nUnfollow will cause the authenticated user to unfollow the specified user.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#unfollow-a-user](http://developer.github.com/v3/users/followers/#unfollow-a-user)\n\n```go\ntype WebHookAuthor struct {\n\tEmail    *string `json:\"email,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tUsername *string `json:\"username,omitempty\"`\n}\n```\nWebHookAuthor represents the author or committer of a commit, as specified in a WebHookCommit.  The commit author may not correspond to a GitHub User.\n\n```go\nfunc (w WebHookAuthor) String() string\n```\n\n```go\ntype WebHookCommit struct {\n\tAdded     []string       `json:\"added,omitempty\"`\n\tAuthor    *WebHookAuthor `json:\"author,omitempty\"`\n\tCommitter *WebHookAuthor `json:\"committer,omitempty\"`\n\tDistinct  *bool          `json:\"distinct,omitempty\"`\n\tID        *string        `json:\"id,omitempty\"`\n\tMessage   *string        `json:\"message,omitempty\"`\n\tModified  []string       `json:\"modified,omitempty\"`\n\tRemoved   []string       `json:\"removed,omitempty\"`\n\tTimestamp *time.Time     `json:\"timestamp,omitempty\"`\n}\n```\nWebHookCommit represents the commit variant we receive from GitHub in a WebHookPayload.\n\n```go\nfunc (w WebHookCommit) String() string\n```\n\n```go\ntype WebHookPayload struct {\n\tAfter      *string         `json:\"after,omitempty\"`\n\tBefore     *string         `json:\"before,omitempty\"`\n\tCommits    []WebHookCommit `json:\"commits,omitempty\"`\n\tCompare    *string         `json:\"compare,omitempty\"`\n\tCreated    *bool           `json:\"created,omitempty\"`\n\tDeleted    *bool           `json:\"deleted,omitempty\"`\n\tForced     *bool           `json:\"forced,omitempty\"`\n\tHeadCommit *WebHookCommit  `json:\"head_commit,omitempty\"`\n\tPusher     *User           `json:\"pusher,omitempty\"`\n\tRef        *string         `json:\"ref,omitempty\"`\n\tRepo       *Repository     `json:\"repository,omitempty\"`\n}\n```\nWebHookPayload represents the data that is received from GitHub when a push event hook is triggered.  The format of these payloads pre-date most of the GitHub v3 API, so there are lots of minor incompatibilities with the types defined in the rest of the API.  Therefore, several types are duplicated here to account for these differences.\n\nGitHub API docs: [https://help.github.com/articles/post-receive-hooks](https://help.github.com/articles/post-receive-hooks)\n\n```go\nfunc (w WebHookPayload) String() string\n```\n\n```go\ntype WeeklyCommitActivity struct {\n\tDays  []int      `json:\"days,omitempty\"`\n\tTotal *int       `json:\"total,omitempty\"`\n\tWeek  *Timestamp `json:\"week,omitempty\"`\n}\n```\nWeeklyCommitActivity represents the weekly commit activity for a repository. The days array is a group of commits per day, starting on Sunday.\n\n```go\nfunc (w WeeklyCommitActivity) String() string\n```\n\n```go\ntype WeeklyStats struct {\n\tWeek      *Timestamp `json:\"w,omitempty\"`\n\tAdditions *int       `json:\"a,omitempty\"`\n\tDeletions *int       `json:\"d,omitempty\"`\n\tCommits   *int       `json:\"c,omitempty\"`\n}\n```\nWeeklyStats represents the number of additions, deletions and commits a Contributor made in a given week.\n\n```go\nfunc (w WeeklyStats) String() string\n```\n\n","path":"github.com/larrylv/go-github/github","name":"github","synopsis":"Package github provides a client for using the GitHub API.","isRedistributable":true}
