{"modulePath":"github.com/vonc/go-github","version":"v0.0.0-20140131230507-34a4afeea7e8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github provides a client for using the GitHub API.\n\nConstruct a new GitHub client, then use the various services on the client to access different parts of the GitHub API. For example:\n\n\tclient := github.NewClient(nil)\n\n\t// list all organizations for user \"willnorris\"\n\torgs, _, err := client.Organizations.List(\"willnorris\", nil)\n\nSet optional parameters for an API method by passing an Options object.\n\n\t// list recently updated repositories for org \"github\"\n\topt := \u0026github.RepositoryListByOrgOptions{Sort: \"updated\"}\n\trepos, _, err := client.Repositories.ListByOrg(\"github\", opt)\n\nThe services of a client divide the API into logical chunks and correspond to the structure of the GitHub API documentation at [http://developer.github.com/v3/](http://developer.github.com/v3/).\n\n### Authentication {#hdr-Authentication}\n\nThe go-github library does not directly handle authentication. Instead, when creating a new client, pass an http.Client that can handle authentication for you. The easiest and recommended way to do this is using the goauth2 library, but you can always use any other library that provides an http.Client. If you have an OAuth2 access token (for example, a personal API token), you can use it with the goauth2 using:\n\n\timport \"code.google.com/p/goauth2/oauth\"\n\n\t// simple OAuth transport if you already have an access token;\n\t// see goauth2 library for full usage\n\tt := \u0026oauth.Transport{\n\t\tToken: \u0026oauth.Token{AccessToken: \"...\"},\n\t}\n\n\tclient := github.NewClient(t.Client())\n\n\t// list all repositories for the authenticated user\n\trepos, _, err := client.Repositories.List(\"\", nil)\n\nNote that when using an authenticated Client, all calls made by the client will include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users.\n\n### Rate Limiting {#hdr-Rate_Limiting}\n\nGitHub imposes a rate limit on all API clients.  Unauthenticated clients are limited to 60 requests per hour, while authenticated clients can make up to 5,000 requests per hour.  To receive the higher rate limit when making calls that are not issued on behalf of a user, use the UnauthenticatedRateLimitedTransport.\n\nThe Rate field on a client tracks the rate limit information based on the most recent API call.  This is updated on every call, but may be out of date if it's been some time since the last API call and other clients have made subsequent requests since then.  You can always call RateLimit() directly to get the most up-to-date rate limit data for the client.\n\nLearn more about GitHub rate limiting at [http://developer.github.com/v3/#rate-limiting](http://developer.github.com/v3/#rate-limiting).\n\n### 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.Repo{\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## Functions\n\n```go\nfunc Bool(v bool) *bool\n```\nBool is a helper routine that allocates a new bool value to store v and returns a pointer to it.\n\n```go\nfunc CheckResponse(r *http.Response) error\n```\nCheckResponse checks the API response for errors, and returns them if present.  A response is considered an error if it has a status code outside the 200 range.  API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse.  Any other response body will be silently ignored.\n\n```go\nfunc Int(v int) *int\n```\nInt is a helper routine that allocates a new int32 value to store v and returns a pointer to it, but unlike Int32 its argument value is an int.\n\n```go\nfunc String(v string) *string\n```\nString is a helper routine that allocates a new string value to store v and returns a pointer to it.\n\n```go\nfunc Stringify(message interface{}) string\n```\nStringify attempts to create a reasonable string representation of types in the GitHub library.  It does things like resolve pointers to their values and omits struct fields with nil values.\n\n## Types\n\n```go\ntype ActivityListStarredOptions struct {\n\t// How to sort the repository list.  Possible values are: created, updated,\n\t// pushed, full_name.  Default is \"full_name\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories.  Possible values are: asc, desc.\n\t// Default is \"asc\" when sort is \"full_name\", otherwise default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nActivityListStarredOptions specifies the optional parameters to the ActivityService.ListStarred method.\n\n```go\ntype ActivityService struct {\n\t// contains filtered or unexported fields\n}\n```\nActivityService handles communication with the activity related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/activity/](http://developer.github.com/v3/activity/)\n\n```go\nfunc (s *ActivityService) ListEvents(opt *ListOptions) ([]Event, *Response, error)\n```\nListEvents drinks from the firehose of all public events across GitHub.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-public-events](http://developer.github.com/v3/activity/events/#list-public-events)\n\n```go\nfunc (s *ActivityService) ListEventsForOrganization(org string, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsForOrganization lists public events for an organization.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-public-events-for-an-organization](http://developer.github.com/v3/activity/events/#list-public-events-for-an-organization)\n\n```go\nfunc (s *ActivityService) ListEventsForRepoNetwork(owner, repo string, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsForRepoNetwork lists public events for a network of repositories.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories](http://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories)\n\n```go\nfunc (s *ActivityService) ListEventsPerformedByUser(user string, publicOnly bool, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsPerformedByUser lists the events performed by a user. If publicOnly is true, only public events will be returned.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user](http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user)\n\n```go\nfunc (s *ActivityService) ListEventsRecievedByUser(user string, publicOnly bool, opt *ListOptions) ([]Event, *Response, error)\n```\nListEventsRecievedByUser lists the events recieved by a user. If publicOnly is true, only public events will be returned.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received](http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received)\n\n```go\nfunc (s *ActivityService) ListIssueEventsForRepository(owner, repo string, opt *ListOptions) ([]Event, *Response, error)\n```\nListIssueEventsForRepository lists issue events for a repository.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository](http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository)\n\n```go\nfunc (s *ActivityService) 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) ListStarred(user string, opt *ActivityListStarredOptions) ([]Repository, *Response, error)\n```\nListStarred lists all the repos starred by a user.  Passing the empty string will list the starred repositories for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/activity/starring/#list-repositories-being-starred](http://developer.github.com/v3/activity/starring/#list-repositories-being-starred)\n\n```go\nfunc (s *ActivityService) ListUserEventsForOrganization(org, user string, opt *ListOptions) ([]Event, *Response, error)\n```\nListUserEventsForOrganization provides the user’s organization dashboard. You must be authenticated as the user to view this.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/#list-events-for-an-organization](http://developer.github.com/v3/activity/events/#list-events-for-an-organization)\n\n```go\nfunc (s *ActivityService) ListWatchers(owner, repo string) ([]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\ntype Client struct {\n\n\t// Base URL for API requests.  Defaults to the public GitHub API, but can be\n\t// set to a domain endpoint to use with GitHub Enterprise.  BaseURL should\n\t// always be specified with a trailing slash.\n\tBaseURL *url.URL\n\n\t// Base URL for uploading files.\n\tUploadURL *url.URL\n\n\t// User agent used when communicating with the GitHub API.\n\tUserAgent string\n\n\t// Rate specifies the current rate limit for the client as determined by the\n\t// most recent API call.  If the client is used in a multi-user application,\n\t// this rate may not always be up-to-date.  Call RateLimit() to check the\n\t// current rate.\n\tRate Rate\n\n\t// Services used for talking to different parts of the GitHub API.\n\tActivity      *ActivityService\n\tGists         *GistsService\n\tGit           *GitService\n\tGitignores    *GitignoresService\n\tIssues        *IssuesService\n\tOrganizations *OrganizationsService\n\tPullRequests  *PullRequestsService\n\tRepositories  *RepositoriesService\n\tSearch        *SearchService\n\tUsers         *UsersService\n\t// contains filtered or unexported fields\n}\n```\nA Client manages communication with the GitHub API.\n\n```go\nfunc NewClient(httpClient *http.Client) *Client\n```\nNewClient returns a new GitHub API client.  If a nil httpClient is provided, http.DefaultClient will be used.  To use API methods which require authentication, provide an http.Client that will perform the authentication for you (such as that provided by the goauth2 library).\n\n```go\nfunc (c *Client) Do(req *http.Request, v interface{}) (*Response, error)\n```\nDo sends an API request and returns the API response.  The API response is decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred.\n\n```go\nfunc (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)\n```\nNewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the BaseURL of the Client. Relative URLs should always be specified without a preceding slash.  If specified, the value pointed to by body is JSON encoded and included as the request body.\n\n```go\nfunc (c *Client) NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string) (*http.Request, error)\n```\nNewUploadRequest creates an upload request. A relative URL can be provided in urlStr, in which case it is resolved relative to the UploadURL of the Client. Relative URLs should always be specified without a preceding slash.\n\n```go\nfunc (c *Client) RateLimit() (*Rate, *Response, error)\n```\nRateLimit returns the rate limit for the current client.\n\n```go\ntype CodeResult struct {\n\tName       *string     `json:\"name,omitempty\"`\n\tPath       *string     `json:\"path,omitempty\"`\n\tSHA        *string     `json:\"sha,omitempty\"`\n\tHTMLURL    *string     `json:\"html_url,omitempty\"`\n\tRepository *Repository `json:\"repository,omitempty\"`\n}\n```\nCodeResult represents a single search result.\n\n```go\nfunc (c CodeResult) String() string\n```\n\n```go\ntype CodeSearchResult struct {\n\tTotal       *int         `json:\"total_count,omitempty\"`\n\tCodeResults []CodeResult `json:\"items,omitempty\"`\n}\n```\nCodeSearchResult represents the result of an code search.\n\n```go\ntype Commit struct {\n\tSHA       *string       `json:\"sha,omitempty\"`\n\tAuthor    *CommitAuthor `json:\"author,omitempty\"`\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n\tMessage   *string       `json:\"message,omitempty\"`\n\tTree      *Tree         `json:\"tree,omitempty\"`\n\tParents   []Commit      `json:\"parents,omitempty\"`\n\tStats     *CommitStats  `json:\"stats,omitempty\"`\n}\n```\nCommit represents a GitHub commit.\n\n```go\nfunc (c Commit) String() string\n```\n\n```go\ntype CommitAuthor struct {\n\tDate  *time.Time `json:\"date,omitempty\"`\n\tName  *string    `json:\"name,omitempty\"`\n\tEmail *string    `json:\"email,omitempty\"`\n}\n```\nCommitAuthor represents the author or committer of a commit.  The commit author may not correspond to a GitHub User.\n\n```go\nfunc (c CommitAuthor) String() string\n```\n\n```go\ntype CommitFile struct {\n\tSHA       *string `json:\"sha,omitempty\"`\n\tFilename  *string `json:\"filename,omitempty\"`\n\tAdditions *int    `json:\"additions,omitempty\"`\n\tDeletions *int    `json:\"deletions,omitempty\"`\n\tChanges   *int    `json:\"changes,omitempty\"`\n\tStatus    *string `json:\"status,omitempty\"`\n\tPatch     *string `json:\"patch,omitempty\"`\n}\n```\nCommitFile represents a file modified in a commit.\n\n```go\nfunc (c CommitFile) String() string\n```\n\n```go\ntype CommitStats struct {\n\tAdditions *int `json:\"additions,omitempty\"`\n\tDeletions *int `json:\"deletions,omitempty\"`\n\tTotal     *int `json:\"total,omitempty\"`\n}\n```\nCommitStats represents the number of additions / deletions from a file in a given RepositoryCommit.\n\n```go\nfunc (c CommitStats) String() string\n```\n\n```go\ntype CommitsComparison struct {\n\tBaseCommit *RepositoryCommit `json:\"base_commit,omitempty\"`\n\n\t// Head can be 'behind' or 'ahead'\n\tStatus       *string `json:\"status,omitempty\"`\n\tAheadBy      *int    `json:\"ahead_by,omitempty\"`\n\tBehindBy     *int    `json:\"behind_by,omitempty\"`\n\tTotalCommits *int    `json:\"total_commits,omitempty\"`\n\n\tCommits []RepositoryCommit `json:\"commits,omitempty\"`\n\n\tFiles []CommitFile `json:\"files,omitempty\"`\n}\n```\nCommitsComparison is the result of comparing two commits. See CompareCommits() for details.\n\n```go\nfunc (c CommitsComparison) String() string\n```\n\n```go\ntype CommitsListOptions struct {\n\t// SHA or branch to start listing Commits from.\n\tSHA string `url:\"sha,omitempty\"`\n\n\t// Path that should be touched by the returned Commits.\n\tPath string `url:\"path,omitempty\"`\n\n\t// Author of by which to filter Commits.\n\tAuthor string `url:\"author,omitempty\"`\n\n\t// Since when should Commits be included in the response.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\t// Until when should Commits be included in the response.\n\tUntil time.Time `url:\"until,omitempty\"`\n}\n```\nCommitsListOptions specifies the optional parameters to the RepositoriesService.ListCommits method.\n\n```go\ntype Error struct {\n\tResource string `json:\"resource\"` // resource on which the error occurred\n\tField    string `json:\"field\"`    // field on which the error occurred\n\tCode     string `json:\"code\"`     // validation error code\n}\n```\nAn Error reports more details on an individual error in an ErrorResponse. These are the possible validation error codes:\n\n\tmissing:\n\t    resource does not exist\n\tmissing_field:\n\t    a required field on a resource has not been set\n\tinvalid:\n\t    the formatting of a field is invalid\n\talready_exists:\n\t    another resource has the same valid as this field\n\nGitHub API docs: [http://developer.github.com/v3/#client-errors](http://developer.github.com/v3/#client-errors)\n\n```go\nfunc (e *Error) Error() string\n```\n\n```go\ntype ErrorResponse struct {\n\tResponse *http.Response // HTTP response that caused this error\n\tMessage  string         `json:\"message\"` // error message\n\tErrors   []Error        `json:\"errors\"`  // more detail on individual errors\n}\n```\nAn ErrorResponse reports one or more errors caused by an API request.\n\nGitHub API docs: [http://developer.github.com/v3/#client-errors](http://developer.github.com/v3/#client-errors)\n\n```go\nfunc (r *ErrorResponse) Error() string\n```\n\n```go\ntype Event struct {\n\tType       *string          `json:\"type,omitempty\"`\n\tPublic     *bool            `json:\"public\"`\n\tRawPayload *json.RawMessage `json:\"payload,omitempty\"`\n\tRepo       *Repository      `json:\"repo,omitempty\"`\n\tActor      *User            `json:\"actor,omitempty\"`\n\tOrg        *Organization    `json:\"org,omitempty\"`\n\tCreatedAt  *time.Time       `json:\"created_at,omitempty\"`\n\tID         *string          `json:\"id,omitempty\"`\n}\n```\nEvent represents a GitHub event.\n\n```go\nfunc (e *Event) Payload() (payload interface{})\n```\nPayload returns the parsed event payload. For recognized event types (PushEvent), a value of the corresponding struct type will be returned.\n\n```go\nfunc (e Event) String() string\n```\n\n```go\ntype Gist struct {\n\tID          *string                   `json:\"id,omitempty\"`\n\tDescription *string                   `json:\"description,omitempty\"`\n\tPublic      *bool                     `json:\"public,omitempty\"`\n\tUser        *User                     `json:\"user,omitempty\"`\n\tFiles       map[GistFilename]GistFile `json:\"files,omitempty\"`\n\tComments    *int                      `json:\"comments,omitempty\"`\n\tHTMLURL     *string                   `json:\"html_url,omitempty\"`\n\tGitPullURL  *string                   `json:\"git_pull_url,omitempty\"`\n\tGitPushURL  *string                   `json:\"git_push_url,omitempty\"`\n\tCreatedAt   *time.Time                `json:\"created_at,omitempty\"`\n}\n```\nGist represents a GitHub's gist.\n\n```go\nfunc (g Gist) String() string\n```\n\n```go\ntype GistComment struct {\n\tID        *int       `json:\"id,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n}\n```\nGistComment represents a Gist comment.\n\n```go\nfunc (g GistComment) String() string\n```\n\n```go\ntype GistFile struct {\n\tSize     *int    `json:\"size,omitempty\"`\n\tFilename *string `json:\"filename,omitempty\"`\n\tRawURL   *string `json:\"raw_url,omitempty\"`\n\tContent  *string `json:\"content,omitempty\"`\n}\n```\nGistFile represents a file on a gist.\n\n```go\nfunc (g GistFile) String() string\n```\n\n```go\ntype GistFilename string\n```\nGistFilename represents filename on a gist.\n\n```go\ntype GistListOptions struct {\n\t// Since filters Gists by time.\n\tSince time.Time `url:\"since,omitempty\"`\n}\n```\nGistListOptions specifies the optional parameters to the GistsService.List, GistsService.ListAll, and GistsService.ListStarred methods.\n\n```go\ntype GistsService struct {\n\t// contains filtered or unexported fields\n}\n```\nGistsService handles communication with the Gist related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/gists/](http://developer.github.com/v3/gists/)\n\n```go\nfunc (s *GistsService) Create(gist *Gist) (*Gist, *Response, error)\n```\nCreate a gist for authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#create-a-gist](http://developer.github.com/v3/gists/#create-a-gist)\n\n```go\nfunc (s *GistsService) CreateComment(gistID string, comment *GistComment) (*GistComment, *Response, error)\n```\nCreateComment creates a comment for a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#create-a-comment](http://developer.github.com/v3/gists/comments/#create-a-comment)\n\n```go\nfunc (s *GistsService) Delete(id string) (*Response, error)\n```\nDelete a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#delete-a-gist](http://developer.github.com/v3/gists/#delete-a-gist)\n\n```go\nfunc (s *GistsService) DeleteComment(gistID string, commentID int) (*Response, error)\n```\nDeleteComment deletes a gist comment.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#delete-a-comment](http://developer.github.com/v3/gists/comments/#delete-a-comment)\n\n```go\nfunc (s *GistsService) Edit(id string, gist *Gist) (*Gist, *Response, error)\n```\nEdit a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#edit-a-gist](http://developer.github.com/v3/gists/#edit-a-gist)\n\n```go\nfunc (s *GistsService) EditComment(gistID string, commentID int, comment *GistComment) (*GistComment, *Response, error)\n```\nEditComment edits an existing gist comment.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#edit-a-comment](http://developer.github.com/v3/gists/comments/#edit-a-comment)\n\n```go\nfunc (s *GistsService) Fork(id string) (*Gist, *Response, error)\n```\nFork a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#fork-a-gist](http://developer.github.com/v3/gists/#fork-a-gist)\n\n```go\nfunc (s *GistsService) Get(id string) (*Gist, *Response, error)\n```\nGet a single gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#get-a-single-gist](http://developer.github.com/v3/gists/#get-a-single-gist)\n\n```go\nfunc (s *GistsService) GetComment(gistID string, commentID int) (*GistComment, *Response, error)\n```\nGetComment retrieves a single comment from a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#get-a-single-comment](http://developer.github.com/v3/gists/comments/#get-a-single-comment)\n\n```go\nfunc (s *GistsService) IsStarred(id string) (bool, *Response, error)\n```\nIsStarred checks if a gist is starred by authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#check-if-a-gist-is-starred](http://developer.github.com/v3/gists/#check-if-a-gist-is-starred)\n\n```go\nfunc (s *GistsService) List(user string, opt *GistListOptions) ([]Gist, *Response, error)\n```\nList gists for a user. Passing the empty string will list all public gists if called anonymously. However, if the call is authenticated, it will returns all gists for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#list-gists](http://developer.github.com/v3/gists/#list-gists)\n\n```go\nfunc (s *GistsService) ListAll(opt *GistListOptions) ([]Gist, *Response, error)\n```\nListAll lists all public gists.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#list-gists](http://developer.github.com/v3/gists/#list-gists)\n\n```go\nfunc (s *GistsService) ListComments(gistID string) ([]GistComment, *Response, error)\n```\nListComments lists all comments for a gist.\n\nGitHub API docs: [http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist](http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist)\n\n```go\nfunc (s *GistsService) ListStarred(opt *GistListOptions) ([]Gist, *Response, error)\n```\nListStarred lists starred gists of authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#list-gists](http://developer.github.com/v3/gists/#list-gists)\n\n```go\nfunc (s *GistsService) Star(id string) (*Response, error)\n```\nStar a gist on behalf of authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/gists/#star-a-gist](http://developer.github.com/v3/gists/#star-a-gist)\n\n```go\nfunc (s *GistsService) Unstar(id string) (*Response, error)\n```\nUnstar a gist on a behalf of authenticated user.\n\nGithub API docs: [http://developer.github.com/v3/gists/#unstar-a-gist](http://developer.github.com/v3/gists/#unstar-a-gist)\n\n```go\ntype GitObject struct {\n\tType *string `json:\"type\"`\n\tSHA  *string `json:\"sha\"`\n\tURL  *string `json:\"url\"`\n}\n```\nGitObject represents a Git object.\n\n```go\nfunc (o GitObject) String() string\n```\n\n```go\ntype GitService struct {\n\t// contains filtered or unexported fields\n}\n```\nGitService handles communication with the git data related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/git/](http://developer.github.com/v3/git/)\n\n```go\nfunc (s *GitService) 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) 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) 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) 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 string, repo string) ([]*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```\nRepresents a .gitignore file as returned by the GitHub API.\n\n```go\nfunc (g Gitignore) String() string\n```\n\n```go\ntype GitignoresService struct {\n\t// contains filtered or unexported fields\n}\n```\nGitignoresService provides access to the gitignore related functions in the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/gitignore/](http://developer.github.com/v3/gitignore/)\n\n```go\nfunc (s GitignoresService) Get(name string) (*Gitignore, *Response, error)\n```\nFetches 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```\nFetches a list of all available Gitignore templates.\n\n[http://developer.github.com/v3/gitignore/#listing-available-templates](http://developer.github.com/v3/gitignore/#listing-available-templates)\n\n```go\ntype Hook struct {\n\tCreatedAt *time.Time             `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time             `json:\"updated_at,omitempty\"`\n\tName      *string                `json:\"name,omitempty\"`\n\tEvents    []string               `json:\"events,omitempty\"`\n\tActive    *bool                  `json:\"active,omitempty\"`\n\tConfig    map[string]interface{} `json:\"config,omitempty\"`\n\tID        *int                   `json:\"id,omitempty\"`\n}\n```\nHook represents a GitHub (web and service) hook for a repository.\n\n```go\nfunc (h Hook) String() string\n```\n\n```go\ntype Issue struct {\n\tNumber    *int       `json:\"number,omitempty\"`\n\tState     *string    `json:\"state,omitempty\"`\n\tTitle     *string    `json:\"title,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tLabels    []Label    `json:\"labels,omitempty\"`\n\tAssignee  *User      `json:\"assignee,omitempty\"`\n\tComments  *int       `json:\"comments,omitempty\"`\n\tClosedAt  *time.Time `json:\"closed_at,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nIssue represents a GitHub issue on a repository.\n\n```go\nfunc (i Issue) String() string\n```\n\n```go\ntype IssueComment struct {\n\tID        *int       `json:\"id,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nIssueComment represents a comment left on an issue.\n\n```go\nfunc (i IssueComment) String() string\n```\n\n```go\ntype IssueListByRepoOptions struct {\n\t// Milestone limits issues for the specified milestone.  Possible values are\n\t// a milestone number, \"none\" for issues with no milestone, \"*\" for issues\n\t// with any milestone.\n\tMilestone string `url:\"milestone,omitempty\"`\n\n\t// State filters issues based on their state.  Possible values are: open,\n\t// closed.  Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Assignee filters issues based on their assignee.  Possible values are a\n\t// user name, \"none\" for issues that are not assigned, \"*\" for issues with\n\t// any assigned user.\n\tAssignee string `url:\"assignee,omitempty\"`\n\n\t// Assignee filters issues based on their creator.\n\tCreator string `url:\"creator,omitempty\"`\n\n\t// Assignee filters issues to those mentioned a specific user.\n\tMentioned string `url:\"mentioned,omitempty\"`\n\n\t// Labels filters issues based on their label.\n\tLabels []string `url:\"labels,omitempty,comma\"`\n\n\t// Sort specifies how to sort issues.  Possible values are: created, updated,\n\t// and comments.  Default value is \"assigned\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues.  Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters issues by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListByRepoOptions specifies the optional parameters to the IssuesService.ListByRepo method.\n\n```go\ntype IssueListCommentsOptions struct {\n\t// Sort specifies how to sort comments.  Possible values are: created, updated.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort comments.  Possible values are: asc, desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters comments by time.\n\tSince time.Time `url:\"since,omitempty\"`\n}\n```\nIssueListCommentsOptions specifies the optional parameters to the IssuesService.ListComments method.\n\n```go\ntype IssueListOptions struct {\n\t// Filter specifies which issues to list.  Possible values are: assigned,\n\t// created, mentioned, subscribed, all.  Default is \"assigned\".\n\tFilter string `url:\"filter,omitempty\"`\n\n\t// State filters issues based on their state.  Possible values are: open,\n\t// closed.  Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Labels filters issues based on their label.\n\tLabels []string `url:\"labels,comma,omitempty\"`\n\n\t// Sort specifies how to sort issues.  Possible values are: created, updated,\n\t// and comments.  Default value is \"assigned\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues.  Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters issues by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListOptions specifies the optional parameters to the IssuesService.List and IssuesService.ListByOrg methods.\n\n```go\ntype IssueRequest struct {\n\tTitle    *string  `json:\"title,omitempty\"`\n\tBody     *string  `json:\"body,omitempty\"`\n\tLabels   []string `json:\"labels,omitempty\"`\n\tAssignee *string  `json:\"assignee,omitempty\"`\n\tState    *string  `json:\"state,omitempty\"`\n}\n```\nIssueRequest represents a request to create/edit an issue. It is separate from Issue above because otherwise Labels and Assignee fail to serialize to the correct JSON.\n\n```go\ntype IssuesSearchResult struct {\n\tTotal  *int    `json:\"total_count,omitempty\"`\n\tIssues []Issue `json:\"items,omitempty\"`\n}\n```\nIssuesSearchResult represents the result of an issues search.\n\n```go\ntype IssuesService struct {\n\t// contains filtered or unexported fields\n}\n```\nIssuesService handles communication with the issue related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/issues/](http://developer.github.com/v3/issues/)\n\n```go\nfunc (s *IssuesService) AddLabelsToIssue(owner string, repo string, number int, labels []string) ([]Label, *Response, error)\n```\nAddLabelsToIssue adds labels to an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository](http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository)\n\n```go\nfunc (s *IssuesService) Create(owner string, repo string, issue *IssueRequest) (*Issue, *Response, error)\n```\nCreate a new issue on the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#create-an-issue](http://developer.github.com/v3/issues/#create-an-issue)\n\n```go\nfunc (s *IssuesService) CreateComment(owner string, repo string, number int, comment *IssueComment) (*IssueComment, *Response, error)\n```\nCreateComment creates a new comment on the specified issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/comments/#create-a-comment](http://developer.github.com/v3/issues/comments/#create-a-comment)\n\n```go\nfunc (s *IssuesService) CreateLabel(owner string, repo string, label *Label) (*Label, *Response, error)\n```\nCreateLabel creates a new label on the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#create-a-label](http://developer.github.com/v3/issues/labels/#create-a-label)\n\n```go\nfunc (s *IssuesService) 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) 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) 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) 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) IsAssignee(owner string, repo string, user string) (bool, *Response, error)\n```\nIsAssignee checks if a user is an assignee for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/issues/assignees/#check-assignee](http://developer.github.com/v3/issues/assignees/#check-assignee)\n\n```go\nfunc (s *IssuesService) List(all bool, opt *IssueListOptions) ([]Issue, *Response, error)\n```\nList the issues for the authenticated user.  If all is true, list issues across all the user's visible repositories including owned, member, and organization repositories; if false, list only owned and member repositories.\n\nGitHub API docs: [http://developer.github.com/v3/issues/#list-issues](http://developer.github.com/v3/issues/#list-issues)\n\n```go\nfunc (s *IssuesService) ListAssignees(owner string, repo string) ([]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) ListLabels(owner string, repo string) ([]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) ([]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) ([]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) RemoveLabelForIssue(owner string, repo string, number int, label string) (*Response, error)\n```\nRemoveLabelForIssue removes a label for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue](http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveLabelsForIssue(owner string, repo string, number int) (*Response, error)\n```\nRemoveLabelsForIssue removes all labels for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue](http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue)\n\n```go\nfunc (s *IssuesService) ReplaceLabelsForIssue(owner string, repo string, number int, labels []string) ([]Label, *Response, error)\n```\nReplaceLabelsForIssue replaces all labels for an issue.\n\nGitHub API docs: [http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue](http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue)\n\n```go\ntype Key struct {\n\tID    *int    `json:\"id,omitempty\"`\n\tKey   *string `json:\"key,omitempty\"`\n\tURL   *string `json:\"url,omitempty\"`\n\tTitle *string `json:\"title,omitempty\"`\n}\n```\nKey represents a public SSH key used to authenticate a user or deploy script.\n\n```go\nfunc (k Key) String() string\n```\n\n```go\ntype Label struct {\n\tURL   *string `json:\"url,omitempty\"`\n\tName  *string `json:\"name,omitempty\"`\n\tColor *string `json:\"color,omitempty\"`\n}\n```\nLabel represents a GitHib label on an Issue\n\n```go\nfunc (l Label) String() string\n```\n\n```go\ntype ListMembersOptions struct {\n\t// If true (or if the authenticated user is not an owner of the\n\t// organization), list only publicly visible members.\n\tPublicOnly bool `url:\"-\"`\n\n\t// Filter members returned in the list.  Possible values are:\n\t// 2fa_disabled, all.  Default is \"all\".\n\tFilter string `url:\"filter,omitempty\"`\n\n\tListOptions\n}\n```\nListMembersOptions specifies optional parameters to the OrganizationsService.ListMembers method.\n\n```go\ntype ListOptions struct {\n\t// For paginated result sets, page of results to retrieve.\n\tPage int `url:\"page,omitempty\"`\n\n\t// For paginated result sets, the number of results to include per page.\n\tPerPage int `url:\"per_page,omitempty\"`\n}\n```\nListOptions specifies the optional parameters to various List methods that support pagination.\n\n```go\ntype Organization struct {\n\tLogin             *string    `json:\"login,omitempty\"`\n\tID                *int       `json:\"id,omitempty\"`\n\tURL               *string    `json:\"url,omitempty\"`\n\tAvatarURL         *string    `json:\"avatar_url,omitempty\"`\n\tName              *string    `json:\"name,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\tPlan              *Plan      `json:\"plan,omitempty\"`\n}\n```\nOrganization represents a GitHub organization account.\n\n```go\nfunc (o Organization) String() string\n```\n\n```go\ntype OrganizationsService struct {\n\t// contains filtered or unexported fields\n}\n```\nOrganizationsService provides access to the organization related functions in the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/](http://developer.github.com/v3/orgs/)\n\n```go\nfunc (s *OrganizationsService) AddTeamMember(team int, user string) (*Response, error)\n```\nAddTeamMember adds a user to a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#add-team-member](http://developer.github.com/v3/orgs/teams/#add-team-member)\n\n```go\nfunc (s *OrganizationsService) AddTeamRepo(team int, owner string, repo string) (*Response, error)\n```\nAddTeamRepo adds a repository to be managed by the specified team.  The specified repository must be owned by the organization to which the team belongs, or a direct fork of a repository owned by the organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#add-team-repo](http://developer.github.com/v3/orgs/teams/#add-team-repo)\n\n```go\nfunc (s *OrganizationsService) ConcealMembership(org, user string) (*Response, error)\n```\nConcealMembership conceals a user's membership in an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#conceal-a-users-membership](http://developer.github.com/v3/orgs/members/#conceal-a-users-membership)\n\n```go\nfunc (s *OrganizationsService) CreateTeam(org string, team *Team) (*Team, *Response, error)\n```\nCreateTeam creates a new team within an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#create-team](http://developer.github.com/v3/orgs/teams/#create-team)\n\n```go\nfunc (s *OrganizationsService) DeleteTeam(team int) (*Response, error)\n```\nDeleteTeam deletes a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#delete-team](http://developer.github.com/v3/orgs/teams/#delete-team)\n\n```go\nfunc (s *OrganizationsService) Edit(name string, org *Organization) (*Organization, *Response, error)\n```\nEdit an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/#edit-an-organization](http://developer.github.com/v3/orgs/#edit-an-organization)\n\n```go\nfunc (s *OrganizationsService) EditTeam(id int, team *Team) (*Team, *Response, error)\n```\nEditTeam edits a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#edit-team](http://developer.github.com/v3/orgs/teams/#edit-team)\n\n```go\nfunc (s *OrganizationsService) Get(org string) (*Organization, *Response, error)\n```\nGet fetches an organization by name.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/#get-an-organization](http://developer.github.com/v3/orgs/#get-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetTeam(team int) (*Team, *Response, error)\n```\nGetTeam fetches a team by ID.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#get-team](http://developer.github.com/v3/orgs/teams/#get-team)\n\n```go\nfunc (s *OrganizationsService) IsMember(org, user string) (bool, *Response, error)\n```\nIsMember checks if a user is a member of an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#check-membership](http://developer.github.com/v3/orgs/members/#check-membership)\n\n```go\nfunc (s *OrganizationsService) IsPublicMember(org, user string) (bool, *Response, error)\n```\nIsPublicMember checks if a user is a public member of an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#check-public-membership](http://developer.github.com/v3/orgs/members/#check-public-membership)\n\n```go\nfunc (s *OrganizationsService) IsTeamMember(team int, user string) (bool, *Response, error)\n```\nIsTeamMember checks if a user is a member of the specified team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#get-team-member](http://developer.github.com/v3/orgs/teams/#get-team-member)\n\n```go\nfunc (s *OrganizationsService) IsTeamRepo(team int, owner string, repo string) (bool, *Response, error)\n```\nIsTeamRepo checks if a team manages the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#get-team-repo](http://developer.github.com/v3/orgs/teams/#get-team-repo)\n\n```go\nfunc (s *OrganizationsService) List(user string, opt *ListOptions) ([]Organization, *Response, error)\n```\nList the organizations for a user.  Passing the empty string will list organizations for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/#list-user-organizations](http://developer.github.com/v3/orgs/#list-user-organizations)\n\n```go\nfunc (s *OrganizationsService) ListMembers(org string, opt *ListMembersOptions) ([]User, *Response, error)\n```\nListMembers lists the members for an organization.  If the authenticated user is an owner of the organization, this will return both concealed and public members, otherwise it will only return public members.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#members-list](http://developer.github.com/v3/orgs/members/#members-list)\n\n```go\nfunc (s *OrganizationsService) ListTeamMembers(team int) ([]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) ([]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) ([]Team, *Response, error)\n```\nListTeams lists all of the teams for an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#list-teams](http://developer.github.com/v3/orgs/teams/#list-teams)\n\n```go\nfunc (s *OrganizationsService) PublicizeMembership(org, user string) (*Response, error)\n```\nPublicizeMembership publicizes a user's membership in an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#publicize-a-users-membership](http://developer.github.com/v3/orgs/members/#publicize-a-users-membership)\n\n```go\nfunc (s *OrganizationsService) RemoveMember(org, user string) (*Response, error)\n```\nRemoveMember removes a user from all teams of an organization.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/members/#remove-a-member](http://developer.github.com/v3/orgs/members/#remove-a-member)\n\n```go\nfunc (s *OrganizationsService) RemoveTeamMember(team int, user string) (*Response, error)\n```\nRemoveTeamMember removes a user from a team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#remove-team-member](http://developer.github.com/v3/orgs/teams/#remove-team-member)\n\n```go\nfunc (s *OrganizationsService) RemoveTeamRepo(team int, owner string, repo string) (*Response, error)\n```\nRemoveTeamRepo removes a repository from being managed by the specified team.  Note that this does not delete the repository, it just removes it from the team.\n\nGitHub API docs: [http://developer.github.com/v3/orgs/teams/#remove-team-repo](http://developer.github.com/v3/orgs/teams/#remove-team-repo)\n\n```go\ntype Plan struct {\n\tName          *string `json:\"name,omitempty\"`\n\tSpace         *int    `json:\"space,omitempty\"`\n\tCollaborators *int    `json:\"collaborators,omitempty\"`\n\tPrivateRepos  *int    `json:\"private_repos,omitempty\"`\n}\n```\nPlan represents the payment plan for an account.  See plans at [https://github.com/plans](https://github.com/plans).\n\n```go\nfunc (p Plan) String() string\n```\n\n```go\ntype PullRequest struct {\n\tNumber       *int       `json:\"number,omitempty\"`\n\tState        *string    `json:\"state,omitempty\"`\n\tTitle        *string    `json:\"title,omitempty\"`\n\tBody         *string    `json:\"body,omitempty\"`\n\tCreatedAt    *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt    *time.Time `json:\"updated_at,omitempty\"`\n\tClosedAt     *time.Time `json:\"closed_at,omitempty\"`\n\tMergedAt     *time.Time `json:\"merged_at,omitempty\"`\n\tUser         *User      `json:\"user,omitempty\"`\n\tMerged       *bool      `json:\"merged,omitempty\"`\n\tMergeable    *bool      `json:\"mergeable,omitempty\"`\n\tMergedBy     *User      `json:\"merged_by,omitempty\"`\n\tComments     *int       `json:\"comments,omitempty\"`\n\tCommits      *int       `json:\"commits,omitempty\"`\n\tAdditions    *int       `json:\"additions,omitempty\"`\n\tDeletions    *int       `json:\"deletions,omitempty\"`\n\tChangedFiles *int       `json:\"changed_files,omitempty\"`\n\tHTMLURL      *string    `json:\"html_url,omitempty\"`\n}\n```\nPullRequest represents a GitHub pull request on a repository.\n\n```go\nfunc (p PullRequest) String() string\n```\n\n```go\ntype PullRequestComment struct {\n\tID        *int       `json:\"id,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tPath      *string    `json:\"path,omitempty\"`\n\tPosition  *int       `json:\"position,omitempty\"`\n\tCommitID  *string    `json:\"commit_id,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nPullRequestComment represents a comment left on a pull request.\n\n```go\nfunc (p PullRequestComment) String() string\n```\n\n```go\ntype PullRequestListCommentsOptions struct {\n\t// Sort specifies how to sort comments.  Possible values are: created, updated.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort comments.  Possible values are: asc, desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters comments by time.\n\tSince time.Time `url:\"since,omitempty\"`\n}\n```\nPullRequestListCommentsOptions specifies the optional parameters to the PullRequestsService.ListComments method.\n\n```go\ntype PullRequestListOptions struct {\n\t// State filters pull requests based on their state.  Possible values are:\n\t// open, closed.  Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Head filters pull requests by head user and branch name in the format of:\n\t// \"user:ref-name\".\n\tHead string `url:\"head,omitempty\"`\n\n\t// Base filters pull requests by base branch name.\n\tBase string `url:\"base,omitempty\"`\n}\n```\nPullRequestListOptions specifies the optional parameters to the PullRequestsService.List method.\n\n```go\ntype PullRequestsService struct {\n\t// contains filtered or unexported fields\n}\n```\nPullRequestsService handles communication with the pull request related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/pulls/](http://developer.github.com/v3/pulls/)\n\n```go\nfunc (s *PullRequestsService) Create(owner string, repo string, pull *PullRequest) (*PullRequest, *Response, error)\n```\nCreate a new pull request on the specified repository.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#create-a-pull-request](https://developer.github.com/v3/pulls/#create-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateComment(owner string, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error)\n```\nCreateComment creates a new comment on the specified pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#get-a-single-comment](https://developer.github.com/v3/pulls/comments/#get-a-single-comment)\n\n```go\nfunc (s *PullRequestsService) DeleteComment(owner string, repo string, number int) (*Response, error)\n```\nDeleteComment deletes a pull request comment.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#delete-a-comment](https://developer.github.com/v3/pulls/comments/#delete-a-comment)\n\n```go\nfunc (s *PullRequestsService) Edit(owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error)\n```\nEdit a pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#update-a-pull-request](https://developer.github.com/v3/pulls/#update-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) EditComment(owner string, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error)\n```\nEditComment updates a pull request comment.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#edit-a-comment](https://developer.github.com/v3/pulls/comments/#edit-a-comment)\n\n```go\nfunc (s *PullRequestsService) Get(owner string, repo string, number int) (*PullRequest, *Response, error)\n```\nGet a single pull request.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/#get-a-single-pull-request](https://developer.github.com/v3/pulls/#get-a-single-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetComment(owner string, repo string, number int) (*PullRequestComment, *Response, error)\n```\nGetComment fetches the specified pull request comment.\n\nGitHub API docs: [https://developer.github.com/v3/pulls/comments/#get-a-single-comment](https://developer.github.com/v3/pulls/comments/#get-a-single-comment)\n\n```go\nfunc (s *PullRequestsService) 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\ntype PushEvent struct {\n\tPushID  *int              `json:\"push_id,omitempty\"`\n\tHead    *string           `json:\"head,omitempty\"`\n\tRef     *string           `json:\"ref,omitempty\"`\n\tSize    *int              `json:\"ref,omitempty\"`\n\tCommits []PushEventCommit `json:\"commits,omitempty\"`\n}\n```\nPushEvent represents a git push to a GitHub repository.\n\nGitHub API docs: [http://developer.github.com/v3/activity/events/types/#pushevent](http://developer.github.com/v3/activity/events/types/#pushevent)\n\n```go\nfunc (p PushEvent) String() string\n```\n\n```go\ntype PushEventCommit struct {\n\tSHA      *string       `json:\"sha,omitempty\"`\n\tMessage  *string       `json:\"message,omitempty\"`\n\tAuthor   *CommitAuthor `json:\"author,omitempty\"`\n\tURL      *string       `json:\"url,omitempty\"`\n\tDistinct *bool         `json:\"distinct\"`\n}\n```\nPushEventCommit represents a git commit in a GitHub PushEvent.\n\n```go\nfunc (p PushEventCommit) String() string\n```\n\n```go\ntype Rate struct {\n\t// The number of requests per hour the client is currently limited to.\n\tLimit int\n\n\t// The number of remaining requests the client can make this hour.\n\tRemaining int\n\n\t// The time at which the current rate limit will reset.\n\tReset time.Time\n}\n```\nRate represents the rate limit for the current client.  Unauthenticated requests are limited to 60 per hour.  Authenticated requests are limited to 5,000 per hour.\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 ReleaseAsset struct {\n\tID            *int       `json:\"id,omitempty\"`\n\tURL           *string    `json:\"url,omitempty\"`\n\tName          *string    `json:\"name,omitempty\"`\n\tLabel         *string    `json:\"label,omitempty\"`\n\tState         *string    `json:\"state,omitempty\"`\n\tContentType   *string    `json:\"content_type,omitempty\"`\n\tSize          *int       `json:\"size,omitempty\"`\n\tDownloadCount *int       `json:\"download_count,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nReleaseAsset represents a Github release asset in a repository.\n\n```go\nfunc (r ReleaseAsset) String() string\n```\n\n```go\ntype RepoStatus struct {\n\tID *int `json:\"id,omitempty\"`\n\n\t// State is the current state of the repository.  Possible values are:\n\t// pending, success, error, or failure.\n\tState *string `json:\"state,omitempty\"`\n\n\t// TargetURL is the URL of the page representing this status.  It will be\n\t// linked from the GitHub UI to allow users to see the source of the status.\n\tTargetURL *string `json:\"target_url,omitempty\"`\n\n\t// Description is a short high level summary of the status.\n\tDescription *string `json:\"description,omitempty\"`\n\n\tCreator   *User      `json:\"creator,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nRepoStatus represents the status of a repository at a particular reference.\n\n```go\nfunc (r RepoStatus) String() string\n```\n\n```go\ntype RepositoriesSearchResult struct {\n\tTotal        *int         `json:\"total_count,omitempty\"`\n\tRepositories []Repository `json:\"items,omitempty\"`\n}\n```\nRepositoriesSearchResult represents the result of a repositories search.\n\n```go\ntype RepositoriesService struct {\n\t// contains filtered or unexported fields\n}\n```\nRepositoriesService handles communication with the repository related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/repos/](http://developer.github.com/v3/repos/)\n\n```go\nfunc (s *RepositoriesService) AddCollaborator(owner, repo, user string) (*Response, error)\n```\nAddCollaborator adds the specified Github user as collaborator to the given repo.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#add-collaborator](http://developer.github.com/v3/repos/collaborators/#add-collaborator)\n\n```go\nfunc (s *RepositoriesService) CompareCommits(owner, repo string, base, head string) (*CommitsComparison, *Response, error)\n```\nCompareCommits compares a range of commits with each other. todo: support media formats - [https://github.com/google/go-github/issues/6](https://github.com/google/go-github/issues/6)\n\nGitHub API docs: [http://developer.github.com/v3/repos/commits/index.html#compare-two-commits](http://developer.github.com/v3/repos/commits/index.html#compare-two-commits)\n\n```go\nfunc (s *RepositoriesService) Create(org string, repo *Repository) (*Repository, *Response, error)\n```\nCreate a new repository.  If an organization is specified, the new repository will be created under that org.  If the empty string is specified, it will be created for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#create](http://developer.github.com/v3/repos/#create)\n\n```go\nfunc (s *RepositoriesService) CreateComment(owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error)\n```\nCreateComment creates a comment for the given commit. Note: GitHub allows for comments to be created for non-existing files and positions.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#create-a-commit-comment](http://developer.github.com/v3/repos/comments/#create-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) 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) 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) DeleteHook(owner, repo string, id int) (*Response, error)\n```\nDeleteHook deletes a specified Hook.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#delete-a-hook](http://developer.github.com/v3/repos/hooks/#delete-a-hook)\n\n```go\nfunc (s *RepositoriesService) DeleteKey(owner string, repo string, id int) (*Response, error)\n```\nDeleteKey deletes a deploy key.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#delete](http://developer.github.com/v3/repos/keys/#delete)\n\n```go\nfunc (s *RepositoriesService) DeleteRelease(owner, repo string, id int) (*Response, error)\n```\nDeleteRelease delete a single release from a repository.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#delete-a-release](http://developer.github.com/v3/repos/releases/#delete-a-release)\n\n```go\nfunc (s *RepositoriesService) DeleteReleaseAsset(owner, repo string, id int) (*Response, error)\n```\nDeleteReleaseAsset delete a single release asset from a repository.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#delete-a-release-asset](http://developer.github.com/v3/repos/releases/#delete-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) Edit(owner, repo string, repository *Repository) (*Repository, *Response, error)\n```\nEdit updates a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#edit](http://developer.github.com/v3/repos/#edit)\n\n```go\nfunc (s *RepositoriesService) EditHook(owner, repo string, id int, hook *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#edit-a-hook](http://developer.github.com/v3/repos/hooks/#edit-a-hook)\n\n```go\nfunc (s *RepositoriesService) EditKey(owner string, repo string, id int, key *Key) (*Key, *Response, error)\n```\nEditKey edits a deploy key.\n\nGitHub API docs: [http://developer.github.com/v3/repos/keys/#edit](http://developer.github.com/v3/repos/keys/#edit)\n\n```go\nfunc (s *RepositoriesService) EditRelease(owner, repo string, id int, release *RepositoryRelease) (*RepositoryRelease, *Response, error)\n```\nEditRelease edits a repository release.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#edit-a-release](http://developer.github.com/v3/repos/releases/#edit-a-release)\n\n```go\nfunc (s *RepositoriesService) EditReleaseAsset(owner, repo string, id int, release *ReleaseAsset) (*ReleaseAsset, *Response, error)\n```\nEditReleaseAsset edits a repository release asset.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#edit-a-release-asset](http://developer.github.com/v3/repos/releases/#edit-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) Get(owner, repo string) (*Repository, *Response, error)\n```\nGet fetches a repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#get](http://developer.github.com/v3/repos/#get)\n\n```go\nfunc (s *RepositoriesService) 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) 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) GetReadme(owner, repo string) (*RepositoryContent, *Response, error)\n```\nGetReadme gets the Readme file for the repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/contents/#get-the-readme](http://developer.github.com/v3/repos/contents/#get-the-readme)\n\n```go\nfunc (s *RepositoriesService) GetRelease(owner, repo string, id int) (*RepositoryRelease, *Response, error)\n```\nGetRelease fetches a single release.\n\nGitHub API docs: [http://developer.github.com/v3/repos/releases/#get-a-single-release](http://developer.github.com/v3/repos/releases/#get-a-single-release)\n\n```go\nfunc (s *RepositoriesService) GetReleaseAsset(owner, repo string, id int) (*ReleaseAsset, *Response, error)\n```\nGetReleaseAsset fetches a single release asset.\n\nGitHub API docs : [http://developer.github.com/v3/repos/releases/#get-a-single-release-asset](http://developer.github.com/v3/repos/releases/#get-a-single-release-asset)\n\n```go\nfunc (s *RepositoriesService) IsCollaborator(owner, repo, user string) (bool, *Response, error)\n```\nIsCollaborator checks whether the specified Github user has collaborator access to the given repo. Note: This will return false if the user is not a collaborator OR the user is not a GitHub user.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#get](http://developer.github.com/v3/repos/collaborators/#get)\n\n```go\nfunc (s *RepositoriesService) List(user string, opt *RepositoryListOptions) ([]Repository, *Response, error)\n```\nList the repositories for a user.  Passing the empty string will list repositories for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-user-repositories](http://developer.github.com/v3/repos/#list-user-repositories)\n\n```go\nfunc (s *RepositoriesService) ListAll(opt *RepositoryListAllOptions) ([]Repository, *Response, error)\n```\nListAll lists all GitHub repositories in the order that they were created.\n\nGitHub API docs: [http://developer.github.com/v3/repos/#list-all-public-repositories](http://developer.github.com/v3/repos/#list-all-public-repositories)\n\n```go\nfunc (s *RepositoriesService) 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) ListCollaborators(owner, repo string) ([]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) ([]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) ListCommitComments(owner, repo, sha string) ([]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) ListForks(owner, repo string, opt *RepositoryListForksOptions) ([]Repository, *Response, error)\n```\nListForks lists the forks of the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/forks/#list-forks](http://developer.github.com/v3/repos/forks/#list-forks)\n\n```go\nfunc (s *RepositoriesService) ListHooks(owner, repo string, opt *ListOptions) ([]Hook, *Response, error)\n```\nListHooks lists all Hooks for the specified repository.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#list](http://developer.github.com/v3/repos/hooks/#list)\n\n```go\nfunc (s *RepositoriesService) ListKeys(owner string, repo string) ([]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, repository 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) ListReleaseAssets(owner, repo string, id int) ([]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) ([]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) ListStatuses(owner, repo, ref string) ([]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) RemoveCollaborator(owner, repo, user string) (*Response, error)\n```\nRemoveCollaborator removes the specified Github user as collaborator from the given repo. Note: Does not return error if a valid user that is not a collaborator is removed.\n\nGitHub API docs: [http://developer.github.com/v3/repos/collaborators/#remove-collaborator](http://developer.github.com/v3/repos/collaborators/#remove-collaborator)\n\n```go\nfunc (s *RepositoriesService) TestHook(owner, repo string, id int) (*Response, error)\n```\nTestHook triggers a test Hook by github.\n\nGitHub API docs: [http://developer.github.com/v3/repos/hooks/#test-a-push-hook](http://developer.github.com/v3/repos/hooks/#test-a-push-hook)\n\n```go\nfunc (s *RepositoriesService) UpdateComment(owner, repo string, id int, comment *RepositoryComment) (*RepositoryComment, *Response, error)\n```\nUpdateComment updates the body of a single comment.\n\nGitHub API docs: [http://developer.github.com/v3/repos/comments/#update-a-commit-comment](http://developer.github.com/v3/repos/comments/#update-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) 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\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\tURL             *string    `json:\"url,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\tWatchersCount   *int       `json:\"watchers_count,omitempty\"`\n\tOpenIssuesCount *int       `json:\"open_issues_count,omitempty\"`\n\tSize            *int       `json:\"size,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}\n```\nRepository represents a GitHub repository.\n\n```go\nfunc (r Repository) String() string\n```\n\n```go\ntype RepositoryComment struct {\n\tHTMLURL   *string    `json:\"html_url,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tID        *int       `json:\"id,omitempty\"`\n\tCommitID  *string    `json:\"commit_id,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\n\t// User-mutable fields\n\tBody *string `json:\"body\"`\n\t// User-initialized fields\n\tPath     *string `json:\"path,omitempty\"`\n\tPosition *int    `json:\"position,omitempty\"`\n}\n```\nRepositoryComment represents a comment for a commit, file, or line in a repository.\n\n```go\nfunc (r RepositoryComment) String() string\n```\n\n```go\ntype RepositoryCommit struct {\n\tSHA       *string  `json:\"sha,omitempty\"`\n\tCommit    *Commit  `json:\"commit,omitempty\"`\n\tAuthor    *User    `json:\"author,omitempty\"`\n\tCommitter *User    `json:\"committer,omitempty\"`\n\tParents   []Commit `json:\"parents,omitempty\"`\n\tMessage   *string  `json:\"message,omitempty\"`\n\n\t// Details about how many changes were made in this commit. Only filled in during GetCommit!\n\tStats *CommitStats `json:\"stats,omitempty\"`\n\t// Details about which files, and how this commit touched. Only filled in during GetCommit!\n\tFiles []CommitFile `json:\"files,omitempty\"`\n}\n```\nRepositoryCommit represents a commit in a repo. Note that it's wrapping a Commit, so author/committer information is in two places, but contain different details about them: in RepositoryCommit \"github details\", in Commit - \"git details\".\n\n```go\nfunc (r RepositoryCommit) String() string\n```\n\n```go\ntype RepositoryContent struct {\n\tType     *string `json:\"type,omitempty\"`\n\tEncoding *string `json:\"encoding,omitempty\"`\n\tSize     *int    `json:\"size,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tPath     *string `json:\"path,omitempty\"`\n\tContent  *string `json:\"content,omitempty\"`\n\tSHA      *string `json:\"sha,omitempty\"`\n\tURL      *string `json:\"url,omitempty\"`\n\tGitURL   *string `json:\"giturl,omitempty\"`\n\tHTMLURL  *string `json:\"htmlurl,omitempty\"`\n}\n```\nRepositoryContent represents a file or directory in a github repository.\n\n```go\nfunc (c *RepositoryContent) Decode() ([]byte, error)\n```\nDecode decodes the file content if it is base64 encoded.\n\n```go\nfunc (r RepositoryContent) String() string\n```\n\n```go\ntype RepositoryCreateForkOptions struct {\n\t// The organization to fork the repository into.\n\tOrganization string `url:\"organization,omitempty\"`\n}\n```\nRepositoryCreateForkOptions specifies the optional parameters to the RepositoriesService.CreateFork method.\n\n```go\ntype RepositoryListAllOptions struct {\n\t// ID of the last repository seen\n\tSince int `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListAllOptions specifies the optional parameters to the RepositoriesService.ListAll method.\n\n```go\ntype RepositoryListByOrgOptions struct {\n\t// Type of repositories to list.  Possible values are: all, public, private,\n\t// forks, sources, member.  Default is \"all\".\n\tType string `url:\"type,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListByOrgOptions specifies the optional parameters to the RepositoriesService.ListByOrg method.\n\n```go\ntype RepositoryListForksOptions struct {\n\t// How to sort the forks list.  Possible values are: newest, oldest,\n\t// watchers.  Default is \"newest\".\n\tSort string `url:\"sort,omitempty\"`\n}\n```\nRepositoryListForksOptions specifies the optional parameters to the RepositoriesService.ListForks method.\n\n```go\ntype RepositoryListOptions struct {\n\t// Type of repositories to list.  Possible values are: all, owner, public,\n\t// private, member.  Default is \"all\".\n\tType string `url:\"type,omitempty\"`\n\n\t// How to sort the repository list.  Possible values are: created, updated,\n\t// pushed, full_name.  Default is \"full_name\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories.  Possible values are: asc, desc.\n\t// Default is \"asc\" when sort is \"full_name\", otherwise default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListOptions specifies the optional parameters to the RepositoriesService.List method.\n\n```go\ntype RepositoryRelease struct {\n\tID              *int       `json:\"id,omitempty\"`\n\tTagName         *string    `json:\"tag_name,omitempty\"`\n\tTargetCommitish *string    `json:\"target_commitish,omitempty\"`\n\tName            *string    `json:\"name,omitempty\"`\n\tBody            *string    `json:\"body,omitempty\"`\n\tDraft           *bool      `json:\"draft,omitempty\"`\n\tPrerelease      *bool      `json:\"prerelease,omitempty\"`\n\tCreatedAt       *Timestamp `json:\"created_at,omitempty\"`\n\tPublishedAt     *Timestamp `json:\"published_at,omitempty\"`\n\tURL             *string    `json:\"url,omitempty\"`\n\tHTMLURL         *string    `json:\"html_url,omitempty\"`\n\tAssetsURL       *string    `json:\"assets_url,omitempty\"`\n\tUploadURL       *string    `json:\"upload_url,omitempty\"`\n}\n```\nRepositoryRelease represents a GitHub release in a repository.\n\n```go\nfunc (r RepositoryRelease) String() string\n```\n\n```go\ntype Response struct {\n\t*http.Response\n\n\tNextPage  int\n\tPrevPage  int\n\tFirstPage int\n\tLastPage  int\n\n\tRate\n}\n```\nResponse is a GitHub API response.  This wraps the standard http.Response returned from GitHub and provides convenient access to things like pagination links.\n\n```go\ntype SearchOptions struct {\n\t// How to sort the search results.  Possible values are:\n\t//   - for repositories: stars, fork, updated\n\t//   - for code: indexed\n\t//   - for issues: comments, created, updated\n\t//   - for users: followers, repositories, joined\n\t//\n\t// Default is to sort by best match.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Sort order if sort parameter is provided. Possible values are: asc,\n\t// desc. Default is desc.\n\tOrder string `url:\"order,omitempty\"`\n\n\tListOptions\n}\n```\nSearchOptions specifies optional parameters to the SearchService methods.\n\n```go\ntype SearchService struct {\n\t// contains filtered or unexported fields\n}\n```\nSearchService provides access to the search related functions in the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/search/](http://developer.github.com/v3/search/)\n\n```go\nfunc (s *SearchService) Code(query string, opt *SearchOptions) (*CodeSearchResult, *Response, error)\n```\nCode searches code via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-code](http://developer.github.com/v3/search/#search-code)\n\n```go\nfunc (s *SearchService) Issues(query string, opt *SearchOptions) (*IssuesSearchResult, *Response, error)\n```\nIssues searches issues via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-issues](http://developer.github.com/v3/search/#search-issues)\n\n```go\nfunc (s *SearchService) Repositories(query string, opt *SearchOptions) (*RepositoriesSearchResult, *Response, error)\n```\nRepositories searches repositories via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-repositories](http://developer.github.com/v3/search/#search-repositories)\n\n```go\nfunc (s *SearchService) Users(query string, opt *SearchOptions) (*UsersSearchResult, *Response, error)\n```\nUsers searches users via various criteria.\n\nGitHub API docs: [http://developer.github.com/v3/search/#search-users](http://developer.github.com/v3/search/#search-users)\n\n```go\ntype Team struct {\n\tID           *int    `json:\"id,omitempty\"`\n\tName         *string `json:\"name,omitempty\"`\n\tURL          *string `json:\"url,omitempty\"`\n\tSlug         *string `json:\"slug,omitempty\"`\n\tPermission   *string `json:\"permission,omitempty\"`\n\tMembersCount *int    `json:\"members_count,omitempty\"`\n\tReposCount   *int    `json:\"repos_count,omitempty\"`\n}\n```\nTeam represents a team within a GitHub organization.  Teams are used to manage access to an organization's repositories.\n\n```go\nfunc (t Team) String() string\n```\n\n```go\ntype Timestamp struct {\n\ttime.Time\n}\n```\nTimestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or Unix timestamp. This is necessary for some fields since the GitHub API is inconsistent in how it represents times. All exported methods of time.Time can be called on Timestamp.\n\n```go\nfunc (t Timestamp) Equal(u Timestamp) bool\n```\nEqual reports whether t and u are equal based on time.Equal\n\n```go\nfunc (t Timestamp) String() string\n```\n\n```go\nfunc (t *Timestamp) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON implements the json.Unmarshaler interface. Time is expected in RFC3339 or Unix format.\n\n```go\ntype Tree struct {\n\tSHA     *string     `json:\"sha,omitempty\"`\n\tEntries []TreeEntry `json:\"tree,omitempty\"`\n}\n```\nTree represents a GitHub tree.\n\n```go\nfunc (t Tree) String() string\n```\n\n```go\ntype TreeEntry struct {\n\tSHA  *string `json:\"sha,omitempty\"`\n\tPath *string `json:\"path,omitempty\"`\n\tMode *string `json:\"mode,omitempty\"`\n\tType *string `json:\"type,omitempty\"`\n\tSize *int    `json:\"size,omitempty\"`\n}\n```\nTreeEntry represents the contents of a tree structure.  TreeEntry can represent either a blob, a commit (in the case of a submodule), or another tree.\n\n```go\nfunc (t TreeEntry) String() string\n```\n\n```go\ntype UnauthenticatedRateLimitedTransport struct {\n\t// ClientID is the GitHub OAuth client ID of the current application, which\n\t// can be found by selecting its entry in the list at\n\t// https://github.com/settings/applications.\n\tClientID string\n\n\t// ClientSecret is the GitHub OAuth client secret of the current\n\t// application.\n\tClientSecret string\n\n\t// Transport is the underlying HTTP transport to use when making requests.\n\t// It will default to http.DefaultTransport if nil.\n\tTransport http.RoundTripper\n}\n```\nUnauthenticatedRateLimitedTransport allows you to make unauthenticated calls that need to use a higher rate limit associated with your OAuth application.\n\n\tt := \u0026github.UnauthenticatedRateLimitedTransport{\n\t\tClientID:     \"your app's client ID\",\n\t\tClientSecret: \"your app's client secret\",\n\t}\n\tclient := github.NewClient(t.Client())\n\nThis will append the querystring params client\\_id=xxx\u0026client\\_secret=yyy to all requests.\n\nSee [http://developer.github.com/v3/#unauthenticated-rate-limited-requests](http://developer.github.com/v3/#unauthenticated-rate-limited-requests) for more information.\n\n```go\nfunc (t *UnauthenticatedRateLimitedTransport) Client() *http.Client\n```\nClient returns an \\*http.Client that makes requests which are subject to the rate limit of your OAuth application.\n\n```go\nfunc (t *UnauthenticatedRateLimitedTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\nRoundTrip implements the RoundTripper interface.\n\n```go\ntype UploadOptions struct {\n\tName string `url:\"name,omitempty\"`\n}\n```\nUploadOptions specifies the parameters to methods that support uploads.\n\n```go\ntype User struct {\n\tLogin       *string    `json:\"login,omitempty\"`\n\tID          *int       `json:\"id,omitempty\"`\n\tURL         *string    `json:\"url,omitempty\"`\n\tAvatarURL   *string    `json:\"avatar_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\tPublicRepos *int       `json:\"public_repos,omitempty\"`\n\tFollowers   *int       `json:\"followers,omitempty\"`\n\tFollowing   *int       `json:\"following,omitempty\"`\n\tCreatedAt   *time.Time `json:\"created_at,omitempty\"`\n}\n```\nUser represents a GitHub user.\n\n```go\nfunc (u User) String() string\n```\n\n```go\ntype UserEmail string\n```\nUserEmail represents user's email address\n\n```go\ntype UserListOptions struct {\n\t// ID of the last user seen\n\tSince int `url:\"since,omitempty\"`\n}\n```\nUserListOptions specifies optional parameters to the UsersService.List method.\n\n```go\ntype UsersSearchResult struct {\n\tTotal *int   `json:\"total_count,omitempty\"`\n\tUsers []User `json:\"items,omitempty\"`\n}\n```\nUsersSearchResult represents the result of an issues search.\n\n```go\ntype UsersService struct {\n\t// contains filtered or unexported fields\n}\n```\nUsersService handles communication with the user related methods of the GitHub API.\n\nGitHub API docs: [http://developer.github.com/v3/users/](http://developer.github.com/v3/users/)\n\n```go\nfunc (s *UsersService) AddEmails(emails []UserEmail) ([]UserEmail, *Response, error)\n```\nAddEmails adds email addresses of authenticated user\n\nGitHub API docs: [http://developer.github.com/v3/users/emails/#add-email-addresses](http://developer.github.com/v3/users/emails/#add-email-addresses)\n\n```go\nfunc (s *UsersService) CreateKey(key *Key) (*Key, *Response, error)\n```\nCreateKey adds a public key for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#create-a-public-key](http://developer.github.com/v3/users/keys/#create-a-public-key)\n\n```go\nfunc (s *UsersService) DeleteEmails(emails []UserEmail) (*Response, error)\n```\nDeleteEmails deletes email addresses from authenticated user\n\nGitHub API docs: [http://developer.github.com/v3/users/emails/#delete-email-addresses](http://developer.github.com/v3/users/emails/#delete-email-addresses)\n\n```go\nfunc (s *UsersService) DeleteKey(id int) (*Response, error)\n```\nDeleteKey deletes a public key.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#delete-a-public-key](http://developer.github.com/v3/users/keys/#delete-a-public-key)\n\n```go\nfunc (s *UsersService) Edit(user *User) (*User, *Response, error)\n```\nEdit the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/#update-the-authenticated-user](http://developer.github.com/v3/users/#update-the-authenticated-user)\n\n```go\nfunc (s *UsersService) EditKey(id int, key *Key) (*Key, *Response, error)\n```\nEditKey edits a public key.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#update-a-public-key](http://developer.github.com/v3/users/keys/#update-a-public-key)\n\n```go\nfunc (s *UsersService) Follow(user string) (*Response, error)\n```\nFollow will cause the authenticated user to follow the specified user.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#follow-a-user](http://developer.github.com/v3/users/followers/#follow-a-user)\n\n```go\nfunc (s *UsersService) Get(user string) (*User, *Response, error)\n```\nGet fetches a user.  Passing the empty string will fetch the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/#get-a-single-user](http://developer.github.com/v3/users/#get-a-single-user)\n\n```go\nfunc (s *UsersService) GetKey(id int) (*Key, *Response, error)\n```\nGetKey fetches a single public key.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#get-a-single-public-key](http://developer.github.com/v3/users/keys/#get-a-single-public-key)\n\n```go\nfunc (s *UsersService) IsFollowing(user, target string) (bool, *Response, error)\n```\nIsFollowing checks if \"user\" is following \"target\".  Passing the empty string for \"user\" will check if the authenticated user is following \"target\".\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user](http://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user)\n\n```go\nfunc (s *UsersService) ListAll(opt *UserListOptions) ([]User, *Response, error)\n```\nListAll lists all GitHub users.\n\nGitHub API docs: [http://developer.github.com/v3/users/#get-all-users](http://developer.github.com/v3/users/#get-all-users)\n\n```go\nfunc (s *UsersService) ListEmails() ([]UserEmail, *Response, error)\n```\nListEmails lists all authenticated user email addresses\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) ([]User, *Response, error)\n```\nListFollowers lists the followers for a user.  Passing the empty string will fetch followers for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#list-followers-of-a-user](http://developer.github.com/v3/users/followers/#list-followers-of-a-user)\n\n```go\nfunc (s *UsersService) ListFollowing(user string, opt *ListOptions) ([]User, *Response, error)\n```\nListFollowing lists the people that a user is following.  Passing the empty string will list people the authenticated user is following.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user](http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user)\n\n```go\nfunc (s *UsersService) ListKeys(user string) ([]Key, *Response, error)\n```\nListKeys lists the verified public keys for a user.  Passing the empty string will fetch keys for the authenticated user.\n\nGitHub API docs: [http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user](http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user)\n\n```go\nfunc (s *UsersService) Unfollow(user string) (*Response, error)\n```\nUnfollow will cause the authenticated user to unfollow the specified user.\n\nGitHub API docs: [http://developer.github.com/v3/users/followers/#unfollow-a-user](http://developer.github.com/v3/users/followers/#unfollow-a-user)\n\n```go\ntype WebHookAuthor struct {\n\tEmail    *string `json:\"email,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tUsername *string `json:\"username,omitempty\"`\n}\n```\nWebHookAuthor represents the author or committer of a commit, as specified in a WebHookCommit.  The commit author may not correspond to a GitHub User.\n\n```go\nfunc (w WebHookAuthor) String() string\n```\n\n```go\ntype WebHookCommit struct {\n\tAdded     []string       `json:\"added,omitempty\"`\n\tAuthor    *WebHookAuthor `json:\"author,omitempty\"`\n\tCommitter *WebHookAuthor `json:\"committer,omitempty\"`\n\tDistinct  *bool          `json:\"distinct,omitempty\"`\n\tID        *string        `json:\"id,omitempty\"`\n\tMessage   *string        `json:\"message,omitempty\"`\n\tModified  []string       `json:\"modified,omitempty\"`\n\tRemoved   []string       `json:\"removed,omitempty\"`\n\tTimestamp *time.Time     `json:\"timestamp,omitempty\"`\n}\n```\nWebHookCommit represents the commit variant we receive from GitHub in a WebHookPayload.\n\n```go\nfunc (w WebHookCommit) String() string\n```\n\n```go\ntype WebHookPayload struct {\n\tAfter      *string         `json:\"after,omitempty\"`\n\tBefore     *string         `json:\"before,omitempty\"`\n\tCommits    []WebHookCommit `json:\"commits,omitempty\"`\n\tCompare    *string         `json:\"compare,omitempty\"`\n\tCreated    *bool           `json:\"created,omitempty\"`\n\tDeleted    *bool           `json:\"deleted,omitempty\"`\n\tForced     *bool           `json:\"forced,omitempty\"`\n\tHeadCommit *WebHookCommit  `json:\"head_commit,omitempty\"`\n\tPusher     *User           `json:\"pusher,omitempty\"`\n\tRef        *string         `json:\"ref,omitempty\"`\n\tRepo       *Repository     `json:\"repository,omitempty\"`\n}\n```\nWebHookPayload represents the data that is received from GitHub when a push event hook is triggered.  The format of these payloads pre-date most of the GitHub v3 API, so there are lots of minor incompatibilities with the types defined in the rest of the API.  Therefore, several types are duplicated here to account for these differences.\n\nGitHub API docs: [https://help.github.com/articles/post-receive-hooks](https://help.github.com/articles/post-receive-hooks)\n\n```go\nfunc (w WebHookPayload) String() string\n```\n\n","path":"github.com/vonc/go-github/github","name":"github","synopsis":"Package github provides a client for using the GitHub API.","isRedistributable":true}
