{"modulePath":"github.com/bouk/go-github","version":"v0.0.0-20160719063544-b5e5babef39c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github provides a client for using the GitHub API.\n\nUsage:\n\n\timport \"github.com/google/go-github/github\"\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\nSome API methods have optional parameters that can be passed. For example:\n\n\tclient := github.NewClient(nil)\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 golang.org/x/oauth2 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 oauth2 library using:\n\n\timport \"golang.org/x/oauth2\"\n\n\tfunc main() {\n\t\tts := oauth2.StaticTokenSource(\n\t\t\t\u0026oauth2.Token{AccessToken: \"... your access token ...\"},\n\t\t)\n\t\ttc := oauth2.NewClient(oauth2.NoContext, ts)\n\n\t\tclient := github.NewClient(tc)\n\n\t\t// list all repositories for the authenticated user\n\t\trepos, _, err := client.Repositories.List(\"\", nil)\n\t}\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\nSee the oauth2 docs for complete instructions on using that library.\n\nFor API methods that require HTTP Basic Authentication, use the BasicAuthTransport.\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 method on a client returns 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 RateLimits() directly to get the most up-to-date rate limit data for the client.\n\nTo detect an API rate limit error, you can check if its type is \\*github.RateLimitError:\n\n\trepos, _, err := client.Repositories.List(\"\", nil)\n\tif _, ok := err.(*github.RateLimitError); ok {\n\t\tlog.Println(\"hit rate limit\")\n\t}\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) for that.\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### Pagination {#hdr-Pagination}\n\nAll requests for resource collections (repos, pull requests, issues, etc.) support pagination. Pagination options are described in the github.ListOptions struct and passed to the list methods directly or as an embedded type of a more specific list options struct (for example github.PullRequestListOptions). Pages information is available via the github.Response struct.\n\n\tclient := github.NewClient(nil)\n\n\topt := \u0026github.RepositoryListByOrgOptions{\n\t\tListOptions: github.ListOptions{PerPage: 10},\n\t}\n\t// get all pages of results\n\tvar allRepos []*github.Repository\n\tfor {\n\t\trepos, resp, err := client.Repositories.ListByOrg(\"github\", opt)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tallRepos = append(allRepos, repos...)\n\t\tif resp.NextPage == 0 {\n\t\t\tbreak\n\t\t}\n\t\topt.ListOptions.Page = resp.NextPage\n\t}\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```go\nconst (\n\t// StatusUnprocessableEntity is the status code returned when sending a request with invalid fields.\n\tStatusUnprocessableEntity = 422\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\nThe error type will be \\*RateLimitError for rate limit exceeded errors, and \\*TwoFactorAuthError for two-factor authentication errors.\n\n```go\nfunc Int(v int) *int\n```\nInt is a helper routine that allocates a new int value to store v and returns a pointer to it.\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```go\nfunc ValidatePayload(r *http.Request, secretKey []byte) (payload []byte, err error)\n```\nValidatePayload validates an incoming GitHub Webhook event request and returns the (JSON) payload. secretKey is the GitHub Webhook secret message.\n\nExample usage:\n\n\tfunc (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t  payload, err := github.ValidatePayload(r, s.webhookSecretKey)\n\t  if err != nil { ... }\n\t  // Process payload...\n\t}\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\t// An array of IP addresses in CIDR format specifying the addresses\n\t// which serve GitHub Pages websites.\n\tPages []string `json:\"pages,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 service\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) ListEventsReceivedByUser(user string, publicOnly bool, opt *ListOptions) ([]*Event, *Response, error)\n```\nListEventsReceivedByUser lists the events received 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) ListFeeds() (*Feeds, *Response, error)\n```\nListFeeds lists all the feeds available to the authenticated user.\n\nGitHub provides several timeline resources in Atom format:\n\n\tTimeline: The GitHub global public timeline\n\tUser: The public timeline for any user, using URI template\n\tCurrent user public: The public timeline for the authenticated user\n\tCurrent user: The private timeline for the authenticated user\n\tCurrent user actor: The private timeline for activity created by the\n\t    authenticated user\n\tCurrent user organizations: The private timeline for the organizations\n\t    the authenticated user is a member of.\n\nNote: Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens.\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) ([]*Stargazer, *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) ([]*StarredRepository, *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, opt *ListOptions) ([]*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 Authorization struct {\n\tID             *int              `json:\"id,omitempty\"`\n\tURL            *string           `json:\"url,omitempty\"`\n\tScopes         []Scope           `json:\"scopes,omitempty\"`\n\tToken          *string           `json:\"token,omitempty\"`\n\tTokenLastEight *string           `json:\"token_last_eight,omitempty\"`\n\tHashedToken    *string           `json:\"hashed_token,omitempty\"`\n\tApp            *AuthorizationApp `json:\"app,omitempty\"`\n\tNote           *string           `json:\"note,omitempty\"`\n\tNoteURL        *string           `json:\"note_url,omitempty\"`\n\tUpdateAt       *Timestamp        `json:\"updated_at,omitempty\"`\n\tCreatedAt      *Timestamp        `json:\"created_at,omitempty\"`\n\tFingerprint    *string           `json:\"fingerprint,omitempty\"`\n\n\t// User is only populated by the Check and Reset methods.\n\tUser *User `json:\"user,omitempty\"`\n}\n```\nAuthorization represents an individual GitHub authorization.\n\n```go\nfunc (a Authorization) String() string\n```\n\n```go\ntype AuthorizationApp struct {\n\tURL      *string `json:\"url,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tClientID *string `json:\"client_id,omitempty\"`\n}\n```\nAuthorizationApp represents an individual GitHub app (in the context of authorization).\n\n```go\nfunc (a AuthorizationApp) String() string\n```\n\n```go\ntype AuthorizationRequest struct {\n\tScopes       []Scope `json:\"scopes,omitempty\"`\n\tNote         *string `json:\"note,omitempty\"`\n\tNoteURL      *string `json:\"note_url,omitempty\"`\n\tClientID     *string `json:\"client_id,omitempty\"`\n\tClientSecret *string `json:\"client_secret,omitempty\"`\n\tFingerprint  *string `json:\"fingerprint,omitempty\"`\n}\n```\nAuthorizationRequest represents a request to create an authorization.\n\n```go\nfunc (a AuthorizationRequest) String() string\n```\n\n```go\ntype AuthorizationUpdateRequest struct {\n\tScopes       []string `json:\"scopes,omitempty\"`\n\tAddScopes    []string `json:\"add_scopes,omitempty\"`\n\tRemoveScopes []string `json:\"remove_scopes,omitempty\"`\n\tNote         *string  `json:\"note,omitempty\"`\n\tNoteURL      *string  `json:\"note_url,omitempty\"`\n\tFingerprint  *string  `json:\"fingerprint,omitempty\"`\n}\n```\nAuthorizationUpdateRequest represents a request to update an authorization.\n\nNote that for any one update, you must only provide one of the \"scopes\" fields.  That is, you may provide only one of \"Scopes\", or \"AddScopes\", or \"RemoveScopes\".\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#update-an-existing-authorization](https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization)\n\n```go\nfunc (a AuthorizationUpdateRequest) String() string\n```\n\n```go\ntype AuthorizationsService service\n```\nAuthorizationsService handles communication with the authorization related methods of the GitHub API.\n\nThis service requires HTTP Basic Authentication; it cannot be accessed using an OAuth token.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/](https://developer.github.com/v3/oauth_authorizations/)\n\n```go\nfunc (s *AuthorizationsService) Check(clientID string, token string) (*Authorization, *Response, error)\n```\nCheck if an OAuth token is valid for a specific app.\n\nNote that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.\n\nThe returned Authorization.User field will be populated.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#check-an-authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization)\n\n```go\nfunc (s *AuthorizationsService) Create(auth *AuthorizationRequest) (*Authorization, *Response, error)\n```\nCreate a new authorization for the specified OAuth application.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#create-a-new-authorization](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)\n\n```go\nfunc (s *AuthorizationsService) CreateImpersonation(username string, authReq *AuthorizationRequest) (*Authorization, *Response, error)\n```\nCreate an impersonation OAuth token.\n\nThis requires admin permissions. With the returned Authorization.Token you can e.g. create or delete a user's public SSH key. NOTE: creating a new token automatically revokes an existing one.\n\nGitHub API docs: [https://developer.github.com/enterprise/2.5/v3/users/administration/#create-an-impersonation-oauth-token](https://developer.github.com/enterprise/2.5/v3/users/administration/#create-an-impersonation-oauth-token)\n\n```go\nfunc (s *AuthorizationsService) Delete(id int) (*Response, error)\n```\nDelete a single authorization.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#delete-an-authorization](https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization)\n\n```go\nfunc (s *AuthorizationsService) DeleteGrant(id int) (*Response, error)\n```\nDeleteGrant deletes an OAuth application grant. Deleting an application's grant will also delete all OAuth tokens associated with the application for the user.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#delete-a-grant](https://developer.github.com/v3/oauth_authorizations/#delete-a-grant)\n\n```go\nfunc (s *AuthorizationsService) DeleteImpersonation(username string) (*Response, error)\n```\nDelete an impersonation OAuth token.\n\nNOTE: there can be only one at a time.\n\nGitHub API docs: [https://developer.github.com/enterprise/2.5/v3/users/administration/#delete-an-impersonation-oauth-token](https://developer.github.com/enterprise/2.5/v3/users/administration/#delete-an-impersonation-oauth-token)\n\n```go\nfunc (s *AuthorizationsService) Edit(id int, auth *AuthorizationUpdateRequest) (*Authorization, *Response, error)\n```\nEdit a single authorization.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#update-an-existing-authorization](https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization)\n\n```go\nfunc (s *AuthorizationsService) Get(id int) (*Authorization, *Response, error)\n```\nGet a single authorization.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#get-a-single-authorization](https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization)\n\n```go\nfunc (s *AuthorizationsService) GetGrant(id int) (*Grant, *Response, error)\n```\nGetGrant gets a single OAuth application grant.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#get-a-single-grant](https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant)\n\n```go\nfunc (s *AuthorizationsService) GetOrCreateForApp(clientID string, auth *AuthorizationRequest) (*Authorization, *Response, error)\n```\nGetOrCreateForApp creates a new authorization for the specified OAuth application, only if an authorization for that application doesn’t already exist for the user.\n\nIf a new token is created, the HTTP status code will be \"201 Created\", and the returned Authorization.Token field will be populated. If an existing token is returned, the status code will be \"200 OK\" and the Authorization.Token field will be empty.\n\nclientID is the OAuth Client ID with which to create the token.\n\nGitHub API docs: - [https://developer.github.com/v3/oauth\\_authorizations/#get-or-create-an-authorization-for-a-specific-app](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app) - [https://developer.github.com/v3/oauth\\_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint)\n\n```go\nfunc (s *AuthorizationsService) List(opt *ListOptions) ([]*Authorization, *Response, error)\n```\nList the authorizations for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#list-your-authorizations](https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations)\n\n```go\nfunc (s *AuthorizationsService) ListGrants() ([]*Grant, *Response, error)\n```\nListGrants lists the set of OAuth applications that have been granted access to a user's account. This will return one entry for each application that has been granted access to the account, regardless of the number of tokens an application has generated for the user.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#list-your-grants](https://developer.github.com/v3/oauth_authorizations/#list-your-grants)\n\n```go\nfunc (s *AuthorizationsService) Reset(clientID string, token string) (*Authorization, *Response, error)\n```\nReset is used to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately.\n\nNote that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.\n\nThe returned Authorization.User field will be populated.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#reset-an-authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization)\n\n```go\nfunc (s *AuthorizationsService) Revoke(clientID string, token string) (*Response, error)\n```\nRevoke an authorization for an application.\n\nNote that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.\n\nGitHub API docs: [https://developer.github.com/v3/oauth\\_authorizations/#revoke-an-authorization-for-an-application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application)\n\n```go\ntype BasicAuthTransport struct {\n\tUsername string // GitHub username\n\tPassword string // GitHub password\n\tOTP      string // one-time password for users with two-factor auth enabled\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```\nBasicAuthTransport is an http.RoundTripper that authenticates all requests using HTTP Basic Authentication with the provided username and password.  It additionally supports users who have two-factor authentication enabled on their GitHub account.\n\n```go\nfunc (t *BasicAuthTransport) Client() *http.Client\n```\nClient returns an \\*http.Client that makes requests that are authenticated using HTTP Basic Authentication.\n\n```go\nfunc (t *BasicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\nRoundTrip implements the RoundTripper interface.\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\tProtection *Protection `json:\"protection,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// Services used for talking to different parts of the GitHub API.\n\tActivity       *ActivityService\n\tAuthorizations *AuthorizationsService\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\tLicenses       *LicensesService\n\tMigrations     *MigrationService\n\tReactions      *ReactionsService\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 golang.org/x/oauth2 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.  If rate limit is exceeded and reset time is in the future, Do returns \\*RateLimitError immediately without making a network API call.\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) 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 (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) Octocat(message string) (string, *Response, error)\n```\nOctocat returns an ASCII art octocat with the specified message in a speech bubble.  If message is empty, a random zen phrase is used.\n\n```go\nfunc (c *Client) Rate() Rate\n```\nRate specifies the current rate limit for the client as determined by the most recent API call.  If the client is used in a multi-user application, this rate may not always be up-to-date.\n\nDeprecated: Use the Response.Rate returned from most recent API call instead. Call RateLimits() to check the current rate.\n\n```go\nfunc (c *Client) RateLimit() (*Rate, *Response, error)\n```\nDeprecated: RateLimit 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\nfunc (c *Client) Zen() (string, *Response, error)\n```\nZen returns a random line from The Zen of GitHub.\n\nsee also: [http://warpspire.com/posts/taste/](http://warpspire.com/posts/taste/)\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\tTextMatches []TextMatch `json:\"text_matches,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 CombinedStatus struct {\n\t// State is the combined state of the repository.  Possible values are:\n\t// failure, pending, or success.\n\tState *string `json:\"state,omitempty\"`\n\n\tName       *string      `json:\"name,omitempty\"`\n\tSHA        *string      `json:\"sha,omitempty\"`\n\tTotalCount *int         `json:\"total_count,omitempty\"`\n\tStatuses   []RepoStatus `json:\"statuses,omitempty\"`\n\n\tCommitURL     *string `json:\"commit_url,omitempty\"`\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n}\n```\nCombinedStatus represents the combined status of a repository at a particular reference.\n\n```go\nfunc (s CombinedStatus) String() string\n```\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\tVerification *SignatureVerification `json:\"verification,omitempty\"`\n\n\t// CommentCount is the number of GitHub comments on the commit.  This\n\t// is only populated for requests that fetch GitHub data like\n\t// Pulls.ListCommits, Repositories.ListCommits, etc.\n\tCommentCount *int `json:\"comment_count,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\t// The following fields are only populated by Webhook events.\n\tLogin *string `json:\"username,omitempty\"` // Renamed for go-github consistency.\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 CommitCommentEvent struct {\n\tComment *RepositoryComment `json:\"comment,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tAction *string     `json:\"action,omitempty\"`\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nCommitCommentEvent is triggered when a commit comment is created. The Webhook event name is \"commit\\_comment\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#commitcommentevent](https://developer.github.com/v3/activity/events/types/#commitcommentevent)\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 or GistCommit.\n\n```go\nfunc (c CommitStats) String() string\n```\n\n```go\ntype CommitsComparison struct {\n\tBaseCommit      *RepositoryCommit `json:\"base_commit,omitempty\"`\n\tMergeBaseCommit *RepositoryCommit `json:\"merge_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\tListOptions\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 CreateEvent struct {\n\tRef *string `json:\"ref,omitempty\"`\n\t// RefType is the object that was created. Possible values are: \"repository\", \"branch\", \"tag\".\n\tRefType      *string `json:\"ref_type,omitempty\"`\n\tMasterBranch *string `json:\"master_branch,omitempty\"`\n\tDescription  *string `json:\"description,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tPusherType *string     `json:\"pusher_type,omitempty\"`\n\tRepo       *Repository `json:\"repository,omitempty\"`\n\tSender     *User       `json:\"sender,omitempty\"`\n}\n```\nCreateEvent represents a created repository, branch, or tag. The Webhook event name is \"create\".\n\nNote: webhooks will not receive this event for created repositories. Additionally, webhooks will not receive this event for tags if more than three tags are pushed at once.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#createevent](https://developer.github.com/v3/activity/events/types/#createevent)\n\n```go\ntype DeleteEvent struct {\n\tRef *string `json:\"ref,omitempty\"`\n\t// RefType is the object that was deleted. Possible values are: \"branch\", \"tag\".\n\tRefType *string `json:\"ref_type,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tPusherType *string     `json:\"pusher_type,omitempty\"`\n\tRepo       *Repository `json:\"repository,omitempty\"`\n\tSender     *User       `json:\"sender,omitempty\"`\n}\n```\nDeleteEvent represents a deleted branch or tag. The Webhook event name is \"delete\".\n\nNote: webhooks will not receive this event for tags if more than three tags are deleted at once.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#deleteevent](https://developer.github.com/v3/activity/events/types/#deleteevent)\n\n```go\ntype Deployment struct {\n\tURL           *string         `json:\"url,omitempty\"`\n\tID            *int            `json:\"id,omitempty\"`\n\tSHA           *string         `json:\"sha,omitempty\"`\n\tRef           *string         `json:\"ref,omitempty\"`\n\tTask          *string         `json:\"task,omitempty\"`\n\tPayload       json.RawMessage `json:\"payload,omitempty\"`\n\tEnvironment   *string         `json:\"environment,omitempty\"`\n\tDescription   *string         `json:\"description,omitempty\"`\n\tCreator       *User           `json:\"creator,omitempty\"`\n\tCreatedAt     *Timestamp      `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp      `json:\"pushed_at,omitempty\"`\n\tStatusesURL   *string         `json:\"statuses_url,omitempty\"`\n\tRepositoryURL *string         `json:\"repository_url,omitempty\"`\n}\n```\nDeployment represents a deployment in a repo\n\n```go\ntype DeploymentEvent struct {\n\tDeployment *Deployment `json:\"deployment,omitempty\"`\n\tRepo       *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tSender *User `json:\"sender,omitempty\"`\n}\n```\nDeploymentEvent represents a deployment. The Webhook event name is \"deployment\".\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#deploymentevent](https://developer.github.com/v3/activity/events/types/#deploymentevent)\n\n```go\ntype DeploymentRequest struct {\n\tRef                   *string   `json:\"ref,omitempty\"`\n\tTask                  *string   `json:\"task,omitempty\"`\n\tAutoMerge             *bool     `json:\"auto_merge,omitempty\"`\n\tRequiredContexts      *[]string `json:\"required_contexts,omitempty\"`\n\tPayload               *string   `json:\"payload,omitempty\"`\n\tEnvironment           *string   `json:\"environment,omitempty\"`\n\tDescription           *string   `json:\"description,omitempty\"`\n\tTransientEnvironment  *bool     `json:\"transient_environment,omitempty\"`\n\tProductionEnvironment *bool     `json:\"production_environment,omitempty\"`\n}\n```\nDeploymentRequest represents a deployment request\n\n```go\ntype DeploymentStatus struct {\n\tID *int `json:\"id,omitempty\"`\n\t// State is the deployment state.\n\t// Possible values are: \"pending\", \"success\", \"failure\", \"error\", \"inactive\".\n\tState         *string    `json:\"state,omitempty\"`\n\tCreator       *User      `json:\"creator,omitempty\"`\n\tDescription   *string    `json:\"description,omitempty\"`\n\tTargetURL     *string    `json:\"target_url,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"pushed_at,omitempty\"`\n\tDeploymentURL *string    `json:\"deployment_url,omitempty\"`\n\tRepositoryURL *string    `json:\"repository_url,omitempty\"`\n}\n```\nDeploymentStatus represents the status of a particular deployment.\n\n```go\ntype DeploymentStatusEvent struct {\n\tDeployment       *Deployment       `json:\"deployment,omitempty\"`\n\tDeploymentStatus *DeploymentStatus `json:\"deployment_status,omitempty\"`\n\tRepo             *Repository       `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tSender *User `json:\"sender,omitempty\"`\n}\n```\nDeploymentStatusEvent represents a deployment status. The Webhook event name is \"deployment\\_status\".\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#deploymentstatusevent](https://developer.github.com/v3/activity/events/types/#deploymentstatusevent)\n\n```go\ntype DeploymentStatusRequest struct {\n\tState          *string `json:\"state,omitempty\"`\n\tTargetURL      *string `json:\"target_url,omitempty\"` // Deprecated. Use LogURL instead.\n\tLogURL         *string `json:\"log_url,omitempty\"`\n\tDescription    *string `json:\"description,omitempty\"`\n\tEnvironmentURL *string `json:\"environment_url,omitempty\"`\n\tAutoInactive   *bool   `json:\"auto_inactive,omitempty\"`\n}\n```\nDeploymentStatusRequest represents a deployment request\n\n```go\ntype DeploymentsListOptions struct {\n\t// SHA of the Deployment.\n\tSHA string `url:\"sha,omitempty\"`\n\n\t// List deployments for a given ref.\n\tRef string `url:\"ref,omitempty\"`\n\n\t// List deployments for a given task.\n\tTask string `url:\"task,omitempty\"`\n\n\t// List deployments for a given environment.\n\tEnvironment string `url:\"environment,omitempty\"`\n\n\tListOptions\n}\n```\nDeploymentsListOptions specifies the optional parameters to the RepositoriesService.ListDeployments method.\n\n```go\ntype EditChange struct {\n\tTitle *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"title,omitempty\"`\n\tBody *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"body,omitempty\"`\n}\n```\nEditChange represents the changes when an issue, pull request, or comment has been edited.\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\tMessage  string `json:\"message\"`  // Message describing the error. Errors with Code == \"custom\" will always have this set.\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\tcustom:\n\t    some resources return this (e.g. github.User.CreateKey()), additional\n\t    information is set in the Message field of the Error\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\t// Block is only populated on certain types of errors such as code 451.\n\t// See https://developer.github.com/changes/2016-03-17-the-451-status-code-is-now-supported/\n\t// for more information.\n\tBlock *struct {\n\t\tReason    string     `json:\"reason,omitempty\"`\n\t\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\t} `json:\"block,omitempty\"`\n\t// Most errors will also include a documentation_url field pointing\n\t// to some content that might help you resolve the error, see\n\t// https://developer.github.com/v3/#client-errors\n\tDocumentationURL string `json:\"documentation_url,omitempty\"`\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, a value of the corresponding struct type will be returned.\n\n```go\nfunc (e Event) String() string\n```\n\n```go\ntype FeedLink struct {\n\tHRef *string `json:\"href,omitempty\"`\n\tType *string `json:\"type,omitempty\"`\n}\n```\nFeedLink represents a link to a related resource.\n\n```go\ntype Feeds struct {\n\tTimelineURL                 *string  `json:\"timeline_url,omitempty\"`\n\tUserURL                     *string  `json:\"user_url,omitempty\"`\n\tCurrentUserPublicURL        *string  `json:\"current_user_public_url,omitempty\"`\n\tCurrentUserURL              *string  `json:\"current_user_url,omitempty\"`\n\tCurrentUserActorURL         *string  `json:\"current_user_actor_url,omitempty\"`\n\tCurrentUserOrganizationURL  *string  `json:\"current_user_organization_url,omitempty\"`\n\tCurrentUserOrganizationURLs []string `json:\"current_user_organization_urls,omitempty\"`\n\tLinks                       *struct {\n\t\tTimeline                 *FeedLink  `json:\"timeline,omitempty\"`\n\t\tUser                     *FeedLink  `json:\"user,omitempty\"`\n\t\tCurrentUserPublic        *FeedLink  `json:\"current_user_public,omitempty\"`\n\t\tCurrentUser              *FeedLink  `json:\"current_user,omitempty\"`\n\t\tCurrentUserActor         *FeedLink  `json:\"current_user_actor,omitempty\"`\n\t\tCurrentUserOrganization  *FeedLink  `json:\"current_user_organization,omitempty\"`\n\t\tCurrentUserOrganizations []FeedLink `json:\"current_user_organizations,omitempty\"`\n\t} `json:\"_links,omitempty\"`\n}\n```\nFeeds represents timeline resources in Atom format.\n\n```go\ntype ForkEvent struct {\n\t// Forkee is the created repository.\n\tForkee *Repository `json:\"forkee,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nForkEvent is triggered when a user forks a repository. The Webhook event name is \"fork\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#forkevent](https://developer.github.com/v3/activity/events/types/#forkevent)\n\n```go\ntype GPGEmail struct {\n\tEmail    *string `json:\"email,omitempty\"`\n\tVerified *bool   `json:\"verified,omitempty\"`\n}\n```\nGPGEmail represents an email address associated to a GPG key.\n\n```go\ntype GPGKey struct {\n\tID                *int       `json:\"id,omitempty\"`\n\tPrimaryKeyID      *int       `json:\"primary_key_id,omitempty\"`\n\tKeyID             *string    `json:\"key_id,omitempty\"`\n\tPublicKey         *string    `json:\"public_key,omitempty\"`\n\tEmails            []GPGEmail `json:\"emails,omitempty\"`\n\tSubkeys           []GPGKey   `json:\"subkeys,omitempty\"`\n\tCanSign           *bool      `json:\"can_sign,omitempty\"`\n\tCanEncryptComms   *bool      `json:\"can_encrypt_comms,omitempty\"`\n\tCanEncryptStorage *bool      `json:\"can_encrypt_storage,omitempty\"`\n\tCanCertify        *bool      `json:\"can_certify,omitempty\"`\n\tCreatedAt         *time.Time `json:\"created_at,omitempty\"`\n\tExpiresAt         *time.Time `json:\"expires_at,omitempty\"`\n}\n```\nGPGKey represents a GitHub user's public GPG key used to verify GPG signed commits and tags.\n\n[https://developer.github.com/changes/2016-04-04-git-signing-api-preview/](https://developer.github.com/changes/2016-04-04-git-signing-api-preview/)\n\n```go\nfunc (k GPGKey) String() string\n```\nString stringifies a GPGKey.\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\tUpdatedAt   *time.Time                `json:\"updated_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 GistCommit struct {\n\tURL          *string      `json:\"url,omitempty\"`\n\tVersion      *string      `json:\"version,omitempty\"`\n\tUser         *User        `json:\"user,omitempty\"`\n\tChangeStatus *CommitStats `json:\"change_status,omitempty\"`\n\tCommitedAt   *Timestamp   `json:\"commited_at,omitempty\"`\n}\n```\nGistCommit represents a commit on a gist.\n\n```go\nfunc (gc GistCommit) 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 GistFork struct {\n\tURL       *string    `json:\"url,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tID        *string    `json:\"id,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nGistFork represents a fork of a gist.\n\n```go\nfunc (gf GistFork) String() string\n```\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 service\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) GetRevision(id, sha string) (*Gist, *Response, error)\n```\nGetRevision gets a specific revision of a gist.\n\nGitHub API docs: [https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist](https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist)\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) ListCommits(id string) ([]*GistCommit, *Response, error)\n```\nListCommits lists commits of a gist.\n\nGithub API docs: [https://developer.github.com/v3/gists/#list-gist-commits](https://developer.github.com/v3/gists/#list-gist-commits)\n\n```go\nfunc (s *GistsService) ListForks(id string) ([]*GistFork, *Response, error)\n```\nListForks lists forks of a gist.\n\nGithub API docs: [https://developer.github.com/v3/gists/#list-gist-forks](https://developer.github.com/v3/gists/#list-gist-forks)\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 service\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: [https://developer.github.com/v3/git/blobs/#create-a-blob](https://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 service\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 GollumEvent struct {\n\tPages []*Page `json:\"pages,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nGollumEvent is triggered when a Wiki page is created or updated. The Webhook event name is \"gollum\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#gollumevent](https://developer.github.com/v3/activity/events/types/#gollumevent)\n\n```go\ntype Grant struct {\n\tID        *int              `json:\"id,omitempty\"`\n\tURL       *string           `json:\"url,omitempty\"`\n\tApp       *AuthorizationApp `json:\"app,omitempty\"`\n\tCreatedAt *Timestamp        `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp        `json:\"updated_at,omitempty\"`\n\tScopes    []string          `json:\"scopes,omitempty\"`\n}\n```\nGrant represents an OAuth application that has been granted access to an account.\n\n```go\nfunc (g Grant) String() string\n```\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\tURL       *string                `json:\"url,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 Import struct {\n\t// The URL of the originating repository.\n\tVCSURL *string `json:\"vcs_url,omitempty\"`\n\t// The originating VCS type. Can be one of 'subversion', 'git',\n\t// 'mercurial', or 'tfvc'. Without this parameter, the import job will\n\t// take additional time to detect the VCS type before beginning the\n\t// import. This detection step will be reflected in the response.\n\tVCS *string `json:\"vcs,omitempty\"`\n\t// VCSUsername and VCSPassword are only used for StartImport calls that\n\t// are importing a password-protected repository.\n\tVCSUsername *string `json:\"vcs_username,omitempty\"`\n\tVCSPassword *string `json:\"vcs_password,omitempty\"`\n\t// For a tfvc import, the name of the project that is being imported.\n\tTFVCProject *string `json:\"tfvc_project,omitempty\"`\n\n\t// Describes whether the import has been opted in or out of using Git\n\t// LFS. The value can be 'opt_in', 'opt_out', or 'undecided' if no\n\t// action has been taken.\n\tUseLFS *string `json:\"use_lfs,omitempty\"`\n\t// Describes whether files larger than 100MB were found during the\n\t// importing step.\n\tHasLargeFiles *bool `json:\"has_large_files,omitempty\"`\n\t// The total size in gigabytes of files larger than 100MB found in the\n\t// originating repository.\n\tLargeFilesSize *int `json:\"large_files_size,omitempty\"`\n\t// The total number of files larger than 100MB found in the originating\n\t// repository. To see a list of these files, call LargeFiles.\n\tLargeFilesCount *int `json:\"large_files_count,omitempty\"`\n\n\t// Identifies the current status of an import.  An import that does not\n\t// have errors will progress through these steps:\n\t//\n\t//     detecting - the \"detection\" step of the import is in progress\n\t//         because the request did not include a VCS parameter. The\n\t//         import is identifying the type of source control present at\n\t//         the URL.\n\t//     importing - the \"raw\" step of the import is in progress. This is\n\t//         where commit data is fetched from the original repository.\n\t//         The import progress response will include CommitCount (the\n\t//         total number of raw commits that will be imported) and\n\t//         Percent (0 - 100, the current progress through the import).\n\t//     mapping - the \"rewrite\" step of the import is in progress. This\n\t//         is where SVN branches are converted to Git branches, and\n\t//         where author updates are applied. The import progress\n\t//         response does not include progress information.\n\t//     pushing - the \"push\" step of the import is in progress. This is\n\t//         where the importer updates the repository on GitHub. The\n\t//         import progress response will include PushPercent, which is\n\t//         the percent value reported by git push when it is \"Writing\n\t//         objects\".\n\t//     complete - the import is complete, and the repository is ready\n\t//         on GitHub.\n\t//\n\t// If there are problems, you will see one of these in the status field:\n\t//\n\t//     auth_failed - the import requires authentication in order to\n\t//         connect to the original repository. Make an UpdateImport\n\t//         request, and include VCSUsername and VCSPassword.\n\t//     error - the import encountered an error. The import progress\n\t//         response will include the FailedStep and an error message.\n\t//         Contact GitHub support for more information.\n\t//     detection_needs_auth - the importer requires authentication for\n\t//         the originating repository to continue detection. Make an\n\t//         UpdatImport request, and include VCSUsername and\n\t//         VCSPassword.\n\t//     detection_found_nothing - the importer didn't recognize any\n\t//         source control at the URL.\n\t//     detection_found_multiple - the importer found several projects\n\t//         or repositories at the provided URL. When this is the case,\n\t//         the Import Progress response will also include a\n\t//         ProjectChoices field with the possible project choices as\n\t//         values. Make an UpdateImport request, and include VCS and\n\t//         (if applicable) TFVCProject.\n\tStatus        *string `json:\"status,omitempty\"`\n\tCommitCount   *int    `json:\"commit_count,omitempty\"`\n\tStatusText    *string `json:\"status_text,omitempty\"`\n\tAuthorsCount  *int    `json:\"authors_count,omitempty\"`\n\tPercent       *int    `json:\"percent,omitempty\"`\n\tPushPercent   *int    `json:\"push_percent,omitempty\"`\n\tURL           *string `json:\"url,omitempty\"`\n\tHTMLURL       *string `json:\"html_url,omitempty\"`\n\tAuthorsURL    *string `json:\"authors_url,omitempty\"`\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n\tMessage       *string `json:\"message,omitempty\"`\n\tFailedStep    *string `json:\"failed_step,omitempty\"`\n\n\t// Human readable display name, provided when the Import appears as\n\t// part of ProjectChoices.\n\tHumanName *string `json:\"human_name,omitempty\"`\n\n\t// When the importer finds several projects or repositories at the\n\t// provided URLs, this will identify the available choices.  Call\n\t// UpdateImport with the selected Import value.\n\tProjectChoices []Import `json:\"project_choices,omitempty\"`\n}\n```\nImport represents a repository import request.\n\n```go\nfunc (i Import) String() string\n```\n\n```go\ntype Issue struct {\n\tID               *int              `json:\"id,omitempty\"`\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\tPullRequestLinks *PullRequestLinks `json:\"pull_request,omitempty\"`\n\tRepository       *Repository       `json:\"repository,omitempty\"`\n\tReactions        *Reactions        `json:\"reactions,omitempty\"`\n\tAssignees        []*User           `json:\"assignees,omitempty\"`\n\n\t// TextMatches is only populated from search results that request text matches\n\t// See: search.go and https://developer.github.com/v3/search/#text-match-metadata\n\tTextMatches []TextMatch `json:\"text_matches,omitempty\"`\n}\n```\nIssue represents a GitHub issue on a repository.\n\n```go\nfunc (i Issue) String() string\n```\n\n```go\ntype IssueActivityEvent struct {\n\tAction *string `json:\"action,omitempty\"`\n\tIssue  *Issue  `json:\"issue,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nDEPRECATED: IssueActivityEvent represents the payload delivered by Issue webhook Use IssuesEvent instead.\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\tReactions *Reactions `json:\"reactions,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\tIssueURL  *string    `json:\"issue_url,omitempty\"`\n}\n```\nIssueComment represents a comment left on an issue.\n\n```go\nfunc (i IssueComment) String() string\n```\n\n```go\ntype IssueCommentEvent struct {\n\t// Action is the action that was performed on the comment.\n\t// Possible values are: \"created\", \"edited\", \"deleted\".\n\tAction  *string       `json:\"action,omitempty\"`\n\tIssue   *Issue        `json:\"issue,omitempty\"`\n\tComment *IssueComment `json:\"comment,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges *EditChange `json:\"changes,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\tSender  *User       `json:\"sender,omitempty\"`\n}\n```\nIssueCommentEvent is triggered when an issue comment is created on an issue or pull request. The Webhook event name is \"issue\\_comment\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#issuecommentevent](https://developer.github.com/v3/activity/events/types/#issuecommentevent)\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 Actor closed the issue.\n\t//       If the issue was closed by commit message, CommitID holds the SHA1 hash of the commit.\n\t//\n\t//     merged\n\t//       The Actor merged into master a branch containing a commit mentioning the issue.\n\t//       CommitID holds the SHA1 of the merge commit.\n\t//\n\t//     referenced\n\t//       The Actor committed to master a commit mentioning the issue in its commit message.\n\t//       CommitID holds the SHA1 of the commit.\n\t//\n\t//     reopened, locked, unlocked\n\t//       The Actor did that to the issue.\n\t//\n\t//     renamed\n\t//       The Actor changed the issue title from Rename.From to Rename.To.\n\t//\n\t//     mentioned\n\t//       Someone unspecified @mentioned the Actor [sic] in an issue comment body.\n\t//\n\t//     assigned, unassigned\n\t//       The Actor assigned the issue to or removed the assignment from the Assignee.\n\t//\n\t//     labeled, unlabeled\n\t//       The Actor added or removed the Label from the issue.\n\t//\n\t//     milestoned, demilestoned\n\t//       The Actor added or removed the issue from the Milestone.\n\t//\n\t//     subscribed, unsubscribed\n\t//       The Actor subscribed to or unsubscribed from notifications for an issue.\n\t//\n\t//     head_ref_deleted, head_ref_restored\n\t//       The pull request’s branch was deleted or restored.\n\t//\n\tEvent *string `json:\"event,omitempty\"`\n\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tIssue     *Issue     `json:\"issue,omitempty\"`\n\n\t// Only present on certain events; see above.\n\tAssignee  *User      `json:\"assignee,omitempty\"`\n\tCommitID  *string    `json:\"commit_id,omitempty\"`\n\tMilestone *Milestone `json:\"milestone,omitempty\"`\n\tLabel     *Label     `json:\"label,omitempty\"`\n\tRename    *Rename    `json:\"rename,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, all.  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// Creator filters issues based on their creator.\n\tCreator string `url:\"creator,omitempty\"`\n\n\t// Mentioned 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 \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues.  Possible values are: asc, desc.\n\t// Default is \"desc\".\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\tListOptions\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, all.  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 \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues.  Possible values are: asc, desc.\n\t// Default is \"desc\".\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\tAssignees *[]string `json:\"assignees,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 IssuesEvent struct {\n\t// Action is the action that was performed. Possible values are: \"assigned\",\n\t// \"unassigned\", \"labeled\", \"unlabeled\", \"opened\", \"closed\", \"reopened\", \"edited\".\n\tAction   *string `json:\"action,omitempty\"`\n\tIssue    *Issue  `json:\"issue,omitempty\"`\n\tAssignee *User   `json:\"assignee,omitempty\"`\n\tLabel    *Label  `json:\"label,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges *EditChange `json:\"changes,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\tSender  *User       `json:\"sender,omitempty\"`\n}\n```\nIssuesEvent is triggered when an issue is assigned, unassigned, labeled, unlabeled, opened, closed, or reopened. The Webhook event name is \"issues\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#issuesevent](https://developer.github.com/v3/activity/events/types/#issuesevent)\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 service\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) AddAssignees(owner, repo string, number int, assignees []string) (*Issue, *Response, error)\n```\nAddAssignees adds the provided GitHub users as assignees to the issue.\n\nGitHub API docs: [https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue](https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue)\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, repo, 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, 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) ListIssueTimeline(owner, repo string, number int, opt *ListOptions) ([]*Timeline, *Response, error)\n```\nListIssueTimeline lists events for the specified issue.\n\nGitHub API docs: [https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue](https://developer.github.com/v3/issues/timeline/#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) Lock(owner string, repo string, number int) (*Response, error)\n```\nLock an issue's conversation.\n\nGitHub API docs: [https://developer.github.com/v3/issues/#lock-an-issue](https://developer.github.com/v3/issues/#lock-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveAssignees(owner, repo string, number int, assignees []string) (*Issue, *Response, error)\n```\nRemoveAssignees removes the provided GitHub users as assignees from the issue.\n\nGitHub API docs: [https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue](https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue)\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\nfunc (s *IssuesService) Unlock(owner string, repo string, number int) (*Response, error)\n```\nUnlock an issue's conversation.\n\nGitHub API docs: [https://developer.github.com/v3/issues/#unlock-an-issue](https://developer.github.com/v3/issues/#unlock-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\tReadOnly *bool   `json:\"read_only,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 GitHub label on an Issue\n\n```go\nfunc (l Label) String() string\n```\n\n```go\ntype LargeFile struct {\n\tRefName *string `json:\"ref_name,omitempty\"`\n\tPath    *string `json:\"path,omitempty\"`\n\tOID     *string `json:\"oid,omitempty\"`\n\tSize    *int    `json:\"size,omitempty\"`\n}\n```\nLargeFile identifies a file larger than 100MB found during a repository import.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#get-large-files](https://developer.github.com/v3/migration/source_imports/#get-large-files)\n\n```go\nfunc (f LargeFile) String() string\n```\n\n```go\ntype License struct {\n\tKey  *string `json:\"key,omitempty\"`\n\tName *string `json:\"name,omitempty\"`\n\tURL  *string `json:\"url,omitempty\"`\n\n\tHTMLURL        *string   `json:\"html_url,omitempty\"`\n\tFeatured       *bool     `json:\"featured,omitempty\"`\n\tDescription    *string   `json:\"description,omitempty\"`\n\tCategory       *string   `json:\"category,omitempty\"`\n\tImplementation *string   `json:\"implementation,omitempty\"`\n\tRequired       *[]string `json:\"required,omitempty\"`\n\tPermitted      *[]string `json:\"permitted,omitempty\"`\n\tForbidden      *[]string `json:\"forbidden,omitempty\"`\n\tBody           *string   `json:\"body,omitempty\"`\n}\n```\nLicense represents an open source license.\n\n```go\nfunc (l License) String() string\n```\n\n```go\ntype LicensesService service\n```\nLicensesService handles communication with the license 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 *LicensesService) Get(licenseName string) (*License, *Response, error)\n```\nGet extended metadata for one license.\n\nGitHub API docs: [https://developer.github.com/v3/licenses/#get-an-individual-license](https://developer.github.com/v3/licenses/#get-an-individual-license)\n\n```go\nfunc (s *LicensesService) List() ([]*License, *Response, error)\n```\nList popular open source licenses.\n\nGitHub API docs: [https://developer.github.com/v3/licenses/#list-all-licenses](https://developer.github.com/v3/licenses/#list-all-licenses)\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\t// Role filters members returned by their role in the organization.\n\t// Possible values are:\n\t//     all - all members of the organization, regardless of role\n\t//     admin - organization owners\n\t//     member - non-organization members\n\t//\n\t// Default is \"all\".\n\tRole string `url:\"role,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 ListOrgMembershipsOptions struct {\n\t// Filter memberships to include only those with the specified state.\n\t// Possible values are: \"active\", \"pending\".\n\tState string `url:\"state,omitempty\"`\n\n\tListOptions\n}\n```\nListOrgMembershipsOptions specifies optional parameters to the OrganizationsService.ListOrgMemberships method.\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 Match struct {\n\tText    *string `json:\"text,omitempty\"`\n\tIndices []int   `json:\"indices,omitempty\"`\n}\n```\nMatch represents a single text match.\n\n```go\ntype MemberEvent struct {\n\t// Action is the action that was performed. Possible value is: \"added\".\n\tAction *string `json:\"action,omitempty\"`\n\tMember *User   `json:\"member,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nMemberEvent is triggered when a user is added as a collaborator to a repository. The Webhook event name is \"member\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#memberevent](https://developer.github.com/v3/activity/events/types/#memberevent)\n\n```go\ntype Membership struct {\n\tURL *string `json:\"url,omitempty\"`\n\n\t// State is the user's status within the organization or team.\n\t// Possible values are: \"active\", \"pending\"\n\tState *string `json:\"state,omitempty\"`\n\n\t// Role identifies the user's role within the organization or team.\n\t// Possible values for organization membership:\n\t//     member - non-owner organization member\n\t//     admin - organization owner\n\t//\n\t// Possible values for team membership are:\n\t//     member - a normal member of the team\n\t//     maintainer - a team maintainer. Able to add/remove other team\n\t//                  members, promote other team members to team\n\t//                  maintainer, and edit the team’s name and description\n\tRole *string `json:\"role,omitempty\"`\n\n\t// For organization membership, the API URL of the organization.\n\tOrganizationURL *string `json:\"organization_url,omitempty\"`\n\n\t// For organization membership, the organization the membership is for.\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\n\t// For organization membership, the user the membership is for.\n\tUser *User `json:\"user,omitempty\"`\n}\n```\nMembership represents the status of a user's membership in an organization or team.\n\n```go\nfunc (m Membership) String() string\n```\n\n```go\ntype MembershipEvent struct {\n\t// Action is the action that was performed. Possible values are: \"added\", \"removed\".\n\tAction *string `json:\"action,omitempty\"`\n\t// Scope is the scope of the membership. Possible value is: \"team\".\n\tScope  *string `json:\"scope,omitempty\"`\n\tMember *User   `json:\"member,omitempty\"`\n\tTeam   *Team   `json:\"team,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg    *Organization `json:\"organization,omitempty\"`\n\tSender *User         `json:\"sender,omitempty\"`\n}\n```\nMembershipEvent is triggered when a user is added or removed from a team. The Webhook event name is \"membership\".\n\nEvents of this type are not visible in timelines, they are only used to trigger organization webhooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#membershipevent](https://developer.github.com/v3/activity/events/types/#membershipevent)\n\n```go\ntype Migration struct {\n\tID   *int    `json:\"id,omitempty\"`\n\tGUID *string `json:\"guid,omitempty\"`\n\t// State is the current state of a migration.\n\t// Possible values are:\n\t//     \"pending\" which means the migration hasn't started yet,\n\t//     \"exporting\" which means the migration is in progress,\n\t//     \"exported\" which means the migration finished successfully, or\n\t//     \"failed\" which means the migration failed.\n\tState *string `json:\"state,omitempty\"`\n\t// LockRepositories indicates whether repositories are locked (to prevent\n\t// manipulation) while migrating data.\n\tLockRepositories *bool `json:\"lock_repositories,omitempty\"`\n\t// ExcludeAttachments indicates whether attachments should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeAttachments *bool         `json:\"exclude_attachments,omitempty\"`\n\tURL                *string       `json:\"url,omitempty\"`\n\tCreatedAt          *string       `json:\"created_at,omitempty\"`\n\tUpdatedAt          *string       `json:\"updated_at,omitempty\"`\n\tRepositories       []*Repository `json:\"repositories,omitempty\"`\n}\n```\nMigration represents a GitHub migration (archival).\n\n```go\nfunc (m Migration) String() string\n```\n\n```go\ntype MigrationOptions struct {\n\t// LockRepositories indicates whether repositories should be locked (to prevent\n\t// manipulation) while migrating data.\n\tLockRepositories bool\n\n\t// ExcludeAttachments indicates whether attachments should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeAttachments bool\n}\n```\nMigrationOptions specifies the optional parameters to Migration methods.\n\n```go\ntype MigrationService service\n```\nMigrationService provides access to the migration related functions in the GitHub API.\n\nGitHub API docs: [https://developer.github.com/v3/migration/](https://developer.github.com/v3/migration/)\n\n```go\nfunc (s *MigrationService) CancelImport(owner, repo string) (*Response, error)\n```\nCancelImport stops an import for a repository.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#cancel-an-import](https://developer.github.com/v3/migration/source_imports/#cancel-an-import)\n\n```go\nfunc (s *MigrationService) CommitAuthors(owner, repo string) ([]*SourceImportAuthor, *Response, error)\n```\nCommitAuthors gets the authors mapped from the original repository.\n\nEach type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username \"hubot\" into something like \"hubot \\\u003chubot@12341234-abab-fefe-8787-fedcba987654\u003e\".\n\nThis method and MapCommitAuthor allow you to provide correct Git author information.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#get-commit-authors](https://developer.github.com/v3/migration/source_imports/#get-commit-authors)\n\n```go\nfunc (s *MigrationService) DeleteMigration(org string, id int) (*Response, error)\n```\nDeleteMigration deletes a previous migration archive. id is the migration ID.\n\nGitHub API docs: [https://developer.github.com/v3/migration/migrations/#delete-a-migration-archive](https://developer.github.com/v3/migration/migrations/#delete-a-migration-archive)\n\n```go\nfunc (s *MigrationService) ImportProgress(owner, repo string) (*Import, *Response, error)\n```\nQueryImport queries for the status and progress of an ongoing repository import.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#get-import-progress](https://developer.github.com/v3/migration/source_imports/#get-import-progress)\n\n```go\nfunc (s *MigrationService) LargeFiles(owner, repo string) ([]*LargeFile, *Response, error)\n```\nLargeFiles lists files larger than 100MB found during the import.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#get-large-files](https://developer.github.com/v3/migration/source_imports/#get-large-files)\n\n```go\nfunc (s *MigrationService) ListMigrations(org string) ([]*Migration, *Response, error)\n```\nListMigrations lists the most recent migrations.\n\nGitHub API docs: [https://developer.github.com/v3/migration/migrations/#get-a-list-of-migrations](https://developer.github.com/v3/migration/migrations/#get-a-list-of-migrations)\n\n```go\nfunc (s *MigrationService) MapCommitAuthor(owner, repo string, id int, author *SourceImportAuthor) (*SourceImportAuthor, *Response, error)\n```\nMapCommitAuthor updates an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#map-a-commit-author](https://developer.github.com/v3/migration/source_imports/#map-a-commit-author)\n\n```go\nfunc (s *MigrationService) MigrationArchiveURL(org string, id int) (url string, err error)\n```\nMigrationArchiveURL fetches a migration archive URL. id is the migration ID.\n\nGitHub API docs: [https://developer.github.com/v3/migration/migrations/#download-a-migration-archive](https://developer.github.com/v3/migration/migrations/#download-a-migration-archive)\n\n```go\nfunc (s *MigrationService) MigrationStatus(org string, id int) (*Migration, *Response, error)\n```\nMigrationStatus gets the status of a specific migration archive. id is the migration ID.\n\nGitHub API docs: [https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration](https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration)\n\n```go\nfunc (s *MigrationService) SetLFSPreference(owner, repo string, in *Import) (*Import, *Response, error)\n```\nSetLFSPreference sets whether imported repositories should use Git LFS for files larger than 100MB.  Only the UseLFS field on the provided Import is used.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#set-git-lfs-preference](https://developer.github.com/v3/migration/source_imports/#set-git-lfs-preference)\n\n```go\nfunc (s *MigrationService) StartImport(owner, repo string, in *Import) (*Import, *Response, error)\n```\nStartImport initiates a repository import.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#start-an-import](https://developer.github.com/v3/migration/source_imports/#start-an-import)\n\n```go\nfunc (s *MigrationService) StartMigration(org string, repos []string, opt *MigrationOptions) (*Migration, *Response, error)\n```\nStartMigration starts the generation of a migration archive. repos is a slice of repository names to migrate.\n\nGitHub API docs: [https://developer.github.com/v3/migration/migrations/#start-a-migration](https://developer.github.com/v3/migration/migrations/#start-a-migration)\n\n```go\nfunc (s *MigrationService) UnlockRepo(org string, id int, repo string) (*Response, error)\n```\nUnlockRepo unlocks a repository that was locked for migration. id is the migration ID. You should unlock each migrated repository and delete them when the migration is complete and you no longer need the source data.\n\nGitHub API docs: [https://developer.github.com/v3/migration/migrations/#unlock-a-repository](https://developer.github.com/v3/migration/migrations/#unlock-a-repository)\n\n```go\nfunc (s *MigrationService) UpdateImport(owner, repo string, in *Import) (*Import, *Response, error)\n```\nUpdateImport initiates a repository import.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#update-existing-import](https://developer.github.com/v3/migration/source_imports/#update-existing-import)\n\n```go\ntype Milestone struct {\n\tURL          *string    `json:\"url,omitempty\"`\n\tHTMLURL      *string    `json:\"html_url,omitempty\"`\n\tLabelsURL    *string    `json:\"labels_url,omitempty\"`\n\tID           *int       `json:\"id,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\tClosedAt     *time.Time `json:\"closed_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\tListOptions\n}\n```\nMilestoneListOptions specifies the optional parameters to the IssuesService.ListMilestones method.\n\n```go\ntype NewPullRequest struct {\n\tTitle *string `json:\"title,omitempty\"`\n\tHead  *string `json:\"head,omitempty\"`\n\tBase  *string `json:\"base,omitempty\"`\n\tBody  *string `json:\"body,omitempty\"`\n\tIssue *int    `json:\"issue,omitempty\"`\n}\n```\nNewPullRequest represents a new pull request to be created.\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\tBefore        time.Time `url:\"before,omitempty\"`\n\n\tListOptions\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 OrganizationAddTeamMembershipOptions struct {\n\t// Role specifies the role the user should have in the team.  Possible\n\t// values are:\n\t//     member - a normal member of the team\n\t//     maintainer - a team maintainer. Able to add/remove other team\n\t//                  members, promote other team members to team\n\t//                  maintainer, and edit the team’s name and description\n\t//\n\t// Default value is \"member\".\n\tRole string `json:\"role,omitempty\"`\n}\n```\nOrganizationAddTeamMembershipOptions does stuff specifies the optional parameters to the OrganizationsService.AddTeamMembership method.\n\n```go\ntype OrganizationAddTeamRepoOptions struct {\n\t// Permission specifies the permission to grant the team on this repository.\n\t// Possible values are:\n\t//     pull - team members can pull, but not push to or administer this repository\n\t//     push - team members can pull and push, but not administer this repository\n\t//     admin - team members can pull, push and administer this repository\n\t//\n\t// If not specified, the team's permission attribute will be used.\n\tPermission string `json:\"permission,omitempty\"`\n}\n```\nOrganizationAddTeamRepoOptions specifies the optional parameters to the OrganizationsService.AddTeamRepo method.\n\n```go\ntype OrganizationListTeamMembersOptions struct {\n\t// Role filters members returned by their role in the team.  Possible\n\t// values are \"all\", \"member\", \"maintainer\".  Default is \"all\".\n\tRole string `url:\"role,omitempty\"`\n\n\tListOptions\n}\n```\nOrganizationListTeamMembersOptions specifies the optional parameters to the OrganizationsService.ListTeamMembers method.\n\n```go\ntype OrganizationsListOptions struct {\n\t// Since filters Organizations by ID.\n\tSince int `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nOrganizationsListOptions specifies the optional parameters to the OrganizationsService.ListAll method.\n\n```go\ntype OrganizationsService service\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) AddTeamMembership(team int, user string, opt *OrganizationAddTeamMembershipOptions) (*Membership, *Response, error)\n```\nAddTeamMembership adds or invites a user to a team.\n\nIn order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with.\n\nIf the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team.\n\nIf the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/teams/#add-team-membership](https://developer.github.com/v3/orgs/teams/#add-team-membership)\n\n```go\nfunc (s *OrganizationsService) AddTeamRepo(team int, owner string, repo string, opt *OrganizationAddTeamRepoOptions) (*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) CreateHook(org string, hook *Hook) (*Hook, *Response, error)\n```\nCreateHook creates a Hook for the specified org. Name and Config are required fields.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/hooks/#create-a-hook](https://developer.github.com/v3/orgs/hooks/#create-a-hook)\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) DeleteHook(org string, id int) (*Response, error)\n```\nDeleteHook deletes a specified Hook.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/hooks/#delete-a-hook](https://developer.github.com/v3/orgs/hooks/#delete-a-hook)\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) EditHook(org string, id int, hook *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/hooks/#edit-a-hook](https://developer.github.com/v3/orgs/hooks/#edit-a-hook)\n\n```go\nfunc (s *OrganizationsService) EditOrgMembership(user, org string, membership *Membership) (*Membership, *Response, error)\n```\nEditOrgMembership edits the membership for user in specified organization. Passing an empty string for user will edit the membership for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership](https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership) GitHub API docs: [https://developer.github.com/v3/orgs/members/#edit-your-organization-membership](https://developer.github.com/v3/orgs/members/#edit-your-organization-membership)\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) GetHook(org string, id int) (*Hook, *Response, error)\n```\nGetHook returns a single specified Hook.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/hooks/#get-single-hook](https://developer.github.com/v3/orgs/hooks/#get-single-hook)\n\n```go\nfunc (s *OrganizationsService) GetOrgMembership(user, org string) (*Membership, *Response, error)\n```\nGetOrgMembership gets the membership for a user in a specified organization. Passing an empty string for user will get the membership for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/members/#get-organization-membership](https://developer.github.com/v3/orgs/members/#get-organization-membership) GitHub API docs: [https://developer.github.com/v3/orgs/members/#get-your-organization-membership](https://developer.github.com/v3/orgs/members/#get-your-organization-membership)\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) GetTeamMembership(team int, user string) (*Membership, *Response, error)\n```\nGetTeamMembership returns the membership status for a user in a team.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/teams/#get-team-membership](https://developer.github.com/v3/orgs/teams/#get-team-membership)\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) (*Repository, *Response, error)\n```\nIsTeamRepo checks if a team manages the specified repository.  If the repository is managed by team, a Repository is returned which includes the permissions team has for that repo.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/teams/#check-if-a-team-manages-a-repository](https://developer.github.com/v3/orgs/teams/#check-if-a-team-manages-a-repository)\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) ListAll(opt *OrganizationsListOptions) ([]*Organization, *Response, error)\n```\nListAll lists all organizations, in the order that they were created on GitHub.\n\nNote: Pagination is powered exclusively by the since parameter. To continue listing the next set of organizations, use the ID of the last-returned organization as the opts.Since parameter for the next call.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/#list-all-organizations](https://developer.github.com/v3/orgs/#list-all-organizations)\n\n```go\nfunc (s *OrganizationsService) ListHooks(org string, opt *ListOptions) ([]*Hook, *Response, error)\n```\nListHooks lists all Hooks for the specified organization.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/hooks/#list-hooks](https://developer.github.com/v3/orgs/hooks/#list-hooks)\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) ListOrgMemberships(opt *ListOrgMembershipsOptions) ([]*Membership, *Response, error)\n```\nListOrgMemberships lists the organization memberships for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/members/#list-your-organization-memberships](https://developer.github.com/v3/orgs/members/#list-your-organization-memberships)\n\n```go\nfunc (s *OrganizationsService) ListTeamMembers(team int, opt *OrganizationListTeamMembersOptions) ([]*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) ListUserTeams(opt *ListOptions) ([]*Team, *Response, error)\n```\nListUserTeams lists a user's teams GitHub API docs: [https://developer.github.com/v3/orgs/teams/#list-user-teams](https://developer.github.com/v3/orgs/teams/#list-user-teams)\n\n```go\nfunc (s *OrganizationsService) PingHook(org string, id int) (*Response, error)\n```\nPingHook triggers a 'ping' event to be sent to the Hook.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/hooks/#ping-a-hook](https://developer.github.com/v3/orgs/hooks/#ping-a-hook)\n\n```go\nfunc (s *OrganizationsService) PublicizeMembership(org, user string) (*Response, error)\n```\nPublicizeMembership publicizes a user's membership in an organization. (A user cannot publicize the membership for another user.)\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) RemoveOrgMembership(user, org string) (*Response, error)\n```\nRemoveOrgMembership removes user from the specified organization.  If the user has been invited to the organization, this will cancel their invitation.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/members/#remove-organization-membership](https://developer.github.com/v3/orgs/members/#remove-organization-membership)\n\n```go\nfunc (s *OrganizationsService) RemoveTeamMembership(team int, user string) (*Response, error)\n```\nRemoveTeamMembership removes a user from a team.\n\nGitHub API docs: [https://developer.github.com/v3/orgs/teams/#remove-team-membership](https://developer.github.com/v3/orgs/teams/#remove-team-membership)\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 Page struct {\n\tPageName *string `json:\"page_name,omitempty\"`\n\tTitle    *string `json:\"title,omitempty\"`\n\tSummary  *string `json:\"summary,omitempty\"`\n\tAction   *string `json:\"action,omitempty\"`\n\tSHA      *string `json:\"sha,omitempty\"`\n\tHTMLURL  *string `json:\"html_url,omitempty\"`\n}\n```\nPage represents a single Wiki page.\n\n```go\ntype PageBuildEvent struct {\n\tBuild *PagesBuild `json:\"build,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tID     *int        `json:\"id,omitempty\"`\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nPageBuildEvent represents an attempted build of a GitHub Pages site, whether successful or not. The Webhook event name is \"page\\_build\".\n\nThis event is triggered on push to a GitHub Pages enabled branch (gh-pages for project pages, master for user and organization pages).\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#pagebuildevent](https://developer.github.com/v3/activity/events/types/#pagebuildevent)\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\tHTMLURL   *string `json:\"html_url,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 Protection struct {\n\tEnabled              *bool                 `json:\"enabled,omitempty\"`\n\tRequiredStatusChecks *RequiredStatusChecks `json:\"required_status_checks,omitempty\"`\n}\n```\nProtection represents a repository branch's protection\n\n```go\ntype PublicEvent struct {\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nPublicEvent is triggered when a private repository is open sourced. According to GitHub: \"Without a doubt: the best GitHub event.\" The Webhook event name is \"public\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#publicevent](https://developer.github.com/v3/activity/events/types/#publicevent)\n\n```go\ntype PullRequest struct {\n\tID           *int       `json:\"id,omitempty\"`\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\tURL          *string    `json:\"url,omitempty\"`\n\tHTMLURL      *string    `json:\"html_url,omitempty\"`\n\tIssueURL     *string    `json:\"issue_url,omitempty\"`\n\tStatusesURL  *string    `json:\"statuses_url,omitempty\"`\n\tDiffURL      *string    `json:\"diff_url,omitempty\"`\n\tPatchURL     *string    `json:\"patch_url,omitempty\"`\n\tAssignee     *User      `json:\"assignee,omitempty\"` // probably only in webhooks\n\n\tHead *PullRequestBranch `json:\"head,omitempty\"`\n\tBase *PullRequestBranch `json:\"base,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 PullRequestBranch struct {\n\tLabel *string     `json:\"label,omitempty\"`\n\tRef   *string     `json:\"ref,omitempty\"`\n\tSHA   *string     `json:\"sha,omitempty\"`\n\tRepo  *Repository `json:\"repo,omitempty\"`\n\tUser  *User       `json:\"user,omitempty\"`\n}\n```\nPullRequestBranch represents a base or head branch in a GitHub pull request.\n\n```go\ntype PullRequestComment struct {\n\tID               *int       `json:\"id,omitempty\"`\n\tInReplyTo        *int       `json:\"in_reply_to,omitempty\"`\n\tBody             *string    `json:\"body,omitempty\"`\n\tPath             *string    `json:\"path,omitempty\"`\n\tDiffHunk         *string    `json:\"diff_hunk,omitempty\"`\n\tPosition         *int       `json:\"position,omitempty\"`\n\tOriginalPosition *int       `json:\"original_position,omitempty\"`\n\tCommitID         *string    `json:\"commit_id,omitempty\"`\n\tOriginalCommitID *string    `json:\"original_commit_id,omitempty\"`\n\tUser             *User      `json:\"user,omitempty\"`\n\tReactions        *Reactions `json:\"reactions,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\tPullRequestURL   *string    `json:\"pull_request_url,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 PullRequestEvent struct {\n\t// Action is the action that was performed. Possible values are: \"assigned\",\n\t// \"unassigned\", \"labeled\", \"unlabeled\", \"opened\", \"closed\", or \"reopened\",\n\t// \"synchronize\", \"edited\". If the action is \"closed\" and the merged key is false,\n\t// the pull request was closed with unmerged commits. If the action is \"closed\"\n\t// and the merged key is true, the pull request was merged.\n\tAction      *string      `json:\"action,omitempty\"`\n\tNumber      *int         `json:\"number,omitempty\"`\n\tPullRequest *PullRequest `json:\"pull_request,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges *EditChange `json:\"changes,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\tSender  *User       `json:\"sender,omitempty\"`\n}\n```\nPullRequestEvent is triggered when a pull request is assigned, unassigned, labeled, unlabeled, opened, closed, reopened, or synchronized. The Webhook event name is \"pull\\_request\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#pullrequestevent](https://developer.github.com/v3/activity/events/types/#pullrequestevent)\n\n```go\ntype PullRequestLinks struct {\n\tURL      *string `json:\"url,omitempty\"`\n\tHTMLURL  *string `json:\"html_url,omitempty\"`\n\tDiffURL  *string `json:\"diff_url,omitempty\"`\n\tPatchURL *string `json:\"patch_url,omitempty\"`\n}\n```\nPullRequestLinks object is added to the Issue object when it's an issue included in the IssueCommentEvent webhook payload, if the webhooks is fired by a comment on a PR\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\tListOptions\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\t// Sort specifies how to sort pull requests. Possible values are: created,\n\t// updated, popularity, long-running. Default is \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort pull requests. Possible values are: asc, desc.\n\t// If Sort is \"created\" or not specified, Default is \"desc\", otherwise Default\n\t// is \"asc\"\n\tDirection string `url:\"direction,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 PullRequestOptions struct {\n\tSquash bool\n}\n```\nPullRequestOptions lets you define how a pull request will be merged.\n\n```go\ntype PullRequestReviewCommentEvent struct {\n\t// Action is the action that was performed on the comment.\n\t// Possible values are: \"created\", \"edited\", \"deleted\".\n\tAction      *string             `json:\"action,omitempty\"`\n\tPullRequest *PullRequest        `json:\"pull_request,omitempty\"`\n\tComment     *PullRequestComment `json:\"comment,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges *EditChange `json:\"changes,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\tSender  *User       `json:\"sender,omitempty\"`\n}\n```\nPullRequestReviewCommentEvent is triggered when a comment is created on a portion of the unified diff of a pull request. The Webhook event name is \"pull\\_request\\_review\\_comment\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#pullrequestreviewcommentevent](https://developer.github.com/v3/activity/events/types/#pullrequestreviewcommentevent)\n\n```go\ntype PullRequestsService service\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 *NewPullRequest) (*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/#create-a-comment](https://developer.github.com/v3/pulls/comments/#create-a-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) ([]*RepositoryCommit, *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, options *PullRequestOptions) (*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 represents 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:\"size,omitempty\"`\n\tCommits      []PushEventCommit    `json:\"commits,omitempty\"`\n\tRepo         *PushEventRepository `json:\"repository,omitempty\"`\n\tBefore       *string              `json:\"before,omitempty\"`\n\tDistinctSize *int                 `json:\"distinct_size,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tAfter      *string          `json:\"after,omitempty\"`\n\tCreated    *bool            `json:\"created,omitempty\"`\n\tDeleted    *bool            `json:\"deleted,omitempty\"`\n\tForced     *bool            `json:\"forced,omitempty\"`\n\tBaseRef    *string          `json:\"base_ref,omitempty\"`\n\tCompare    *string          `json:\"compare,omitempty\"`\n\tHeadCommit *PushEventCommit `json:\"head_commit,omitempty\"`\n\tPusher     *User            `json:\"pusher,omitempty\"`\n\tSender     *User            `json:\"sender,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\tMessage  *string       `json:\"message,omitempty\"`\n\tAuthor   *CommitAuthor `json:\"author,omitempty\"`\n\tURL      *string       `json:\"url,omitempty\"`\n\tDistinct *bool         `json:\"distinct,omitempty\"`\n\n\t// The following fields are only populated by Events API.\n\tSHA *string `json:\"sha,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tID        *string       `json:\"id,omitempty\"`\n\tTreeID    *string       `json:\"tree_id,omitempty\"`\n\tTimestamp *Timestamp    `json:\"timestamp,omitempty\"`\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n\tAdded     []string      `json:\"added,omitempty\"`\n\tRemoved   []string      `json:\"removed,omitempty\"`\n\tModified  []string      `json:\"modified,omitempty\"`\n}\n```\nPushEventCommit represents a git commit in a GitHub PushEvent.\n\n```go\nfunc (p PushEventCommit) String() string\n```\n\n```go\ntype PushEventRepoOwner struct {\n\tName  *string `json:\"name,omitempty\"`\n\tEmail *string `json:\"email,omitempty\"`\n}\n```\nPushEventRepoOwner is a basic reporesntation of user/org in a PushEvent payload\n\n```go\ntype PushEventRepository struct {\n\tID              *int                `json:\"id,omitempty\"`\n\tName            *string             `json:\"name,omitempty\"`\n\tFullName        *string             `json:\"full_name,omitempty\"`\n\tOwner           *PushEventRepoOwner `json:\"owner,omitempty\"`\n\tPrivate         *bool               `json:\"private,omitempty\"`\n\tDescription     *string             `json:\"description,omitempty\"`\n\tFork            *bool               `json:\"fork,omitempty\"`\n\tCreatedAt       *Timestamp          `json:\"created_at,omitempty\"`\n\tPushedAt        *Timestamp          `json:\"pushed_at,omitempty\"`\n\tUpdatedAt       *Timestamp          `json:\"updated_at,omitempty\"`\n\tHomepage        *string             `json:\"homepage,omitempty\"`\n\tSize            *int                `json:\"size,omitempty\"`\n\tStargazersCount *int                `json:\"stargazers_count,omitempty\"`\n\tWatchersCount   *int                `json:\"watchers_count,omitempty\"`\n\tLanguage        *string             `json:\"language,omitempty\"`\n\tHasIssues       *bool               `json:\"has_issues,omitempty\"`\n\tHasDownloads    *bool               `json:\"has_downloads,omitempty\"`\n\tHasWiki         *bool               `json:\"has_wiki,omitempty\"`\n\tHasPages        *bool               `json:\"has_pages,omitempty\"`\n\tForksCount      *int                `json:\"forks_count,omitempty\"`\n\tOpenIssuesCount *int                `json:\"open_issues_count,omitempty\"`\n\tDefaultBranch   *string             `json:\"default_branch,omitempty\"`\n\tMasterBranch    *string             `json:\"master_branch,omitempty\"`\n\tOrganization    *string             `json:\"organization,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tURL     *string `json:\"url,omitempty\"`\n\tHTMLURL *string `json:\"html_url,omitempty\"`\n}\n```\nPushEventRepository represents the repo object in a PushEvent payload\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 RateLimitError struct {\n\tRate     Rate           // Rate specifies last known rate limit for the client\n\tResponse *http.Response // HTTP response that caused this error\n\tMessage  string         `json:\"message\"` // error message\n}\n```\nRateLimitError occurs when GitHub returns 403 Forbidden response with a rate limit remaining value of 0, and error message starts with \"API rate limit exceeded for \".\n\n```go\nfunc (r *RateLimitError) Error() 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\t//\n\t// GitHub API docs: https://developer.github.com/v3/#rate-limiting\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 Reaction struct {\n\t// ID is the Reaction ID.\n\tID   *int  `json:\"id,omitempty\"`\n\tUser *User `json:\"user,omitempty\"`\n\t// Content is the type of reaction.\n\t// Possible values are:\n\t//     \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\".\n\tContent *string `json:\"content,omitempty\"`\n}\n```\nReaction represents a GitHub reaction.\n\n```go\nfunc (r Reaction) String() string\n```\n\n```go\ntype Reactions struct {\n\tTotalCount *int    `json:\"total_count,omitempty\"`\n\tPlusOne    *int    `json:\"+1,omitempty\"`\n\tMinusOne   *int    `json:\"-1,omitempty\"`\n\tLaugh      *int    `json:\"laugh,omitempty\"`\n\tConfused   *int    `json:\"confused,omitempty\"`\n\tHeart      *int    `json:\"heart,omitempty\"`\n\tHooray     *int    `json:\"hooray,omitempty\"`\n\tURL        *string `json:\"url,omitempty\"`\n}\n```\nReactions represents a summary of GitHub reactions.\n\n```go\ntype ReactionsService service\n```\nReactionsService provides access to the reactions-related functions in the GitHub API.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/](https://developer.github.com/v3/reactions/)\n\n```go\nfunc (s ReactionsService) CreateCommentReaction(owner, repo string, id int, content string) (*Reaction, *Response, error)\n```\nCreateCommentReaction creates a reaction for a commit comment. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment](https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment)\n\n```go\nfunc (s ReactionsService) CreateIssueCommentReaction(owner, repo string, id int, content string) (*Reaction, *Response, error)\n```\nCreateIssueCommentReaction creates a reaction for an issue comment. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment](https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment)\n\n```go\nfunc (s ReactionsService) CreateIssueReaction(owner, repo string, number int, content string) (*Reaction, *Response, error)\n```\nCreateIssueReaction creates a reaction for an issue. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#create-reaction-for-an-issue](https://developer.github.com/v3/reactions/#create-reaction-for-an-issue)\n\n```go\nfunc (s ReactionsService) CreatePullRequestCommentReaction(owner, repo string, id int, content string) (*Reaction, *Response, error)\n```\nCreatePullRequestCommentReaction creates a reaction for a pull request review comment. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment](https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment)\n\n```go\nfunc (s *ReactionsService) DeleteReaction(id int) (*Response, error)\n```\nDeleteReaction deletes a reaction.\n\nGitHub API docs: [https://developer.github.com/v3/reaction/reactions/#delete-a-reaction-archive](https://developer.github.com/v3/reaction/reactions/#delete-a-reaction-archive)\n\n```go\nfunc (s *ReactionsService) ListCommentReactions(owner, repo string, id int, opt *ListOptions) ([]*Reaction, *Response, error)\n```\nListCommentReactions lists the reactions for a commit comment.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment](https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment)\n\n```go\nfunc (s *ReactionsService) ListIssueCommentReactions(owner, repo string, id int, opt *ListOptions) ([]*Reaction, *Response, error)\n```\nListIssueCommentReactions lists the reactions for an issue comment.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment](https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment)\n\n```go\nfunc (s *ReactionsService) ListIssueReactions(owner, repo string, number int, opt *ListOptions) ([]*Reaction, *Response, error)\n```\nListIssueReactions lists the reactions for an issue.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#list-reactions-for-an-issue](https://developer.github.com/v3/reactions/#list-reactions-for-an-issue)\n\n```go\nfunc (s *ReactionsService) ListPullRequestCommentReactions(owner, repo string, id int, opt *ListOptions) ([]*Reaction, *Response, error)\n```\nListPullRequestCommentReactions lists the reactions for a pull request review comment.\n\nGitHub API docs: [https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment](https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment)\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\tBrowserDownloadURL *string    `json:\"browser_download_url,omitempty\"`\n\tUploader           *User      `json:\"uploader,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 ReleaseEvent struct {\n\t// Action is the action that was performed. Possible value is: \"published\".\n\tAction  *string            `json:\"action,omitempty\"`\n\tRelease *RepositoryRelease `json:\"release,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nReleaseEvent is triggered when a release is published. The Webhook event name is \"release\".\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#releaseevent](https://developer.github.com/v3/activity/events/types/#releaseevent)\n\n```go\ntype Rename struct {\n\tFrom *string `json:\"from,omitempty\"`\n\tTo   *string `json:\"to,omitempty\"`\n}\n```\nRename contains details for 'renamed' events.\n\n```go\nfunc (r Rename) String() string\n```\n\n```go\ntype RepoStatus struct {\n\tID  *int    `json:\"id,omitempty\"`\n\tURL *string `json:\"url,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 service\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, opt *RepositoryAddCollaboratorOptions) (*Response, error)\n```\nAddCollaborator adds the specified Github user as collaborator to the given repo.\n\nGitHub API docs: [https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator](https://developer.github.com/v3/repos/collaborators/#add-user-as-a-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) CreateDeployment(owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error)\n```\nCreateDeployment creates a new deployment for a repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/deployments/#create-a-deployment](https://developer.github.com/v3/repos/deployments/#create-a-deployment)\n\n```go\nfunc (s *RepositoriesService) CreateDeploymentStatus(owner, repo string, deployment int, request *DeploymentStatusRequest) (*DeploymentStatus, *Response, error)\n```\nCreateDeploymentStatus creates a new status for a deployment.\n\nGitHub API docs: [https://developer.github.com/v3/repos/deployments/#create-a-deployment-status](https://developer.github.com/v3/repos/deployments/#create-a-deployment-status)\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) DeleteInvitation(repoID, invitationID int) (*Response, error)\n```\nDeleteInvitation deletes a repository invitation.\n\nGitHub API docs: [https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation](https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation)\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) DownloadContents(owner, repo, filepath string, opt *RepositoryContentGetOptions) (io.ReadCloser, error)\n```\nDownloadContents returns an io.ReadCloser that reads the contents of the specified file. This function will work with files of any size, as opposed to GetContents which is limited to 1 Mb files. It is the caller's responsibility to close the ReadCloser.\n\n```go\nfunc (s *RepositoriesService) DownloadReleaseAsset(owner, repo string, id int) (rc io.ReadCloser, redirectURL string, err error)\n```\nDownloadReleaseAsset downloads a release asset or returns a redirect URL.\n\nDownloadReleaseAsset returns an io.ReadCloser that reads the contents of the specified release asset. It is the caller's responsibility to close the ReadCloser. If a redirect is returned, the redirect URL will be returned as a string instead of the io.ReadCloser. Exactly one of rc and redirectURL will be zero.\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) 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) EditBranch(owner, repo, branchName string, branch *Branch) (*Branch, *Response, error)\n```\nEditBranch edits the branch (currently only Branch Protection)\n\nGitHub API docs: [https://developer.github.com/v3/repos/#enabling-and-disabling-branch-protection](https://developer.github.com/v3/repos/#enabling-and-disabling-branch-protection)\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) GetByID(id int) (*Repository, *Response, error)\n```\nGetByID fetches a repository.\n\nNote: GetByID uses the undocumented GitHub API endpoint /repositories/:id.\n\n```go\nfunc (s *RepositoriesService) GetCombinedStatus(owner, repo, ref string, opt *ListOptions) (*CombinedStatus, *Response, error)\n```\nGetCombinedStatus returns the combined status of a repository at the specified reference.  ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref](https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref)\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) GetCommitSHA1(owner, repo, ref, lastSHA string) (string, *Response, error)\n```\nGetCommitSHA1 gets the SHA-1 of a commit reference.  If a last-known SHA1 is supplied and no new commits have occurred, a 304 Unmodified response is returned.\n\nGitHub API docs: [https://developer.github.com/v3/repos/commits/#get-the-sha-1-of-a-commit-reference](https://developer.github.com/v3/repos/commits/#get-the-sha-1-of-a-commit-reference)\n\n```go\nfunc (s *RepositoriesService) GetContents(owner, repo, path string, opt *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*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) GetLatestRelease(owner, repo string) (*RepositoryRelease, *Response, error)\n```\nGetLatestRelease fetches the latest published release for the repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/releases/#get-the-latest-release](https://developer.github.com/v3/repos/releases/#get-the-latest-release)\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) GetReleaseByTag(owner, repo, tag string) (*RepositoryRelease, *Response, error)\n```\nGetReleaseByTag fetches a release with the specified tag.\n\nGitHub API docs: [https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name](https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name)\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) License(owner, repo string) (*License, *Response, error)\n```\nLicense gets the contents of a repository's license if one is detected.\n\nGitHub API docs: [https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license](https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license)\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 additions 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) ListDeploymentStatuses(owner, repo string, deployment int, opt *ListOptions) ([]*DeploymentStatus, *Response, error)\n```\nListDeploymentStatuses lists the statuses of a given deployment of a repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/deployments/#list-deployment-statuses](https://developer.github.com/v3/repos/deployments/#list-deployment-statuses)\n\n```go\nfunc (s *RepositoriesService) ListDeployments(owner, repo string, opt *DeploymentsListOptions) ([]*Deployment, *Response, error)\n```\nListDeployments lists the deployments of a repository.\n\nGitHub API docs: [https://developer.github.com/v3/repos/deployments/#list-deployments](https://developer.github.com/v3/repos/deployments/#list-deployments)\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) ListInvitations(repoID int, opt *ListOptions) ([]*RepositoryInvitation, *Response, error)\n```\nListInvitations lists all currently-open repository invitations.\n\nGitHub API docs: [https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository](https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository)\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 is deprecated.  Use Client.ListServiceHooks instead.\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) PingHook(owner, repo string, id int) (*Response, error)\n```\nPingHook triggers a 'ping' event to be sent to the Hook.\n\nGitHub API docs: [https://developer.github.com/v3/repos/hooks/#ping-a-hook](https://developer.github.com/v3/repos/hooks/#ping-a-hook)\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) RequestPageBuild(owner string, repo string) (*PagesBuild, *Response, error)\n```\nRequestPageBuild requests a build of a GitHub Pages site without needing to push new commit.\n\nGitHub API docs: [https://developer.github.com/v3/repos/pages/#request-a-page-build](https://developer.github.com/v3/repos/pages/#request-a-page-build)\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) UpdateInvitation(repoID, invitationID int, permissions string) (*RepositoryInvitation, *Response, error)\n```\nUpdateInvitation updates the permissions associated with a repository invitation.\n\npermissions represents the permissions that the associated user will have on the repository. Possible values are: \"read\", \"write\", \"admin\".\n\nGitHub API docs: [https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation](https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation)\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\tAutoInit         *bool            `json:\"auto_init,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// Only provided when using RepositoriesService.Get while in preview\n\tLicense *License `json:\"license,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\t// Creating an organization repository. Required for non-owners.\n\tTeamID *int `json:\"team_id\"`\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\t// TextMatches is only populated from search results that request text matches\n\t// See: search.go and https://developer.github.com/v3/search/#text-match-metadata\n\tTextMatches []TextMatch `json:\"text_matches,omitempty\"`\n}\n```\nRepository represents a GitHub repository.\n\n```go\nfunc (r Repository) String() string\n```\n\n```go\ntype RepositoryAddCollaboratorOptions struct {\n\t// Permission specifies the permission to grant the user on this repository.\n\t// Possible values are:\n\t//     pull - team members can pull, but not push to or administer this repository\n\t//     push - team members can pull and push, but not administer this repository\n\t//     admin - team members can pull, push and administer this repository\n\t//\n\t// Default value is \"push\".  This option is only valid for organization-owned repositories.\n\tPermission string `json:\"permission,omitempty\"`\n}\n```\nRepositoryAddCollaboratorOptions specifies the optional parameters to the RepositoriesService.AddCollaborator method.\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\tReactions *Reactions `json:\"reactions,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\tHTMLURL   *string  `json:\"html_url,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\t// Content contains the actual file content, which may be encoded.\n\t// Callers should call GetContent which will decode the content if\n\t// necessary.\n\tContent     *string `json:\"content,omitempty\"`\n\tSHA         *string `json:\"sha,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\tGitURL      *string `json:\"git_url,omitempty\"`\n\tHTMLURL     *string `json:\"html_url,omitempty\"`\n\tDownloadURL *string `json:\"download_url,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\nDeprecated: Use GetContent instead.\n\n```go\nfunc (r *RepositoryContent) GetContent() (string, error)\n```\nGetContent returns the content of r, decoding it if necessary.\n\n```go\nfunc (r RepositoryContent) String() string\n```\nString converts RepositoryContent to a string. It's primarily for testing.\n\n```go\ntype RepositoryContentFileOptions struct {\n\tMessage   *string       `json:\"message,omitempty\"`\n\tContent   []byte        `json:\"content,omitempty\"` // unencoded\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 RepositoryEvent struct {\n\t// Action is the action that was performed. Possible values are: \"created\", \"deleted\",\n\t// \"publicized\", \"privatized\".\n\tAction *string     `json:\"action,omitempty\"`\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg    *Organization `json:\"organization,omitempty\"`\n\tSender *User         `json:\"sender,omitempty\"`\n}\n```\nRepositoryEvent is triggered when a repository is created. The Webhook event name is \"repository\".\n\nEvents of this type are not visible in timelines, they are only used to trigger organization webhooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#repositoryevent](https://developer.github.com/v3/activity/events/types/#repositoryevent)\n\n```go\ntype RepositoryInvitation struct {\n\tID      *int        `json:\"id,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\tInvitee *User       `json:\"invitee,omitempty\"`\n\tInviter *User       `json:\"inviter,omitempty\"`\n\n\t// Permissions represents the permissions that the associated user will have\n\t// on the repository. Possible values are: \"read\", \"write\", \"admin\".\n\tPermissions *string    `json:\"permissions,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tURL         *string    `json:\"url,omitempty\"`\n\tHTMLURL     *string    `json:\"html_url,omitempty\"`\n}\n```\nRepositoryInvitation represents an invitation to collaborate on a repo.\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\tListOptions\n}\n```\nRepositoryListForksOptions specifies the optional parameters to the RepositoriesService.ListForks method.\n\n```go\ntype RepositoryListOptions struct {\n\t// Visibility of repositories to list. Can be one of all, public, or private.\n\t// Default: all\n\tVisibility string `url:\"visibility,omitempty\"`\n\n\t// List repos of given affiliation[s].\n\t// Comma-separated list of values. Can include:\n\t// * owner: Repositories that are owned by the authenticated user.\n\t// * collaborator: Repositories that the user has been added to as a\n\t//   collaborator.\n\t// * organization_member: Repositories that the user has access to through\n\t//   being a member of an organization. This includes every repository on\n\t//   every team that the user is on.\n\t// Default: owner,collaborator,organization_member\n\tAffiliation string `url:\"affiliation,omitempty\"`\n\n\t// Type of repositories to list.\n\t// Can be one of all, owner, public, private, member. Default: all\n\t// Will cause a 422 error if used in the same request as visibility or\n\t// affiliation.\n\tType string `url:\"type,omitempty\"`\n\n\t// How to sort the repository list. Can be one of created, updated, pushed,\n\t// full_name. Default: full_name\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories. Can be one of asc or desc.\n\t// Default: when using full_name: asc; otherwise 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\tAssets          []ReleaseAsset `json:\"assets,omitempty\"`\n\tUploadURL       *string        `json:\"upload_url,omitempty\"`\n\tZipballURL      *string        `json:\"zipball_url,omitempty\"`\n\tTarballURL      *string        `json:\"tarball_url,omitempty\"`\n\tAuthor          *CommitAuthor  `json:\"author,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 RequiredStatusChecks struct {\n\t// Who required status checks apply to.\n\t// Possible values are:\n\t//     off\n\t//     non_admins\n\t//     everyone\n\tEnforcementLevel *string `json:\"enforcement_level,omitempty\"`\n\t// The list of status checks which are required\n\tContexts *[]string `json:\"contexts,omitempty\"`\n}\n```\nRequiredStatusChecks represents the protection status of a individual branch\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 Scope string\n```\nScope models a GitHub authorization scope.\n\nGitHub API docs:[https://developer.github.com/v3/oauth/#scopes](https://developer.github.com/v3/oauth/#scopes)\n\n```go\nconst (\n\tScopeNone           Scope = \"(no scope)\" // REVISIT: is this actually returned, or just a documentation artifact?\n\tScopeUser           Scope = \"user\"\n\tScopeUserEmail      Scope = \"user:email\"\n\tScopeUserFollow     Scope = \"user:follow\"\n\tScopePublicRepo     Scope = \"public_repo\"\n\tScopeRepo           Scope = \"repo\"\n\tScopeRepoDeployment Scope = \"repo_deployment\"\n\tScopeRepoStatus     Scope = \"repo:status\"\n\tScopeDeleteRepo     Scope = \"delete_repo\"\n\tScopeNotifications  Scope = \"notifications\"\n\tScopeGist           Scope = \"gist\"\n\tScopeReadRepoHook   Scope = \"read:repo_hook\"\n\tScopeWriteRepoHook  Scope = \"write:repo_hook\"\n\tScopeAdminRepoHook  Scope = \"admin:repo_hook\"\n\tScopeAdminOrgHook   Scope = \"admin:org_hook\"\n\tScopeReadOrg        Scope = \"read:org\"\n\tScopeWriteOrg       Scope = \"write:org\"\n\tScopeAdminOrg       Scope = \"admin:org\"\n\tScopeReadPublicKey  Scope = \"read:public_key\"\n\tScopeWritePublicKey Scope = \"write:public_key\"\n\tScopeAdminPublicKey Scope = \"admin:public_key\"\n\tScopeReadGPGKey     Scope = \"read:gpg_key\"\n\tScopeWriteGPGKey    Scope = \"write:gpg_key\"\n\tScopeAdminGPGKey    Scope = \"admin:gpg_key\"\n)\n```\nThis is the set of scopes for GitHub API V3\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\t// Whether to retrieve text match metadata with a query\n\tTextMatch bool `url:\"-\"`\n\n\tListOptions\n}\n```\nSearchOptions specifies optional parameters to the SearchService methods.\n\n```go\ntype SearchService service\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 SignatureVerification struct {\n\tVerified  *bool   `json:\"verified,omitempty\"`\n\tReason    *string `json:\"reason,omitempty\"`\n\tSignature *string `json:\"signature,omitempty\"`\n\tPayload   *string `json:\"payload,omitempty\"`\n}\n```\nSignatureVerification represents GPG signature verification.\n\n```go\ntype Source struct {\n\tID    *int    `json:\"id,omitempty\"`\n\tURL   *string `json:\"url,omitempty\"`\n\tActor *User   `json:\"actor,omitempty\"`\n}\n```\nSource represents a reference's source.\n\n```go\ntype SourceImportAuthor struct {\n\tID         *int    `json:\"id,omitempty\"`\n\tRemoteID   *string `json:\"remote_id,omitempty\"`\n\tRemoteName *string `json:\"remote_name,omitempty\"`\n\tEmail      *string `json:\"email,omitempty\"`\n\tName       *string `json:\"name,omitempty\"`\n\tURL        *string `json:\"url,omitempty\"`\n\tImportURL  *string `json:\"import_url,omitempty\"`\n}\n```\nSourceImportAuthor identifies an author imported from a source repository.\n\nGitHub API docs: [https://developer.github.com/v3/migration/source\\_imports/#get-commit-authors](https://developer.github.com/v3/migration/source_imports/#get-commit-authors)\n\n```go\nfunc (a SourceImportAuthor) String() string\n```\n\n```go\ntype Stargazer struct {\n\tStarredAt *Timestamp `json:\"starred_at,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n}\n```\nStargazer represents a user that has starred a repository.\n\n```go\ntype StarredRepository struct {\n\tStarredAt  *Timestamp  `json:\"starred_at,omitempty\"`\n\tRepository *Repository `json:\"repo,omitempty\"`\n}\n```\nStarredRepository is returned by ListStarred.\n\n```go\ntype StatusEvent struct {\n\tSHA *string `json:\"sha,omitempty\"`\n\t// State is the new state. Possible values are: \"pending\", \"success\", \"failure\", \"error\".\n\tState       *string   `json:\"state,omitempty\"`\n\tDescription *string   `json:\"description,omitempty\"`\n\tTargetURL   *string   `json:\"target_url,omitempty\"`\n\tBranches    []*Branch `json:\"branches,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tID        *int             `json:\"id,omitempty\"`\n\tName      *string          `json:\"name,omitempty\"`\n\tContext   *string          `json:\"context,omitempty\"`\n\tCommit    *PushEventCommit `json:\"commit,omitempty\"`\n\tCreatedAt *Timestamp       `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp       `json:\"updated_at,omitempty\"`\n\tRepo      *Repository      `json:\"repository,omitempty\"`\n\tSender    *User            `json:\"sender,omitempty\"`\n}\n```\nStatusEvent is triggered when the status of a Git commit changes. The Webhook event name is \"status\".\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#statusevent](https://developer.github.com/v3/activity/events/types/#statusevent)\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\tVerification *SignatureVerification `json:\"verification,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\tDescription *string `json:\"description,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\tSlug        *string `json:\"slug,omitempty\"`\n\n\t// Permission is deprecated when creating or editing a team in an org\n\t// using the new GitHub permission model.  It no longer identifies the\n\t// permission a team has on its repos, but only specifies the default\n\t// permission a repo is initially added with.  Avoid confusion by\n\t// specifying a permission value when calling AddTeamRepo.\n\tPermission *string `json:\"permission,omitempty\"`\n\n\t// Privacy identifies the level of privacy this team should have.\n\t// Possible values are:\n\t//     secret - only visible to organization owners and members of this team\n\t//     closed - visible to all members of this organization\n\t// Default is \"secret\".\n\tPrivacy *string `json:\"privacy,omitempty\"`\n\n\tMembersCount    *int          `json:\"members_count,omitempty\"`\n\tReposCount      *int          `json:\"repos_count,omitempty\"`\n\tOrganization    *Organization `json:\"organization,omitempty\"`\n\tMembersURL      *string       `json:\"members_url,omitempty\"`\n\tRepositoriesURL *string       `json:\"repositories_url,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 TeamAddEvent struct {\n\tTeam *Team       `json:\"team,omitempty\"`\n\tRepo *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg    *Organization `json:\"organization,omitempty\"`\n\tSender *User         `json:\"sender,omitempty\"`\n}\n```\nTeamAddEvent is triggered when a repository is added to a team. The Webhook event name is \"team\\_add\".\n\nEvents of this type are not visible in timelines. These events are only used to trigger hooks.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#teamaddevent](https://developer.github.com/v3/activity/events/types/#teamaddevent)\n\n```go\ntype TextMatch struct {\n\tObjectURL  *string `json:\"object_url,omitempty\"`\n\tObjectType *string `json:\"object_type,omitempty\"`\n\tProperty   *string `json:\"property,omitempty\"`\n\tFragment   *string `json:\"fragment,omitempty\"`\n\tMatches    []Match `json:\"matches,omitempty\"`\n}\n```\nTextMatch represents a text match for a SearchResult\n\n```go\nfunc (tm TextMatch) String() string\n```\n\n```go\ntype Timeline struct {\n\tID        *int    `json:\"id,omitempty\"`\n\tURL       *string `json:\"url,omitempty\"`\n\tCommitURL *string `json:\"commit_url,omitempty\"`\n\n\t// The User object that generated the event.\n\tActor *User `json:\"actor,omitempty\"`\n\n\t// Event identifies the actual type of Event that occurred. Possible values\n\t// are:\n\t//\n\t//     assigned\n\t//       The issue was assigned to the assignee.\n\t//\n\t//     closed\n\t//       The issue was closed by the actor. When the commit_id is present, it\n\t//       identifies the commit that closed the issue using \"closes / fixes #NN\"\n\t//       syntax.\n\t//\n\t//     commented\n\t//       A comment was added to the issue.\n\t//\n\t//     committed\n\t//       A commit was added to the pull request's 'HEAD' branch. Only provided\n\t//       for pull requests.\n\t//\n\t//     cross-referenced\n\t//       The issue was referenced from another issue. The 'source' attribute\n\t//       contains the 'id', 'actor', and 'url' of the reference's source.\n\t//\n\t//     demilestoned\n\t//       The issue was removed from a milestone.\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\t//\n\t//     labeled\n\t//       A label was added to the issue.\n\t//\n\t//     locked\n\t//       The issue was locked by the actor.\n\t//\n\t//     mentioned\n\t//       The actor was @mentioned in an issue body.\n\t//\n\t//     merged\n\t//       The issue was merged by the actor. The 'commit_id' attribute is the\n\t//       SHA1 of the HEAD commit that was merged.\n\t//\n\t//     milestoned\n\t//       The issue was added to a milestone.\n\t//\n\t//     referenced\n\t//       The issue was referenced from a commit message. The 'commit_id'\n\t//       attribute is the commit SHA1 of where that happened.\n\t//\n\t//     renamed\n\t//       The issue title was changed.\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//     unassigned\n\t//       The assignee was unassigned from the issue.\n\t//\n\t//     unlabeled\n\t//       A label was removed from the issue.\n\t//\n\t//     unlocked\n\t//       The issue was unlocked by the actor.\n\t//\n\t//     unsubscribed\n\t//       The actor unsubscribed to stop receiving notifications for an issue.\n\t//\n\tEvent *string `json:\"event,omitempty\"`\n\n\t// The string SHA of a commit that referenced this Issue or Pull Request.\n\tCommitID *string `json:\"commit_id,omitempty\"`\n\t// The timestamp indicating when the event occurred.\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\t// The Label object including `name` and `color` attributes. Only provided for\n\t// 'labeled' and 'unlabeled' events.\n\tLabel *Label `json:\"label,omitempty\"`\n\t// The User object which was assigned to (or unassigned from) this Issue or\n\t// Pull Request. Only provided for 'assigned' and 'unassigned' events.\n\tAssignee *User `json:\"assignee,omitempty\"`\n\t// The Milestone object including a 'title' attribute.\n\t// Only provided for 'milestoned' and 'demilestoned' events.\n\tMilestone *Milestone `json:\"milestone,omitempty\"`\n\t// The 'id', 'actor', and 'url' for the source of a reference from another issue.\n\t// Only provided for 'cross-referenced' events.\n\tSource *Source `json:\"source,omitempty\"`\n\t// An object containing rename details including 'from' and 'to' attributes.\n\t// Only provided for 'renamed' events.\n\tRename *Rename `json:\"rename,omitempty\"`\n}\n```\nTimeline represents an event that occurred around an Issue or Pull Request.\n\nIt is similar to an IssueEvent but may contain more information. GitHub API docs: [https://developer.github.com/v3/issues/timeline/](https://developer.github.com/v3/issues/timeline/)\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\tContent *string `json:\"content,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 TwoFactorAuthError ErrorResponse\n```\nTwoFactorAuthError occurs when using HTTP Basic Authentication for a user that has two-factor authentication enabled.  The request can be reattempted by providing a one-time password in the request.\n\n```go\nfunc (r *TwoFactorAuthError) Error() 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\tSuspendedAt       *Timestamp `json:\"suspended_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\t// TextMatches is only populated from search results that request text matches\n\t// See: search.go and https://developer.github.com/v3/search/#text-match-metadata\n\tTextMatches []TextMatch `json:\"text_matches,omitempty\"`\n\n\t// Permissions identifies the permissions that a user has on a given\n\t// repository. This is only populated when calling Repositories.ListCollaborators.\n\tPermissions *map[string]bool `json:\"permissions,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\tListOptions\n}\n```\nUserListOptions specifies optional parameters to the UsersService.ListAll 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 service\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) AcceptInvitation(invitationID int) (*Response, error)\n```\nAcceptInvitation accepts the currently-open repository invitation for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation](https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation)\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) CreateGPGKey(armoredPublicKey string) (*GPGKey, *Response, error)\n```\nCreateGPGKey creates a GPG key. It requires authenticatation via Basic Auth or OAuth with at least write:gpg\\_key scope.\n\nGitHub API docs: [https://developer.github.com/v3/users/gpg\\_keys/#create-a-gpg-key](https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key)\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) DeclineInvitation(invitationID int) (*Response, error)\n```\nDeclineInvitation declines the currently-open repository invitation for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation](https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation)\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) DeleteGPGKey(id int) (*Response, error)\n```\nDeleteGPGKey deletes a GPG key. It requires authentication via Basic Auth or via OAuth with at least admin:gpg\\_key scope.\n\nGitHub API docs: [https://developer.github.com/v3/users/gpg\\_keys/#delete-a-gpg-key](https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key)\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) DemoteSiteAdmin(user string) (*Response, error)\n```\nDemoteSiteAdmin demotes a user from site administrator of a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/v3/users/administration/#demote-a-site-administrator-to-an-ordinary-user](https://developer.github.com/v3/users/administration/#demote-a-site-administrator-to-an-ordinary-user)\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) GetByID(id int) (*User, *Response, error)\n```\nGetByID fetches a user.\n\nNote: GetByID uses the undocumented GitHub API endpoint /user/:id.\n\n```go\nfunc (s *UsersService) GetGPGKey(id int) (*GPGKey, *Response, error)\n```\nGetGPGKey gets extended details for a single GPG key. It requires authentication via Basic Auth or via OAuth with at least read:gpg\\_key scope.\n\nGitHub API docs: [https://developer.github.com/v3/users/gpg\\_keys/#get-a-single-gpg-key](https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key)\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\nTo paginate through all users, populate 'Since' with the ID of the last user.\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) ListGPGKeys() ([]*GPGKey, *Response, error)\n```\nListGPGKeys lists the current user's GPG keys. It requires authentication via Basic Auth or via OAuth with at least read:gpg\\_key scope.\n\nGitHub API docs: [https://developer.github.com/v3/users/gpg\\_keys/#list-your-gpg-keys](https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys)\n\n```go\nfunc (s *UsersService) ListInvitations() ([]*RepositoryInvitation, *Response, error)\n```\nListInvitations lists all currently-open repository invitations for the authenticated user.\n\nGitHub API docs: [https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations](https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations)\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) PromoteSiteAdmin(user string) (*Response, error)\n```\nPromoteSiteAdmin promotes a user to a site administrator of a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/v3/users/administration/#promote-an-ordinary-user-to-a-site-administrator](https://developer.github.com/v3/users/administration/#promote-an-ordinary-user-to-a-site-administrator)\n\n```go\nfunc (s *UsersService) Suspend(user string) (*Response, error)\n```\nSuspend a user on a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/v3/users/administration/#suspend-a-user](https://developer.github.com/v3/users/administration/#suspend-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\nfunc (s *UsersService) Unsuspend(user string) (*Response, error)\n```\nUnsuspend a user on a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/v3/users/administration/#unsuspend-a-user](https://developer.github.com/v3/users/administration/#unsuspend-a-user)\n\n```go\ntype WatchEvent struct {\n\t// Action is the action that was performed. Possible value is: \"started\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\tSender *User       `json:\"sender,omitempty\"`\n}\n```\nWatchEvent is related to starring a repository, not watching. See this API blog post for an explanation: [https://developer.github.com/changes/2012-09-05-watcher-api/](https://developer.github.com/changes/2012-09-05-watcher-api/)\n\nThe event’s actor is the user who starred a repository, and the event’s repository is the repository that was starred.\n\nGitHub docs: [https://developer.github.com/v3/activity/events/types/#watchevent](https://developer.github.com/v3/activity/events/types/#watchevent)\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\tSender     *User           `json:\"sender,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/bouk/go-github/github","name":"github","synopsis":"Package github provides a client for using the GitHub API.","isRedistributable":true}
