{"modulePath":"github.com/google/go-github/v33","version":"v33.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github provides a client for using the GitHub API.\n\nUsage:\n\n\timport \"github.com/google/go-github/v33/github\"\t// with go modules enabled (GO111MODULE=on or outside GOPATH)\n\timport \"github.com/google/go-github/github\"     // with go modules disabled\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(ctx, \"willnorris\", nil)\n\nSome API methods have optional parameters that can be passed. For example:\n\n\tclient := github.NewClient(nil)\n\n\t// list public repositories for org \"github\"\n\topt := \u0026github.RepositoryListByOrgOptions{Type: \"public\"}\n\trepos, _, err := client.Repositories.ListByOrg(ctx, \"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 [https://docs.github.com/en/free-pro-team@latest/rest/reference/](https://docs.github.com/en/free-pro-team@latest/rest/reference/).\n\nNOTE: Using the [https://godoc.org/context](https://godoc.org/context) package, one can easily pass cancelation signals and deadlines to various services of the client for handling a request. In case there is no context available, then context.Background() can be used as a starting point.\n\nFor more sample code snippets, head over to the [https://github.com/google/go-github/tree/master/example](https://github.com/google/go-github/tree/master/example) directory.\n\n### Authentication {#hdr-Authentication}\n\nThe go-github library does not directly handle authentication. Instead, when creating a new client, pass an http.Client that can handle authentication for you. The easiest and recommended way to do this is using the golang.org/x/oauth2 library, but you can always use any other library that provides an http.Client. If you have an OAuth2 access token (for example, a personal API token), you can use it with the oauth2 library using:\n\n\timport \"golang.org/x/oauth2\"\n\n\tfunc main() {\n\t\tctx := context.Background()\n\t\tts := oauth2.StaticTokenSource(\n\t\t\t\u0026oauth2.Token{AccessToken: \"... your access token ...\"},\n\t\t)\n\t\ttc := oauth2.NewClient(ctx, ts)\n\n\t\tclient := github.NewClient(tc)\n\n\t\t// list all repositories for the authenticated user\n\t\trepos, _, err := client.Repositories.List(ctx, \"\", nil)\n\t}\n\nNote that when using an authenticated Client, all calls made by the client will include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users.\n\nSee the oauth2 docs for complete instructions on using that library.\n\nFor API methods that require HTTP Basic Authentication, use the BasicAuthTransport.\n\nGitHub Apps authentication can be provided by the [https://github.com/bradleyfalzon/ghinstallation](https://github.com/bradleyfalzon/ghinstallation) package.\n\n\timport \"github.com/bradleyfalzon/ghinstallation\"\n\n\tfunc main() {\n\t\t// Wrap the shared transport for use with the integration ID 1 authenticating with installation ID 99.\n\t\titr, err := ghinstallation.NewKeyFromFile(http.DefaultTransport, 1, 99, \"2016-10-19.private-key.pem\")\n\t\tif err != nil {\n\t\t\t// Handle error.\n\t\t}\n\n\t\t// Use installation transport with client\n\t\tclient := github.NewClient(\u0026http.Client{Transport: itr})\n\n\t\t// Use client...\n\t}\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. The Search API has a custom rate limit. Unauthenticated clients are limited to 10 requests per minute, while authenticated clients can make up to 30 requests per minute. To receive the higher rate limit when making calls that are not issued on behalf of a user, use UnauthenticatedRateLimitedTransport.\n\nThe returned Response.Rate value contains the rate limit information from the most recent API call. If a recent enough response isn't available, you can use RateLimits to fetch the most up-to-date rate limit data for the client.\n\nTo detect an API rate limit error, you can check if its type is \\*github.RateLimitError:\n\n\trepos, _, err := client.Repositories.List(ctx, \"\", nil)\n\tif _, ok := err.(*github.RateLimitError); ok {\n\t\tlog.Println(\"hit rate limit\")\n\t}\n\nLearn more about GitHub rate limiting at [https://docs.github.com/en/free-pro-team@latest/rest/reference/#rate-limiting](https://docs.github.com/en/free-pro-team@latest/rest/reference/#rate-limiting).\n\n### Accepted Status {#hdr-Accepted_Status}\n\nSome endpoints may return a 202 Accepted status code, meaning that the information required is not yet ready and was scheduled to be gathered on the GitHub side. Methods known to behave like this are documented specifying this behavior.\n\nTo detect this condition of error, you can check if its type is \\*github.AcceptedError:\n\n\tstats, _, err := client.Repositories.ListContributorsStats(ctx, org, repo)\n\tif _, ok := err.(*github.AcceptedError); ok {\n\t\tlog.Println(\"scheduled on GitHub side\")\n\t}\n\n### Conditional Requests {#hdr-Conditional_Requests}\n\nThe GitHub API has good support for conditional requests which will help prevent you from burning through your rate limit, as well as help speed up your application. go-github does not handle conditional requests directly, but is instead designed to work with a caching http.Transport. We recommend using [https://github.com/gregjones/httpcache](https://github.com/gregjones/httpcache) for that.\n\nLearn more about GitHub conditional requests at [https://docs.github.com/en/free-pro-team@latest/rest/reference/#conditional-requests](https://docs.github.com/en/free-pro-team@latest/rest/reference/#conditional-requests).\n\n### Creating and Updating Resources {#hdr-Creating_and_Updating_Resources}\n\nAll structs for GitHub resources use pointer values for all non-repeated fields. This allows distinguishing between unset fields and those set to a zero-value. Helper functions have been provided to easily create these pointers for string, bool, and int values. For example:\n\n\t// create a new private repository named \"foo\"\n\trepo := \u0026github.Repository{\n\t\tName:    github.String(\"foo\"),\n\t\tPrivate: github.Bool(true),\n\t}\n\tclient.Repositories.Create(ctx, \"\", repo)\n\nUsers who have worked with protocol buffers should find this pattern familiar.\n\n### Pagination {#hdr-Pagination}\n\nAll requests for resource collections (repos, pull requests, issues, etc.) support pagination. Pagination options are described in the github.ListOptions struct and passed to the list methods directly or as an embedded type of a more specific list options struct (for example github.PullRequestListOptions). Pages information is available via the github.Response struct.\n\n\tclient := github.NewClient(nil)\n\n\topt := \u0026github.RepositoryListByOrgOptions{\n\t\tListOptions: github.ListOptions{PerPage: 10},\n\t}\n\t// get all pages of results\n\tvar allRepos []*github.Repository\n\tfor {\n\t\trepos, resp, err := client.Repositories.ListByOrg(ctx, \"github\", opt)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tallRepos = append(allRepos, repos...)\n\t\tif resp.NextPage == 0 {\n\t\t\tbreak\n\t\t}\n\t\topt.Page = resp.NextPage\n\t}\n\n## Variables\n\n```go\nvar ErrMixedCommentStyles = errors.New(\"cannot use both position and side/line form comments\")\n```\n\n## Functions\n\n```go\nfunc Bool(v bool) *bool\n```\nBool is a helper routine that allocates a new bool value to store v and returns a pointer to it.\n\n```go\nfunc CheckResponse(r *http.Response) error\n```\nCheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range or equal to 202 Accepted. API error responses are expected to have response body, and a JSON response body that maps to ErrorResponse.\n\nThe error type will be \\*RateLimitError for rate limit exceeded errors, \\*AcceptedError for 202 Accepted status codes, and \\*TwoFactorAuthError for two-factor authentication errors.\n\n```go\nfunc DeliveryID(r *http.Request) string\n```\nDeliveryID returns the unique delivery ID of webhook request r.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/hooks/#webhook-headers](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/hooks/#webhook-headers)\n\n```go\nfunc Int(v int) *int\n```\nInt is a helper routine that allocates a new int value to store v and returns a pointer to it.\n\n```go\nfunc Int64(v int64) *int64\n```\nInt64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.\n\n```go\nfunc ParseWebHook(messageType string, payload []byte) (interface{}, error)\n```\nParseWebHook parses the event payload. For recognized event types, a value of the corresponding struct type will be returned (as returned by Event.ParsePayload()). An error will be returned for unrecognized event types.\n\nExample usage:\n\n\tfunc (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t  payload, err := github.ValidatePayload(r, s.webhookSecretKey)\n\t  if err != nil { ... }\n\t  event, err := github.ParseWebHook(github.WebHookType(r), payload)\n\t  if err != nil { ... }\n\t  switch event := event.(type) {\n\t  case *github.CommitCommentEvent:\n\t      processCommitCommentEvent(event)\n\t  case *github.CreateEvent:\n\t      processCreateEvent(event)\n\t  ...\n\t  }\n\t}\n\n```go\nfunc String(v string) *string\n```\nString is a helper routine that allocates a new string value to store v and returns a pointer to it.\n\n```go\nfunc Stringify(message interface{}) string\n```\nStringify attempts to create a reasonable string representation of types in the GitHub library. It does things like resolve pointers to their values and omits struct fields with nil values.\n\n```go\nfunc ValidatePayload(r *http.Request, secretToken []byte) (payload []byte, err error)\n```\nValidatePayload validates an incoming GitHub Webhook event request and returns the (JSON) payload. The Content-Type header of the payload can be \"application/json\" or \"application/x-www-form-urlencoded\". If the Content-Type is neither then an error is returned. secretToken is the GitHub Webhook secret token. If your webhook does not contain a secret token, you can pass nil or an empty slice. This is intended for local development purposes only and all webhooks should ideally set up a secret token.\n\nExample usage:\n\n\tfunc (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t  payload, err := github.ValidatePayload(r, s.webhookSecretKey)\n\t  if err != nil { ... }\n\t  // Process payload...\n\t}\n\n```go\nfunc ValidateSignature(signature string, payload, secretToken []byte) error\n```\nValidateSignature validates the signature for the given payload. signature is the GitHub hash signature delivered in the X-Hub-Signature header. payload is the JSON payload sent by GitHub Webhooks. secretToken is the GitHub Webhook secret token.\n\nGitHub API docs: [https://developer.github.com/webhooks/securing/#validating-payloads-from-github](https://developer.github.com/webhooks/securing/#validating-payloads-from-github)\n\n```go\nfunc WebHookType(r *http.Request) string\n```\nWebHookType returns the event type of webhook request r.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/hooks/#webhook-headers](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/hooks/#webhook-headers)\n\n## Types\n\n```go\ntype APIMeta struct {\n\t// An Array of IP addresses in CIDR format specifying the addresses\n\t// that incoming service hooks will originate from on GitHub.com.\n\tHooks []string `json:\"hooks,omitempty\"`\n\n\t// An Array of IP addresses in CIDR format specifying the Git servers\n\t// for GitHub.com.\n\tGit []string `json:\"git,omitempty\"`\n\n\t// Whether authentication with username and password is supported.\n\t// (GitHub Enterprise instances using CAS or OAuth for authentication\n\t// will return false. Features like Basic Authentication with a\n\t// username and password, sudo mode, and two-factor authentication are\n\t// not supported on these servers.)\n\tVerifiablePasswordAuthentication *bool `json:\"verifiable_password_authentication,omitempty\"`\n\n\t// An array of IP addresses in CIDR format specifying the addresses\n\t// which serve GitHub Pages websites.\n\tPages []string `json:\"pages,omitempty\"`\n\n\t// An Array of IP addresses specifying the addresses that source imports\n\t// will originate from on GitHub.com.\n\tImporter []string `json:\"importer,omitempty\"`\n}\n```\nAPIMeta represents metadata about the GitHub API.\n\n```go\nfunc (a *APIMeta) GetVerifiablePasswordAuthentication() bool\n```\nGetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise.\n\n```go\ntype AbuseRateLimitError struct {\n\tResponse *http.Response // HTTP response that caused this error\n\tMessage  string         `json:\"message\"` // error message\n\n\t// RetryAfter is provided with some abuse rate limit errors. If present,\n\t// it is the amount of time that the client should wait before retrying.\n\t// Otherwise, the client should try again later (after an unspecified amount of time).\n\tRetryAfter *time.Duration\n}\n```\nAbuseRateLimitError occurs when GitHub returns 403 Forbidden response with the \"documentation\\_url\" field value equal to \"[https://docs.github.com/en/free-pro-team@latest/rest/reference/#abuse-rate-limits](https://docs.github.com/en/free-pro-team@latest/rest/reference/#abuse-rate-limits)\".\n\n```go\nfunc (r *AbuseRateLimitError) Error() string\n```\n\n```go\nfunc (a *AbuseRateLimitError) GetRetryAfter() time.Duration\n```\nGetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.\n\n```go\ntype AcceptedError struct {\n\t// Raw contains the response body.\n\tRaw []byte\n}\n```\nAcceptedError occurs when GitHub returns 202 Accepted response with an empty body, which means a job was scheduled on the GitHub side to process the information needed and cache it. Technically, 202 Accepted is not a real error, it's just used to indicate that results are not ready yet, but should be available soon. The request can be repeated after some time.\n\n```go\nfunc (*AcceptedError) Error() string\n```\n\n```go\ntype ActionsEnabledOnOrgRepos struct {\n\tTotalCount   int           `json:\"total_count\"`\n\tRepositories []*Repository `json:\"repositories\"`\n}\n```\nActionsEnabledOnOrgRepos represents all the repositories in an organization for which Actions is enabled.\n\n```go\ntype ActionsService service\n```\nActionsService handles communication with the actions related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/)\n\n```go\nfunc (s *ActionsService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nAddSelectedRepoToOrgSecret adds a repository to an organization secret.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#add-selected-repository-to-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#add-selected-repository-to-an-organization-secret)\n\n```go\nfunc (s *ActionsService) CancelWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*Response, error)\n```\nCancelWorkflowRunByID cancels a workflow run by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#cancel-a-workflow-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#cancel-a-workflow-run)\n\n```go\nfunc (s *ActionsService) CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error)\n```\nCreateOrUpdateOrgSecret creates or updates an organization secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-or-update-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-or-update-an-organization-secret)\n\n```go\nfunc (s *ActionsService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error)\n```\nCreateOrUpdateRepoSecret creates or updates a repository secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-or-update-a-repository-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-or-update-a-repository-secret)\n\n```go\nfunc (s *ActionsService) CreateOrganizationRegistrationToken(ctx context.Context, owner string) (*RegistrationToken, *Response, error)\n```\nCreateOrganizationRegistrationToken creates a token that can be used to add a self-hosted runner to an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-registration-token-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-registration-token-for-an-organization)\n\n```go\nfunc (s *ActionsService) CreateOrganizationRemoveToken(ctx context.Context, owner string) (*RemoveToken, *Response, error)\n```\nCreateOrganizationRemoveToken creates a token that can be used to remove a self-hosted runner from an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-remove-token-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-remove-token-for-an-organization)\n\n```go\nfunc (s *ActionsService) CreateRegistrationToken(ctx context.Context, owner, repo string) (*RegistrationToken, *Response, error)\n```\nCreateRegistrationToken creates a token that can be used to add a self-hosted runner.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-registration-token-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-registration-token-for-a-repository)\n\n```go\nfunc (s *ActionsService) CreateRemoveToken(ctx context.Context, owner, repo string) (*RemoveToken, *Response, error)\n```\nCreateRemoveToken creates a token that can be used to remove a self-hosted runner from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-remove-token-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-remove-token-for-a-repository)\n\n```go\nfunc (s *ActionsService) CreateWorkflowDispatchEventByFileName(ctx context.Context, owner, repo, workflowFileName string, event CreateWorkflowDispatchEventRequest) (*Response, error)\n```\nCreateWorkflowDispatchEventByFileName manually triggers a GitHub Actions workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-workflow-dispatch-event](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-workflow-dispatch-event)\n\n```go\nfunc (s *ActionsService) CreateWorkflowDispatchEventByID(ctx context.Context, owner, repo string, workflowID int64, event CreateWorkflowDispatchEventRequest) (*Response, error)\n```\nCreateWorkflowDispatchEventByID manually triggers a GitHub Actions workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-workflow-dispatch-event](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#create-a-workflow-dispatch-event)\n\n```go\nfunc (s *ActionsService) DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Response, error)\n```\nDeleteArtifact deletes a workflow run artifact.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-an-artifact](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-an-artifact)\n\n```go\nfunc (s *ActionsService) DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error)\n```\nDeleteOrgSecret deletes a secret in an organization using the secret name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-an-organization-secret)\n\n```go\nfunc (s *ActionsService) DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteRepoSecret deletes a secret in a repository using the secret name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-a-repository-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-a-repository-secret)\n\n```go\nfunc (s *ActionsService) DeleteWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64) (*Response, error)\n```\nDeleteWorkflowRunLogs deletes all logs for a workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-workflow-run-logs](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-workflow-run-logs)\n\n```go\nfunc (s *ActionsService) DisableWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Response, error)\n```\nDisableWorkflowByFileName disables a workflow and sets the state of the workflow to \"disabled\\_manually\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#disable-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#disable-a-workflow)\n\n```go\nfunc (s *ActionsService) DisableWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Response, error)\n```\nDisableWorkflowByID disables a workflow and sets the state of the workflow to \"disabled\\_manually\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#disable-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#disable-a-workflow)\n\n```go\nfunc (s *ActionsService) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, followRedirects bool) (*url.URL, *Response, error)\n```\nDownloadArtifact gets a redirect URL to download an archive for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/artifacts/#download-an-artifact](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/artifacts/#download-an-artifact)\n\n```go\nfunc (s *ActionsService) EnableWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Response, error)\n```\nEnableWorkflowByFileName enables a workflow and sets the state of the workflow to \"active\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#enable-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#enable-a-workflow)\n\n```go\nfunc (s *ActionsService) EnableWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Response, error)\n```\nEnableWorkflowByID enables a workflow and sets the state of the workflow to \"active\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#enable-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#enable-a-workflow)\n\n```go\nfunc (s *ActionsService) GetArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Artifact, *Response, error)\n```\nGetArtifact gets a specific artifact for a workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-an-artifact](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-an-artifact)\n\n```go\nfunc (s *ActionsService) GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error)\n```\nGetOrgPublicKey gets a public key that should be used for secret encryption.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-an-organization-public-key](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-an-organization-public-key)\n\n```go\nfunc (s *ActionsService) GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error)\n```\nGetOrgSecret gets a single organization secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-an-organization-secret)\n\n```go\nfunc (s *ActionsService) GetOrganizationRunner(ctx context.Context, owner string, runnerID int64) (*Runner, *Response, error)\n```\nGetOrganizationRunner gets a specific self-hosted runner for an organization using its runner ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-self-hosted-runner-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-self-hosted-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error)\n```\nGetRepoPublicKey gets a public key that should be used for secret encryption.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-repository-public-key](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-repository-public-key)\n\n```go\nfunc (s *ActionsService) GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error)\n```\nGetRepoSecret gets a single repository secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-repository-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-repository-secret)\n\n```go\nfunc (s *ActionsService) GetRunner(ctx context.Context, owner, repo string, runnerID int64) (*Runner, *Response, error)\n```\nGetRunner gets a specific self-hosted runner for a repository using its runner ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-self-hosted-runner-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-self-hosted-runner-for-a-repository)\n\n```go\nfunc (s *ActionsService) GetWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Workflow, *Response, error)\n```\nGetWorkflowByFileName gets a specific workflow by file name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-workflow)\n\n```go\nfunc (s *ActionsService) GetWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Workflow, *Response, error)\n```\nGetWorkflowByID gets a specific workflow by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-workflow)\n\n```go\nfunc (s *ActionsService) GetWorkflowJobByID(ctx context.Context, owner, repo string, jobID int64) (*WorkflowJob, *Response, error)\n```\nGetWorkflowJobByID gets a specific job in a workflow run by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-job-for-a-workflow-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-job-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetWorkflowJobLogs(ctx context.Context, owner, repo string, jobID int64, followRedirects bool) (*url.URL, *Response, error)\n```\nGetWorkflowJobLogs gets a redirect URL to download a plain text file of logs for a workflow job.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#download-job-logs-for-a-workflow-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#download-job-logs-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRun, *Response, error)\n```\nGetWorkflowRunByID gets a specific workflow run by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-workflow-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64, followRedirects bool) (*url.URL, *Response, error)\n```\nGetWorkflowRunLogs gets a redirect URL to download a plain text file of logs for a workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#download-workflow-run-logs](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#download-workflow-run-logs)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunUsageByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRunUsage, *Response, error)\n```\nGetWorkflowRunUsageByID gets a specific workflow usage run by run ID in the unit of billable milliseconds.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-workflow-run-usage](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-workflow-run-usage)\n\n```go\nfunc (s *ActionsService) GetWorkflowUsageByFileName(ctx context.Context, owner, repo, workflowFileName string) (*WorkflowUsage, *Response, error)\n```\nGetWorkflowUsageByFileName gets a specific workflow usage by file name in the unit of billable milliseconds.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-workflow-usage](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-workflow-usage)\n\n```go\nfunc (s *ActionsService) GetWorkflowUsageByID(ctx context.Context, owner, repo string, workflowID int64) (*WorkflowUsage, *Response, error)\n```\nGetWorkflowUsageByID gets a specific workflow usage by ID in the unit of billable milliseconds.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-workflow-usage](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#get-workflow-usage)\n\n```go\nfunc (s *ActionsService) ListArtifacts(ctx context.Context, owner, repo string, opts *ListOptions) (*ArtifactList, *Response, error)\n```\nListArtifacts lists all artifacts that belong to a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-artifacts-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-artifacts-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListEnabledReposInOrg(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnOrgRepos, *Response, error)\n```\nListEnabledReposInOrg lists the selected repositories that are enabled for GitHub Actions in an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-selected-repositories-enabled-for-github-actions-in-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-selected-repositories-enabled-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListOrgSecrets lists all secrets available in an organization without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-organization-secrets](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-organization-secrets)\n\n```go\nfunc (s *ActionsService) ListOrganizationRunnerApplicationDownloads(ctx context.Context, owner string) ([]*RunnerApplicationDownload, *Response, error)\n```\nListOrganizationRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-runner-applications-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-runner-applications-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListOrganizationRunners(ctx context.Context, owner string, opts *ListOptions) (*Runners, *Response, error)\n```\nListOrganizationRunners lists all the self-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-self-hosted-runners-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-self-hosted-runners-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListRepoSecrets lists all secrets available in a repository without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-repository-secrets](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-repository-secrets)\n\n```go\nfunc (s *ActionsService) ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)\n```\nListRepositoryWorkflowRuns lists all workflow runs for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-runs-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-runs-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRunnerApplicationDownloads(ctx context.Context, owner, repo string) ([]*RunnerApplicationDownload, *Response, error)\n```\nListRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-runner-applications-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-runner-applications-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRunners(ctx context.Context, owner, repo string, opts *ListOptions) (*Runners, *Response, error)\n```\nListRunners lists all the self-hosted runners for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-self-hosted-runners-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-self-hosted-runners-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListSelectedReposForOrgSecret(ctx context.Context, org, name string) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgSecret lists all repositories that have access to a secret.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-selected-repositories-for-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *ActionsService) ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, opts *ListWorkflowJobsOptions) (*Jobs, *Response, error)\n```\nListWorkflowJobs lists all jobs for a workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-jobs-for-a-workflow-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-jobs-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) ListWorkflowRunArtifacts(ctx context.Context, owner, repo string, runID int64, opts *ListOptions) (*ArtifactList, *Response, error)\n```\nListWorkflowRunArtifacts lists all artifacts that belong to a workflow run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-run-artifacts](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-run-artifacts)\n\n```go\nfunc (s *ActionsService) ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)\n```\nListWorkflowRunsByFileName lists all workflow runs by workflow file name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-runs](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-runs)\n\n```go\nfunc (s *ActionsService) ListWorkflowRunsByID(ctx context.Context, owner, repo string, workflowID int64, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)\n```\nListWorkflowRunsByID lists all workflow runs by workflow ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-runs](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-workflow-runs)\n\n```go\nfunc (s *ActionsService) ListWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*Workflows, *Response, error)\n```\nListWorkflows lists all workflows in a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-repository-workflows](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#list-repository-workflows)\n\n```go\nfunc (s *ActionsService) RemoveOrganizationRunner(ctx context.Context, owner string, runnerID int64) (*Response, error)\n```\nRemoveOrganizationRunner forces the removal of a self-hosted runner from an organization using the runner id.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-a-self-hosted-runner-from-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-a-self-hosted-runner-from-an-organization)\n\n```go\nfunc (s *ActionsService) RemoveRunner(ctx context.Context, owner, repo string, runnerID int64) (*Response, error)\n```\nRemoveRunner forces the removal of a self-hosted runner in a repository using the runner id.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-a-self-hosted-runner-from-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#delete-a-self-hosted-runner-from-a-repository)\n\n```go\nfunc (s *ActionsService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nRemoveSelectedRepoFromOrgSecret removes a repository from an organization secret.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#remove-selected-repository-from-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#remove-selected-repository-from-an-organization-secret)\n\n```go\nfunc (s *ActionsService) RerunWorkflowByID(ctx context.Context, owner, repo string, runID int64) (*Response, error)\n```\nRerunWorkflowByID re-runs a workflow by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#re-run-a-workflow](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#re-run-a-workflow)\n\n```go\nfunc (s *ActionsService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error)\n```\nSetSelectedReposForOrgSecret sets the repositories that have access to a secret.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#set-selected-repositories-for-an-organization-secret](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/#set-selected-repositories-for-an-organization-secret)\n\n```go\ntype ActivityListStarredOptions struct {\n\t// How to sort the repository list. Possible values are: created, updated,\n\t// pushed, full_name. Default is \"full_name\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories. Possible values are: asc, desc.\n\t// Default is \"asc\" when sort is \"full_name\", otherwise default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nActivityListStarredOptions specifies the optional parameters to the ActivityService.ListStarred method.\n\n```go\ntype ActivityService service\n```\nActivityService handles communication with the activity related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/)\n\n```go\nfunc (s *ActivityService) DeleteRepositorySubscription(ctx context.Context, owner, repo string) (*Response, error)\n```\nDeleteRepositorySubscription deletes the subscription for the specified repository for the authenticated user.\n\nThis is used to stop watching a repository. To control whether or not to receive notifications from a repository, use SetRepositorySubscription.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#delete-a-repository-subscription](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#delete-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) DeleteThreadSubscription(ctx context.Context, id string) (*Response, error)\n```\nDeleteThreadSubscription deletes the subscription for the specified thread for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#delete-a-thread-subscription](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#delete-a-thread-subscription)\n\n```go\nfunc (s *ActivityService) GetRepositorySubscription(ctx context.Context, owner, repo string) (*Subscription, *Response, error)\n```\nGetRepositorySubscription returns the subscription for the specified repository for the authenticated user. If the authenticated user is not watching the repository, a nil Subscription is returned.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#get-a-repository-subscription](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#get-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) GetThread(ctx context.Context, id string) (*Notification, *Response, error)\n```\nGetThread gets the specified notification thread.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#get-a-thread](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#get-a-thread)\n\n```go\nfunc (s *ActivityService) GetThreadSubscription(ctx context.Context, id string) (*Subscription, *Response, error)\n```\nGetThreadSubscription checks to see if the authenticated user is subscribed to a thread.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#get-a-thread-subscription-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#get-a-thread-subscription-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) IsStarred(ctx context.Context, owner, repo string) (bool, *Response, error)\n```\nIsStarred checks if a repository is starred by authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#check-if-a-repository-is-starred-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#check-if-a-repository-is-starred-by-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListEvents(ctx context.Context, opts *ListOptions) ([]*Event, *Response, error)\n```\nListEvents drinks from the firehose of all public events across GitHub.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events)\n\n```go\nfunc (s *ActivityService) ListEventsForOrganization(ctx context.Context, org string, opts *ListOptions) ([]*Event, *Response, error)\n```\nListEventsForOrganization lists public events for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-organization-events](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-organization-events)\n\n```go\nfunc (s *ActivityService) ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error)\n```\nListEventsForRepoNetwork lists public events for a network of repositories.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events-for-a-network-of-repositories](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events-for-a-network-of-repositories)\n\n```go\nfunc (s *ActivityService) ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-events-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-events-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events-for-a-user)\n\n```go\nfunc (s *ActivityService) ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error)\n```\nListEventsReceivedByUser lists the events received by a user. If publicOnly is true, only public events will be returned.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-events-received-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-events-received-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events-received-by-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-public-events-received-by-a-user)\n\n```go\nfunc (s *ActivityService) ListFeeds(ctx context.Context) (*Feeds, *Response, error)\n```\nListFeeds lists all the feeds available to the authenticated user.\n\nGitHub provides several timeline resources in Atom format:\n\n\tTimeline: The GitHub global public timeline\n\tUser: The public timeline for any user, using URI template\n\tCurrent user public: The public timeline for the authenticated user\n\tCurrent user: The private timeline for the authenticated user\n\tCurrent user actor: The private timeline for activity created by the\n\t    authenticated user\n\tCurrent user organizations: The private timeline for the organizations\n\t    the authenticated user is a member of.\n\nNote: Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens.\n\n```go\nfunc (s *ActivityService) ListIssueEventsForRepository(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error)\n```\nListIssueEventsForRepository lists issue events for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-events-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-events-for-a-repository)\n\n```go\nfunc (s *ActivityService) ListNotifications(ctx context.Context, opts *NotificationListOptions) ([]*Notification, *Response, error)\n```\nListNotifications lists all notifications for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-notifications-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-notifications-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error)\n```\nListRepositoryEvents lists events for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repository-events](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repository-events)\n\n```go\nfunc (s *ActivityService) ListRepositoryNotifications(ctx context.Context, owner, repo string, opts *NotificationListOptions) ([]*Notification, *Response, error)\n```\nListRepositoryNotifications lists all notifications in a given repository for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repository-notifications-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repository-notifications-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListStargazers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Stargazer, *Response, error)\n```\nListStargazers lists people who have starred the specified repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-stargazers](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-stargazers)\n\n```go\nfunc (s *ActivityService) ListStarred(ctx context.Context, user string, opts *ActivityListStarredOptions) ([]*StarredRepository, *Response, error)\n```\nListStarred lists all the repos starred by a user. Passing the empty string will list the starred repositories for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-starred-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-starred-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-starred-by-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-starred-by-a-user)\n\n```go\nfunc (s *ActivityService) ListUserEventsForOrganization(ctx context.Context, org, user string, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-organization-events-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-organization-events-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListWatched(ctx context.Context, user string, opts *ListOptions) ([]*Repository, *Response, error)\n```\nListWatched lists the repositories the specified user is watching. Passing the empty string will fetch watched repos for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-watched-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-watched-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-watched-by-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-repositories-watched-by-a-user)\n\n```go\nfunc (s *ActivityService) ListWatchers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error)\n```\nListWatchers lists watchers of a particular repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-watchers](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#list-watchers)\n\n```go\nfunc (s *ActivityService) MarkNotificationsRead(ctx context.Context, lastRead time.Time) (*Response, error)\n```\nMarkNotificationsRead marks all notifications up to lastRead as read.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity#mark-as-read](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity#mark-as-read)\n\n```go\nfunc (s *ActivityService) MarkRepositoryNotificationsRead(ctx context.Context, owner, repo string, lastRead time.Time) (*Response, error)\n```\nMarkRepositoryNotificationsRead marks all notifications up to lastRead in the specified repository as read.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#mark-repository-notifications-as-read](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#mark-repository-notifications-as-read)\n\n```go\nfunc (s *ActivityService) MarkThreadRead(ctx context.Context, id string) (*Response, error)\n```\nMarkThreadRead marks the specified thread as read.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#mark-a-thread-as-read](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#mark-a-thread-as-read)\n\n```go\nfunc (s *ActivityService) SetRepositorySubscription(ctx context.Context, owner, repo string, subscription *Subscription) (*Subscription, *Response, error)\n```\nSetRepositorySubscription sets the subscription for the specified repository for the authenticated user.\n\nTo watch a repository, set subscription.Subscribed to true. To ignore notifications made within a repository, set subscription.Ignored to true. To stop watching a repository, use DeleteRepositorySubscription.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#set-a-repository-subscription](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#set-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) SetThreadSubscription(ctx context.Context, id string, subscription *Subscription) (*Subscription, *Response, error)\n```\nSetThreadSubscription sets the subscription for the specified thread for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#set-a-thread-subscription](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#set-a-thread-subscription)\n\n```go\nfunc (s *ActivityService) Star(ctx context.Context, owner, repo string) (*Response, error)\n```\nStar a repository as the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#star-a-repository-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#star-a-repository-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) Unstar(ctx context.Context, owner, repo string) (*Response, error)\n```\nUnstar a repository as the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#unstar-a-repository-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/#unstar-a-repository-for-the-authenticated-user)\n\n```go\ntype AdminEnforcement struct {\n\tURL     *string `json:\"url,omitempty\"`\n\tEnabled bool    `json:\"enabled\"`\n}\n```\nAdminEnforcement represents the configuration to enforce required status checks for repository administrators.\n\n```go\nfunc (a *AdminEnforcement) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype AdminService service\n```\nAdminService handles communication with the admin related methods of the GitHub API. These API routes are normally only accessible for GitHub Enterprise installations.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise/](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise/)\n\n```go\nfunc (s *AdminService) CreateOrg(ctx context.Context, org *Organization, admin string) (*Organization, *Response, error)\n```\nCreateOrg creates a new organization in GitHub Enterprise.\n\nNote that only a subset of the org fields are used and org must not be nil.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/orgs/#create-an-organization](https://developer.github.com/enterprise/v3/enterprise-admin/orgs/#create-an-organization)\n\n```go\nfunc (s *AdminService) CreateUser(ctx context.Context, login, email string) (*User, *Response, error)\n```\nCreateUser creates a new user in GitHub Enterprise.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#create-a-new-user](https://developer.github.com/enterprise/v3/enterprise-admin/users/#create-a-new-user)\n\n```go\nfunc (s *AdminService) CreateUserImpersonation(ctx context.Context, username string, opts *ImpersonateUserOptions) (*UserAuthorization, *Response, error)\n```\nCreateUserImpersonation creates an impersonation OAuth token.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#create-an-impersonation-oauth-token](https://developer.github.com/enterprise/v3/enterprise-admin/users/#create-an-impersonation-oauth-token)\n\n```go\nfunc (s *AdminService) DeleteUser(ctx context.Context, username string) (*Response, error)\n```\nDeleteUser deletes a user in GitHub Enterprise.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#delete-a-user](https://developer.github.com/enterprise/v3/enterprise-admin/users/#delete-a-user)\n\n```go\nfunc (s *AdminService) DeleteUserImpersonation(ctx context.Context, username string) (*Response, error)\n```\nDeleteUserImpersonation deletes an impersonation OAuth token.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token](https://developer.github.com/enterprise/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token)\n\n```go\nfunc (s *AdminService) GetAdminStats(ctx context.Context) (*AdminStats, *Response, error)\n```\nGetAdminStats returns a variety of metrics about a GitHub Enterprise installation.\n\nPlease note that this is only available to site administrators, otherwise it will error with a 404 not found (instead of 401 or 403).\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/admin\\_stats/](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/admin_stats/)\n\n```go\nfunc (s *AdminService) RenameOrg(ctx context.Context, org *Organization, newName string) (*RenameOrgResponse, *Response, error)\n```\nRenameOrg renames an organization in GitHub Enterprise.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/orgs/#rename-an-organization](https://developer.github.com/enterprise/v3/enterprise-admin/orgs/#rename-an-organization)\n\n```go\nfunc (s *AdminService) RenameOrgByName(ctx context.Context, org, newName string) (*RenameOrgResponse, *Response, error)\n```\nRenameOrgByName renames an organization in GitHub Enterprise using its current name.\n\nGitHub Enterprise API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/orgs/#rename-an-organization](https://developer.github.com/enterprise/v3/enterprise-admin/orgs/#rename-an-organization)\n\n```go\nfunc (s *AdminService) UpdateTeamLDAPMapping(ctx context.Context, team int64, mapping *TeamLDAPMapping) (*TeamLDAPMapping, *Response, error)\n```\nUpdateTeamLDAPMapping updates the mapping between a GitHub team and an LDAP group.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise/ldap/#update-ldap-mapping-for-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise/ldap/#update-ldap-mapping-for-a-team)\n\n```go\nfunc (s *AdminService) UpdateUserLDAPMapping(ctx context.Context, user string, mapping *UserLDAPMapping) (*UserLDAPMapping, *Response, error)\n```\nUpdateUserLDAPMapping updates the mapping between a GitHub user and an LDAP user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise/ldap/#update-ldap-mapping-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise/ldap/#update-ldap-mapping-for-a-user)\n\n```go\ntype AdminStats struct {\n\tIssues     *IssueStats     `json:\"issues,omitempty\"`\n\tHooks      *HookStats      `json:\"hooks,omitempty\"`\n\tMilestones *MilestoneStats `json:\"milestones,omitempty\"`\n\tOrgs       *OrgStats       `json:\"orgs,omitempty\"`\n\tComments   *CommentStats   `json:\"comments,omitempty\"`\n\tPages      *PageStats      `json:\"pages,omitempty\"`\n\tUsers      *UserStats      `json:\"users,omitempty\"`\n\tGists      *GistStats      `json:\"gists,omitempty\"`\n\tPulls      *PullStats      `json:\"pulls,omitempty\"`\n\tRepos      *RepoStats      `json:\"repos,omitempty\"`\n}\n```\nAdminStats represents a variety of stats of a GitHub Enterprise installation.\n\n```go\nfunc (a *AdminStats) GetComments() *CommentStats\n```\nGetComments returns the Comments field.\n\n```go\nfunc (a *AdminStats) GetGists() *GistStats\n```\nGetGists returns the Gists field.\n\n```go\nfunc (a *AdminStats) GetHooks() *HookStats\n```\nGetHooks returns the Hooks field.\n\n```go\nfunc (a *AdminStats) GetIssues() *IssueStats\n```\nGetIssues returns the Issues field.\n\n```go\nfunc (a *AdminStats) GetMilestones() *MilestoneStats\n```\nGetMilestones returns the Milestones field.\n\n```go\nfunc (a *AdminStats) GetOrgs() *OrgStats\n```\nGetOrgs returns the Orgs field.\n\n```go\nfunc (a *AdminStats) GetPages() *PageStats\n```\nGetPages returns the Pages field.\n\n```go\nfunc (a *AdminStats) GetPulls() *PullStats\n```\nGetPulls returns the Pulls field.\n\n```go\nfunc (a *AdminStats) GetRepos() *RepoStats\n```\nGetRepos returns the Repos field.\n\n```go\nfunc (a *AdminStats) GetUsers() *UserStats\n```\nGetUsers returns the Users field.\n\n```go\nfunc (s AdminStats) String() string\n```\n\n```go\ntype Alert struct {\n\tRuleID          *string    `json:\"rule_id,omitempty\"`\n\tRuleSeverity    *string    `json:\"rule_severity,omitempty\"`\n\tRuleDescription *string    `json:\"rule_description,omitempty\"`\n\tTool            *string    `json:\"tool,omitempty\"`\n\tCreatedAt       *Timestamp `json:\"created_at,omitempty\"`\n\tOpen            *bool      `json:\"open,omitempty\"`\n\tClosedBy        *User      `json:\"closed_by,omitempty\"`\n\tClosedAt        *Timestamp `json:\"closed_at,omitempty\"`\n\tURL             *string    `json:\"url,omitempty\"`\n\tHTMLURL         *string    `json:\"html_url,omitempty\"`\n}\n```\n\n```go\nfunc (a *Alert) GetClosedAt() Timestamp\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetClosedBy() *User\n```\nGetClosedBy returns the ClosedBy field.\n\n```go\nfunc (a *Alert) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetOpen() bool\n```\nGetOpen returns the Open field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetRuleDescription() string\n```\nGetRuleDescription returns the RuleDescription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetRuleID() string\n```\nGetRuleID returns the RuleID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetRuleSeverity() string\n```\nGetRuleSeverity returns the RuleSeverity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetTool() string\n```\nGetTool returns the Tool field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) ID() int64\n```\nID returns the ID associated with an alert. It is the number at the end of the security alert's URL.\n\n```go\ntype AlertListOptions struct {\n\t// State of the code scanning alerts to list. Set to closed to list only closed code scanning alerts. Default: open\n\tState string `url:\"state,omitempty\"`\n\n\t// Return code scanning alerts for a specific branch reference. The ref must be formatted as heads/\u003cbranch name\u003e.\n\tRef string `url:\"ref,omitempty\"`\n}\n```\nAlertListOptions specifies optional parameters to the CodeScanningService.ListAlerts method.\n\n```go\ntype AllowDeletions struct {\n\tEnabled bool `json:\"enabled\"`\n}\n```\nAllowDeletions represents the configuration to accept deletion of protected branches.\n\n```go\ntype AllowForcePushes struct {\n\tEnabled bool `json:\"enabled\"`\n}\n```\nAllowForcePushes represents the configuration to accept forced pushes on protected branches.\n\n```go\ntype App struct {\n\tID          *int64                   `json:\"id,omitempty\"`\n\tSlug        *string                  `json:\"slug,omitempty\"`\n\tNodeID      *string                  `json:\"node_id,omitempty\"`\n\tOwner       *User                    `json:\"owner,omitempty\"`\n\tName        *string                  `json:\"name,omitempty\"`\n\tDescription *string                  `json:\"description,omitempty\"`\n\tExternalURL *string                  `json:\"external_url,omitempty\"`\n\tHTMLURL     *string                  `json:\"html_url,omitempty\"`\n\tCreatedAt   *Timestamp               `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp               `json:\"updated_at,omitempty\"`\n\tPermissions *InstallationPermissions `json:\"permissions,omitempty\"`\n\tEvents      []string                 `json:\"events,omitempty\"`\n}\n```\nApp represents a GitHub App.\n\n```go\nfunc (a *App) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetExternalURL() string\n```\nGetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (a *App) GetPermissions() *InstallationPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\nfunc (a *App) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *App) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype AppConfig struct {\n\tID            *int64     `json:\"id,omitempty\"`\n\tNodeID        *string    `json:\"node_id,omitempty\"`\n\tOwner         *User      `json:\"owner,omitempty\"`\n\tName          *string    `json:\"name,omitempty\"`\n\tDescription   *string    `json:\"description,omitempty\"`\n\tExternalURL   *string    `json:\"external_url,omitempty\"`\n\tHTMLURL       *string    `json:\"html_url,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n\tClientID      *string    `json:\"client_id,omitempty\"`\n\tClientSecret  *string    `json:\"client_secret,omitempty\"`\n\tWebhookSecret *string    `json:\"webhook_secret,omitempty\"`\n\tPEM           *string    `json:\"pem,omitempty\"`\n}\n```\nAppConfig describes the configuration of a GitHub App.\n\n```go\nfunc (a *AppConfig) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetClientSecret() string\n```\nGetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetExternalURL() string\n```\nGetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (a *AppConfig) GetPEM() string\n```\nGetPEM returns the PEM field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AppConfig) GetWebhookSecret() string\n```\nGetWebhookSecret returns the WebhookSecret field if it's non-nil, zero value otherwise.\n\n```go\ntype AppsService service\n```\nAppsService provides access to the installation related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/)\n\n```go\nfunc (s *AppsService) AddRepository(ctx context.Context, instID, repoID int64) (*Repository, *Response, error)\n```\nAddRepository adds a single repository to an installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#add-a-repository-to-an-app-installation](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#add-a-repository-to-an-app-installation)\n\n```go\nfunc (s *AppsService) CompleteAppManifest(ctx context.Context, code string) (*AppConfig, *Response, error)\n```\nCompleteAppManifest completes the App manifest handshake flow for the given code.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#create-a-github-app-from-a-manifest](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#create-a-github-app-from-a-manifest)\n\n```go\nfunc (s *AppsService) CreateAttachment(ctx context.Context, contentReferenceID int64, title, body string) (*Attachment, *Response, error)\n```\nCreateAttachment creates a new attachment on user comment containing a url.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#create-a-content-attachment](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#create-a-content-attachment)\n\n```go\nfunc (s *AppsService) CreateInstallationToken(ctx context.Context, id int64, opts *InstallationTokenOptions) (*InstallationToken, *Response, error)\n```\nCreateInstallationToken creates a new installation token.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#create-an-installation-access-token-for-an-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#create-an-installation-access-token-for-an-app)\n\n```go\nfunc (s *AppsService) DeleteInstallation(ctx context.Context, id int64) (*Response, error)\n```\nDeleteInstallation deletes the specified installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#delete-an-installation-for-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#delete-an-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) FindOrganizationInstallation(ctx context.Context, org string) (*Installation, *Response, error)\n```\nFindOrganizationInstallation finds the organization's installation information.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-an-organization-installation-for-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-an-organization-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) FindRepositoryInstallation(ctx context.Context, owner, repo string) (*Installation, *Response, error)\n```\nFindRepositoryInstallation finds the repository's installation information.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-a-repository-installation-for-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-a-repository-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) FindRepositoryInstallationByID(ctx context.Context, id int64) (*Installation, *Response, error)\n```\nFindRepositoryInstallationByID finds the repository's installation information.\n\nNote: FindRepositoryInstallationByID uses the undocumented GitHub API endpoint /repositories/:id/installation.\n\n```go\nfunc (s *AppsService) FindUserInstallation(ctx context.Context, user string) (*Installation, *Response, error)\n```\nFindUserInstallation finds the user's installation information.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-a-user-installation-for-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-a-user-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) Get(ctx context.Context, appSlug string) (*App, *Response, error)\n```\nGet a single GitHub App. Passing the empty string will get the authenticated GitHub App.\n\nNote: appSlug is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., [https://github.com/settings/apps/:app\\_slug](https://github.com/settings/apps/:app_slug)).\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-the-authenticated-app) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-an-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-an-app)\n\n```go\nfunc (s *AppsService) GetInstallation(ctx context.Context, id int64) (*Installation, *Response, error)\n```\nGetInstallation returns the specified installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-an-installation-for-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#get-an-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) ListInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error)\n```\nListInstallations lists the installations that the current GitHub App has.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-installations-for-the-authenticated-app](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-installations-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) ListRepos(ctx context.Context, opts *ListOptions) ([]*Repository, *Response, error)\n```\nListRepos lists the repositories that are accessible to the authenticated installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-repositories-accessible-to-the-app-installation](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-repositories-accessible-to-the-app-installation)\n\n```go\nfunc (s *AppsService) ListUserInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error)\n```\nListUserInstallations lists installations that are accessible to the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-app-installations-accessible-to-the-user-access-token](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-app-installations-accessible-to-the-user-access-token)\n\n```go\nfunc (s *AppsService) ListUserRepos(ctx context.Context, id int64, opts *ListOptions) ([]*Repository, *Response, error)\n```\nListUserRepos lists repositories that are accessible to the authenticated user for an installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-repositories-accessible-to-the-user-access-token](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-repositories-accessible-to-the-user-access-token)\n\n```go\nfunc (s *AppsService) RemoveRepository(ctx context.Context, instID, repoID int64) (*Response, error)\n```\nRemoveRepository removes a single repository from an installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#remove-a-repository-from-an-app-installation](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#remove-a-repository-from-an-app-installation)\n\n```go\nfunc (s *AppsService) RevokeInstallationToken(ctx context.Context) (*Response, error)\n```\nRevokeInstallationToken revokes an installation token.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#revoke-an-installation-access-token](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#revoke-an-installation-access-token)\n\n```go\nfunc (s *AppsService) SuspendInstallation(ctx context.Context, id int64) (*Response, error)\n```\nSuspendInstallation suspends the specified installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#suspend-an-app-installation](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#suspend-an-app-installation)\n\n```go\nfunc (s *AppsService) UnsuspendInstallation(ctx context.Context, id int64) (*Response, error)\n```\nUnsuspendInstallation unsuspends the specified installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#unsuspend-an-app-installation](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#unsuspend-an-app-installation)\n\n```go\ntype ArchiveFormat string\n```\nArchiveFormat is used to define the archive type when calling GetArchiveLink.\n\n```go\nconst (\n\t// Tarball specifies an archive in gzipped tar format.\n\tTarball ArchiveFormat = \"tarball\"\n\n\t// Zipball specifies an archive in zip format.\n\tZipball ArchiveFormat = \"zipball\"\n)\n```\n\n```go\ntype Artifact struct {\n\tID                 *int64     `json:\"id,omitempty\"`\n\tNodeID             *string    `json:\"node_id,omitempty\"`\n\tName               *string    `json:\"name,omitempty\"`\n\tSizeInBytes        *int64     `json:\"size_in_bytes,omitempty\"`\n\tArchiveDownloadURL *string    `json:\"archive_download_url,omitempty\"`\n\tExpired            *bool      `json:\"expired,omitempty\"`\n\tCreatedAt          *Timestamp `json:\"created_at,omitempty\"`\n\tExpiresAt          *Timestamp `json:\"expires_at,omitempty\"`\n}\n```\nArtifact reprents a GitHub artifact.  Artifacts allow sharing data between jobs in a workflow and provide storage for data once a workflow is complete.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/artifacts/](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/artifacts/)\n\n```go\nfunc (a *Artifact) GetArchiveDownloadURL() string\n```\nGetArchiveDownloadURL returns the ArchiveDownloadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetExpired() bool\n```\nGetExpired returns the Expired field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetExpiresAt() Timestamp\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetSizeInBytes() int64\n```\nGetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise.\n\n```go\ntype ArtifactList struct {\n\tTotalCount *int64      `json:\"total_count,omitempty\"`\n\tArtifacts  []*Artifact `json:\"artifacts,omitempty\"`\n}\n```\nArtifactList represents a list of GitHub artifacts.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/artifacts/](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions/artifacts/)\n\n```go\nfunc (a *ArtifactList) GetTotalCount() int64\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype Attachment struct {\n\tID    *int64  `json:\"id,omitempty\"`\n\tTitle *string `json:\"title,omitempty\"`\n\tBody  *string `json:\"body,omitempty\"`\n}\n```\nAttachment represents a GitHub Apps attachment.\n\n```go\nfunc (a *Attachment) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Attachment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Attachment) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype Authorization struct {\n\tID             *int64            `json:\"id,omitempty\"`\n\tURL            *string           `json:\"url,omitempty\"`\n\tScopes         []Scope           `json:\"scopes,omitempty\"`\n\tToken          *string           `json:\"token,omitempty\"`\n\tTokenLastEight *string           `json:\"token_last_eight,omitempty\"`\n\tHashedToken    *string           `json:\"hashed_token,omitempty\"`\n\tApp            *AuthorizationApp `json:\"app,omitempty\"`\n\tNote           *string           `json:\"note,omitempty\"`\n\tNoteURL        *string           `json:\"note_url,omitempty\"`\n\tUpdatedAt      *Timestamp        `json:\"updated_at,omitempty\"`\n\tCreatedAt      *Timestamp        `json:\"created_at,omitempty\"`\n\tFingerprint    *string           `json:\"fingerprint,omitempty\"`\n\n\t// User is only populated by the Check and Reset methods.\n\tUser *User `json:\"user,omitempty\"`\n}\n```\nAuthorization represents an individual GitHub authorization.\n\n```go\nfunc (a *Authorization) GetApp() *AuthorizationApp\n```\nGetApp returns the App field.\n\n```go\nfunc (a *Authorization) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetHashedToken() string\n```\nGetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetNote() string\n```\nGetNote returns the Note field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetNoteURL() string\n```\nGetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetToken() string\n```\nGetToken returns the Token field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetTokenLastEight() string\n```\nGetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Authorization) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (a Authorization) String() string\n```\n\n```go\ntype AuthorizationApp struct {\n\tURL      *string `json:\"url,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tClientID *string `json:\"client_id,omitempty\"`\n}\n```\nAuthorizationApp represents an individual GitHub app (in the context of authorization).\n\n```go\nfunc (a *AuthorizationApp) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationApp) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationApp) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a AuthorizationApp) String() string\n```\n\n```go\ntype AuthorizationRequest struct {\n\tScopes       []Scope `json:\"scopes,omitempty\"`\n\tNote         *string `json:\"note,omitempty\"`\n\tNoteURL      *string `json:\"note_url,omitempty\"`\n\tClientID     *string `json:\"client_id,omitempty\"`\n\tClientSecret *string `json:\"client_secret,omitempty\"`\n\tFingerprint  *string `json:\"fingerprint,omitempty\"`\n}\n```\nAuthorizationRequest represents a request to create an authorization.\n\n```go\nfunc (a *AuthorizationRequest) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationRequest) GetClientSecret() string\n```\nGetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationRequest) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationRequest) GetNote() string\n```\nGetNote returns the Note field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationRequest) GetNoteURL() string\n```\nGetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a AuthorizationRequest) String() string\n```\n\n```go\ntype AuthorizationUpdateRequest struct {\n\tScopes       []string `json:\"scopes,omitempty\"`\n\tAddScopes    []string `json:\"add_scopes,omitempty\"`\n\tRemoveScopes []string `json:\"remove_scopes,omitempty\"`\n\tNote         *string  `json:\"note,omitempty\"`\n\tNoteURL      *string  `json:\"note_url,omitempty\"`\n\tFingerprint  *string  `json:\"fingerprint,omitempty\"`\n}\n```\nAuthorizationUpdateRequest represents a request to update an authorization.\n\nNote that for any one update, you must only provide one of the \"scopes\" fields. That is, you may provide only one of \"Scopes\", or \"AddScopes\", or \"RemoveScopes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth\\_authorizations/#update-an-existing-authorization](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth_authorizations/#update-an-existing-authorization)\n\n```go\nfunc (a *AuthorizationUpdateRequest) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationUpdateRequest) GetNote() string\n```\nGetNote returns the Note field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuthorizationUpdateRequest) GetNoteURL() string\n```\nGetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a AuthorizationUpdateRequest) String() string\n```\n\n```go\ntype AuthorizationsService service\n```\nAuthorizationsService handles communication with the authorization related methods of the GitHub API.\n\nThis service requires HTTP Basic Authentication; it cannot be accessed using an OAuth token.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth\\_authorizations/](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth_authorizations/)\n\n```go\nfunc (s *AuthorizationsService) Check(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error)\n```\nCheck if an OAuth token is valid for a specific app.\n\nNote that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.\n\nThe returned Authorization.User field will be populated.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#check-a-token](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#check-a-token)\n\n```go\nfunc (s *AuthorizationsService) CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error)\n```\nCreateImpersonation creates an impersonation OAuth token.\n\nThis requires admin permissions. With the returned Authorization.Token you can e.g. create or delete a user's public SSH key. NOTE: creating a new token automatically revokes an existing one.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#create-an-impersonation-oauth-token](https://developer.github.com/enterprise/v3/enterprise-admin/users/#create-an-impersonation-oauth-token)\n\n```go\nfunc (s *AuthorizationsService) DeleteGrant(ctx context.Context, clientID, accessToken string) (*Response, error)\n```\nDeleteGrant deletes an OAuth application grant. Deleting an application's grant will also delete all OAuth tokens associated with the application for the user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#delete-an-app-authorization](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#delete-an-app-authorization)\n\n```go\nfunc (s *AuthorizationsService) DeleteImpersonation(ctx context.Context, username string) (*Response, error)\n```\nDeleteImpersonation deletes an impersonation OAuth token.\n\nNOTE: there can be only one at a time.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token](https://developer.github.com/enterprise/v3/enterprise-admin/users/#delete-an-impersonation-oauth-token)\n\n```go\nfunc (s *AuthorizationsService) Reset(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error)\n```\nReset is used to reset a valid OAuth token without end user involvement. Applications must save the \"token\" property in the response, because changes take effect immediately.\n\nNote that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.\n\nThe returned Authorization.User field will be populated.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#reset-a-token](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#reset-a-token)\n\n```go\nfunc (s *AuthorizationsService) Revoke(ctx context.Context, clientID, accessToken string) (*Response, error)\n```\nRevoke an authorization for an application.\n\nNote that this operation requires the use of BasicAuth, but where the username is the OAuth application clientID, and the password is its clientSecret. Invalid tokens will return a 404 Not Found.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#delete-an-app-token](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#delete-an-app-token)\n\n```go\ntype AutoTriggerCheck struct {\n\tAppID   *int64 `json:\"app_id,omitempty\"`  // The id of the GitHub App. (Required.)\n\tSetting *bool  `json:\"setting,omitempty\"` // Set to \"true\" to enable automatic creation of CheckSuite events upon pushes to the repository, or \"false\" to disable them. Default: \"true\" (Required.)\n}\n```\nAutoTriggerCheck enables or disables automatic creation of CheckSuite events upon pushes to the repository.\n\n```go\nfunc (a *AutoTriggerCheck) GetAppID() int64\n```\nGetAppID returns the AppID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AutoTriggerCheck) GetSetting() bool\n```\nGetSetting returns the Setting field if it's non-nil, zero value otherwise.\n\n```go\ntype BasicAuthTransport struct {\n\tUsername string // GitHub username\n\tPassword string // GitHub password\n\tOTP      string // one-time password for users with two-factor auth enabled\n\n\t// Transport is the underlying HTTP transport to use when making requests.\n\t// It will default to http.DefaultTransport if nil.\n\tTransport http.RoundTripper\n}\n```\nBasicAuthTransport is an http.RoundTripper that authenticates all requests using HTTP Basic Authentication with the provided username and password. It additionally supports users who have two-factor authentication enabled on their GitHub account.\n\n```go\nfunc (t *BasicAuthTransport) Client() *http.Client\n```\nClient returns an \\*http.Client that makes requests that are authenticated using HTTP Basic Authentication.\n\n```go\nfunc (t *BasicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\nRoundTrip implements the RoundTripper interface.\n\n```go\ntype Blob struct {\n\tContent  *string `json:\"content,omitempty\"`\n\tEncoding *string `json:\"encoding,omitempty\"`\n\tSHA      *string `json:\"sha,omitempty\"`\n\tSize     *int    `json:\"size,omitempty\"`\n\tURL      *string `json:\"url,omitempty\"`\n\tNodeID   *string `json:\"node_id,omitempty\"`\n}\n```\nBlob represents a blob object.\n\n```go\nfunc (b *Blob) GetContent() string\n```\nGetContent returns the Content field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *Blob) GetEncoding() string\n```\nGetEncoding returns the Encoding field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *Blob) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *Blob) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *Blob) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *Blob) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype Branch struct {\n\tName      *string           `json:\"name,omitempty\"`\n\tCommit    *RepositoryCommit `json:\"commit,omitempty\"`\n\tProtected *bool             `json:\"protected,omitempty\"`\n}\n```\nBranch represents a repository branch\n\n```go\nfunc (b *Branch) GetCommit() *RepositoryCommit\n```\nGetCommit returns the Commit field.\n\n```go\nfunc (b *Branch) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *Branch) GetProtected() bool\n```\nGetProtected returns the Protected field if it's non-nil, zero value otherwise.\n\n```go\ntype BranchCommit struct {\n\tName      *string `json:\"name,omitempty\"`\n\tCommit    *Commit `json:\"commit,omitempty\"`\n\tProtected *bool   `json:\"protected,omitempty\"`\n}\n```\nBranchCommit is the result of listing branches with commit SHA.\n\n```go\nfunc (b *BranchCommit) GetCommit() *Commit\n```\nGetCommit returns the Commit field.\n\n```go\nfunc (b *BranchCommit) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchCommit) GetProtected() bool\n```\nGetProtected returns the Protected field if it's non-nil, zero value otherwise.\n\n```go\ntype BranchListOptions struct {\n\t// Setting to true returns only protected branches.\n\t// When set to false, only unprotected branches are returned.\n\t// Omitting this parameter returns all branches.\n\t// Default: nil\n\tProtected *bool `url:\"protected,omitempty\"`\n\n\tListOptions\n}\n```\nBranchListOptions specifies the optional parameters to the RepositoriesService.ListBranches method.\n\n```go\nfunc (b *BranchListOptions) GetProtected() bool\n```\nGetProtected returns the Protected field if it's non-nil, zero value otherwise.\n\n```go\ntype BranchRestrictions struct {\n\t// The list of user logins with push access.\n\tUsers []*User `json:\"users\"`\n\t// The list of team slugs with push access.\n\tTeams []*Team `json:\"teams\"`\n\t// The list of app slugs with push access.\n\tApps []*App `json:\"apps\"`\n}\n```\nBranchRestrictions represents the restriction that only certain users or teams may push to a branch.\n\n```go\ntype BranchRestrictionsRequest struct {\n\t// The list of user logins with push access. (Required; use []string{} instead of nil for empty list.)\n\tUsers []string `json:\"users\"`\n\t// The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.)\n\tTeams []string `json:\"teams\"`\n\t// The list of app slugs with push access.\n\tApps []string `json:\"apps,omitempty\"`\n}\n```\nBranchRestrictionsRequest represents the request to create/edit the restriction that only certain users or teams may push to a branch. It is separate from BranchRestrictions above because the request structure is different from the response structure.\n\n```go\ntype CheckRun struct {\n\tID           *int64          `json:\"id,omitempty\"`\n\tNodeID       *string         `json:\"node_id,omitempty\"`\n\tHeadSHA      *string         `json:\"head_sha,omitempty\"`\n\tExternalID   *string         `json:\"external_id,omitempty\"`\n\tURL          *string         `json:\"url,omitempty\"`\n\tHTMLURL      *string         `json:\"html_url,omitempty\"`\n\tDetailsURL   *string         `json:\"details_url,omitempty\"`\n\tStatus       *string         `json:\"status,omitempty\"`\n\tConclusion   *string         `json:\"conclusion,omitempty\"`\n\tStartedAt    *Timestamp      `json:\"started_at,omitempty\"`\n\tCompletedAt  *Timestamp      `json:\"completed_at,omitempty\"`\n\tOutput       *CheckRunOutput `json:\"output,omitempty\"`\n\tName         *string         `json:\"name,omitempty\"`\n\tCheckSuite   *CheckSuite     `json:\"check_suite,omitempty\"`\n\tApp          *App            `json:\"app,omitempty\"`\n\tPullRequests []*PullRequest  `json:\"pull_requests,omitempty\"`\n}\n```\nCheckRun represents a GitHub check run on a repository associated with a GitHub app.\n\n```go\nfunc (c *CheckRun) GetApp() *App\n```\nGetApp returns the App field.\n\n```go\nfunc (c *CheckRun) GetCheckSuite() *CheckSuite\n```\nGetCheckSuite returns the CheckSuite field.\n\n```go\nfunc (c *CheckRun) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetDetailsURL() string\n```\nGetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetExternalID() string\n```\nGetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetOutput() *CheckRunOutput\n```\nGetOutput returns the Output field.\n\n```go\nfunc (c *CheckRun) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRun) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CheckRun) String() string\n```\n\n```go\ntype CheckRunAction struct {\n\tLabel       string `json:\"label\"`       // The text to be displayed on a button in the web UI. The maximum size is 20 characters. (Required.)\n\tDescription string `json:\"description\"` // A short explanation of what this action would do. The maximum size is 40 characters. (Required.)\n\tIdentifier  string `json:\"identifier\"`  // A reference for the action on the integrator's system. The maximum size is 20 characters. (Required.)\n}\n```\nCheckRunAction exposes further actions the integrator can perform, which a user may trigger.\n\n```go\ntype CheckRunAnnotation struct {\n\tPath            *string `json:\"path,omitempty\"`\n\tStartLine       *int    `json:\"start_line,omitempty\"`\n\tEndLine         *int    `json:\"end_line,omitempty\"`\n\tStartColumn     *int    `json:\"start_column,omitempty\"`\n\tEndColumn       *int    `json:\"end_column,omitempty\"`\n\tAnnotationLevel *string `json:\"annotation_level,omitempty\"`\n\tMessage         *string `json:\"message,omitempty\"`\n\tTitle           *string `json:\"title,omitempty\"`\n\tRawDetails      *string `json:\"raw_details,omitempty\"`\n}\n```\nCheckRunAnnotation represents an annotation object for a CheckRun output.\n\n```go\nfunc (c *CheckRunAnnotation) GetAnnotationLevel() string\n```\nGetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetEndColumn() int\n```\nGetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetEndLine() int\n```\nGetEndLine returns the EndLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetRawDetails() string\n```\nGetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetStartColumn() int\n```\nGetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetStartLine() int\n```\nGetStartLine returns the StartLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunAnnotation) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype CheckRunEvent struct {\n\tCheckRun *CheckRun `json:\"check_run,omitempty\"`\n\t// The action performed. Possible values are: \"created\", \"updated\", \"rerequested\" or \"requested_action\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\n\t// The action requested by the user. Populated when the Action is \"requested_action\".\n\tRequestedAction *RequestedAction `json:\"requested_action,omitempty\"` //\n}\n```\nCheckRunEvent is triggered when a check run is \"created\", \"updated\", or \"rerequested\". The Webhook event name is \"check\\_run\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#checkrunevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#checkrunevent)\n\n```go\nfunc (c *CheckRunEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunEvent) GetCheckRun() *CheckRun\n```\nGetCheckRun returns the CheckRun field.\n\n```go\nfunc (c *CheckRunEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CheckRunEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CheckRunEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CheckRunEvent) GetRequestedAction() *RequestedAction\n```\nGetRequestedAction returns the RequestedAction field.\n\n```go\nfunc (c *CheckRunEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype CheckRunImage struct {\n\tAlt      *string `json:\"alt,omitempty\"`\n\tImageURL *string `json:\"image_url,omitempty\"`\n\tCaption  *string `json:\"caption,omitempty\"`\n}\n```\nCheckRunImage represents an image object for a CheckRun output.\n\n```go\nfunc (c *CheckRunImage) GetAlt() string\n```\nGetAlt returns the Alt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunImage) GetCaption() string\n```\nGetCaption returns the Caption field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunImage) GetImageURL() string\n```\nGetImageURL returns the ImageURL field if it's non-nil, zero value otherwise.\n\n```go\ntype CheckRunOutput struct {\n\tTitle            *string               `json:\"title,omitempty\"`\n\tSummary          *string               `json:\"summary,omitempty\"`\n\tText             *string               `json:\"text,omitempty\"`\n\tAnnotationsCount *int                  `json:\"annotations_count,omitempty\"`\n\tAnnotationsURL   *string               `json:\"annotations_url,omitempty\"`\n\tAnnotations      []*CheckRunAnnotation `json:\"annotations,omitempty\"`\n\tImages           []*CheckRunImage      `json:\"images,omitempty\"`\n}\n```\nCheckRunOutput represents the output of a CheckRun.\n\n```go\nfunc (c *CheckRunOutput) GetAnnotationsCount() int\n```\nGetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunOutput) GetAnnotationsURL() string\n```\nGetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunOutput) GetSummary() string\n```\nGetSummary returns the Summary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunOutput) GetText() string\n```\nGetText returns the Text field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckRunOutput) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype CheckSuite struct {\n\tID           *int64         `json:\"id,omitempty\"`\n\tNodeID       *string        `json:\"node_id,omitempty\"`\n\tHeadBranch   *string        `json:\"head_branch,omitempty\"`\n\tHeadSHA      *string        `json:\"head_sha,omitempty\"`\n\tURL          *string        `json:\"url,omitempty\"`\n\tBeforeSHA    *string        `json:\"before,omitempty\"`\n\tAfterSHA     *string        `json:\"after,omitempty\"`\n\tStatus       *string        `json:\"status,omitempty\"`\n\tConclusion   *string        `json:\"conclusion,omitempty\"`\n\tApp          *App           `json:\"app,omitempty\"`\n\tRepository   *Repository    `json:\"repository,omitempty\"`\n\tPullRequests []*PullRequest `json:\"pull_requests,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tHeadCommit *Commit `json:\"head_commit,omitempty\"`\n}\n```\nCheckSuite represents a suite of check runs.\n\n```go\nfunc (c *CheckSuite) GetAfterSHA() string\n```\nGetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetApp() *App\n```\nGetApp returns the App field.\n\n```go\nfunc (c *CheckSuite) GetBeforeSHA() string\n```\nGetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetHeadBranch() string\n```\nGetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetHeadCommit() *Commit\n```\nGetHeadCommit returns the HeadCommit field.\n\n```go\nfunc (c *CheckSuite) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (c *CheckSuite) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CheckSuite) String() string\n```\n\n```go\ntype CheckSuiteEvent struct {\n\tCheckSuite *CheckSuite `json:\"check_suite,omitempty\"`\n\t// The action performed. Possible values are: \"completed\", \"requested\" or \"rerequested\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nCheckSuiteEvent is triggered when a check suite is \"completed\", \"requested\", or \"rerequested\". The Webhook event name is \"check\\_suite\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#checksuiteevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#checksuiteevent)\n\n```go\nfunc (c *CheckSuiteEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite\n```\nGetCheckSuite returns the CheckSuite field.\n\n```go\nfunc (c *CheckSuiteEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CheckSuiteEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CheckSuiteEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CheckSuiteEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype CheckSuitePreferenceOptions struct {\n\tAutoTriggerChecks []*AutoTriggerCheck `json:\"auto_trigger_checks,omitempty\"` // A slice of auto trigger checks that can be set for a check suite in a repository.\n}\n```\nCheckSuitePreferenceOptions set options for check suite preferences for a repository.\n\n```go\ntype CheckSuitePreferenceResults struct {\n\tPreferences *PreferenceList `json:\"preferences,omitempty\"`\n\tRepository  *Repository     `json:\"repository,omitempty\"`\n}\n```\nCheckSuitePreferenceResults represents the results of the preference set operation.\n\n```go\nfunc (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList\n```\nGetPreferences returns the Preferences field.\n\n```go\nfunc (c *CheckSuitePreferenceResults) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\ntype ChecksService service\n```\nChecksService provides access to the Checks API in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/)\n\n```go\nfunc (s *ChecksService) CreateCheckRun(ctx context.Context, owner, repo string, opts CreateCheckRunOptions) (*CheckRun, *Response, error)\n```\nCreateCheckRun creates a check run for repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#create-a-check-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#create-a-check-run)\n\n```go\nfunc (s *ChecksService) CreateCheckSuite(ctx context.Context, owner, repo string, opts CreateCheckSuiteOptions) (*CheckSuite, *Response, error)\n```\nCreateCheckSuite manually creates a check suite for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#create-a-check-suite](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#create-a-check-suite)\n\n```go\nfunc (s *ChecksService) GetCheckRun(ctx context.Context, owner, repo string, checkRunID int64) (*CheckRun, *Response, error)\n```\nGetCheckRun gets a check-run for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#get-a-check-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#get-a-check-run)\n\n```go\nfunc (s *ChecksService) GetCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*CheckSuite, *Response, error)\n```\nGetCheckSuite gets a single check suite.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#get-a-check-suite](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#get-a-check-suite)\n\n```go\nfunc (s *ChecksService) ListCheckRunAnnotations(ctx context.Context, owner, repo string, checkRunID int64, opts *ListOptions) ([]*CheckRunAnnotation, *Response, error)\n```\nListCheckRunAnnotations lists the annotations for a check run.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-run-annotations](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-run-annotations)\n\n```go\nfunc (s *ChecksService) ListCheckRunsCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)\n```\nListCheckRunsCheckSuite lists check runs for a check suite.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-runs-in-a-check-suite](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-runs-in-a-check-suite)\n\n```go\nfunc (s *ChecksService) ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)\n```\nListCheckRunsForRef lists check runs for a specific ref.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-runs-for-a-git-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-runs-for-a-git-reference)\n\n```go\nfunc (s *ChecksService) ListCheckSuitesForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckSuiteOptions) (*ListCheckSuiteResults, *Response, error)\n```\nListCheckSuitesForRef lists check suite for a specific ref.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-suites-for-a-git-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#list-check-suites-for-a-git-reference)\n\n```go\nfunc (s *ChecksService) ReRequestCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*Response, error)\n```\nReRequestCheckSuite triggers GitHub to rerequest an existing check suite, without pushing new code to a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#rerequest-a-check-suite](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#rerequest-a-check-suite)\n\n```go\nfunc (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, repo string, opts CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error)\n```\nSetCheckSuitePreferences changes the default automatic flow when creating check suites.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#update-repository-preferences-for-check-suites](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#update-repository-preferences-for-check-suites)\n\n```go\nfunc (s *ChecksService) UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, opts UpdateCheckRunOptions) (*CheckRun, *Response, error)\n```\nUpdateCheckRun updates a check run for a specific commit in a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#update-a-check-run](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks/#update-a-check-run)\n\n```go\ntype Client struct {\n\n\t// Base URL for API requests. Defaults to the public GitHub API, but can be\n\t// set to a domain endpoint to use with GitHub Enterprise. BaseURL should\n\t// always be specified with a trailing slash.\n\tBaseURL *url.URL\n\n\t// Base URL for uploading files.\n\tUploadURL *url.URL\n\n\t// User agent used when communicating with the GitHub API.\n\tUserAgent string\n\n\t// Services used for talking to different parts of the GitHub API.\n\tActions        *ActionsService\n\tActivity       *ActivityService\n\tAdmin          *AdminService\n\tApps           *AppsService\n\tAuthorizations *AuthorizationsService\n\tChecks         *ChecksService\n\tCodeScanning   *CodeScanningService\n\tEnterprise     *EnterpriseService\n\tGists          *GistsService\n\tGit            *GitService\n\tGitignores     *GitignoresService\n\tInteractions   *InteractionsService\n\tIssueImport    *IssueImportService\n\tIssues         *IssuesService\n\tLicenses       *LicensesService\n\tMarketplace    *MarketplaceService\n\tMigrations     *MigrationService\n\tOrganizations  *OrganizationsService\n\tProjects       *ProjectsService\n\tPullRequests   *PullRequestsService\n\tReactions      *ReactionsService\n\tRepositories   *RepositoriesService\n\tSearch         *SearchService\n\tTeams          *TeamsService\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, a new http.Client will be used. To use API methods which require authentication, provide an http.Client that will perform the authentication for you (such as that provided by the golang.org/x/oauth2 library).\n\n```go\nfunc NewEnterpriseClient(baseURL, uploadURL string, httpClient *http.Client) (*Client, error)\n```\nNewEnterpriseClient returns a new GitHub API client with provided base URL and upload URL (often is your GitHub Enterprise hostname). If the base URL does not have the suffix \"/api/v3/\", it will be added automatically. If the upload URL does not have the suffix \"/api/uploads\", it will be added automatically. If a nil httpClient is provided, a new http.Client will be used.\n\nNote that NewEnterpriseClient is a convenience helper only; its behavior is equivalent to using NewClient, followed by setting the BaseURL and UploadURL fields.\n\nAnother important thing is that by default, the GitHub Enterprise URL format should be http(s)://\\[hostname]/api/v3/ or you will always receive the 406 status code. The upload URL format should be http(s)://\\[hostname]/api/uploads/.\n\n```go\nfunc (c *Client) APIMeta(ctx context.Context) (*APIMeta, *Response, error)\n```\nAPIMeta returns information about GitHub.com, the service. Or, if you access this endpoint on your organization’s GitHub Enterprise installation, this endpoint provides information about that installation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/meta/](https://docs.github.com/en/free-pro-team@latest/rest/reference/meta/)\n\n```go\nfunc (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error)\n```\nDo sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it. If rate limit is exceeded and reset time is in the future, Do returns \\*RateLimitError immediately without making a network API call.\n\nThe provided ctx must be non-nil, if it is nil an error is returned. If it is canceled or times out, ctx.Err() will be returned.\n\n```go\nfunc (c *Client) GetCodeOfConduct(ctx context.Context, key string) (*CodeOfConduct, *Response, error)\n```\nGetCodeOfConduct returns an individual code of conduct.\n\n[https://docs.github.com/en/free-pro-team@latest/rest/reference/codes\\_of\\_conduct/#get-an-individual-code-of-conduct](https://docs.github.com/en/free-pro-team@latest/rest/reference/codes_of_conduct/#get-an-individual-code-of-conduct)\n\n```go\nfunc (c *Client) ListCodesOfConduct(ctx context.Context) ([]*CodeOfConduct, *Response, error)\n```\nListCodesOfConduct returns all codes of conduct.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/codes\\_of\\_conduct/#list-all-codes-of-conduct](https://docs.github.com/en/free-pro-team@latest/rest/reference/codes_of_conduct/#list-all-codes-of-conduct)\n\n```go\nfunc (c *Client) ListEmojis(ctx context.Context) (map[string]string, *Response, error)\n```\nListEmojis returns the emojis available to use on GitHub.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/emojis/](https://docs.github.com/en/free-pro-team@latest/rest/reference/emojis/)\n\n```go\nfunc (c *Client) ListServiceHooks(ctx context.Context) ([]*ServiceHook, *Response, error)\n```\nListServiceHooks lists all of the available service hooks.\n\nGitHub API docs: [https://developer.github.com/webhooks/#services](https://developer.github.com/webhooks/#services)\n\n```go\nfunc (c *Client) Markdown(ctx context.Context, text string, opts *MarkdownOptions) (string, *Response, error)\n```\nMarkdown renders an arbitrary Markdown document.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown/](https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown/)\n\n```go\nfunc (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)\n```\nNewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the BaseURL of the Client. Relative URLs should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included as the request body.\n\n```go\nfunc (c *Client) NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string) (*http.Request, error)\n```\nNewUploadRequest creates an upload request. A relative URL can be provided in urlStr, in which case it is resolved relative to the UploadURL of the Client. Relative URLs should always be specified without a preceding slash.\n\n```go\nfunc (c *Client) Octocat(ctx context.Context, message string) (string, *Response, error)\n```\nOctocat returns an ASCII art octocat with the specified message in a speech bubble. If message is empty, a random zen phrase is used.\n\n```go\nfunc (c *Client) RateLimits(ctx context.Context) (*RateLimits, *Response, error)\n```\nRateLimits returns the rate limits for the current client.\n\n```go\nfunc (c *Client) Zen(ctx context.Context) (string, *Response, error)\n```\nZen returns a random line from The Zen of GitHub.\n\nsee also: [http://warpspire.com/posts/taste/](http://warpspire.com/posts/taste/)\n\n```go\ntype CodeOfConduct struct {\n\tName *string `json:\"name,omitempty\"`\n\tKey  *string `json:\"key,omitempty\"`\n\tURL  *string `json:\"url,omitempty\"`\n\tBody *string `json:\"body,omitempty\"`\n}\n```\nCodeOfConduct represents a code of conduct.\n\n```go\nfunc (c *CodeOfConduct) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeOfConduct) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeOfConduct) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeOfConduct) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeOfConduct) String() string\n```\n\n```go\ntype CodeResult struct {\n\tName        *string      `json:\"name,omitempty\"`\n\tPath        *string      `json:\"path,omitempty\"`\n\tSHA         *string      `json:\"sha,omitempty\"`\n\tHTMLURL     *string      `json:\"html_url,omitempty\"`\n\tRepository  *Repository  `json:\"repository,omitempty\"`\n\tTextMatches []*TextMatch `json:\"text_matches,omitempty\"`\n}\n```\nCodeResult represents a single search result.\n\n```go\nfunc (c *CodeResult) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeResult) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeResult) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeResult) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (c *CodeResult) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CodeResult) String() string\n```\n\n```go\ntype CodeScanningService service\n```\nCodeScanningService handles communication with the code scanning related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning/](https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning/)\n\n```go\nfunc (s *CodeScanningService) GetAlert(ctx context.Context, owner, repo string, id int64) (*Alert, *Response, error)\n```\nGetAlert gets a single code scanning alert for a repository.\n\nYou must use an access token with the security\\_events scope to use this endpoint. GitHub Apps must have the security\\_events read permission to use this endpoint.\n\nThe security alert\\_id is the number at the end of the security alert's URL.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning/#get-a-code-scanning-alert](https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning/#get-a-code-scanning-alert)\n\n```go\nfunc (s *CodeScanningService) ListAlertsForRepo(ctx context.Context, owner, repo string, opts *AlertListOptions) ([]*Alert, *Response, error)\n```\nListAlertsForRepo lists code scanning alerts for a repository.\n\nLists all open code scanning alerts for the default branch (usually master) and protected branches in a repository. You must use an access token with the security\\_events scope to use this endpoint. GitHub Apps must have the security\\_events read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning/#list-code-scanning-alerts-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/code-scanning/#list-code-scanning-alerts-for-a-repository)\n\n```go\ntype CodeSearchResult struct {\n\tTotal             *int          `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool         `json:\"incomplete_results,omitempty\"`\n\tCodeResults       []*CodeResult `json:\"items,omitempty\"`\n}\n```\nCodeSearchResult represents the result of a code search.\n\n```go\nfunc (c *CodeSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype CollaboratorInvitation struct {\n\tID          *int64      `json:\"id,omitempty\"`\n\tRepo        *Repository `json:\"repository,omitempty\"`\n\tInvitee     *User       `json:\"invitee,omitempty\"`\n\tInviter     *User       `json:\"inviter,omitempty\"`\n\tPermissions *string     `json:\"permissions,omitempty\"`\n\tCreatedAt   *Timestamp  `json:\"created_at,omitempty\"`\n\tURL         *string     `json:\"url,omitempty\"`\n\tHTMLURL     *string     `json:\"html_url,omitempty\"`\n}\n```\nCollaboratorInvitation represents an invitation created when adding a collaborator. GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/collaborators/#response-when-a-new-invitation-is-created](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/collaborators/#response-when-a-new-invitation-is-created)\n\n```go\nfunc (c *CollaboratorInvitation) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CollaboratorInvitation) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CollaboratorInvitation) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CollaboratorInvitation) GetInvitee() *User\n```\nGetInvitee returns the Invitee field.\n\n```go\nfunc (c *CollaboratorInvitation) GetInviter() *User\n```\nGetInviter returns the Inviter field.\n\n```go\nfunc (c *CollaboratorInvitation) GetPermissions() string\n```\nGetPermissions returns the Permissions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CollaboratorInvitation) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CollaboratorInvitation) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype CombinedStatus struct {\n\t// State is the combined state of the repository. Possible values are:\n\t// failure, pending, or success.\n\tState *string `json:\"state,omitempty\"`\n\n\tName       *string       `json:\"name,omitempty\"`\n\tSHA        *string       `json:\"sha,omitempty\"`\n\tTotalCount *int          `json:\"total_count,omitempty\"`\n\tStatuses   []*RepoStatus `json:\"statuses,omitempty\"`\n\n\tCommitURL     *string `json:\"commit_url,omitempty\"`\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n}\n```\nCombinedStatus represents the combined status of a repository at a particular reference.\n\n```go\nfunc (c *CombinedStatus) GetCommitURL() string\n```\nGetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CombinedStatus) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CombinedStatus) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CombinedStatus) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CombinedStatus) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CombinedStatus) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s CombinedStatus) String() string\n```\n\n```go\ntype Comment struct {\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tBody      string     `json:\"body\"`\n}\n```\nComment represents comments of issue to import.\n\n```go\nfunc (c *Comment) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CommentStats struct {\n\tTotalCommitComments      *int `json:\"total_commit_comments,omitempty\"`\n\tTotalGistComments        *int `json:\"total_gist_comments,omitempty\"`\n\tTotalIssueComments       *int `json:\"total_issue_comments,omitempty\"`\n\tTotalPullRequestComments *int `json:\"total_pull_request_comments,omitempty\"`\n}\n```\nCommentStats represents the number of total comments on commits, gists, issues and pull requests.\n\n```go\nfunc (c *CommentStats) GetTotalCommitComments() int\n```\nGetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentStats) GetTotalGistComments() int\n```\nGetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentStats) GetTotalIssueComments() int\n```\nGetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentStats) GetTotalPullRequestComments() int\n```\nGetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s CommentStats) String() string\n```\n\n```go\ntype Commit struct {\n\tSHA          *string                `json:\"sha,omitempty\"`\n\tAuthor       *CommitAuthor          `json:\"author,omitempty\"`\n\tCommitter    *CommitAuthor          `json:\"committer,omitempty\"`\n\tMessage      *string                `json:\"message,omitempty\"`\n\tTree         *Tree                  `json:\"tree,omitempty\"`\n\tParents      []*Commit              `json:\"parents,omitempty\"`\n\tStats        *CommitStats           `json:\"stats,omitempty\"`\n\tHTMLURL      *string                `json:\"html_url,omitempty\"`\n\tURL          *string                `json:\"url,omitempty\"`\n\tVerification *SignatureVerification `json:\"verification,omitempty\"`\n\tNodeID       *string                `json:\"node_id,omitempty\"`\n\n\t// CommentCount is the number of GitHub comments on the commit. This\n\t// is only populated for requests that fetch GitHub data like\n\t// Pulls.ListCommits, Repositories.ListCommits, etc.\n\tCommentCount *int `json:\"comment_count,omitempty\"`\n\n\t// SigningKey denotes a key to sign the commit with. If not nil this key will\n\t// be used to sign the commit. The private key must be present and already\n\t// decrypted. Ignored if Verification.Signature is defined.\n\tSigningKey *openpgp.Entity `json:\"-\"`\n}\n```\nCommit represents a GitHub commit.\n\n```go\nfunc (c *Commit) GetAuthor() *CommitAuthor\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (c *Commit) GetCommentCount() int\n```\nGetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Commit) GetCommitter() *CommitAuthor\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (c *Commit) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Commit) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Commit) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Commit) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Commit) GetStats() *CommitStats\n```\nGetStats returns the Stats field.\n\n```go\nfunc (c *Commit) GetTree() *Tree\n```\nGetTree returns the Tree field.\n\n```go\nfunc (c *Commit) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Commit) GetVerification() *SignatureVerification\n```\nGetVerification returns the Verification field.\n\n```go\nfunc (c Commit) String() string\n```\n\n```go\ntype CommitAuthor struct {\n\tDate  *time.Time `json:\"date,omitempty\"`\n\tName  *string    `json:\"name,omitempty\"`\n\tEmail *string    `json:\"email,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tLogin *string `json:\"username,omitempty\"` // Renamed for go-github consistency.\n}\n```\nCommitAuthor represents the author or committer of a commit. The commit author may not correspond to a GitHub User.\n\n```go\nfunc (c *CommitAuthor) GetDate() time.Time\n```\nGetDate returns the Date field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitAuthor) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitAuthor) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitAuthor) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CommitAuthor) String() string\n```\n\n```go\ntype CommitCommentEvent struct {\n\tComment *RepositoryComment `json:\"comment,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tAction       *string       `json:\"action,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nCommitCommentEvent is triggered when a commit comment is created. The Webhook event name is \"commit\\_comment\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#commitcommentevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#commitcommentevent)\n\n```go\nfunc (c *CommitCommentEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitCommentEvent) GetComment() *RepositoryComment\n```\nGetComment returns the Comment field.\n\n```go\nfunc (c *CommitCommentEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CommitCommentEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CommitCommentEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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\tBlobURL          *string `json:\"blob_url,omitempty\"`\n\tRawURL           *string `json:\"raw_url,omitempty\"`\n\tContentsURL      *string `json:\"contents_url,omitempty\"`\n\tPreviousFilename *string `json:\"previous_filename,omitempty\"`\n}\n```\nCommitFile represents a file modified in a commit.\n\n```go\nfunc (c *CommitFile) GetAdditions() int\n```\nGetAdditions returns the Additions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetBlobURL() string\n```\nGetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetChanges() int\n```\nGetChanges returns the Changes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetContentsURL() string\n```\nGetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetDeletions() int\n```\nGetDeletions returns the Deletions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetFilename() string\n```\nGetFilename returns the Filename field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetPatch() string\n```\nGetPatch returns the Patch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetPreviousFilename() string\n```\nGetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetRawURL() string\n```\nGetRawURL returns the RawURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitFile) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CommitFile) String() string\n```\n\n```go\ntype CommitResult 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\tHTMLURL     *string   `json:\"html_url,omitempty\"`\n\tURL         *string   `json:\"url,omitempty\"`\n\tCommentsURL *string   `json:\"comments_url,omitempty\"`\n\n\tRepository *Repository `json:\"repository,omitempty\"`\n\tScore      *float64    `json:\"score,omitempty\"`\n}\n```\nCommitResult represents a commit object as returned in commit search endpoint response.\n\n```go\nfunc (c *CommitResult) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (c *CommitResult) GetCommentsURL() string\n```\nGetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitResult) GetCommit() *Commit\n```\nGetCommit returns the Commit field.\n\n```go\nfunc (c *CommitResult) GetCommitter() *User\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (c *CommitResult) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitResult) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (c *CommitResult) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitResult) GetScore() *float64\n```\nGetScore returns the Score field.\n\n```go\nfunc (c *CommitResult) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype CommitStats struct {\n\tAdditions *int `json:\"additions,omitempty\"`\n\tDeletions *int `json:\"deletions,omitempty\"`\n\tTotal     *int `json:\"total,omitempty\"`\n}\n```\nCommitStats represents the number of additions / deletions from a file in a given RepositoryCommit or GistCommit.\n\n```go\nfunc (c *CommitStats) GetAdditions() int\n```\nGetAdditions returns the Additions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitStats) GetDeletions() int\n```\nGetDeletions returns the Deletions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitStats) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CommitStats) String() string\n```\n\n```go\ntype CommitsComparison struct {\n\tBaseCommit      *RepositoryCommit `json:\"base_commit,omitempty\"`\n\tMergeBaseCommit *RepositoryCommit `json:\"merge_base_commit,omitempty\"`\n\n\t// Head can be 'behind' or 'ahead'\n\tStatus       *string `json:\"status,omitempty\"`\n\tAheadBy      *int    `json:\"ahead_by,omitempty\"`\n\tBehindBy     *int    `json:\"behind_by,omitempty\"`\n\tTotalCommits *int    `json:\"total_commits,omitempty\"`\n\n\tCommits []*RepositoryCommit `json:\"commits,omitempty\"`\n\n\tFiles []*CommitFile `json:\"files,omitempty\"`\n\n\tHTMLURL      *string `json:\"html_url,omitempty\"`\n\tPermalinkURL *string `json:\"permalink_url,omitempty\"`\n\tDiffURL      *string `json:\"diff_url,omitempty\"`\n\tPatchURL     *string `json:\"patch_url,omitempty\"`\n\tURL          *string `json:\"url,omitempty\"` // API URL.\n}\n```\nCommitsComparison is the result of comparing two commits. See CompareCommits() for details.\n\n```go\nfunc (c *CommitsComparison) GetAheadBy() int\n```\nGetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetBaseCommit() *RepositoryCommit\n```\nGetBaseCommit returns the BaseCommit field.\n\n```go\nfunc (c *CommitsComparison) GetBehindBy() int\n```\nGetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetDiffURL() string\n```\nGetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit\n```\nGetMergeBaseCommit returns the MergeBaseCommit field.\n\n```go\nfunc (c *CommitsComparison) GetPatchURL() string\n```\nGetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetPermalinkURL() string\n```\nGetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetTotalCommits() int\n```\nGetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsComparison) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CommitsComparison) String() string\n```\n\n```go\ntype CommitsListOptions struct {\n\t// SHA or branch to start listing Commits from.\n\tSHA string `url:\"sha,omitempty\"`\n\n\t// Path that should be touched by the returned Commits.\n\tPath string `url:\"path,omitempty\"`\n\n\t// Author of by which to filter Commits.\n\tAuthor string `url:\"author,omitempty\"`\n\n\t// Since when should Commits be included in the response.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\t// Until when should Commits be included in the response.\n\tUntil time.Time `url:\"until,omitempty\"`\n\n\tListOptions\n}\n```\nCommitsListOptions specifies the optional parameters to the RepositoriesService.ListCommits method.\n\n```go\ntype CommitsSearchResult struct {\n\tTotal             *int            `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool           `json:\"incomplete_results,omitempty\"`\n\tCommits           []*CommitResult `json:\"items,omitempty\"`\n}\n```\nCommitsSearchResult represents the result of a commits search.\n\n```go\nfunc (c *CommitsSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommitsSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype CommunityHealthFiles struct {\n\tCodeOfConduct       *Metric `json:\"code_of_conduct\"`\n\tContributing        *Metric `json:\"contributing\"`\n\tIssueTemplate       *Metric `json:\"issue_template\"`\n\tPullRequestTemplate *Metric `json:\"pull_request_template\"`\n\tLicense             *Metric `json:\"license\"`\n\tReadme              *Metric `json:\"readme\"`\n}\n```\nCommunityHealthFiles represents the different files in the community health metrics response.\n\n```go\nfunc (c *CommunityHealthFiles) GetCodeOfConduct() *Metric\n```\nGetCodeOfConduct returns the CodeOfConduct field.\n\n```go\nfunc (c *CommunityHealthFiles) GetContributing() *Metric\n```\nGetContributing returns the Contributing field.\n\n```go\nfunc (c *CommunityHealthFiles) GetIssueTemplate() *Metric\n```\nGetIssueTemplate returns the IssueTemplate field.\n\n```go\nfunc (c *CommunityHealthFiles) GetLicense() *Metric\n```\nGetLicense returns the License field.\n\n```go\nfunc (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric\n```\nGetPullRequestTemplate returns the PullRequestTemplate field.\n\n```go\nfunc (c *CommunityHealthFiles) GetReadme() *Metric\n```\nGetReadme returns the Readme field.\n\n```go\ntype CommunityHealthMetrics struct {\n\tHealthPercentage *int                  `json:\"health_percentage\"`\n\tFiles            *CommunityHealthFiles `json:\"files\"`\n\tUpdatedAt        *time.Time            `json:\"updated_at\"`\n}\n```\nCommunityHealthMetrics represents a response containing the community metrics of a repository.\n\n```go\nfunc (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles\n```\nGetFiles returns the Files field.\n\n```go\nfunc (c *CommunityHealthMetrics) GetHealthPercentage() int\n```\nGetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommunityHealthMetrics) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ContentReference struct {\n\tID        *int64  `json:\"id,omitempty\"`\n\tNodeID    *string `json:\"node_id,omitempty\"`\n\tReference *string `json:\"reference,omitempty\"`\n}\n```\nContentReference represents a reference to a URL in an issue or pull request.\n\n```go\nfunc (c *ContentReference) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ContentReference) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ContentReference) GetReference() string\n```\nGetReference returns the Reference field if it's non-nil, zero value otherwise.\n\n```go\ntype ContentReferenceEvent struct {\n\tAction           *string           `json:\"action,omitempty\"`\n\tContentReference *ContentReference `json:\"content_reference,omitempty\"`\n\tRepo             *Repository       `json:\"repository,omitempty\"`\n\tSender           *User             `json:\"sender,omitempty\"`\n\tInstallation     *Installation     `json:\"installation,omitempty\"`\n}\n```\nContentReferenceEvent is triggered when the body or comment of an issue or pull request includes a URL that matches a configured content reference domain. The Webhook event name is \"content\\_reference\".\n\nGitHub API docs: [https://developer.github.com/webhooks/event-payloads/#content\\_reference](https://developer.github.com/webhooks/event-payloads/#content_reference)\n\n```go\nfunc (c *ContentReferenceEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ContentReferenceEvent) GetContentReference() *ContentReference\n```\nGetContentReference returns the ContentReference field.\n\n```go\nfunc (c *ContentReferenceEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *ContentReferenceEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *ContentReferenceEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype Contributor struct {\n\tLogin             *string `json:\"login,omitempty\"`\n\tID                *int64  `json:\"id,omitempty\"`\n\tNodeID            *string `json:\"node_id,omitempty\"`\n\tAvatarURL         *string `json:\"avatar_url,omitempty\"`\n\tGravatarID        *string `json:\"gravatar_id,omitempty\"`\n\tURL               *string `json:\"url,omitempty\"`\n\tHTMLURL           *string `json:\"html_url,omitempty\"`\n\tFollowersURL      *string `json:\"followers_url,omitempty\"`\n\tFollowingURL      *string `json:\"following_url,omitempty\"`\n\tGistsURL          *string `json:\"gists_url,omitempty\"`\n\tStarredURL        *string `json:\"starred_url,omitempty\"`\n\tSubscriptionsURL  *string `json:\"subscriptions_url,omitempty\"`\n\tOrganizationsURL  *string `json:\"organizations_url,omitempty\"`\n\tReposURL          *string `json:\"repos_url,omitempty\"`\n\tEventsURL         *string `json:\"events_url,omitempty\"`\n\tReceivedEventsURL *string `json:\"received_events_url,omitempty\"`\n\tType              *string `json:\"type,omitempty\"`\n\tSiteAdmin         *bool   `json:\"site_admin,omitempty\"`\n\tContributions     *int    `json:\"contributions,omitempty\"`\n}\n```\nContributor represents a repository contributor\n\n```go\nfunc (c *Contributor) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetContributions() int\n```\nGetContributions returns the Contributions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetFollowersURL() string\n```\nGetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetFollowingURL() string\n```\nGetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetGistsURL() string\n```\nGetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetGravatarID() string\n```\nGetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetOrganizationsURL() string\n```\nGetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetReceivedEventsURL() string\n```\nGetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetReposURL() string\n```\nGetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetSiteAdmin() bool\n```\nGetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetStarredURL() string\n```\nGetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetSubscriptionsURL() string\n```\nGetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Contributor) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype ContributorStats struct {\n\tAuthor *Contributor   `json:\"author,omitempty\"`\n\tTotal  *int           `json:\"total,omitempty\"`\n\tWeeks  []*WeeklyStats `json:\"weeks,omitempty\"`\n}\n```\nContributorStats represents a contributor to a repository and their weekly contributions to a given repo.\n\n```go\nfunc (c *ContributorStats) GetAuthor() *Contributor\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (c *ContributorStats) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c ContributorStats) String() string\n```\n\n```go\ntype CreateCheckRunOptions struct {\n\tName        string            `json:\"name\"`                   // The name of the check (e.g., \"code-coverage\"). (Required.)\n\tHeadSHA     string            `json:\"head_sha\"`               // The SHA of the commit. (Required.)\n\tDetailsURL  *string           `json:\"details_url,omitempty\"`  // The URL of the integrator's site that has the full details of the check. (Optional.)\n\tExternalID  *string           `json:\"external_id,omitempty\"`  // A reference for the run on the integrator's system. (Optional.)\n\tStatus      *string           `json:\"status,omitempty\"`       // The current status. Can be one of \"queued\", \"in_progress\", or \"completed\". Default: \"queued\". (Optional.)\n\tConclusion  *string           `json:\"conclusion,omitempty\"`   // Can be one of \"success\", \"failure\", \"neutral\", \"cancelled\", \"skipped\", \"timed_out\", or \"action_required\". (Optional. Required if you provide a status of \"completed\".)\n\tStartedAt   *Timestamp        `json:\"started_at,omitempty\"`   // The time that the check run began. (Optional.)\n\tCompletedAt *Timestamp        `json:\"completed_at,omitempty\"` // The time the check completed. (Optional. Required if you provide conclusion.)\n\tOutput      *CheckRunOutput   `json:\"output,omitempty\"`       // Provide descriptive details about the run. (Optional)\n\tActions     []*CheckRunAction `json:\"actions,omitempty\"`      // Possible further actions the integrator can perform, which a user may trigger. (Optional.)\n}\n```\nCreateCheckRunOptions sets up parameters needed to create a CheckRun.\n\n```go\nfunc (c *CreateCheckRunOptions) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCheckRunOptions) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCheckRunOptions) GetDetailsURL() string\n```\nGetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCheckRunOptions) GetExternalID() string\n```\nGetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput\n```\nGetOutput returns the Output field.\n\n```go\nfunc (c *CreateCheckRunOptions) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCheckRunOptions) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateCheckSuiteOptions struct {\n\tHeadSHA    string  `json:\"head_sha\"`              // The sha of the head commit. (Required.)\n\tHeadBranch *string `json:\"head_branch,omitempty\"` // The name of the head branch where the code changes are implemented.\n}\n```\nCreateCheckSuiteOptions sets up parameters to manually create a check suites\n\n```go\nfunc (c *CreateCheckSuiteOptions) GetHeadBranch() string\n```\nGetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateEvent struct {\n\tRef *string `json:\"ref,omitempty\"`\n\t// RefType is the object that was created. Possible values are: \"repository\", \"branch\", \"tag\".\n\tRefType      *string `json:\"ref_type,omitempty\"`\n\tMasterBranch *string `json:\"master_branch,omitempty\"`\n\tDescription  *string `json:\"description,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tPusherType   *string       `json:\"pusher_type,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nCreateEvent represents a created repository, branch, or tag. The Webhook event name is \"create\".\n\nNote: webhooks will not receive this event for created repositories. Additionally, webhooks will not receive this event for tags if more than three tags are pushed at once.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#createevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#createevent)\n\n```go\nfunc (c *CreateEvent) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CreateEvent) GetMasterBranch() string\n```\nGetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEvent) GetPusherType() string\n```\nGetPusherType returns the PusherType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEvent) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEvent) GetRefType() string\n```\nGetRefType returns the RefType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CreateEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype CreateOrgInvitationOptions struct {\n\t// GitHub user ID for the person you are inviting. Not required if you provide Email.\n\tInviteeID *int64 `json:\"invitee_id,omitempty\"`\n\t// Email address of the person you are inviting, which can be an existing GitHub user.\n\t// Not required if you provide InviteeID\n\tEmail *string `json:\"email,omitempty\"`\n\t// Specify role for new member. Can be one of:\n\t// * admin - Organization owners with full administrative rights to the\n\t// \t organization and complete access to all repositories and teams.\n\t// * direct_member - Non-owner organization members with ability to see\n\t//   other members and join teams by invitation.\n\t// * billing_manager - Non-owner organization members with ability to\n\t//   manage the billing settings of your organization.\n\t// Default is \"direct_member\".\n\tRole   *string `json:\"role\"`\n\tTeamID []int64 `json:\"team_ids\"`\n}\n```\nCreateOrgInvitationOptions specifies the parameters to the OrganizationService.Invite method.\n\n```go\nfunc (c *CreateOrgInvitationOptions) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrgInvitationOptions) GetInviteeID() int64\n```\nGetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrgInvitationOptions) GetRole() string\n```\nGetRole returns the Role field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateUserProjectOptions struct {\n\t// The name of the project. (Required.)\n\tName string `json:\"name\"`\n\t// The description of the project. (Optional.)\n\tBody *string `json:\"body,omitempty\"`\n}\n```\nCreateUserProjectOptions specifies the parameters to the UsersService.CreateProject method.\n\n```go\nfunc (c *CreateUserProjectOptions) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateWorkflowDispatchEventRequest struct {\n\t// Ref represents the reference of the workflow run.\n\t// The reference can be a branch, tag, or a commit SHA.\n\t// Ref is required when creating a workflow dispatch event.\n\tRef string `json:\"ref\"`\n\t// Inputs represents input keys and values configured in the workflow file.\n\t// The maximum number of properties is 10.\n\t// Default: Any default properties configured in the workflow file will be used when `inputs` are omitted.\n\tInputs map[string]interface{} `json:\"inputs,omitempty\"`\n}\n```\nCreateWorkflowDispatchEventRequest represents a request to create a workflow dispatch event.\n\n```go\ntype DeleteEvent struct {\n\tRef *string `json:\"ref,omitempty\"`\n\t// RefType is the object that was deleted. Possible values are: \"branch\", \"tag\".\n\tRefType *string `json:\"ref_type,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tPusherType   *string       `json:\"pusher_type,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nDeleteEvent represents a deleted branch or tag. The Webhook event name is \"delete\".\n\nNote: webhooks will not receive this event for tags if more than three tags are deleted at once.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deleteevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deleteevent)\n\n```go\nfunc (d *DeleteEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DeleteEvent) GetPusherType() string\n```\nGetPusherType returns the PusherType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeleteEvent) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeleteEvent) GetRefType() string\n```\nGetRefType returns the RefType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeleteEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DeleteEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype DeployKeyEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"created\" or \"deleted\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The deploy key resource.\n\tKey *Key `json:\"key,omitempty\"`\n}\n```\nDeployKeyEvent is triggered when a deploy key is added or removed from a repository. The Webhook event name is \"deploy\\_key\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deploykeyevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deploykeyevent)\n\n```go\nfunc (d *DeployKeyEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeployKeyEvent) GetKey() *Key\n```\nGetKey returns the Key field.\n\n```go\ntype Deployment struct {\n\tURL           *string         `json:\"url,omitempty\"`\n\tID            *int64          `json:\"id,omitempty\"`\n\tSHA           *string         `json:\"sha,omitempty\"`\n\tRef           *string         `json:\"ref,omitempty\"`\n\tTask          *string         `json:\"task,omitempty\"`\n\tPayload       json.RawMessage `json:\"payload,omitempty\"`\n\tEnvironment   *string         `json:\"environment,omitempty\"`\n\tDescription   *string         `json:\"description,omitempty\"`\n\tCreator       *User           `json:\"creator,omitempty\"`\n\tCreatedAt     *Timestamp      `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp      `json:\"updated_at,omitempty\"`\n\tStatusesURL   *string         `json:\"statuses_url,omitempty\"`\n\tRepositoryURL *string         `json:\"repository_url,omitempty\"`\n\tNodeID        *string         `json:\"node_id,omitempty\"`\n}\n```\nDeployment represents a deployment in a repo\n\n```go\nfunc (d *Deployment) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (d *Deployment) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetStatusesURL() string\n```\nGetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetTask() string\n```\nGetTask returns the Task field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Deployment) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype DeploymentEvent struct {\n\tDeployment *Deployment `json:\"deployment,omitempty\"`\n\tRepo       *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nDeploymentEvent represents a deployment. The Webhook event name is \"deployment\".\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deploymentevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deploymentevent)\n\n```go\nfunc (d *DeploymentEvent) GetDeployment() *Deployment\n```\nGetDeployment returns the Deployment field.\n\n```go\nfunc (d *DeploymentEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DeploymentEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DeploymentEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype DeploymentRequest struct {\n\tRef                   *string     `json:\"ref,omitempty\"`\n\tTask                  *string     `json:\"task,omitempty\"`\n\tAutoMerge             *bool       `json:\"auto_merge,omitempty\"`\n\tRequiredContexts      *[]string   `json:\"required_contexts,omitempty\"`\n\tPayload               interface{} `json:\"payload,omitempty\"`\n\tEnvironment           *string     `json:\"environment,omitempty\"`\n\tDescription           *string     `json:\"description,omitempty\"`\n\tTransientEnvironment  *bool       `json:\"transient_environment,omitempty\"`\n\tProductionEnvironment *bool       `json:\"production_environment,omitempty\"`\n}\n```\nDeploymentRequest represents a deployment request\n\n```go\nfunc (d *DeploymentRequest) GetAutoMerge() bool\n```\nGetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetProductionEnvironment() bool\n```\nGetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetRequiredContexts() []string\n```\nGetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetTask() string\n```\nGetTask returns the Task field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentRequest) GetTransientEnvironment() bool\n```\nGetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise.\n\n```go\ntype DeploymentStatus struct {\n\tID *int64 `json:\"id,omitempty\"`\n\t// State is the deployment state.\n\t// Possible values are: \"pending\", \"success\", \"failure\", \"error\",\n\t// \"inactive\", \"in_progress\", \"queued\".\n\tState          *string    `json:\"state,omitempty\"`\n\tCreator        *User      `json:\"creator,omitempty\"`\n\tDescription    *string    `json:\"description,omitempty\"`\n\tEnvironment    *string    `json:\"environment,omitempty\"`\n\tNodeID         *string    `json:\"node_id,omitempty\"`\n\tCreatedAt      *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt      *Timestamp `json:\"updated_at,omitempty\"`\n\tTargetURL      *string    `json:\"target_url,omitempty\"`\n\tDeploymentURL  *string    `json:\"deployment_url,omitempty\"`\n\tRepositoryURL  *string    `json:\"repository_url,omitempty\"`\n\tEnvironmentURL *string    `json:\"environment_url,omitempty\"`\n\tLogURL         *string    `json:\"log_url,omitempty\"`\n\tURL            *string    `json:\"url,omitempty\"`\n}\n```\nDeploymentStatus represents the status of a particular deployment.\n\n```go\nfunc (d *DeploymentStatus) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (d *DeploymentStatus) GetDeploymentURL() string\n```\nGetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetEnvironmentURL() string\n```\nGetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetLogURL() string\n```\nGetLogURL returns the LogURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetTargetURL() string\n```\nGetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatus) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype DeploymentStatusEvent struct {\n\tDeployment       *Deployment       `json:\"deployment,omitempty\"`\n\tDeploymentStatus *DeploymentStatus `json:\"deployment_status,omitempty\"`\n\tRepo             *Repository       `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nDeploymentStatusEvent represents a deployment status. The Webhook event name is \"deployment\\_status\".\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deploymentstatusevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#deploymentstatusevent)\n\n```go\nfunc (d *DeploymentStatusEvent) GetDeployment() *Deployment\n```\nGetDeployment returns the Deployment field.\n\n```go\nfunc (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus\n```\nGetDeploymentStatus returns the DeploymentStatus field.\n\n```go\nfunc (d *DeploymentStatusEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DeploymentStatusEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DeploymentStatusEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype DeploymentStatusRequest struct {\n\tState          *string `json:\"state,omitempty\"`\n\tLogURL         *string `json:\"log_url,omitempty\"`\n\tDescription    *string `json:\"description,omitempty\"`\n\tEnvironment    *string `json:\"environment,omitempty\"`\n\tEnvironmentURL *string `json:\"environment_url,omitempty\"`\n\tAutoInactive   *bool   `json:\"auto_inactive,omitempty\"`\n}\n```\nDeploymentStatusRequest represents a deployment request\n\n```go\nfunc (d *DeploymentStatusRequest) GetAutoInactive() bool\n```\nGetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatusRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatusRequest) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatusRequest) GetEnvironmentURL() string\n```\nGetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatusRequest) GetLogURL() string\n```\nGetLogURL returns the LogURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentStatusRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype DeploymentsListOptions struct {\n\t// SHA of the Deployment.\n\tSHA string `url:\"sha,omitempty\"`\n\n\t// List deployments for a given ref.\n\tRef string `url:\"ref,omitempty\"`\n\n\t// List deployments for a given task.\n\tTask string `url:\"task,omitempty\"`\n\n\t// List deployments for a given environment.\n\tEnvironment string `url:\"environment,omitempty\"`\n\n\tListOptions\n}\n```\nDeploymentsListOptions specifies the optional parameters to the RepositoriesService.ListDeployments method.\n\n```go\ntype DiscussionComment struct {\n\tAuthor        *User      `json:\"author,omitempty\"`\n\tBody          *string    `json:\"body,omitempty\"`\n\tBodyHTML      *string    `json:\"body_html,omitempty\"`\n\tBodyVersion   *string    `json:\"body_version,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tLastEditedAt  *Timestamp `json:\"last_edited_at,omitempty\"`\n\tDiscussionURL *string    `json:\"discussion_url,omitempty\"`\n\tHTMLURL       *string    `json:\"html_url,omitempty\"`\n\tNodeID        *string    `json:\"node_id,omitempty\"`\n\tNumber        *int       `json:\"number,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n\tURL           *string    `json:\"url,omitempty\"`\n\tReactions     *Reactions `json:\"reactions,omitempty\"`\n}\n```\nDiscussionComment represents a GitHub dicussion in a team.\n\n```go\nfunc (d *DiscussionComment) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (d *DiscussionComment) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetBodyHTML() string\n```\nGetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetBodyVersion() string\n```\nGetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetDiscussionURL() string\n```\nGetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetLastEditedAt() Timestamp\n```\nGetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (d *DiscussionComment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionComment) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c DiscussionComment) String() string\n```\n\n```go\ntype DiscussionCommentListOptions struct {\n\t// Sorts the discussion comments by the date they were created.\n\t// Accepted values are asc and desc. Default is desc.\n\tDirection string `url:\"direction,omitempty\"`\n\tListOptions\n}\n```\nDiscussionCommentListOptions specifies optional parameters to the TeamServices.ListComments method.\n\n```go\ntype DiscussionListOptions struct {\n\t// Sorts the discussion by the date they were created.\n\t// Accepted values are asc and desc. Default is desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nDiscussionListOptions specifies optional parameters to the TeamServices.ListDiscussions method.\n\n```go\ntype DismissalRestrictions struct {\n\t// The list of users who can dimiss pull request reviews.\n\tUsers []*User `json:\"users\"`\n\t// The list of teams which can dismiss pull request reviews.\n\tTeams []*Team `json:\"teams\"`\n}\n```\nDismissalRestrictions specifies which users and teams can dismiss pull request reviews.\n\n```go\ntype DismissalRestrictionsRequest struct {\n\t// The list of user logins who can dismiss pull request reviews. (Required; use nil to disable dismissal_restrictions or \u0026[]string{} otherwise.)\n\tUsers *[]string `json:\"users,omitempty\"`\n\t// The list of team slugs which can dismiss pull request reviews. (Required; use nil to disable dismissal_restrictions or \u0026[]string{} otherwise.)\n\tTeams *[]string `json:\"teams,omitempty\"`\n}\n```\nDismissalRestrictionsRequest represents the request to create/edit the restriction to allows only specific users or teams to dimiss pull request reviews. It is separate from DismissalRestrictions above because the request structure is different from the response structure. Note: Both Users and Teams must be nil, or both must be non-nil.\n\n```go\nfunc (d *DismissalRestrictionsRequest) GetTeams() []string\n```\nGetTeams returns the Teams field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DismissalRestrictionsRequest) GetUsers() []string\n```\nGetUsers returns the Users field if it's non-nil, zero value otherwise.\n\n```go\ntype DismissedReview struct {\n\t// State represents the state of the dismissed review.\n\t// Possible values are: \"commented\", \"approved\", and \"changes_requested\".\n\tState             *string `json:\"state,omitempty\"`\n\tReviewID          *int64  `json:\"review_id,omitempty\"`\n\tDismissalMessage  *string `json:\"dismissal_message,omitempty\"`\n\tDismissalCommitID *string `json:\"dismissal_commit_id,omitempty\"`\n}\n```\nDismissedReview represents details for 'dismissed\\_review' events.\n\n```go\nfunc (d *DismissedReview) GetDismissalCommitID() string\n```\nGetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DismissedReview) GetDismissalMessage() string\n```\nGetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DismissedReview) GetReviewID() int64\n```\nGetReviewID returns the ReviewID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DismissedReview) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype DispatchRequestOptions struct {\n\t// EventType is a custom webhook event name. (Required.)\n\tEventType string `json:\"event_type\"`\n\t// ClientPayload is a custom JSON payload with extra information about the webhook event.\n\t// Defaults to an empty JSON object.\n\tClientPayload *json.RawMessage `json:\"client_payload,omitempty\"`\n}\n```\nDispatchRequestOptions represents a request to trigger a repository\\_dispatch event.\n\n```go\nfunc (d *DispatchRequestOptions) GetClientPayload() json.RawMessage\n```\nGetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise.\n\n```go\ntype DraftReviewComment struct {\n\tPath     *string `json:\"path,omitempty\"`\n\tPosition *int    `json:\"position,omitempty\"`\n\tBody     *string `json:\"body,omitempty\"`\n\n\t// The new comfort-fade-preview fields\n\tStartSide *string `json:\"start_side,omitempty\"`\n\tSide      *string `json:\"side,omitempty\"`\n\tStartLine *int    `json:\"start_line,omitempty\"`\n\tLine      *int    `json:\"line,omitempty\"`\n}\n```\nDraftReviewComment represents a comment part of the review.\n\n```go\nfunc (d *DraftReviewComment) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DraftReviewComment) GetLine() int\n```\nGetLine returns the Line field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DraftReviewComment) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DraftReviewComment) GetPosition() int\n```\nGetPosition returns the Position field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DraftReviewComment) GetSide() string\n```\nGetSide returns the Side field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DraftReviewComment) GetStartLine() int\n```\nGetStartLine returns the StartLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DraftReviewComment) GetStartSide() string\n```\nGetStartSide returns the StartSide field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c DraftReviewComment) String() string\n```\n\n```go\ntype EditChange struct {\n\tTitle *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"title,omitempty\"`\n\tBody *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"body,omitempty\"`\n\tBase *struct {\n\t\tRef *struct {\n\t\t\tFrom *string `json:\"from,omitempty\"`\n\t\t} `json:\"ref,omitempty\"`\n\t\tSHA *struct {\n\t\t\tFrom *string `json:\"from,omitempty\"`\n\t\t} `json:\"sha,omitempty\"`\n\t} `json:\"base,omitempty\"`\n}\n```\nEditChange represents the changes when an issue, pull request, or comment has been edited.\n\n```go\ntype EncryptedSecret struct {\n\tName                  string          `json:\"-\"`\n\tKeyID                 string          `json:\"key_id\"`\n\tEncryptedValue        string          `json:\"encrypted_value\"`\n\tVisibility            string          `json:\"visibility,omitempty\"`\n\tSelectedRepositoryIDs SelectedRepoIDs `json:\"selected_repository_ids,omitempty\"`\n}\n```\nEncryptedSecret represents a secret that is encrypted using a public key.\n\nThe value of EncryptedValue must be your secret, encrypted with LibSodium (see documentation here: [https://libsodium.gitbook.io/doc/bindings\\_for\\_other\\_languages](https://libsodium.gitbook.io/doc/bindings_for_other_languages)) using the public key retrieved using the GetPublicKey method.\n\n```go\ntype Enterprise struct {\n\tID          *int       `json:\"id,omitempty\"`\n\tSlug        *string    `json:\"slug,omitempty\"`\n\tName        *string    `json:\"name,omitempty\"`\n\tNodeID      *string    `json:\"node_id,omitempty\"`\n\tAvatarURL   *string    `json:\"avatar_url,omitempty\"`\n\tDescription *string    `json:\"description,omitempty\"`\n\tWebsiteURL  *string    `json:\"website_url,omitempty\"`\n\tHTMLURL     *string    `json:\"html_url,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nEnterprise represents the GitHub enterprise profile.\n\n```go\nfunc (e *Enterprise) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetID() int\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Enterprise) GetWebsiteURL() string\n```\nGetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m Enterprise) String() string\n```\n\n```go\ntype EnterpriseService service\n```\nEnterpriseService provides access to the enterprise related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/)\n\n```go\nfunc (s *EnterpriseService) CreateRegistrationToken(ctx context.Context, enterprise string) (*RegistrationToken, *Response, error)\n```\nCreateRegistrationToken creates a token that can be used to add a self-hosted runner.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/#create-a-registration-token-for-an-enterprise](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/#create-a-registration-token-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRunners(ctx context.Context, enterprise string, opts *ListOptions) (*Runners, *Response, error)\n```\nListRunners lists all the self-hosted runners for a enterprise.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/#list-self-hosted-runners-for-an-enterprise](https://docs.github.com/en/free-pro-team@latest/rest/reference/enterprise-admin/#list-self-hosted-runners-for-an-enterprise)\n\n```go\ntype Error struct {\n\tResource string `json:\"resource\"` // resource on which the error occurred\n\tField    string `json:\"field\"`    // field on which the error occurred\n\tCode     string `json:\"code\"`     // validation error code\n\tMessage  string `json:\"message\"`  // Message describing the error. Errors with Code == \"custom\" will always have this set.\n}\n```\nAn Error reports more details on an individual error in an ErrorResponse. These are the possible validation error codes:\n\n\tmissing:\n\t    resource does not exist\n\tmissing_field:\n\t    a required field on a resource has not been set\n\tinvalid:\n\t    the formatting of a field is invalid\n\talready_exists:\n\t    another resource has the same valid as this field\n\tcustom:\n\t    some resources return this (e.g. github.User.CreateKey()), additional\n\t    information is set in the Message field of the Error\n\nGitHub error responses structure are often undocumented and inconsistent. Sometimes error is just a simple string (Issue #540). In such cases, Message represents an error message as a workaround.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/#client-errors](https://docs.github.com/en/free-pro-team@latest/rest/reference/#client-errors)\n\n```go\nfunc (e *Error) Error() string\n```\n\n```go\nfunc (e *Error) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ErrorResponse struct {\n\tResponse *http.Response // HTTP response that caused this error\n\tMessage  string         `json:\"message\"` // error message\n\tErrors   []Error        `json:\"errors\"`  // more detail on individual errors\n\t// Block is only populated on certain types of errors such as code 451.\n\t// See https://developer.github.com/changes/2016-03-17-the-451-status-code-is-now-supported/\n\t// for more information.\n\tBlock *struct {\n\t\tReason    string     `json:\"reason,omitempty\"`\n\t\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\t} `json:\"block,omitempty\"`\n\t// Most errors will also include a documentation_url field pointing\n\t// to some content that might help you resolve the error, see\n\t// https://docs.github.com/en/free-pro-team@latest/rest/reference/#client-errors\n\tDocumentationURL string `json:\"documentation_url,omitempty\"`\n}\n```\nAn ErrorResponse reports one or more errors caused by an API request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/#client-errors](https://docs.github.com/en/free-pro-team@latest/rest/reference/#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,omitempty\"`\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) GetActor() *User\n```\nGetActor returns the Actor field.\n\n```go\nfunc (e *Event) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Event) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Event) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (e *Event) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Event) GetRawPayload() json.RawMessage\n```\nGetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Event) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (e *Event) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Event) ParsePayload() (payload interface{}, err error)\n```\nParsePayload parses the event payload. For recognized event types, a value of the corresponding struct type will be returned.\n\n```go\nfunc (e *Event) Payload() (payload interface{})\n```\nPayload returns the parsed event payload. For recognized event types, a value of the corresponding struct type will be returned.\n\nDeprecated: Use ParsePayload instead, which returns an error rather than panics if JSON unmarshaling raw payload fails.\n\n```go\nfunc (e Event) String() string\n```\n\n```go\ntype FeedLink struct {\n\tHRef *string `json:\"href,omitempty\"`\n\tType *string `json:\"type,omitempty\"`\n}\n```\nFeedLink represents a link to a related resource.\n\n```go\nfunc (f *FeedLink) GetHRef() string\n```\nGetHRef returns the HRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FeedLink) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype Feeds struct {\n\tTimelineURL                 *string  `json:\"timeline_url,omitempty\"`\n\tUserURL                     *string  `json:\"user_url,omitempty\"`\n\tCurrentUserPublicURL        *string  `json:\"current_user_public_url,omitempty\"`\n\tCurrentUserURL              *string  `json:\"current_user_url,omitempty\"`\n\tCurrentUserActorURL         *string  `json:\"current_user_actor_url,omitempty\"`\n\tCurrentUserOrganizationURL  *string  `json:\"current_user_organization_url,omitempty\"`\n\tCurrentUserOrganizationURLs []string `json:\"current_user_organization_urls,omitempty\"`\n\tLinks                       *struct {\n\t\tTimeline                 *FeedLink   `json:\"timeline,omitempty\"`\n\t\tUser                     *FeedLink   `json:\"user,omitempty\"`\n\t\tCurrentUserPublic        *FeedLink   `json:\"current_user_public,omitempty\"`\n\t\tCurrentUser              *FeedLink   `json:\"current_user,omitempty\"`\n\t\tCurrentUserActor         *FeedLink   `json:\"current_user_actor,omitempty\"`\n\t\tCurrentUserOrganization  *FeedLink   `json:\"current_user_organization,omitempty\"`\n\t\tCurrentUserOrganizations []*FeedLink `json:\"current_user_organizations,omitempty\"`\n\t} `json:\"_links,omitempty\"`\n}\n```\nFeeds represents timeline resources in Atom format.\n\n```go\nfunc (f *Feeds) GetCurrentUserActorURL() string\n```\nGetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *Feeds) GetCurrentUserOrganizationURL() string\n```\nGetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *Feeds) GetCurrentUserPublicURL() string\n```\nGetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *Feeds) GetCurrentUserURL() string\n```\nGetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *Feeds) GetTimelineURL() string\n```\nGetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *Feeds) GetUserURL() string\n```\nGetUserURL returns the UserURL field if it's non-nil, zero value otherwise.\n\n```go\ntype ForkEvent struct {\n\t// Forkee is the created repository.\n\tForkee *Repository `json:\"forkee,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nForkEvent is triggered when a user forks a repository. The Webhook event name is \"fork\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#forkevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#forkevent)\n\n```go\nfunc (f *ForkEvent) GetForkee() *Repository\n```\nGetForkee returns the Forkee field.\n\n```go\nfunc (f *ForkEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (f *ForkEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (f *ForkEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype GPGEmail struct {\n\tEmail    *string `json:\"email,omitempty\"`\n\tVerified *bool   `json:\"verified,omitempty\"`\n}\n```\nGPGEmail represents an email address associated to a GPG key.\n\n```go\nfunc (g *GPGEmail) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGEmail) GetVerified() bool\n```\nGetVerified returns the Verified field if it's non-nil, zero value otherwise.\n\n```go\ntype GPGKey struct {\n\tID                *int64      `json:\"id,omitempty\"`\n\tPrimaryKeyID      *int64      `json:\"primary_key_id,omitempty\"`\n\tKeyID             *string     `json:\"key_id,omitempty\"`\n\tPublicKey         *string     `json:\"public_key,omitempty\"`\n\tEmails            []*GPGEmail `json:\"emails,omitempty\"`\n\tSubkeys           []*GPGKey   `json:\"subkeys,omitempty\"`\n\tCanSign           *bool       `json:\"can_sign,omitempty\"`\n\tCanEncryptComms   *bool       `json:\"can_encrypt_comms,omitempty\"`\n\tCanEncryptStorage *bool       `json:\"can_encrypt_storage,omitempty\"`\n\tCanCertify        *bool       `json:\"can_certify,omitempty\"`\n\tCreatedAt         *time.Time  `json:\"created_at,omitempty\"`\n\tExpiresAt         *time.Time  `json:\"expires_at,omitempty\"`\n}\n```\nGPGKey represents a GitHub user's public GPG key used to verify GPG signed commits and tags.\n\n[https://developer.github.com/changes/2016-04-04-git-signing-api-preview/](https://developer.github.com/changes/2016-04-04-git-signing-api-preview/)\n\n```go\nfunc (g *GPGKey) GetCanCertify() bool\n```\nGetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetCanEncryptComms() bool\n```\nGetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetCanEncryptStorage() bool\n```\nGetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetCanSign() bool\n```\nGetCanSign returns the CanSign field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetExpiresAt() time.Time\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetKeyID() string\n```\nGetKeyID returns the KeyID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetPrimaryKeyID() int64\n```\nGetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetPublicKey() string\n```\nGetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k GPGKey) String() string\n```\nString stringifies a GPGKey.\n\n```go\ntype Gist struct {\n\tID          *string                   `json:\"id,omitempty\"`\n\tDescription *string                   `json:\"description,omitempty\"`\n\tPublic      *bool                     `json:\"public,omitempty\"`\n\tOwner       *User                     `json:\"owner,omitempty\"`\n\tFiles       map[GistFilename]GistFile `json:\"files,omitempty\"`\n\tComments    *int                      `json:\"comments,omitempty\"`\n\tHTMLURL     *string                   `json:\"html_url,omitempty\"`\n\tGitPullURL  *string                   `json:\"git_pull_url,omitempty\"`\n\tGitPushURL  *string                   `json:\"git_push_url,omitempty\"`\n\tCreatedAt   *time.Time                `json:\"created_at,omitempty\"`\n\tUpdatedAt   *time.Time                `json:\"updated_at,omitempty\"`\n\tNodeID      *string                   `json:\"node_id,omitempty\"`\n}\n```\nGist represents a GitHub's gist.\n\n```go\nfunc (g *Gist) GetComments() int\n```\nGetComments returns the Comments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetGitPullURL() string\n```\nGetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetGitPushURL() string\n```\nGetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (g *Gist) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gist) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g Gist) String() string\n```\n\n```go\ntype GistComment struct {\n\tID        *int64     `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) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistComment) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistComment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistComment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistComment) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (g GistComment) String() string\n```\n\n```go\ntype GistCommit struct {\n\tURL          *string      `json:\"url,omitempty\"`\n\tVersion      *string      `json:\"version,omitempty\"`\n\tUser         *User        `json:\"user,omitempty\"`\n\tChangeStatus *CommitStats `json:\"change_status,omitempty\"`\n\tCommittedAt  *Timestamp   `json:\"committed_at,omitempty\"`\n\tNodeID       *string      `json:\"node_id,omitempty\"`\n}\n```\nGistCommit represents a commit on a gist.\n\n```go\nfunc (g *GistCommit) GetChangeStatus() *CommitStats\n```\nGetChangeStatus returns the ChangeStatus field.\n\n```go\nfunc (g *GistCommit) GetCommittedAt() Timestamp\n```\nGetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistCommit) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistCommit) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistCommit) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (g *GistCommit) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\nfunc (gc GistCommit) String() string\n```\n\n```go\ntype GistFile struct {\n\tSize     *int    `json:\"size,omitempty\"`\n\tFilename *string `json:\"filename,omitempty\"`\n\tLanguage *string `json:\"language,omitempty\"`\n\tType     *string `json:\"type,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) GetContent() string\n```\nGetContent returns the Content field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFile) GetFilename() string\n```\nGetFilename returns the Filename field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFile) GetLanguage() string\n```\nGetLanguage returns the Language field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFile) GetRawURL() string\n```\nGetRawURL returns the RawURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFile) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFile) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g GistFile) String() string\n```\n\n```go\ntype GistFilename string\n```\nGistFilename represents filename on a gist.\n\n```go\ntype GistFork struct {\n\tURL       *string    `json:\"url,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tID        *string    `json:\"id,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n\tNodeID    *string    `json:\"node_id,omitempty\"`\n}\n```\nGistFork represents a fork of a gist.\n\n```go\nfunc (g *GistFork) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFork) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFork) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFork) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFork) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistFork) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (gf GistFork) String() string\n```\n\n```go\ntype GistListOptions struct {\n\t// Since filters Gists by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nGistListOptions specifies the optional parameters to the GistsService.List, GistsService.ListAll, and GistsService.ListStarred methods.\n\n```go\ntype GistStats struct {\n\tTotalGists   *int `json:\"total_gists,omitempty\"`\n\tPrivateGists *int `json:\"private_gists,omitempty\"`\n\tPublicGists  *int `json:\"public_gists,omitempty\"`\n}\n```\nGistStats represents the number of total, private and public gists.\n\n```go\nfunc (g *GistStats) GetPrivateGists() int\n```\nGetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistStats) GetPublicGists() int\n```\nGetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GistStats) GetTotalGists() int\n```\nGetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s GistStats) String() string\n```\n\n```go\ntype GistsService service\n```\nGistsService handles communication with the Gist related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/)\n\n```go\nfunc (s *GistsService) Create(ctx context.Context, gist *Gist) (*Gist, *Response, error)\n```\nCreate a gist for authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#create-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#create-a-gist)\n\n```go\nfunc (s *GistsService) CreateComment(ctx context.Context, gistID string, comment *GistComment) (*GistComment, *Response, error)\n```\nCreateComment creates a comment for a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#create-a-gist-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#create-a-gist-comment)\n\n```go\nfunc (s *GistsService) Delete(ctx context.Context, id string) (*Response, error)\n```\nDelete a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#delete-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#delete-a-gist)\n\n```go\nfunc (s *GistsService) DeleteComment(ctx context.Context, gistID string, commentID int64) (*Response, error)\n```\nDeleteComment deletes a gist comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#delete-a-gist-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#delete-a-gist-comment)\n\n```go\nfunc (s *GistsService) Edit(ctx context.Context, id string, gist *Gist) (*Gist, *Response, error)\n```\nEdit a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#update-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#update-a-gist)\n\n```go\nfunc (s *GistsService) EditComment(ctx context.Context, gistID string, commentID int64, comment *GistComment) (*GistComment, *Response, error)\n```\nEditComment edits an existing gist comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#update-a-gist-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#update-a-gist-comment)\n\n```go\nfunc (s *GistsService) Fork(ctx context.Context, id string) (*Gist, *Response, error)\n```\nFork a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#fork-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#fork-a-gist)\n\n```go\nfunc (s *GistsService) Get(ctx context.Context, id string) (*Gist, *Response, error)\n```\nGet a single gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#get-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#get-a-gist)\n\n```go\nfunc (s *GistsService) GetComment(ctx context.Context, gistID string, commentID int64) (*GistComment, *Response, error)\n```\nGetComment retrieves a single comment from a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#get-a-gist-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#get-a-gist-comment)\n\n```go\nfunc (s *GistsService) GetRevision(ctx context.Context, id, sha string) (*Gist, *Response, error)\n```\nGetRevision gets a specific revision of a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#get-a-gist-revision](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#get-a-gist-revision)\n\n```go\nfunc (s *GistsService) IsStarred(ctx context.Context, id string) (bool, *Response, error)\n```\nIsStarred checks if a gist is starred by authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#check-if-a-gist-is-starred](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#check-if-a-gist-is-starred)\n\n```go\nfunc (s *GistsService) List(ctx context.Context, user string, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gists-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gists-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gists-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gists-for-a-user)\n\n```go\nfunc (s *GistsService) ListAll(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error)\n```\nListAll lists all public gists.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-public-gists](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-public-gists)\n\n```go\nfunc (s *GistsService) ListComments(ctx context.Context, gistID string, opts *ListOptions) ([]*GistComment, *Response, error)\n```\nListComments lists all comments for a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gist-comments](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gist-comments)\n\n```go\nfunc (s *GistsService) ListCommits(ctx context.Context, id string, opts *ListOptions) ([]*GistCommit, *Response, error)\n```\nListCommits lists commits of a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gist-commits](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gist-commits)\n\n```go\nfunc (s *GistsService) ListForks(ctx context.Context, id string, opts *ListOptions) ([]*GistFork, *Response, error)\n```\nListForks lists forks of a gist.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gist-forks](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-gist-forks)\n\n```go\nfunc (s *GistsService) ListStarred(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error)\n```\nListStarred lists starred gists of authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-starred-gists](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#list-starred-gists)\n\n```go\nfunc (s *GistsService) Star(ctx context.Context, id string) (*Response, error)\n```\nStar a gist on behalf of authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#star-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#star-a-gist)\n\n```go\nfunc (s *GistsService) Unstar(ctx context.Context, id string) (*Response, error)\n```\nUnstar a gist on a behalf of authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#unstar-a-gist](https://docs.github.com/en/free-pro-team@latest/rest/reference/gists/#unstar-a-gist)\n\n```go\ntype GitHubAppAuthorizationEvent struct {\n\t// The action performed. Possible value is: \"revoked\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tSender *User `json:\"sender,omitempty\"`\n}\n```\nGitHubAppAuthorizationEvent is triggered when a user's authorization for a GitHub Application is revoked.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#githubappauthorizationevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#githubappauthorizationevent)\n\n```go\nfunc (g *GitHubAppAuthorizationEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GitHubAppAuthorizationEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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 (g *GitObject) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GitObject) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GitObject) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o GitObject) String() string\n```\n\n```go\ntype GitService service\n```\nGitService handles communication with the git data related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/)\n\n```go\nfunc (s *GitService) CreateBlob(ctx context.Context, owner string, repo string, blob *Blob) (*Blob, *Response, error)\n```\nCreateBlob creates a blob object.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-blob](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-blob)\n\n```go\nfunc (s *GitService) CreateCommit(ctx context.Context, owner string, repo string, commit *Commit) (*Commit, *Response, error)\n```\nCreateCommit creates a new commit in a repository. commit must not be nil.\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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-commit)\n\n```go\nfunc (s *GitService) CreateRef(ctx context.Context, owner string, repo string, ref *Reference) (*Reference, *Response, error)\n```\nCreateRef creates a new ref in a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-reference)\n\n```go\nfunc (s *GitService) CreateTag(ctx context.Context, owner string, repo string, tag *Tag) (*Tag, *Response, error)\n```\nCreateTag creates a tag object.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-tag-object](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-tag-object)\n\n```go\nfunc (s *GitService) CreateTree(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-tree](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#create-a-tree)\n\n```go\nfunc (s *GitService) DeleteRef(ctx context.Context, owner string, repo string, ref string) (*Response, error)\n```\nDeleteRef deletes a ref from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#delete-a-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#delete-a-reference)\n\n```go\nfunc (s *GitService) GetBlob(ctx context.Context, owner string, repo string, sha string) (*Blob, *Response, error)\n```\nGetBlob fetches a blob from a repo given a SHA.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-blob](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-blob)\n\n```go\nfunc (s *GitService) GetBlobRaw(ctx context.Context, owner, repo, sha string) ([]byte, *Response, error)\n```\nGetBlobRaw fetches a blob's contents from a repo. Unlike GetBlob, it returns the raw bytes rather than the base64-encoded data.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-blob](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-blob)\n\n```go\nfunc (s *GitService) GetCommit(ctx context.Context, owner string, repo string, sha string) (*Commit, *Response, error)\n```\nGetCommit fetches the Commit object for a given SHA.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-commit)\n\n```go\nfunc (s *GitService) GetRef(ctx context.Context, owner string, repo string, ref string) (*Reference, *Response, error)\n```\nGetRef fetches a single reference in a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-reference)\n\n```go\nfunc (s *GitService) GetTag(ctx context.Context, owner string, repo string, sha string) (*Tag, *Response, error)\n```\nGetTag fetches a tag from a repo given a SHA.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-tag](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-tag)\n\n```go\nfunc (s *GitService) GetTree(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-tree](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#get-a-tree)\n\n```go\nfunc (s *GitService) ListMatchingRefs(ctx context.Context, owner, repo string, opts *ReferenceListOptions) ([]*Reference, *Response, error)\n```\nListMatchingRefs lists references in a repository that match a supplied ref. Use an empty ref to list all references.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#list-matching-references](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#list-matching-references)\n\n```go\nfunc (s *GitService) UpdateRef(ctx context.Context, owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error)\n```\nUpdateRef updates an existing ref in a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#update-a-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/git/#update-a-reference)\n\n```go\ntype Gitignore struct {\n\tName   *string `json:\"name,omitempty\"`\n\tSource *string `json:\"source,omitempty\"`\n}\n```\nGitignore represents a .gitignore file as returned by the GitHub API.\n\n```go\nfunc (g *Gitignore) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Gitignore) GetSource() string\n```\nGetSource returns the Source field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g Gitignore) String() string\n```\n\n```go\ntype GitignoresService service\n```\nGitignoresService provides access to the gitignore related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore/](https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore/)\n\n```go\nfunc (s *GitignoresService) Get(ctx context.Context, name string) (*Gitignore, *Response, error)\n```\nGet a Gitignore by name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore/#get-a-gitignore-template](https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore/#get-a-gitignore-template)\n\n```go\nfunc (s *GitignoresService) List(ctx context.Context) ([]string, *Response, error)\n```\nList all available Gitignore templates.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore/#listing-available-templates](https://docs.github.com/en/free-pro-team@latest/rest/reference/gitignore/#listing-available-templates)\n\n```go\ntype GollumEvent struct {\n\tPages []*Page `json:\"pages,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nGollumEvent is triggered when a Wiki page is created or updated. The Webhook event name is \"gollum\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#gollumevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#gollumevent)\n\n```go\nfunc (g *GollumEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (g *GollumEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (g *GollumEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype Grant struct {\n\tID        *int64            `json:\"id,omitempty\"`\n\tURL       *string           `json:\"url,omitempty\"`\n\tApp       *AuthorizationApp `json:\"app,omitempty\"`\n\tCreatedAt *Timestamp        `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp        `json:\"updated_at,omitempty\"`\n\tScopes    []string          `json:\"scopes,omitempty\"`\n}\n```\nGrant represents an OAuth application that has been granted access to an account.\n\n```go\nfunc (g *Grant) GetApp() *AuthorizationApp\n```\nGetApp returns the App field.\n\n```go\nfunc (g *Grant) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Grant) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Grant) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *Grant) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g Grant) String() string\n```\n\n```go\ntype HeadCommit struct {\n\tMessage  *string       `json:\"message,omitempty\"`\n\tAuthor   *CommitAuthor `json:\"author,omitempty\"`\n\tURL      *string       `json:\"url,omitempty\"`\n\tDistinct *bool         `json:\"distinct,omitempty\"`\n\n\t// The following fields are only populated by Events API.\n\tSHA *string `json:\"sha,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tID        *string       `json:\"id,omitempty\"`\n\tTreeID    *string       `json:\"tree_id,omitempty\"`\n\tTimestamp *Timestamp    `json:\"timestamp,omitempty\"`\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n\tAdded     []string      `json:\"added,omitempty\"`\n\tRemoved   []string      `json:\"removed,omitempty\"`\n\tModified  []string      `json:\"modified,omitempty\"`\n}\n```\nHeadCommit represents a git commit in a GitHub PushEvent.\n\n```go\nfunc (h *HeadCommit) GetAuthor() *CommitAuthor\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (h *HeadCommit) GetCommitter() *CommitAuthor\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (h *HeadCommit) GetDistinct() bool\n```\nGetDistinct returns the Distinct field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HeadCommit) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HeadCommit) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HeadCommit) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HeadCommit) GetTimestamp() Timestamp\n```\nGetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HeadCommit) GetTreeID() string\n```\nGetTreeID returns the TreeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HeadCommit) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p HeadCommit) String() string\n```\n\n```go\ntype Hook struct {\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tID        *int64     `json:\"id,omitempty\"`\n\n\t// Only the following fields are used when creating a hook.\n\t// Config is required.\n\tConfig map[string]interface{} `json:\"config,omitempty\"`\n\tEvents []string               `json:\"events,omitempty\"`\n\tActive *bool                  `json:\"active,omitempty\"`\n}\n```\nHook represents a GitHub (web and service) hook for a repository.\n\n```go\nfunc (h *Hook) GetActive() bool\n```\nGetActive returns the Active field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h Hook) String() string\n```\n\n```go\ntype HookStats struct {\n\tTotalHooks    *int `json:\"total_hooks,omitempty\"`\n\tActiveHooks   *int `json:\"active_hooks,omitempty\"`\n\tInactiveHooks *int `json:\"inactive_hooks,omitempty\"`\n}\n```\nHookStats represents the number of total, active and inactive hooks.\n\n```go\nfunc (h *HookStats) GetActiveHooks() int\n```\nGetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookStats) GetInactiveHooks() int\n```\nGetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookStats) GetTotalHooks() int\n```\nGetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s HookStats) String() string\n```\n\n```go\ntype Hovercard struct {\n\tContexts []*UserContext `json:\"contexts,omitempty\"`\n}\n```\nHovercard represents hovercard information about a user.\n\n```go\ntype HovercardOptions struct {\n\t// SubjectType specifies the additional information to be received about the hovercard.\n\t// Possible values are: organization, repository, issue, pull_request. (Required when using subject_id.)\n\tSubjectType string `url:\"subject_type\"`\n\n\t// SubjectID specifies the ID for the SubjectType. (Required when using subject_type.)\n\tSubjectID string `url:\"subject_id\"`\n}\n```\nHovercardOptions specifies optional parameters to the UsersService.GetHovercard method.\n\n```go\ntype IDPGroup struct {\n\tGroupID          *string `json:\"group_id,omitempty\"`\n\tGroupName        *string `json:\"group_name,omitempty\"`\n\tGroupDescription *string `json:\"group_description,omitempty\"`\n}\n```\nIDPGroup represents an external identity provider (IDP) group.\n\n```go\nfunc (i *IDPGroup) GetGroupDescription() string\n```\nGetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IDPGroup) GetGroupID() string\n```\nGetGroupID returns the GroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IDPGroup) GetGroupName() string\n```\nGetGroupName returns the GroupName field if it's non-nil, zero value otherwise.\n\n```go\ntype IDPGroupList struct {\n\tGroups []*IDPGroup `json:\"groups\"`\n}\n```\nIDPGroupList represents a list of external identity provider (IDP) groups.\n\n```go\ntype ImpersonateUserOptions struct {\n\tScopes []string `json:\"scopes,omitempty\"`\n}\n```\nImpersonateUserOptions represents the scoping for the OAuth token.\n\n```go\ntype Import struct {\n\t// The URL of the originating repository.\n\tVCSURL *string `json:\"vcs_url,omitempty\"`\n\t// The originating VCS type. Can be one of 'subversion', 'git',\n\t// 'mercurial', or 'tfvc'. Without this parameter, the import job will\n\t// take additional time to detect the VCS type before beginning the\n\t// import. This detection step will be reflected in the response.\n\tVCS *string `json:\"vcs,omitempty\"`\n\t// VCSUsername and VCSPassword are only used for StartImport calls that\n\t// are importing a password-protected repository.\n\tVCSUsername *string `json:\"vcs_username,omitempty\"`\n\tVCSPassword *string `json:\"vcs_password,omitempty\"`\n\t// For a tfvc import, the name of the project that is being imported.\n\tTFVCProject *string `json:\"tfvc_project,omitempty\"`\n\n\t// Describes whether the import has been opted in or out of using Git\n\t// LFS. The value can be 'opt_in', 'opt_out', or 'undecided' if no\n\t// action has been taken.\n\tUseLFS *string `json:\"use_lfs,omitempty\"`\n\t// Describes whether files larger than 100MB were found during the\n\t// importing step.\n\tHasLargeFiles *bool `json:\"has_large_files,omitempty\"`\n\t// The total size in gigabytes of files larger than 100MB found in the\n\t// originating repository.\n\tLargeFilesSize *int `json:\"large_files_size,omitempty\"`\n\t// The total number of files larger than 100MB found in the originating\n\t// repository. To see a list of these files, call LargeFiles.\n\tLargeFilesCount *int `json:\"large_files_count,omitempty\"`\n\n\t// Identifies the current status of an import. An import that does not\n\t// have errors will progress through these steps:\n\t//\n\t//     detecting - the \"detection\" step of the import is in progress\n\t//         because the request did not include a VCS parameter. The\n\t//         import is identifying the type of source control present at\n\t//         the URL.\n\t//     importing - the \"raw\" step of the import is in progress. This is\n\t//         where commit data is fetched from the original repository.\n\t//         The import progress response will include CommitCount (the\n\t//         total number of raw commits that will be imported) and\n\t//         Percent (0 - 100, the current progress through the import).\n\t//     mapping - the \"rewrite\" step of the import is in progress. This\n\t//         is where SVN branches are converted to Git branches, and\n\t//         where author updates are applied. The import progress\n\t//         response does not include progress information.\n\t//     pushing - the \"push\" step of the import is in progress. This is\n\t//         where the importer updates the repository on GitHub. The\n\t//         import progress response will include PushPercent, which is\n\t//         the percent value reported by git push when it is \"Writing\n\t//         objects\".\n\t//     complete - the import is complete, and the repository is ready\n\t//         on GitHub.\n\t//\n\t// If there are problems, you will see one of these in the status field:\n\t//\n\t//     auth_failed - the import requires authentication in order to\n\t//         connect to the original repository. Make an UpdateImport\n\t//         request, and include VCSUsername and VCSPassword.\n\t//     error - the import encountered an error. The import progress\n\t//         response will include the FailedStep and an error message.\n\t//         Contact GitHub support for more information.\n\t//     detection_needs_auth - the importer requires authentication for\n\t//         the originating repository to continue detection. Make an\n\t//         UpdatImport request, and include VCSUsername and\n\t//         VCSPassword.\n\t//     detection_found_nothing - the importer didn't recognize any\n\t//         source control at the URL.\n\t//     detection_found_multiple - the importer found several projects\n\t//         or repositories at the provided URL. When this is the case,\n\t//         the Import Progress response will also include a\n\t//         ProjectChoices field with the possible project choices as\n\t//         values. Make an UpdateImport request, and include VCS and\n\t//         (if applicable) TFVCProject.\n\tStatus        *string `json:\"status,omitempty\"`\n\tCommitCount   *int    `json:\"commit_count,omitempty\"`\n\tStatusText    *string `json:\"status_text,omitempty\"`\n\tAuthorsCount  *int    `json:\"authors_count,omitempty\"`\n\tPercent       *int    `json:\"percent,omitempty\"`\n\tPushPercent   *int    `json:\"push_percent,omitempty\"`\n\tURL           *string `json:\"url,omitempty\"`\n\tHTMLURL       *string `json:\"html_url,omitempty\"`\n\tAuthorsURL    *string `json:\"authors_url,omitempty\"`\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n\tMessage       *string `json:\"message,omitempty\"`\n\tFailedStep    *string `json:\"failed_step,omitempty\"`\n\n\t// Human readable display name, provided when the Import appears as\n\t// part of ProjectChoices.\n\tHumanName *string `json:\"human_name,omitempty\"`\n\n\t// When the importer finds several projects or repositories at the\n\t// provided URLs, this will identify the available choices. Call\n\t// UpdateImport with the selected Import value.\n\tProjectChoices []*Import `json:\"project_choices,omitempty\"`\n}\n```\nImport represents a repository import request.\n\n```go\nfunc (i *Import) GetAuthorsCount() int\n```\nGetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetAuthorsURL() string\n```\nGetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetCommitCount() int\n```\nGetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetFailedStep() string\n```\nGetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetHasLargeFiles() bool\n```\nGetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetHumanName() string\n```\nGetHumanName returns the HumanName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetLargeFilesCount() int\n```\nGetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetLargeFilesSize() int\n```\nGetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetPercent() int\n```\nGetPercent returns the Percent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetPushPercent() int\n```\nGetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetStatusText() string\n```\nGetStatusText returns the StatusText field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetTFVCProject() string\n```\nGetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetUseLFS() string\n```\nGetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetVCS() string\n```\nGetVCS returns the VCS field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetVCSPassword() string\n```\nGetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetVCSURL() string\n```\nGetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Import) GetVCSUsername() string\n```\nGetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i Import) String() string\n```\n\n```go\ntype Installation struct {\n\tID                  *int64                   `json:\"id,omitempty\"`\n\tNodeID              *string                  `json:\"node_id,omitempty\"`\n\tAppID               *int64                   `json:\"app_id,omitempty\"`\n\tTargetID            *int64                   `json:\"target_id,omitempty\"`\n\tAccount             *User                    `json:\"account,omitempty\"`\n\tAccessTokensURL     *string                  `json:\"access_tokens_url,omitempty\"`\n\tRepositoriesURL     *string                  `json:\"repositories_url,omitempty\"`\n\tHTMLURL             *string                  `json:\"html_url,omitempty\"`\n\tTargetType          *string                  `json:\"target_type,omitempty\"`\n\tSingleFileName      *string                  `json:\"single_file_name,omitempty\"`\n\tRepositorySelection *string                  `json:\"repository_selection,omitempty\"`\n\tEvents              []string                 `json:\"events,omitempty\"`\n\tPermissions         *InstallationPermissions `json:\"permissions,omitempty\"`\n\tCreatedAt           *Timestamp               `json:\"created_at,omitempty\"`\n\tUpdatedAt           *Timestamp               `json:\"updated_at,omitempty\"`\n}\n```\nInstallation represents a GitHub Apps installation.\n\n```go\nfunc (i *Installation) GetAccessTokensURL() string\n```\nGetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetAccount() *User\n```\nGetAccount returns the Account field.\n\n```go\nfunc (i *Installation) GetAppID() int64\n```\nGetAppID returns the AppID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetPermissions() *InstallationPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\nfunc (i *Installation) GetRepositoriesURL() string\n```\nGetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetSingleFileName() string\n```\nGetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetTargetID() int64\n```\nGetTargetID returns the TargetID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetTargetType() string\n```\nGetTargetType returns the TargetType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i Installation) String() string\n```\n\n```go\ntype InstallationEvent struct {\n\t// The action that was performed. Can be either \"created\" or \"deleted\".\n\tAction       *string       `json:\"action,omitempty\"`\n\tRepositories []*Repository `json:\"repositories,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nInstallationEvent is triggered when a GitHub App has been installed or uninstalled. The Webhook event name is \"installation\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#installationevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#installationevent)\n\n```go\nfunc (i *InstallationEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (i *InstallationEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype InstallationPermissions struct {\n\tAdministration              *string `json:\"administration,omitempty\"`\n\tBlocking                    *string `json:\"blocking,omitempty\"`\n\tChecks                      *string `json:\"checks,omitempty\"`\n\tContents                    *string `json:\"contents,omitempty\"`\n\tContentReferences           *string `json:\"content_references,omitempty\"`\n\tDeployments                 *string `json:\"deployments,omitempty\"`\n\tEmails                      *string `json:\"emails,omitempty\"`\n\tFollowers                   *string `json:\"followers,omitempty\"`\n\tIssues                      *string `json:\"issues,omitempty\"`\n\tMetadata                    *string `json:\"metadata,omitempty\"`\n\tMembers                     *string `json:\"members,omitempty\"`\n\tOrganizationAdministration  *string `json:\"organization_administration,omitempty\"`\n\tOrganizationHooks           *string `json:\"organization_hooks,omitempty\"`\n\tOrganizationPlan            *string `json:\"organization_plan,omitempty\"`\n\tOrganizationPreReceiveHooks *string `json:\"organization_pre_receive_hooks,omitempty\"`\n\tOrganizationProjects        *string `json:\"organization_projects,omitempty\"`\n\tOrganizationUserBlocking    *string `json:\"organization_user_blocking,omitempty\"`\n\tPackages                    *string `json:\"packages,omitempty\"`\n\tPages                       *string `json:\"pages,omitempty\"`\n\tPullRequests                *string `json:\"pull_requests,omitempty\"`\n\tRepositoryHooks             *string `json:\"repository_hooks,omitempty\"`\n\tRepositoryProjects          *string `json:\"repository_projects,omitempty\"`\n\tRepositoryPreReceiveHooks   *string `json:\"repository_pre_receive_hooks,omitempty\"`\n\tSingleFile                  *string `json:\"single_file,omitempty\"`\n\tStatuses                    *string `json:\"statuses,omitempty\"`\n\tTeamDiscussions             *string `json:\"team_discussions,omitempty\"`\n\tVulnerabilityAlerts         *string `json:\"vulnerability_alerts,omitempty\"`\n}\n```\nInstallationPermissions lists the repository and organization permissions for an installation.\n\nPermission names taken from:\n\n\thttps://docs.github.com/en/free-pro-team@latest/rest/reference/apps/permissions/\n\thttps://developer.github.com/enterprise/v3/apps/permissions/\n\n```go\nfunc (i *InstallationPermissions) GetAdministration() string\n```\nGetAdministration returns the Administration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetBlocking() string\n```\nGetBlocking returns the Blocking field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetChecks() string\n```\nGetChecks returns the Checks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetContentReferences() string\n```\nGetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetContents() string\n```\nGetContents returns the Contents field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetDeployments() string\n```\nGetDeployments returns the Deployments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEmails() string\n```\nGetEmails returns the Emails field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetFollowers() string\n```\nGetFollowers returns the Followers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetIssues() string\n```\nGetIssues returns the Issues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetMembers() string\n```\nGetMembers returns the Members field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetMetadata() string\n```\nGetMetadata returns the Metadata field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationAdministration() string\n```\nGetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationHooks() string\n```\nGetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationPlan() string\n```\nGetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string\n```\nGetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationProjects() string\n```\nGetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationUserBlocking() string\n```\nGetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetPackages() string\n```\nGetPackages returns the Packages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetPages() string\n```\nGetPages returns the Pages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetPullRequests() string\n```\nGetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetRepositoryHooks() string\n```\nGetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string\n```\nGetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetRepositoryProjects() string\n```\nGetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetSingleFile() string\n```\nGetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetStatuses() string\n```\nGetStatuses returns the Statuses field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetTeamDiscussions() string\n```\nGetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetVulnerabilityAlerts() string\n```\nGetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise.\n\n```go\ntype InstallationRepositoriesEvent struct {\n\t// The action that was performed. Can be either \"added\" or \"removed\".\n\tAction              *string       `json:\"action,omitempty\"`\n\tRepositoriesAdded   []*Repository `json:\"repositories_added,omitempty\"`\n\tRepositoriesRemoved []*Repository `json:\"repositories_removed,omitempty\"`\n\tRepositorySelection *string       `json:\"repository_selection,omitempty\"`\n\tSender              *User         `json:\"sender,omitempty\"`\n\tInstallation        *Installation `json:\"installation,omitempty\"`\n}\n```\nInstallationRepositoriesEvent is triggered when a repository is added or removed from an installation. The Webhook event name is \"installation\\_repositories\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#installationrepositoriesevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#installationrepositoriesevent)\n\n```go\nfunc (i *InstallationRepositoriesEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationRepositoriesEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (i *InstallationRepositoriesEvent) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationRepositoriesEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype InstallationToken struct {\n\tToken        *string                  `json:\"token,omitempty\"`\n\tExpiresAt    *time.Time               `json:\"expires_at,omitempty\"`\n\tPermissions  *InstallationPermissions `json:\"permissions,omitempty\"`\n\tRepositories []*Repository            `json:\"repositories,omitempty\"`\n}\n```\nInstallationToken represents an installation token.\n\n```go\nfunc (i *InstallationToken) GetExpiresAt() time.Time\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationToken) GetPermissions() *InstallationPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\nfunc (i *InstallationToken) GetToken() string\n```\nGetToken returns the Token field if it's non-nil, zero value otherwise.\n\n```go\ntype InstallationTokenOptions struct {\n\t// The IDs of the repositories that the installation token can access.\n\t// Providing repository IDs restricts the access of an installation token to specific repositories.\n\tRepositoryIDs []int64 `json:\"repository_ids,omitempty\"`\n\n\t// The permissions granted to the access token.\n\t// The permissions object includes the permission names and their access type.\n\tPermissions *InstallationPermissions `json:\"permissions,omitempty\"`\n}\n```\nInstallationTokenOptions allow restricting a token's access to specific repositories.\n\n```go\nfunc (i *InstallationTokenOptions) GetPermissions() *InstallationPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\ntype InteractionRestriction struct {\n\t// Specifies the group of GitHub users who can\n\t// comment, open issues, or create pull requests for the given repository.\n\t// Possible values are: \"existing_users\", \"contributors_only\" and \"collaborators_only\".\n\tLimit *string `json:\"limit,omitempty\"`\n\n\t// Origin specifies the type of the resource to interact with.\n\t// Possible values are: \"repository\" and \"organization\".\n\tOrigin *string `json:\"origin,omitempty\"`\n\n\t// ExpiresAt specifies the time after which the interaction restrictions expire.\n\t// The default expiry time is 24 hours from the time restriction is created.\n\tExpiresAt *Timestamp `json:\"expires_at,omitempty\"`\n}\n```\nInteractionRestriction represents the interaction restrictions for repository and organization.\n\n```go\nfunc (i *InteractionRestriction) GetExpiresAt() Timestamp\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InteractionRestriction) GetLimit() string\n```\nGetLimit returns the Limit field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InteractionRestriction) GetOrigin() string\n```\nGetOrigin returns the Origin field if it's non-nil, zero value otherwise.\n\n```go\ntype InteractionsService service\n```\nInteractionsService handles communication with the repository and organization related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/)\n\n```go\nfunc (s *InteractionsService) GetRestrictionsForOrg(ctx context.Context, organization string) (*InteractionRestriction, *Response, error)\n```\nGetRestrictionsForOrg fetches the interaction restrictions for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#get-interaction-restrictions-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#get-interaction-restrictions-for-an-organization)\n\n```go\nfunc (s *InteractionsService) GetRestrictionsForRepo(ctx context.Context, owner, repo string) (*InteractionRestriction, *Response, error)\n```\nGetRestrictionsForRepo fetches the interaction restrictions for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#get-interaction-restrictions-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#get-interaction-restrictions-for-a-repository)\n\n```go\nfunc (s *InteractionsService) RemoveRestrictionsFromOrg(ctx context.Context, organization string) (*Response, error)\n```\nRemoveRestrictionsFromOrg removes the interaction restrictions for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#remove-interaction-restrictions-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#remove-interaction-restrictions-for-an-organization)\n\n```go\nfunc (s *InteractionsService) RemoveRestrictionsFromRepo(ctx context.Context, owner, repo string) (*Response, error)\n```\nRemoveRestrictionsFromRepo removes the interaction restrictions for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#remove-interaction-restrictions-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#remove-interaction-restrictions-for-a-repository)\n\n```go\nfunc (s *InteractionsService) UpdateRestrictionsForOrg(ctx context.Context, organization, limit string) (*InteractionRestriction, *Response, error)\n```\nUpdateRestrictionsForOrg adds or updates the interaction restrictions for an organization.\n\nlimit specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Possible values are: \"existing\\_users\", \"contributors\\_only\", \"collaborators\\_only\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#set-interaction-restrictions-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#set-interaction-restrictions-for-an-organization)\n\n```go\nfunc (s *InteractionsService) UpdateRestrictionsForRepo(ctx context.Context, owner, repo, limit string) (*InteractionRestriction, *Response, error)\n```\nUpdateRestrictionsForRepo adds or updates the interaction restrictions for a repository.\n\nlimit specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Possible values are: \"existing\\_users\", \"contributors\\_only\", \"collaborators\\_only\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#set-interaction-restrictions-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/#set-interaction-restrictions-for-a-repository)\n\n```go\ntype Invitation struct {\n\tID     *int64  `json:\"id,omitempty\"`\n\tNodeID *string `json:\"node_id,omitempty\"`\n\tLogin  *string `json:\"login,omitempty\"`\n\tEmail  *string `json:\"email,omitempty\"`\n\t// Role can be one of the values - 'direct_member', 'admin', 'billing_manager', 'hiring_manager', or 'reinstate'.\n\tRole              *string    `json:\"role,omitempty\"`\n\tCreatedAt         *time.Time `json:\"created_at,omitempty\"`\n\tInviter           *User      `json:\"inviter,omitempty\"`\n\tTeamCount         *int       `json:\"team_count,omitempty\"`\n\tInvitationTeamURL *string    `json:\"invitation_team_url,omitempty\"`\n}\n```\nInvitation represents a team member's invitation status.\n\n```go\nfunc (i *Invitation) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetInvitationTeamURL() string\n```\nGetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetInviter() *User\n```\nGetInviter returns the Inviter field.\n\n```go\nfunc (i *Invitation) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetRole() string\n```\nGetRole returns the Role field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetTeamCount() int\n```\nGetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i Invitation) String() string\n```\n\n```go\ntype Issue struct {\n\tID                *int64            `json:\"id,omitempty\"`\n\tNumber            *int              `json:\"number,omitempty\"`\n\tState             *string           `json:\"state,omitempty\"`\n\tLocked            *bool             `json:\"locked,omitempty\"`\n\tTitle             *string           `json:\"title,omitempty\"`\n\tBody              *string           `json:\"body,omitempty\"`\n\tAuthorAssociation *string           `json:\"author_association,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\tClosedBy          *User             `json:\"closed_by,omitempty\"`\n\tURL               *string           `json:\"url,omitempty\"`\n\tHTMLURL           *string           `json:\"html_url,omitempty\"`\n\tCommentsURL       *string           `json:\"comments_url,omitempty\"`\n\tEventsURL         *string           `json:\"events_url,omitempty\"`\n\tLabelsURL         *string           `json:\"labels_url,omitempty\"`\n\tRepositoryURL     *string           `json:\"repository_url,omitempty\"`\n\tMilestone         *Milestone        `json:\"milestone,omitempty\"`\n\tPullRequestLinks  *PullRequestLinks `json:\"pull_request,omitempty\"`\n\tRepository        *Repository       `json:\"repository,omitempty\"`\n\tReactions         *Reactions        `json:\"reactions,omitempty\"`\n\tAssignees         []*User           `json:\"assignees,omitempty\"`\n\tNodeID            *string           `json:\"node_id,omitempty\"`\n\n\t// TextMatches is only populated from search results that request text matches\n\t// See: search.go and https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#text-match-metadata\n\tTextMatches []*TextMatch `json:\"text_matches,omitempty\"`\n\n\t// ActiveLockReason is populated only when LockReason is provided while locking the issue.\n\t// Possible values are: \"off-topic\", \"too heated\", \"resolved\", and \"spam\".\n\tActiveLockReason *string `json:\"active_lock_reason,omitempty\"`\n}\n```\nIssue represents a GitHub issue on a repository.\n\nNote: As far as the GitHub API is concerned, every pull request is an issue, but not every issue is a pull request. Some endpoints, events, and webhooks may also return pull requests via this struct. If PullRequestLinks is nil, this is an issue, and if PullRequestLinks is not nil, this is a pull request. The IsPullRequest helper method can be used to check that.\n\n```go\nfunc (i *Issue) GetActiveLockReason() string\n```\nGetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (i *Issue) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetClosedAt() time.Time\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetClosedBy() *User\n```\nGetClosedBy returns the ClosedBy field.\n\n```go\nfunc (i *Issue) GetComments() int\n```\nGetComments returns the Comments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetCommentsURL() string\n```\nGetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetLabelsURL() string\n```\nGetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetLocked() bool\n```\nGetLocked returns the Locked field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetMilestone() *Milestone\n```\nGetMilestone returns the Milestone field.\n\n```go\nfunc (i *Issue) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetPullRequestLinks() *PullRequestLinks\n```\nGetPullRequestLinks returns the PullRequestLinks field.\n\n```go\nfunc (i *Issue) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (i *Issue) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (i *Issue) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (i Issue) IsPullRequest() bool\n```\nIsPullRequest reports whether the issue is also a pull request. It uses the method recommended by GitHub's API documentation, which is to check whether PullRequestLinks is non-nil.\n\n```go\nfunc (i Issue) String() string\n```\n\n```go\ntype IssueComment struct {\n\tID        *int64     `json:\"id,omitempty\"`\n\tNodeID    *string    `json:\"node_id,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tReactions *Reactions `json:\"reactions,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\t// AuthorAssociation is the comment author's relationship to the issue's repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\tAuthorAssociation *string `json:\"author_association,omitempty\"`\n\tURL               *string `json:\"url,omitempty\"`\n\tHTMLURL           *string `json:\"html_url,omitempty\"`\n\tIssueURL          *string `json:\"issue_url,omitempty\"`\n}\n```\nIssueComment represents a comment left on an issue.\n\n```go\nfunc (i *IssueComment) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetIssueURL() string\n```\nGetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (i *IssueComment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueComment) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (i IssueComment) String() string\n```\n\n```go\ntype IssueCommentEvent struct {\n\t// Action is the action that was performed on the comment.\n\t// Possible values are: \"created\", \"edited\", \"deleted\".\n\tAction  *string       `json:\"action,omitempty\"`\n\tIssue   *Issue        `json:\"issue,omitempty\"`\n\tComment *IssueComment `json:\"comment,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges      *EditChange   `json:\"changes,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nIssueCommentEvent is triggered when an issue comment is created on an issue or pull request. The Webhook event name is \"issue\\_comment\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#issuecommentevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#issuecommentevent)\n\n```go\nfunc (i *IssueCommentEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueCommentEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (i *IssueCommentEvent) GetComment() *IssueComment\n```\nGetComment returns the Comment field.\n\n```go\nfunc (i *IssueCommentEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (i *IssueCommentEvent) GetIssue() *Issue\n```\nGetIssue returns the Issue field.\n\n```go\nfunc (i *IssueCommentEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (i *IssueCommentEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype IssueEvent struct {\n\tID  *int64  `json:\"id,omitempty\"`\n\tURL *string `json:\"url,omitempty\"`\n\n\t// The User that generated this event.\n\tActor *User `json:\"actor,omitempty\"`\n\n\t// Event identifies the actual type of Event that occurred. Possible\n\t// values are:\n\t//\n\t//     closed\n\t//       The Actor closed the issue.\n\t//       If the issue was closed by commit message, CommitID holds the SHA1 hash of the commit.\n\t//\n\t//     merged\n\t//       The Actor merged into master a branch containing a commit mentioning the issue.\n\t//       CommitID holds the SHA1 of the merge commit.\n\t//\n\t//     referenced\n\t//       The Actor committed to master a commit mentioning the issue in its commit message.\n\t//       CommitID holds the SHA1 of the commit.\n\t//\n\t//     reopened, unlocked\n\t//       The Actor did that to the issue.\n\t//\n\t//     locked\n\t//       The Actor locked the issue.\n\t//       LockReason holds the reason of locking the issue (if provided while locking).\n\t//\n\t//     renamed\n\t//       The Actor changed the issue title from Rename.From to Rename.To.\n\t//\n\t//     mentioned\n\t//       Someone unspecified @mentioned the Actor [sic] in an issue comment body.\n\t//\n\t//     assigned, unassigned\n\t//       The Assigner assigned the issue to or removed the assignment from the Assignee.\n\t//\n\t//     labeled, unlabeled\n\t//       The Actor added or removed the Label from the issue.\n\t//\n\t//     milestoned, demilestoned\n\t//       The Actor added or removed the issue from the Milestone.\n\t//\n\t//     subscribed, unsubscribed\n\t//       The Actor subscribed to or unsubscribed from notifications for an issue.\n\t//\n\t//     head_ref_deleted, head_ref_restored\n\t//       The pull request’s branch was deleted or restored.\n\t//\n\t//    review_dismissed\n\t//       The review was dismissed and `DismissedReview` will be populated below.\n\t//\n\t//    review_requested, review_request_removed\n\t//       The Actor requested or removed the request for a review.\n\t//       RequestedReviewer and ReviewRequester will be populated below.\n\t//\n\tEvent *string `json:\"event,omitempty\"`\n\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tIssue     *Issue     `json:\"issue,omitempty\"`\n\n\t// Only present on certain events; see above.\n\tAssignee          *User            `json:\"assignee,omitempty\"`\n\tAssigner          *User            `json:\"assigner,omitempty\"`\n\tCommitID          *string          `json:\"commit_id,omitempty\"`\n\tMilestone         *Milestone       `json:\"milestone,omitempty\"`\n\tLabel             *Label           `json:\"label,omitempty\"`\n\tRename            *Rename          `json:\"rename,omitempty\"`\n\tLockReason        *string          `json:\"lock_reason,omitempty\"`\n\tProjectCard       *ProjectCard     `json:\"project_card,omitempty\"`\n\tDismissedReview   *DismissedReview `json:\"dismissed_review,omitempty\"`\n\tRequestedReviewer *User            `json:\"requested_reviewer,omitempty\"`\n\tReviewRequester   *User            `json:\"review_requester,omitempty\"`\n}\n```\nIssueEvent represents an event that occurred around an Issue or Pull Request.\n\n```go\nfunc (i *IssueEvent) GetActor() *User\n```\nGetActor returns the Actor field.\n\n```go\nfunc (i *IssueEvent) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (i *IssueEvent) GetAssigner() *User\n```\nGetAssigner returns the Assigner field.\n\n```go\nfunc (i *IssueEvent) GetCommitID() string\n```\nGetCommitID returns the CommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueEvent) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueEvent) GetDismissedReview() *DismissedReview\n```\nGetDismissedReview returns the DismissedReview field.\n\n```go\nfunc (i *IssueEvent) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueEvent) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueEvent) GetIssue() *Issue\n```\nGetIssue returns the Issue field.\n\n```go\nfunc (i *IssueEvent) GetLabel() *Label\n```\nGetLabel returns the Label field.\n\n```go\nfunc (i *IssueEvent) GetLockReason() string\n```\nGetLockReason returns the LockReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueEvent) GetMilestone() *Milestone\n```\nGetMilestone returns the Milestone field.\n\n```go\nfunc (i *IssueEvent) GetProjectCard() *ProjectCard\n```\nGetProjectCard returns the ProjectCard field.\n\n```go\nfunc (i *IssueEvent) GetRename() *Rename\n```\nGetRename returns the Rename field.\n\n```go\nfunc (i *IssueEvent) GetRequestedReviewer() *User\n```\nGetRequestedReviewer returns the RequestedReviewer field.\n\n```go\nfunc (i *IssueEvent) GetReviewRequester() *User\n```\nGetReviewRequester returns the ReviewRequester field.\n\n```go\nfunc (i *IssueEvent) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueImport struct {\n\tTitle     string     `json:\"title\"`\n\tBody      string     `json:\"body\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tClosedAt  *time.Time `json:\"closed_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\tAssignee  *string    `json:\"assignee,omitempty\"`\n\tMilestone *int       `json:\"milestone,omitempty\"`\n\tClosed    *bool      `json:\"closed,omitempty\"`\n\tLabels    []string   `json:\"labels,omitempty\"`\n}\n```\nIssueImport represents body of issue to import.\n\n```go\nfunc (i *IssueImport) GetAssignee() string\n```\nGetAssignee returns the Assignee field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImport) GetClosed() bool\n```\nGetClosed returns the Closed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImport) GetClosedAt() time.Time\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImport) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImport) GetMilestone() int\n```\nGetMilestone returns the Milestone field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImport) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueImportError struct {\n\tLocation *string `json:\"location,omitempty\"`\n\tResource *string `json:\"resource,omitempty\"`\n\tField    *string `json:\"field,omitempty\"`\n\tValue    *string `json:\"value,omitempty\"`\n\tCode     *string `json:\"code,omitempty\"`\n}\n```\nIssueImportError represents errors of an issue import create request.\n\n```go\nfunc (i *IssueImportError) GetCode() string\n```\nGetCode returns the Code field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportError) GetField() string\n```\nGetField returns the Field field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportError) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportError) GetResource() string\n```\nGetResource returns the Resource field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportError) GetValue() string\n```\nGetValue returns the Value field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueImportRequest struct {\n\tIssueImport IssueImport `json:\"issue\"`\n\tComments    []*Comment  `json:\"comments,omitempty\"`\n}\n```\nIssueImportRequest represents a request to create an issue.\n\n[https://gist.github.com/jonmagic/5282384165e0f86ef105#supported-issue-and-comment-fields](https://gist.github.com/jonmagic/5282384165e0f86ef105#supported-issue-and-comment-fields)\n\n```go\ntype IssueImportResponse struct {\n\tID               *int                `json:\"id,omitempty\"`\n\tStatus           *string             `json:\"status,omitempty\"`\n\tURL              *string             `json:\"url,omitempty\"`\n\tImportIssuesURL  *string             `json:\"import_issues_url,omitempty\"`\n\tRepositoryURL    *string             `json:\"repository_url,omitempty\"`\n\tCreatedAt        *time.Time          `json:\"created_at,omitempty\"`\n\tUpdatedAt        *time.Time          `json:\"updated_at,omitempty\"`\n\tMessage          *string             `json:\"message,omitempty\"`\n\tDocumentationURL *string             `json:\"documentation_url,omitempty\"`\n\tErrors           []*IssueImportError `json:\"errors,omitempty\"`\n}\n```\nIssueImportResponse represents the response of an issue import create request.\n\n[https://gist.github.com/jonmagic/5282384165e0f86ef105#import-issue-response](https://gist.github.com/jonmagic/5282384165e0f86ef105#import-issue-response)\n\n```go\nfunc (i *IssueImportResponse) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetDocumentationURL() string\n```\nGetDocumentationURL returns the DocumentationURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetID() int\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetImportIssuesURL() string\n```\nGetImportIssuesURL returns the ImportIssuesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImportResponse) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueImportService service\n```\nIssueImportService handles communication with the issue import related methods of the Issue Import GitHub API.\n\n```go\nfunc (s *IssueImportService) CheckStatus(ctx context.Context, owner, repo string, issueID int64) (*IssueImportResponse, *Response, error)\n```\nCheckStatus checks the status of an imported issue.\n\n[https://gist.github.com/jonmagic/5282384165e0f86ef105#import-status-request](https://gist.github.com/jonmagic/5282384165e0f86ef105#import-status-request)\n\n```go\nfunc (s *IssueImportService) CheckStatusSince(ctx context.Context, owner, repo string, since time.Time) ([]*IssueImportResponse, *Response, error)\n```\nCheckStatusSince checks the status of multiple imported issues since a given date.\n\n[https://gist.github.com/jonmagic/5282384165e0f86ef105#check-status-of-multiple-issues](https://gist.github.com/jonmagic/5282384165e0f86ef105#check-status-of-multiple-issues)\n\n```go\nfunc (s *IssueImportService) Create(ctx context.Context, owner, repo string, issue *IssueImportRequest) (*IssueImportResponse, *Response, error)\n```\nCreate a new imported issue on the specified repository.\n\n[https://gist.github.com/jonmagic/5282384165e0f86ef105#start-an-issue-import](https://gist.github.com/jonmagic/5282384165e0f86ef105#start-an-issue-import)\n\n```go\ntype IssueListByRepoOptions struct {\n\t// Milestone limits issues for the specified milestone. Possible values are\n\t// a milestone number, \"none\" for issues with no milestone, \"*\" for issues\n\t// with any milestone.\n\tMilestone string `url:\"milestone,omitempty\"`\n\n\t// State filters issues based on their state. Possible values are: open,\n\t// closed, all. Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Assignee filters issues based on their assignee. Possible values are a\n\t// user name, \"none\" for issues that are not assigned, \"*\" for issues with\n\t// any assigned user.\n\tAssignee string `url:\"assignee,omitempty\"`\n\n\t// Creator filters issues based on their creator.\n\tCreator string `url:\"creator,omitempty\"`\n\n\t// Mentioned filters issues to those mentioned a specific user.\n\tMentioned string `url:\"mentioned,omitempty\"`\n\n\t// Labels filters issues based on their label.\n\tLabels []string `url:\"labels,omitempty,comma\"`\n\n\t// Sort specifies how to sort issues. Possible values are: created, updated,\n\t// and comments. Default value is \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues. Possible values are: asc, desc.\n\t// Default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters issues by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListByRepoOptions specifies the optional parameters to the IssuesService.ListByRepo method.\n\n```go\ntype IssueListCommentsOptions struct {\n\t// Since filters comments by time.\n\tSince *time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListCommentsOptions specifies the optional parameters to the IssuesService.ListComments method.\n\n```go\nfunc (i *IssueListCommentsOptions) GetSince() time.Time\n```\nGetSince returns the Since field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueListOptions struct {\n\t// Filter specifies which issues to list. Possible values are: assigned,\n\t// created, mentioned, subscribed, all. Default is \"assigned\".\n\tFilter string `url:\"filter,omitempty\"`\n\n\t// State filters issues based on their state. Possible values are: open,\n\t// closed, all. Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Labels filters issues based on their label.\n\tLabels []string `url:\"labels,comma,omitempty\"`\n\n\t// Sort specifies how to sort issues. Possible values are: created, updated,\n\t// and comments. Default value is \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort issues. Possible values are: asc, desc.\n\t// Default is \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters issues by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListOptions specifies the optional parameters to the IssuesService.List and IssuesService.ListByOrg methods.\n\n```go\ntype IssueRequest struct {\n\tTitle     *string   `json:\"title,omitempty\"`\n\tBody      *string   `json:\"body,omitempty\"`\n\tLabels    *[]string `json:\"labels,omitempty\"`\n\tAssignee  *string   `json:\"assignee,omitempty\"`\n\tState     *string   `json:\"state,omitempty\"`\n\tMilestone *int      `json:\"milestone,omitempty\"`\n\tAssignees *[]string `json:\"assignees,omitempty\"`\n}\n```\nIssueRequest represents a request to create/edit an issue. It is separate from Issue above because otherwise Labels and Assignee fail to serialize to the correct JSON.\n\n```go\nfunc (i *IssueRequest) GetAssignee() string\n```\nGetAssignee returns the Assignee field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueRequest) GetAssignees() []string\n```\nGetAssignees returns the Assignees field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueRequest) GetLabels() []string\n```\nGetLabels returns the Labels field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueRequest) GetMilestone() int\n```\nGetMilestone returns the Milestone field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueStats struct {\n\tTotalIssues  *int `json:\"total_issues,omitempty\"`\n\tOpenIssues   *int `json:\"open_issues,omitempty\"`\n\tClosedIssues *int `json:\"closed_issues,omitempty\"`\n}\n```\nIssueStats represents the number of total, open and closed issues.\n\n```go\nfunc (i *IssueStats) GetClosedIssues() int\n```\nGetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueStats) GetOpenIssues() int\n```\nGetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueStats) GetTotalIssues() int\n```\nGetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s IssueStats) String() string\n```\n\n```go\ntype IssuesEvent struct {\n\t// Action is the action that was performed. Possible values are: \"opened\",\n\t// \"edited\", \"deleted\", \"transferred\", \"pinned\", \"unpinned\", \"closed\", \"reopened\",\n\t// \"assigned\", \"unassigned\", \"labeled\", \"unlabeled\", \"locked\", \"unlocked\",\n\t// \"milestoned\", or \"demilestoned\".\n\tAction   *string `json:\"action,omitempty\"`\n\tIssue    *Issue  `json:\"issue,omitempty\"`\n\tAssignee *User   `json:\"assignee,omitempty\"`\n\tLabel    *Label  `json:\"label,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges      *EditChange   `json:\"changes,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nIssuesEvent is triggered when an issue is opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, locked, unlocked, milestoned, or demilestoned. The Webhook event name is \"issues\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#issuesevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#issuesevent)\n\n```go\nfunc (i *IssuesEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssuesEvent) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (i *IssuesEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (i *IssuesEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (i *IssuesEvent) GetIssue() *Issue\n```\nGetIssue returns the Issue field.\n\n```go\nfunc (i *IssuesEvent) GetLabel() *Label\n```\nGetLabel returns the Label field.\n\n```go\nfunc (i *IssuesEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (i *IssuesEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype IssuesSearchResult struct {\n\tTotal             *int     `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool    `json:\"incomplete_results,omitempty\"`\n\tIssues            []*Issue `json:\"items,omitempty\"`\n}\n```\nIssuesSearchResult represents the result of an issues search.\n\n```go\nfunc (i *IssuesSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssuesSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype IssuesService service\n```\nIssuesService handles communication with the issue related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/)\n\n```go\nfunc (s *IssuesService) AddAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error)\n```\nAddAssignees adds the provided GitHub users as assignees to the issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#add-assignees-to-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#add-assignees-to-an-issue)\n\n```go\nfunc (s *IssuesService) AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error)\n```\nAddLabelsToIssue adds labels to an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#add-labels-to-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#add-labels-to-an-issue)\n\n```go\nfunc (s *IssuesService) Create(ctx context.Context, owner string, repo string, issue *IssueRequest) (*Issue, *Response, error)\n```\nCreate a new issue on the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-an-issue)\n\n```go\nfunc (s *IssuesService) CreateComment(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-an-issue-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-an-issue-comment)\n\n```go\nfunc (s *IssuesService) CreateLabel(ctx context.Context, owner string, repo string, label *Label) (*Label, *Response, error)\n```\nCreateLabel creates a new label on the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-a-label](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-a-label)\n\n```go\nfunc (s *IssuesService) CreateMilestone(ctx context.Context, owner string, repo string, milestone *Milestone) (*Milestone, *Response, error)\n```\nCreateMilestone creates a new milestone on the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-a-milestone](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#create-a-milestone)\n\n```go\nfunc (s *IssuesService) DeleteComment(ctx context.Context, owner string, repo string, commentID int64) (*Response, error)\n```\nDeleteComment deletes an issue comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#delete-an-issue-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#delete-an-issue-comment)\n\n```go\nfunc (s *IssuesService) DeleteLabel(ctx context.Context, owner string, repo string, name string) (*Response, error)\n```\nDeleteLabel deletes a label.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#delete-a-label](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#delete-a-label)\n\n```go\nfunc (s *IssuesService) DeleteMilestone(ctx context.Context, owner string, repo string, number int) (*Response, error)\n```\nDeleteMilestone deletes a milestone.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#delete-a-milestone](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#delete-a-milestone)\n\n```go\nfunc (s *IssuesService) Edit(ctx context.Context, owner string, repo string, number int, issue *IssueRequest) (*Issue, *Response, error)\n```\nEdit an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-an-issue)\n\n```go\nfunc (s *IssuesService) EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *IssueComment) (*IssueComment, *Response, error)\n```\nEditComment updates an issue comment. A non-nil comment.Body must be provided. Other comment fields should be left nil.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-an-issue-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-an-issue-comment)\n\n```go\nfunc (s *IssuesService) EditLabel(ctx context.Context, owner string, repo string, name string, label *Label) (*Label, *Response, error)\n```\nEditLabel edits a label.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-a-label](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-a-label)\n\n```go\nfunc (s *IssuesService) EditMilestone(ctx context.Context, owner string, repo string, number int, milestone *Milestone) (*Milestone, *Response, error)\n```\nEditMilestone edits a milestone.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-a-milestone](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#update-a-milestone)\n\n```go\nfunc (s *IssuesService) Get(ctx context.Context, owner string, repo string, number int) (*Issue, *Response, error)\n```\nGet a single issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-an-issue)\n\n```go\nfunc (s *IssuesService) GetComment(ctx context.Context, owner string, repo string, commentID int64) (*IssueComment, *Response, error)\n```\nGetComment fetches the specified issue comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-an-issue-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-an-issue-comment)\n\n```go\nfunc (s *IssuesService) GetEvent(ctx context.Context, owner, repo string, id int64) (*IssueEvent, *Response, error)\n```\nGetEvent returns the specified issue event.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-an-issue-event](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-an-issue-event)\n\n```go\nfunc (s *IssuesService) GetLabel(ctx context.Context, owner string, repo string, name string) (*Label, *Response, error)\n```\nGetLabel gets a single label.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-a-label](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-a-label)\n\n```go\nfunc (s *IssuesService) GetMilestone(ctx context.Context, owner string, repo string, number int) (*Milestone, *Response, error)\n```\nGetMilestone gets a single milestone.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-a-milestone](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#get-a-milestone)\n\n```go\nfunc (s *IssuesService) IsAssignee(ctx context.Context, owner, repo, user string) (bool, *Response, error)\n```\nIsAssignee checks if a user is an assignee for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#check-if-a-user-can-be-assigned](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#check-if-a-user-can-be-assigned)\n\n```go\nfunc (s *IssuesService) List(ctx context.Context, all bool, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-user-account-issues-assigned-to-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-user-account-issues-assigned-to-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issues-assigned-to-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issues-assigned-to-the-authenticated-user)\n\n```go\nfunc (s *IssuesService) ListAssignees(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error)\n```\nListAssignees fetches all available assignees (owners and collaborators) to which issues may be assigned.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-assignees](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-assignees)\n\n```go\nfunc (s *IssuesService) ListByOrg(ctx context.Context, org string, opts *IssueListOptions) ([]*Issue, *Response, error)\n```\nListByOrg fetches the issues in the specified organization for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-organization-issues-assigned-to-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-organization-issues-assigned-to-the-authenticated-user)\n\n```go\nfunc (s *IssuesService) ListByRepo(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error)\n```\nListByRepo lists the issues for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-repository-issues](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-repository-issues)\n\n```go\nfunc (s *IssuesService) ListComments(ctx context.Context, owner string, repo string, number int, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-comments](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-comments) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-comments-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-comments-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListIssueEvents(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*IssueEvent, *Response, error)\n```\nListIssueEvents lists events for the specified issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-events](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-events)\n\n```go\nfunc (s *IssuesService) ListIssueTimeline(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Timeline, *Response, error)\n```\nListIssueTimeline lists events for the specified issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-timeline-events-for-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-timeline-events-for-an-issue)\n\n```go\nfunc (s *IssuesService) ListLabels(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Label, *Response, error)\n```\nListLabels lists all labels for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-labels-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-labels-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error)\n```\nListLabelsByIssue lists all labels for an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-labels-for-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-labels-for-an-issue)\n\n```go\nfunc (s *IssuesService) ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error)\n```\nListLabelsForMilestone lists labels for every issue in a milestone.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-labels-for-issues-in-a-milestone](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-labels-for-issues-in-a-milestone)\n\n```go\nfunc (s *IssuesService) ListMilestones(ctx context.Context, owner string, repo string, opts *MilestoneListOptions) ([]*Milestone, *Response, error)\n```\nListMilestones lists all milestones for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-milestones](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-milestones)\n\n```go\nfunc (s *IssuesService) ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error)\n```\nListRepositoryEvents lists events for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-events-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#list-issue-events-for-a-repository)\n\n```go\nfunc (s *IssuesService) Lock(ctx context.Context, owner string, repo string, number int, opts *LockIssueOptions) (*Response, error)\n```\nLock an issue's conversation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#lock-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#lock-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error)\n```\nRemoveAssignees removes the provided GitHub users as assignees from the issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#remove-assignees-from-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#remove-assignees-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*Response, error)\n```\nRemoveLabelForIssue removes a label for an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#remove-a-label-from-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#remove-a-label-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveLabelsForIssue(ctx context.Context, owner string, repo string, number int) (*Response, error)\n```\nRemoveLabelsForIssue removes all labels for an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#remove-all-labels-from-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#remove-all-labels-from-an-issue)\n\n```go\nfunc (s *IssuesService) ReplaceLabelsForIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error)\n```\nReplaceLabelsForIssue replaces all labels for an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#set-labels-for-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#set-labels-for-an-issue)\n\n```go\nfunc (s *IssuesService) Unlock(ctx context.Context, owner string, repo string, number int) (*Response, error)\n```\nUnlock an issue's conversation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#unlock-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/#unlock-an-issue)\n\n```go\ntype Jobs struct {\n\tTotalCount *int           `json:\"total_count,omitempty\"`\n\tJobs       []*WorkflowJob `json:\"jobs,omitempty\"`\n}\n```\nJobs represents a slice of repository action workflow job.\n\n```go\nfunc (j *Jobs) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype Key struct {\n\tID        *int64     `json:\"id,omitempty\"`\n\tKey       *string    `json:\"key,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tTitle     *string    `json:\"title,omitempty\"`\n\tReadOnly  *bool      `json:\"read_only,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n}\n```\nKey represents a public SSH key used to authenticate a user or deploy script.\n\n```go\nfunc (k *Key) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k *Key) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k *Key) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k *Key) GetReadOnly() bool\n```\nGetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k *Key) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k *Key) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k Key) String() string\n```\n\n```go\ntype Label struct {\n\tID          *int64  `json:\"id,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\tName        *string `json:\"name,omitempty\"`\n\tColor       *string `json:\"color,omitempty\"`\n\tDescription *string `json:\"description,omitempty\"`\n\tDefault     *bool   `json:\"default,omitempty\"`\n\tNodeID      *string `json:\"node_id,omitempty\"`\n}\n```\nLabel represents a GitHub label on an Issue\n\n```go\nfunc (l *Label) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Label) GetDefault() bool\n```\nGetDefault returns the Default field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Label) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Label) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Label) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Label) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Label) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l Label) String() string\n```\n\n```go\ntype LabelEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"created\", \"edited\", \"deleted\"\n\tAction *string `json:\"action,omitempty\"`\n\tLabel  *Label  `json:\"label,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges      *EditChange   `json:\"changes,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nLabelEvent is triggered when a repository's label is created, edited, or deleted. The Webhook event name is \"label\"\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#labelevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#labelevent)\n\n```go\nfunc (l *LabelEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (l *LabelEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (l *LabelEvent) GetLabel() *Label\n```\nGetLabel returns the Label field.\n\n```go\nfunc (l *LabelEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (l *LabelEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\ntype LabelResult struct {\n\tID          *int64   `json:\"id,omitempty\"`\n\tURL         *string  `json:\"url,omitempty\"`\n\tName        *string  `json:\"name,omitempty\"`\n\tColor       *string  `json:\"color,omitempty\"`\n\tDefault     *bool    `json:\"default,omitempty\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tScore       *float64 `json:\"score,omitempty\"`\n}\n```\nLabelResult represents a single search result.\n\n```go\nfunc (l *LabelResult) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelResult) GetDefault() bool\n```\nGetDefault returns the Default field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelResult) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelResult) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelResult) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelResult) GetScore() *float64\n```\nGetScore returns the Score field.\n\n```go\nfunc (l *LabelResult) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l LabelResult) String() string\n```\n\n```go\ntype LabelsSearchResult struct {\n\tTotal             *int           `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool          `json:\"incomplete_results,omitempty\"`\n\tLabels            []*LabelResult `json:\"items,omitempty\"`\n}\n```\nLabelsSearchResult represents the result of a code search.\n\n```go\nfunc (l *LabelsSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LabelsSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype LargeFile struct {\n\tRefName *string `json:\"ref_name,omitempty\"`\n\tPath    *string `json:\"path,omitempty\"`\n\tOID     *string `json:\"oid,omitempty\"`\n\tSize    *int    `json:\"size,omitempty\"`\n}\n```\nLargeFile identifies a file larger than 100MB found during a repository import.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migration/source\\_imports/#get-large-files](https://docs.github.com/en/free-pro-team@latest/rest/reference/migration/source_imports/#get-large-files)\n\n```go\nfunc (l *LargeFile) GetOID() string\n```\nGetOID returns the OID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LargeFile) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LargeFile) GetRefName() string\n```\nGetRefName returns the RefName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LargeFile) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f LargeFile) String() string\n```\n\n```go\ntype License struct {\n\tKey  *string `json:\"key,omitempty\"`\n\tName *string `json:\"name,omitempty\"`\n\tURL  *string `json:\"url,omitempty\"`\n\n\tSPDXID         *string   `json:\"spdx_id,omitempty\"`\n\tHTMLURL        *string   `json:\"html_url,omitempty\"`\n\tFeatured       *bool     `json:\"featured,omitempty\"`\n\tDescription    *string   `json:\"description,omitempty\"`\n\tImplementation *string   `json:\"implementation,omitempty\"`\n\tPermissions    *[]string `json:\"permissions,omitempty\"`\n\tConditions     *[]string `json:\"conditions,omitempty\"`\n\tLimitations    *[]string `json:\"limitations,omitempty\"`\n\tBody           *string   `json:\"body,omitempty\"`\n}\n```\nLicense represents an open source license.\n\n```go\nfunc (l *License) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetConditions() []string\n```\nGetConditions returns the Conditions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetFeatured() bool\n```\nGetFeatured returns the Featured field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetImplementation() string\n```\nGetImplementation returns the Implementation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetLimitations() []string\n```\nGetLimitations returns the Limitations field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetPermissions() []string\n```\nGetPermissions returns the Permissions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetSPDXID() string\n```\nGetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *License) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l License) String() string\n```\n\n```go\ntype LicensesService service\n```\nLicensesService handles communication with the license related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/](https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/)\n\n```go\nfunc (s *LicensesService) Get(ctx context.Context, licenseName string) (*License, *Response, error)\n```\nGet extended metadata for one license.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/#get-a-license](https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/#get-a-license)\n\n```go\nfunc (s *LicensesService) List(ctx context.Context) ([]*License, *Response, error)\n```\nList popular open source licenses.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/#list-all-licenses](https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/#list-all-licenses)\n\n```go\ntype ListCheckRunsOptions struct {\n\tCheckName *string `url:\"check_name,omitempty\"` // Returns check runs with the specified name.\n\tStatus    *string `url:\"status,omitempty\"`     // Returns check runs with the specified status. Can be one of \"queued\", \"in_progress\", or \"completed\".\n\tFilter    *string `url:\"filter,omitempty\"`     // Filters check runs by their completed_at timestamp. Can be one of \"latest\" (returning the most recent check runs) or \"all\". Default: \"latest\"\n\n\tListOptions\n}\n```\nListCheckRunsOptions represents parameters to list check runs.\n\n```go\nfunc (l *ListCheckRunsOptions) GetCheckName() string\n```\nGetCheckName returns the CheckName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListCheckRunsOptions) GetFilter() string\n```\nGetFilter returns the Filter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListCheckRunsOptions) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCheckRunsResults struct {\n\tTotal     *int        `json:\"total_count,omitempty\"`\n\tCheckRuns []*CheckRun `json:\"check_runs,omitempty\"`\n}\n```\nListCheckRunsResults represents the result of a check run list.\n\n```go\nfunc (l *ListCheckRunsResults) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCheckSuiteOptions struct {\n\tCheckName *string `url:\"check_name,omitempty\"` // Filters checks suites by the name of the check run.\n\tAppID     *int    `url:\"app_id,omitempty\"`     // Filters check suites by GitHub App id.\n\n\tListOptions\n}\n```\nListCheckSuiteOptions represents parameters to list check suites.\n\n```go\nfunc (l *ListCheckSuiteOptions) GetAppID() int\n```\nGetAppID returns the AppID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListCheckSuiteOptions) GetCheckName() string\n```\nGetCheckName returns the CheckName field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCheckSuiteResults struct {\n\tTotal       *int          `json:\"total_count,omitempty\"`\n\tCheckSuites []*CheckSuite `json:\"check_suites,omitempty\"`\n}\n```\nListCheckSuiteResults represents the result of a check run list.\n\n```go\nfunc (l *ListCheckSuiteResults) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCollaboratorOptions struct {\n\t// Affiliation specifies how collaborators should be filtered by their affiliation.\n\t// Possible values are:\n\t//     \"outside\" - All outside collaborators of an organization-owned repository\n\t//     \"direct\" - All collaborators with permissions to an organization-owned repository,\n\t//              regardless of organization membership status\n\t//     \"all\" - All collaborators the authenticated user can see\n\t//\n\t// Default value is \"all\".\n\tAffiliation *string `url:\"affiliation,omitempty\"`\n\n\tListOptions\n}\n```\nListCollaboratorOptions specifies the optional parameters to the ProjectsService.ListProjectCollaborators method.\n\n```go\nfunc (l *ListCollaboratorOptions) GetAffiliation() string\n```\nGetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCollaboratorsOptions struct {\n\t// Affiliation specifies how collaborators should be filtered by their affiliation.\n\t// Possible values are:\n\t//     outside - All outside collaborators of an organization-owned repository\n\t//     direct - All collaborators with permissions to an organization-owned repository,\n\t//              regardless of organization membership status\n\t//     all - All collaborators the authenticated user can see\n\t//\n\t// Default value is \"all\".\n\tAffiliation string `url:\"affiliation,omitempty\"`\n\n\tListOptions\n}\n```\nListCollaboratorsOptions specifies the optional parameters to the RepositoriesService.ListCollaborators method.\n\n```go\ntype ListCommentReactionOptions struct {\n\t// Content restricts the returned comment reactions to only those with the given type.\n\t// Omit this parameter to list all reactions to a commit comment.\n\t// Possible values are: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\tContent string `url:\"content,omitempty\"`\n\n\tListOptions\n}\n```\nListCommentReactionOptions specifies the optional parameters to the ReactionsService.ListCommentReactions method.\n\n```go\ntype ListContributorsOptions struct {\n\t// Include anonymous contributors in results or not\n\tAnon string `url:\"anon,omitempty\"`\n\n\tListOptions\n}\n```\nListContributorsOptions specifies the optional parameters to the RepositoriesService.ListContributors method.\n\n```go\ntype ListCursorOptions struct {\n\t// For paginated result sets, page of results to retrieve.\n\tPage string `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```\nListCursorOptions specifies the optional parameters to various List methods that support cursor pagination.\n\n```go\ntype ListMembersOptions struct {\n\t// If true (or if the authenticated user is not an owner of the\n\t// organization), list only publicly visible members.\n\tPublicOnly bool `url:\"-\"`\n\n\t// Filter members returned in the list. Possible values are:\n\t// 2fa_disabled, all. Default is \"all\".\n\tFilter string `url:\"filter,omitempty\"`\n\n\t// Role filters members returned by their role in the organization.\n\t// Possible values are:\n\t//     all - all members of the organization, regardless of role\n\t//     admin - organization owners\n\t//     member - non-owner organization members\n\t//\n\t// Default is \"all\".\n\tRole string `url:\"role,omitempty\"`\n\n\tListOptions\n}\n```\nListMembersOptions specifies optional parameters to the OrganizationsService.ListMembers method.\n\n```go\ntype ListOptions struct {\n\t// For paginated result sets, page of results to retrieve.\n\tPage int `url:\"page,omitempty\"`\n\n\t// For paginated result sets, the number of results to include per page.\n\tPerPage int `url:\"per_page,omitempty\"`\n}\n```\nListOptions specifies the optional parameters to various List methods that support offset pagination.\n\n```go\ntype ListOrgMembershipsOptions struct {\n\t// Filter memberships to include only those with the specified state.\n\t// Possible values are: \"active\", \"pending\".\n\tState string `url:\"state,omitempty\"`\n\n\tListOptions\n}\n```\nListOrgMembershipsOptions specifies optional parameters to the OrganizationsService.ListOrgMemberships method.\n\n```go\ntype ListOutsideCollaboratorsOptions struct {\n\t// Filter outside collaborators 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```\nListOutsideCollaboratorsOptions specifies optional parameters to the OrganizationsService.ListOutsideCollaborators method.\n\n```go\ntype ListWorkflowJobsOptions struct {\n\t// Filter specifies how jobs should be filtered by their completed_at timestamp.\n\t// Possible values are:\n\t//     latest - Returns jobs from the most recent execution of the workflow run\n\t//     all - Returns all jobs for a workflow run, including from old executions of the workflow run\n\t//\n\t// Default value is \"latest\".\n\tFilter string `url:\"filter,omitempty\"`\n\tListOptions\n}\n```\nListWorkflowJobsOptions specifies optional parameters to ListWorkflowJobs.\n\n```go\ntype ListWorkflowRunsOptions struct {\n\tActor  string `url:\"actor,omitempty\"`\n\tBranch string `url:\"branch,omitempty\"`\n\tEvent  string `url:\"event,omitempty\"`\n\tStatus string `url:\"status,omitempty\"`\n\tListOptions\n}\n```\nListWorkflowRunsOptions specifies optional parameters to ListWorkflowRuns.\n\n```go\ntype LockIssueOptions struct {\n\t// LockReason specifies the reason to lock this issue.\n\t// Providing a lock reason can help make it clearer to contributors why an issue\n\t// was locked. Possible values are: \"off-topic\", \"too heated\", \"resolved\", and \"spam\".\n\tLockReason string `json:\"lock_reason,omitempty\"`\n}\n```\nLockIssueOptions specifies the optional parameters to the IssuesService.Lock method.\n\n```go\ntype MarkdownOptions struct {\n\t// Mode identifies the rendering mode. Possible values are:\n\t//   markdown - render a document as plain Markdown, just like\n\t//   README files are rendered.\n\t//\n\t//   gfm - to render a document as user-content, e.g. like user\n\t//   comments or issues are rendered. In GFM mode, hard line breaks are\n\t//   always taken into account, and issue and user mentions are linked\n\t//   accordingly.\n\t//\n\t// Default is \"markdown\".\n\tMode string\n\n\t// Context identifies the repository context. Only taken into account\n\t// when rendering as \"gfm\".\n\tContext string\n}\n```\nMarkdownOptions specifies optional parameters to the Markdown method.\n\n```go\ntype MarketplacePendingChange struct {\n\tEffectiveDate *Timestamp       `json:\"effective_date,omitempty\"`\n\tUnitCount     *int             `json:\"unit_count,omitempty\"`\n\tID            *int64           `json:\"id,omitempty\"`\n\tPlan          *MarketplacePlan `json:\"plan,omitempty\"`\n}\n```\nMarketplacePendingChange represents a pending change to a GitHub Apps Marketplace Plan.\n\n```go\nfunc (m *MarketplacePendingChange) GetEffectiveDate() Timestamp\n```\nGetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePendingChange) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePendingChange) GetPlan() *MarketplacePlan\n```\nGetPlan returns the Plan field.\n\n```go\nfunc (m *MarketplacePendingChange) GetUnitCount() int\n```\nGetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise.\n\n```go\ntype MarketplacePlan struct {\n\tURL                 *string `json:\"url,omitempty\"`\n\tAccountsURL         *string `json:\"accounts_url,omitempty\"`\n\tID                  *int64  `json:\"id,omitempty\"`\n\tName                *string `json:\"name,omitempty\"`\n\tDescription         *string `json:\"description,omitempty\"`\n\tMonthlyPriceInCents *int    `json:\"monthly_price_in_cents,omitempty\"`\n\tYearlyPriceInCents  *int    `json:\"yearly_price_in_cents,omitempty\"`\n\t// The pricing model for this listing.  Can be one of \"flat-rate\", \"per-unit\", or \"free\".\n\tPriceModel *string   `json:\"price_model,omitempty\"`\n\tUnitName   *string   `json:\"unit_name,omitempty\"`\n\tBullets    *[]string `json:\"bullets,omitempty\"`\n\t// State can be one of the values \"draft\" or \"published\".\n\tState        *string `json:\"state,omitempty\"`\n\tHasFreeTrial *bool   `json:\"has_free_trial,omitempty\"`\n}\n```\nMarketplacePlan represents a GitHub Apps Marketplace Listing Plan.\n\n```go\nfunc (m *MarketplacePlan) GetAccountsURL() string\n```\nGetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetBullets() []string\n```\nGetBullets returns the Bullets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetHasFreeTrial() bool\n```\nGetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetMonthlyPriceInCents() int\n```\nGetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetPriceModel() string\n```\nGetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetUnitName() string\n```\nGetUnitName returns the UnitName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlan) GetYearlyPriceInCents() int\n```\nGetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise.\n\n```go\ntype MarketplacePlanAccount struct {\n\tURL                      *string                   `json:\"url,omitempty\"`\n\tType                     *string                   `json:\"type,omitempty\"`\n\tID                       *int64                    `json:\"id,omitempty\"`\n\tNodeID                   *string                   `json:\"node_id,omitempty\"`\n\tLogin                    *string                   `json:\"login,omitempty\"`\n\tEmail                    *string                   `json:\"email,omitempty\"`\n\tOrganizationBillingEmail *string                   `json:\"organization_billing_email,omitempty\"`\n\tMarketplacePurchase      *MarketplacePurchase      `json:\"marketplace_purchase,omitempty\"`\n\tMarketplacePendingChange *MarketplacePendingChange `json:\"marketplace_pending_change,omitempty\"`\n}\n```\nMarketplacePlanAccount represents a GitHub Account (user or organization) on a specific plan.\n\n```go\nfunc (m *MarketplacePlanAccount) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlanAccount) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlanAccount) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange\n```\nGetMarketplacePendingChange returns the MarketplacePendingChange field.\n\n```go\nfunc (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase\n```\nGetMarketplacePurchase returns the MarketplacePurchase field.\n\n```go\nfunc (m *MarketplacePlanAccount) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string\n```\nGetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlanAccount) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePlanAccount) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype MarketplacePurchase struct {\n\t// BillingCycle can be one of the values \"yearly\", \"monthly\" or nil.\n\tBillingCycle    *string                 `json:\"billing_cycle,omitempty\"`\n\tNextBillingDate *Timestamp              `json:\"next_billing_date,omitempty\"`\n\tUnitCount       *int                    `json:\"unit_count,omitempty\"`\n\tPlan            *MarketplacePlan        `json:\"plan,omitempty\"`\n\tAccount         *MarketplacePlanAccount `json:\"account,omitempty\"`\n\tOnFreeTrial     *bool                   `json:\"on_free_trial,omitempty\"`\n\tFreeTrialEndsOn *Timestamp              `json:\"free_trial_ends_on,omitempty\"`\n}\n```\nMarketplacePurchase represents a GitHub Apps Marketplace Purchase.\n\n```go\nfunc (m *MarketplacePurchase) GetAccount() *MarketplacePlanAccount\n```\nGetAccount returns the Account field.\n\n```go\nfunc (m *MarketplacePurchase) GetBillingCycle() string\n```\nGetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp\n```\nGetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchase) GetNextBillingDate() Timestamp\n```\nGetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchase) GetOnFreeTrial() bool\n```\nGetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchase) GetPlan() *MarketplacePlan\n```\nGetPlan returns the Plan field.\n\n```go\nfunc (m *MarketplacePurchase) GetUnitCount() int\n```\nGetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise.\n\n```go\ntype MarketplacePurchaseEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"purchased\", \"cancelled\", \"pending_change\", \"pending_change_cancelled\", \"changed\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tEffectiveDate               *Timestamp           `json:\"effective_date,omitempty\"`\n\tMarketplacePurchase         *MarketplacePurchase `json:\"marketplace_purchase,omitempty\"`\n\tPreviousMarketplacePurchase *MarketplacePurchase `json:\"previous_marketplace_purchase,omitempty\"`\n\tSender                      *User                `json:\"sender,omitempty\"`\n\tInstallation                *Installation        `json:\"installation,omitempty\"`\n}\n```\nMarketplacePurchaseEvent is triggered when a user purchases, cancels, or changes their GitHub Marketplace plan. Webhook event name \"marketplace\\_purchase\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#marketplacepurchaseevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#marketplacepurchaseevent)\n\n```go\nfunc (m *MarketplacePurchaseEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp\n```\nGetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase\n```\nGetMarketplacePurchase returns the MarketplacePurchase field.\n\n```go\nfunc (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase\n```\nGetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field.\n\n```go\nfunc (m *MarketplacePurchaseEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype MarketplaceService struct {\n\n\t// Stubbed controls whether endpoints that return stubbed data are used\n\t// instead of production endpoints. Stubbed data is fake data that's useful\n\t// for testing your GitHub Apps. Stubbed data is hard-coded and will not\n\t// change based on actual subscriptions.\n\t//\n\t// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#testing-with-stubbed-endpoints\n\tStubbed bool\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceService handles communication with the marketplace related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#marketplace](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#marketplace)\n\n```go\nfunc (s *MarketplaceService) ListMarketplacePurchasesForUser(ctx context.Context, opts *ListOptions) ([]*MarketplacePurchase, *Response, error)\n```\nListMarketplacePurchasesForUser lists all GitHub marketplace purchases made by a user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-subscriptions-for-the-authenticated-user-stubbed](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-subscriptions-for-the-authenticated-user-stubbed) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-subscriptions-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-subscriptions-for-the-authenticated-user)\n\n```go\nfunc (s *MarketplaceService) ListPlanAccountsForAccount(ctx context.Context, accountID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error)\n```\nListPlanAccountsForAccount lists all GitHub accounts (user or organization) associated with an account.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#check-if-a-github-account-is-associated-with-any-marketplace-listing](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#check-if-a-github-account-is-associated-with-any-marketplace-listing)\n\n```go\nfunc (s *MarketplaceService) ListPlanAccountsForPlan(ctx context.Context, planID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error)\n```\nListPlanAccountsForPlan lists all GitHub accounts (user or organization) on a specific plan.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-all-github-accounts-user-or-organization-on-a-specific-plan](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps/#list-all-github-accounts-user-or-organization-on-a-specific-plan)\n\n```go\nfunc (s *MarketplaceService) ListPlans(ctx context.Context, opts *ListOptions) ([]*MarketplacePlan, *Response, error)\n```\nListPlans lists all plans for your Marketplace listing.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#list-plans](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#list-plans)\n\n```go\ntype Match struct {\n\tText    *string `json:\"text,omitempty\"`\n\tIndices []int   `json:\"indices,omitempty\"`\n}\n```\nMatch represents a single text match.\n\n```go\nfunc (m *Match) GetText() string\n```\nGetText returns the Text field if it's non-nil, zero value otherwise.\n\n```go\ntype MemberEvent struct {\n\t// Action is the action that was performed. Possible value is: \"added\".\n\tAction *string `json:\"action,omitempty\"`\n\tMember *User   `json:\"member,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nMemberEvent is triggered when a user is added as a collaborator to a repository. The Webhook event name is \"member\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#memberevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#memberevent)\n\n```go\nfunc (m *MemberEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MemberEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (m *MemberEvent) GetMember() *User\n```\nGetMember returns the Member field.\n\n```go\nfunc (m *MemberEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (m *MemberEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype Membership struct {\n\tURL *string `json:\"url,omitempty\"`\n\n\t// State is the user's status within the organization or team.\n\t// Possible values are: \"active\", \"pending\"\n\tState *string `json:\"state,omitempty\"`\n\n\t// Role identifies the user's role within the organization or team.\n\t// Possible values for organization membership:\n\t//     member - non-owner organization member\n\t//     admin - organization owner\n\t//\n\t// Possible values for team membership are:\n\t//     member - a normal member of the team\n\t//     maintainer - a team maintainer. Able to add/remove other team\n\t//                  members, promote other team members to team\n\t//                  maintainer, and edit the team’s name and description\n\tRole *string `json:\"role,omitempty\"`\n\n\t// For organization membership, the API URL of the organization.\n\tOrganizationURL *string `json:\"organization_url,omitempty\"`\n\n\t// For organization membership, the organization the membership is for.\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\n\t// For organization membership, the user the membership is for.\n\tUser *User `json:\"user,omitempty\"`\n}\n```\nMembership represents the status of a user's membership in an organization or team.\n\n```go\nfunc (m *Membership) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (m *Membership) GetOrganizationURL() string\n```\nGetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Membership) GetRole() string\n```\nGetRole returns the Role field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Membership) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Membership) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Membership) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (m Membership) String() string\n```\n\n```go\ntype MembershipEvent struct {\n\t// Action is the action that was performed. Possible values are: \"added\", \"removed\".\n\tAction *string `json:\"action,omitempty\"`\n\t// Scope is the scope of the membership. Possible value is: \"team\".\n\tScope  *string `json:\"scope,omitempty\"`\n\tMember *User   `json:\"member,omitempty\"`\n\tTeam   *Team   `json:\"team,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nMembershipEvent is triggered when a user is added or removed from a team. The Webhook event name is \"membership\".\n\nEvents of this type are not visible in timelines, they are only used to trigger organization webhooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#membershipevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#membershipevent)\n\n```go\nfunc (m *MembershipEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MembershipEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (m *MembershipEvent) GetMember() *User\n```\nGetMember returns the Member field.\n\n```go\nfunc (m *MembershipEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (m *MembershipEvent) GetScope() string\n```\nGetScope returns the Scope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MembershipEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (m *MembershipEvent) GetTeam() *Team\n```\nGetTeam returns the Team field.\n\n```go\ntype MetaEvent struct {\n\t// Action is the action that was performed. Possible value is: \"deleted\".\n\tAction *string `json:\"action,omitempty\"`\n\t// The ID of the modified webhook.\n\tHookID *int64 `json:\"hook_id,omitempty\"`\n\t// The modified webhook.\n\t// This will contain different keys based on the type of webhook it is: repository,\n\t// organization, business, app, or GitHub Marketplace.\n\tHook *Hook `json:\"hook,omitempty\"`\n}\n```\nMetaEvent is triggered when the webhook that this event is configured on is deleted. This event will only listen for changes to the particular hook the event is installed on. Therefore, it must be selected for each hook that you'd like to receive meta events for. The Webhook event name is \"meta\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#metaevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#metaevent)\n\n```go\nfunc (m *MetaEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MetaEvent) GetHook() *Hook\n```\nGetHook returns the Hook field.\n\n```go\nfunc (m *MetaEvent) GetHookID() int64\n```\nGetHookID returns the HookID field if it's non-nil, zero value otherwise.\n\n```go\ntype Metric struct {\n\tName    *string `json:\"name\"`\n\tKey     *string `json:\"key\"`\n\tURL     *string `json:\"url\"`\n\tHTMLURL *string `json:\"html_url\"`\n}\n```\nMetric represents the different fields for one file in community health files.\n\n```go\nfunc (m *Metric) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Metric) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Metric) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Metric) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype Migration struct {\n\tID   *int64  `json:\"id,omitempty\"`\n\tGUID *string `json:\"guid,omitempty\"`\n\t// State is the current state of a migration.\n\t// Possible values are:\n\t//     \"pending\" which means the migration hasn't started yet,\n\t//     \"exporting\" which means the migration is in progress,\n\t//     \"exported\" which means the migration finished successfully, or\n\t//     \"failed\" which means the migration failed.\n\tState *string `json:\"state,omitempty\"`\n\t// LockRepositories indicates whether repositories are locked (to prevent\n\t// manipulation) while migrating data.\n\tLockRepositories *bool `json:\"lock_repositories,omitempty\"`\n\t// ExcludeAttachments indicates whether attachments should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeAttachments *bool         `json:\"exclude_attachments,omitempty\"`\n\tURL                *string       `json:\"url,omitempty\"`\n\tCreatedAt          *string       `json:\"created_at,omitempty\"`\n\tUpdatedAt          *string       `json:\"updated_at,omitempty\"`\n\tRepositories       []*Repository `json:\"repositories,omitempty\"`\n}\n```\nMigration represents a GitHub migration (archival).\n\n```go\nfunc (m *Migration) GetCreatedAt() string\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetExcludeAttachments() bool\n```\nGetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetGUID() string\n```\nGetGUID returns the GUID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetLockRepositories() bool\n```\nGetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Migration) GetUpdatedAt() string\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m Migration) String() string\n```\n\n```go\ntype MigrationOptions struct {\n\t// LockRepositories indicates whether repositories should be locked (to prevent\n\t// manipulation) while migrating data.\n\tLockRepositories bool\n\n\t// ExcludeAttachments indicates whether attachments should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeAttachments bool\n}\n```\nMigrationOptions specifies the optional parameters to Migration methods.\n\n```go\ntype MigrationService service\n```\nMigrationService provides access to the migration related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migration/](https://docs.github.com/en/free-pro-team@latest/rest/reference/migration/)\n\n```go\nfunc (s *MigrationService) CancelImport(ctx context.Context, owner, repo string) (*Response, error)\n```\nCancelImport stops an import for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#cancel-an-import](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#cancel-an-import)\n\n```go\nfunc (s *MigrationService) CommitAuthors(ctx context.Context, owner, repo string) ([]*SourceImportAuthor, *Response, error)\n```\nCommitAuthors gets the authors mapped from the original repository.\n\nEach type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username \"hubot\" into something like \"hubot \\\u003chubot@12341234-abab-fefe-8787-fedcba987654\u003e\".\n\nThis method and MapCommitAuthor allow you to provide correct Git author information.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-commit-authors](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-commit-authors)\n\n```go\nfunc (s *MigrationService) DeleteMigration(ctx context.Context, org string, id int64) (*Response, error)\n```\nDeleteMigration deletes a previous migration archive. id is the migration ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#delete-an-organization-migration-archive](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#delete-an-organization-migration-archive)\n\n```go\nfunc (s *MigrationService) DeleteUserMigration(ctx context.Context, id int64) (*Response, error)\n```\nDeleteUserMigration will delete a previous migration archive. id is the migration ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#delete-a-user-migration-archive](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#delete-a-user-migration-archive)\n\n```go\nfunc (s *MigrationService) ImportProgress(ctx context.Context, owner, repo string) (*Import, *Response, error)\n```\nImportProgress queries for the status and progress of an ongoing repository import.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-an-import-status](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-an-import-status)\n\n```go\nfunc (s *MigrationService) LargeFiles(ctx context.Context, owner, repo string) ([]*LargeFile, *Response, error)\n```\nLargeFiles lists files larger than 100MB found during the import.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-large-files](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-large-files)\n\n```go\nfunc (s *MigrationService) ListMigrations(ctx context.Context, org string, opts *ListOptions) ([]*Migration, *Response, error)\n```\nListMigrations lists the most recent migrations.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#list-organization-migrations](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#list-organization-migrations)\n\n```go\nfunc (s *MigrationService) ListUserMigrations(ctx context.Context) ([]*UserMigration, *Response, error)\n```\nListUserMigrations lists the most recent migrations.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#list-user-migrations](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#list-user-migrations)\n\n```go\nfunc (s *MigrationService) MapCommitAuthor(ctx context.Context, owner, repo string, id int64, author *SourceImportAuthor) (*SourceImportAuthor, *Response, error)\n```\nMapCommitAuthor updates an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#map-a-commit-author](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#map-a-commit-author)\n\n```go\nfunc (s *MigrationService) MigrationArchiveURL(ctx context.Context, org string, id int64) (url string, err error)\n```\nMigrationArchiveURL fetches a migration archive URL. id is the migration ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#download-an-organization-migration-archive](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#download-an-organization-migration-archive)\n\n```go\nfunc (s *MigrationService) MigrationStatus(ctx context.Context, org string, id int64) (*Migration, *Response, error)\n```\nMigrationStatus gets the status of a specific migration archive. id is the migration ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-an-organization-migration-status](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-an-organization-migration-status)\n\n```go\nfunc (s *MigrationService) SetLFSPreference(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)\n```\nSetLFSPreference sets whether imported repositories should use Git LFS for files larger than 100MB. Only the UseLFS field on the provided Import is used.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#update-git-lfs-preference](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#update-git-lfs-preference)\n\n```go\nfunc (s *MigrationService) StartImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)\n```\nStartImport initiates a repository import.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#start-an-import](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#start-an-import)\n\n```go\nfunc (s *MigrationService) StartMigration(ctx context.Context, org string, repos []string, opts *MigrationOptions) (*Migration, *Response, error)\n```\nStartMigration starts the generation of a migration archive. repos is a slice of repository names to migrate.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#start-an-organization-migration](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#start-an-organization-migration)\n\n```go\nfunc (s *MigrationService) StartUserMigration(ctx context.Context, repos []string, opts *UserMigrationOptions) (*UserMigration, *Response, error)\n```\nStartUserMigration starts the generation of a migration archive. repos is a slice of repository names to migrate.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#start-a-user-migration](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#start-a-user-migration)\n\n```go\nfunc (s *MigrationService) UnlockRepo(ctx context.Context, org string, id int64, repo string) (*Response, error)\n```\nUnlockRepo unlocks a repository that was locked for migration. id is the migration ID. You should unlock each migrated repository and delete them when the migration is complete and you no longer need the source data.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#unlock-an-organization-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#unlock-an-organization-repository)\n\n```go\nfunc (s *MigrationService) UnlockUserRepo(ctx context.Context, id int64, repo string) (*Response, error)\n```\nUnlockUserRepo will unlock a repo that was locked for migration. id is migration ID. You should unlock each migrated repository and delete them when the migration is complete and you no longer need the source data.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#unlock-a-user-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#unlock-a-user-repository)\n\n```go\nfunc (s *MigrationService) UpdateImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)\n```\nUpdateImport initiates a repository import.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#update-an-import](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#update-an-import)\n\n```go\nfunc (s *MigrationService) UserMigrationArchiveURL(ctx context.Context, id int64) (string, error)\n```\nUserMigrationArchiveURL gets the URL for a specific migration archive. id is the migration ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#download-a-user-migration-archive](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#download-a-user-migration-archive)\n\n```go\nfunc (s *MigrationService) UserMigrationStatus(ctx context.Context, id int64) (*UserMigration, *Response, error)\n```\nUserMigrationStatus gets the status of a specific migration archive. id is the migration ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-a-user-migration-status](https://docs.github.com/en/free-pro-team@latest/rest/reference/migrations/#get-a-user-migration-status)\n\n```go\ntype Milestone struct {\n\tURL          *string    `json:\"url,omitempty\"`\n\tHTMLURL      *string    `json:\"html_url,omitempty\"`\n\tLabelsURL    *string    `json:\"labels_url,omitempty\"`\n\tID           *int64     `json:\"id,omitempty\"`\n\tNumber       *int       `json:\"number,omitempty\"`\n\tState        *string    `json:\"state,omitempty\"`\n\tTitle        *string    `json:\"title,omitempty\"`\n\tDescription  *string    `json:\"description,omitempty\"`\n\tCreator      *User      `json:\"creator,omitempty\"`\n\tOpenIssues   *int       `json:\"open_issues,omitempty\"`\n\tClosedIssues *int       `json:\"closed_issues,omitempty\"`\n\tCreatedAt    *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt    *time.Time `json:\"updated_at,omitempty\"`\n\tClosedAt     *time.Time `json:\"closed_at,omitempty\"`\n\tDueOn        *time.Time `json:\"due_on,omitempty\"`\n\tNodeID       *string    `json:\"node_id,omitempty\"`\n}\n```\nMilestone represents a GitHub repository milestone.\n\n```go\nfunc (m *Milestone) GetClosedAt() time.Time\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetClosedIssues() int\n```\nGetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (m *Milestone) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetDueOn() time.Time\n```\nGetDueOn returns the DueOn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetLabelsURL() string\n```\nGetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetOpenIssues() int\n```\nGetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Milestone) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m Milestone) String() string\n```\n\n```go\ntype MilestoneEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"created\", \"closed\", \"opened\", \"edited\", \"deleted\"\n\tAction    *string    `json:\"action,omitempty\"`\n\tMilestone *Milestone `json:\"milestone,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges      *EditChange   `json:\"changes,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nMilestoneEvent is triggered when a milestone is created, closed, opened, edited, or deleted. The Webhook event name is \"milestone\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#milestoneevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#milestoneevent)\n\n```go\nfunc (m *MilestoneEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MilestoneEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (m *MilestoneEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (m *MilestoneEvent) GetMilestone() *Milestone\n```\nGetMilestone returns the Milestone field.\n\n```go\nfunc (m *MilestoneEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (m *MilestoneEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (m *MilestoneEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype MilestoneListOptions struct {\n\t// State filters milestones based on their state. Possible values are:\n\t// open, closed, all. Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Sort specifies how to sort milestones. Possible values are: due_on, completeness.\n\t// Default value is \"due_on\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort milestones. Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nMilestoneListOptions specifies the optional parameters to the IssuesService.ListMilestones method.\n\n```go\ntype MilestoneStats struct {\n\tTotalMilestones  *int `json:\"total_milestones,omitempty\"`\n\tOpenMilestones   *int `json:\"open_milestones,omitempty\"`\n\tClosedMilestones *int `json:\"closed_milestones,omitempty\"`\n}\n```\nMilestoneStats represents the number of total, open and close milestones.\n\n```go\nfunc (m *MilestoneStats) GetClosedMilestones() int\n```\nGetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MilestoneStats) GetOpenMilestones() int\n```\nGetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MilestoneStats) GetTotalMilestones() int\n```\nGetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s MilestoneStats) String() string\n```\n\n```go\ntype NewPullRequest struct {\n\tTitle               *string `json:\"title,omitempty\"`\n\tHead                *string `json:\"head,omitempty\"`\n\tBase                *string `json:\"base,omitempty\"`\n\tBody                *string `json:\"body,omitempty\"`\n\tIssue               *int    `json:\"issue,omitempty\"`\n\tMaintainerCanModify *bool   `json:\"maintainer_can_modify,omitempty\"`\n\tDraft               *bool   `json:\"draft,omitempty\"`\n}\n```\nNewPullRequest represents a new pull request to be created.\n\n```go\nfunc (n *NewPullRequest) GetBase() string\n```\nGetBase returns the Base field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewPullRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewPullRequest) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewPullRequest) GetHead() string\n```\nGetHead returns the Head field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewPullRequest) GetIssue() int\n```\nGetIssue returns the Issue field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewPullRequest) GetMaintainerCanModify() bool\n```\nGetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewPullRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype NewTeam struct {\n\tName         string   `json:\"name\"` // Name of the team. (Required.)\n\tDescription  *string  `json:\"description,omitempty\"`\n\tMaintainers  []string `json:\"maintainers,omitempty\"`\n\tRepoNames    []string `json:\"repo_names,omitempty\"`\n\tParentTeamID *int64   `json:\"parent_team_id,omitempty\"`\n\n\t// Deprecated: Permission is deprecated when creating or editing a team in an org\n\t// using the new GitHub permission model. It no longer identifies the\n\t// permission a team has on its repos, but only specifies the default\n\t// permission a repo is initially added with. Avoid confusion by\n\t// specifying a permission value when calling AddTeamRepo.\n\tPermission *string `json:\"permission,omitempty\"`\n\n\t// Privacy identifies the level of privacy this team should have.\n\t// Possible values are:\n\t//     secret - only visible to organization owners and members of this team\n\t//     closed - visible to all members of this organization\n\t// Default is \"secret\".\n\tPrivacy *string `json:\"privacy,omitempty\"`\n\n\t// LDAPDN may be used in GitHub Enterprise when the team membership\n\t// is synchronized with LDAP.\n\tLDAPDN *string `json:\"ldap_dn,omitempty\"`\n}\n```\nNewTeam represents a team to be created or modified.\n\n```go\nfunc (n *NewTeam) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewTeam) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewTeam) GetParentTeamID() int64\n```\nGetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewTeam) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NewTeam) GetPrivacy() string\n```\nGetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s NewTeam) String() string\n```\n\n```go\ntype Notification struct {\n\tID         *string              `json:\"id,omitempty\"`\n\tRepository *Repository          `json:\"repository,omitempty\"`\n\tSubject    *NotificationSubject `json:\"subject,omitempty\"`\n\n\t// Reason identifies the event that triggered the notification.\n\t//\n\t// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/activity#notification-reasons\n\tReason *string `json:\"reason,omitempty\"`\n\n\tUnread     *bool      `json:\"unread,omitempty\"`\n\tUpdatedAt  *time.Time `json:\"updated_at,omitempty\"`\n\tLastReadAt *time.Time `json:\"last_read_at,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n}\n```\nNotification identifies a GitHub notification for a user.\n\n```go\nfunc (n *Notification) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *Notification) GetLastReadAt() time.Time\n```\nGetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *Notification) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *Notification) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (n *Notification) GetSubject() *NotificationSubject\n```\nGetSubject returns the Subject field.\n\n```go\nfunc (n *Notification) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *Notification) GetUnread() bool\n```\nGetUnread returns the Unread field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *Notification) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype NotificationListOptions struct {\n\tAll           bool      `url:\"all,omitempty\"`\n\tParticipating bool      `url:\"participating,omitempty\"`\n\tSince         time.Time `url:\"since,omitempty\"`\n\tBefore        time.Time `url:\"before,omitempty\"`\n\n\tListOptions\n}\n```\nNotificationListOptions specifies the optional parameters to the ActivityService.ListNotifications method.\n\n```go\ntype NotificationSubject struct {\n\tTitle            *string `json:\"title,omitempty\"`\n\tURL              *string `json:\"url,omitempty\"`\n\tLatestCommentURL *string `json:\"latest_comment_url,omitempty\"`\n\tType             *string `json:\"type,omitempty\"`\n}\n```\nNotificationSubject identifies the subject of a notification.\n\n```go\nfunc (n *NotificationSubject) GetLatestCommentURL() string\n```\nGetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NotificationSubject) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NotificationSubject) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NotificationSubject) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype OAuthAPP struct {\n\tURL      *string `json:\"url,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tClientID *string `json:\"client_id,omitempty\"`\n}\n```\nOAuthAPP represents the GitHub Site Administrator OAuth app.\n\n```go\nfunc (o *OAuthAPP) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OAuthAPP) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OAuthAPP) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s OAuthAPP) String() string\n```\n\n```go\ntype OrgBlockEvent struct {\n\t// Action is the action that was performed.\n\t// Can be \"blocked\" or \"unblocked\".\n\tAction       *string       `json:\"action,omitempty\"`\n\tBlockedUser  *User         `json:\"blocked_user,omitempty\"`\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nOrgBlockEvent is triggered when an organization blocks or unblocks a user. The Webhook event name is \"org\\_block\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#orgblockevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#orgblockevent)\n\n```go\nfunc (o *OrgBlockEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgBlockEvent) GetBlockedUser() *User\n```\nGetBlockedUser returns the BlockedUser field.\n\n```go\nfunc (o *OrgBlockEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (o *OrgBlockEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (o *OrgBlockEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype OrgStats struct {\n\tTotalOrgs        *int `json:\"total_orgs,omitempty\"`\n\tDisabledOrgs     *int `json:\"disabled_orgs,omitempty\"`\n\tTotalTeams       *int `json:\"total_teams,omitempty\"`\n\tTotalTeamMembers *int `json:\"total_team_members,omitempty\"`\n}\n```\nOrgStats represents the number of total, disabled organizations and the team and team member count.\n\n```go\nfunc (o *OrgStats) GetDisabledOrgs() int\n```\nGetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgStats) GetTotalOrgs() int\n```\nGetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgStats) GetTotalTeamMembers() int\n```\nGetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgStats) GetTotalTeams() int\n```\nGetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s OrgStats) String() string\n```\n\n```go\ntype Organization struct {\n\tLogin                       *string    `json:\"login,omitempty\"`\n\tID                          *int64     `json:\"id,omitempty\"`\n\tNodeID                      *string    `json:\"node_id,omitempty\"`\n\tAvatarURL                   *string    `json:\"avatar_url,omitempty\"`\n\tHTMLURL                     *string    `json:\"html_url,omitempty\"`\n\tName                        *string    `json:\"name,omitempty\"`\n\tCompany                     *string    `json:\"company,omitempty\"`\n\tBlog                        *string    `json:\"blog,omitempty\"`\n\tLocation                    *string    `json:\"location,omitempty\"`\n\tEmail                       *string    `json:\"email,omitempty\"`\n\tTwitterUsername             *string    `json:\"twitter_username,omitempty\"`\n\tDescription                 *string    `json:\"description,omitempty\"`\n\tPublicRepos                 *int       `json:\"public_repos,omitempty\"`\n\tPublicGists                 *int       `json:\"public_gists,omitempty\"`\n\tFollowers                   *int       `json:\"followers,omitempty\"`\n\tFollowing                   *int       `json:\"following,omitempty\"`\n\tCreatedAt                   *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt                   *time.Time `json:\"updated_at,omitempty\"`\n\tTotalPrivateRepos           *int       `json:\"total_private_repos,omitempty\"`\n\tOwnedPrivateRepos           *int       `json:\"owned_private_repos,omitempty\"`\n\tPrivateGists                *int       `json:\"private_gists,omitempty\"`\n\tDiskUsage                   *int       `json:\"disk_usage,omitempty\"`\n\tCollaborators               *int       `json:\"collaborators,omitempty\"`\n\tBillingEmail                *string    `json:\"billing_email,omitempty\"`\n\tType                        *string    `json:\"type,omitempty\"`\n\tPlan                        *Plan      `json:\"plan,omitempty\"`\n\tTwoFactorRequirementEnabled *bool      `json:\"two_factor_requirement_enabled,omitempty\"`\n\tIsVerified                  *bool      `json:\"is_verified,omitempty\"`\n\tHasOrganizationProjects     *bool      `json:\"has_organization_projects,omitempty\"`\n\tHasRepositoryProjects       *bool      `json:\"has_repository_projects,omitempty\"`\n\n\t// DefaultRepoPermission can be one of: \"read\", \"write\", \"admin\", or \"none\". (Default: \"read\").\n\t// It is only used in OrganizationsService.Edit.\n\tDefaultRepoPermission *string `json:\"default_repository_permission,omitempty\"`\n\t// DefaultRepoSettings can be one of: \"read\", \"write\", \"admin\", or \"none\". (Default: \"read\").\n\t// It is only used in OrganizationsService.Get.\n\tDefaultRepoSettings *string `json:\"default_repository_settings,omitempty\"`\n\n\t// MembersCanCreateRepos default value is true and is only used in Organizations.Edit.\n\tMembersCanCreateRepos *bool `json:\"members_can_create_repositories,omitempty\"`\n\n\t// https://developer.github.com/changes/2019-12-03-internal-visibility-changes/#rest-v3-api\n\tMembersCanCreatePublicRepos   *bool `json:\"members_can_create_public_repositories,omitempty\"`\n\tMembersCanCreatePrivateRepos  *bool `json:\"members_can_create_private_repositories,omitempty\"`\n\tMembersCanCreateInternalRepos *bool `json:\"members_can_create_internal_repositories,omitempty\"`\n\n\t// MembersAllowedRepositoryCreationType denotes if organization members can create repositories\n\t// and the type of repositories they can create. Possible values are: \"all\", \"private\", or \"none\".\n\t//\n\t// Deprecated: Use MembersCanCreatePublicRepos, MembersCanCreatePrivateRepos, MembersCanCreateInternalRepos\n\t// instead. The new fields overrides the existing MembersAllowedRepositoryCreationType during 'edit'\n\t// operation and does not consider 'internal' repositories during 'get' operation\n\tMembersAllowedRepositoryCreationType *string `json:\"members_allowed_repository_creation_type,omitempty\"`\n\n\t// API URLs\n\tURL              *string `json:\"url,omitempty\"`\n\tEventsURL        *string `json:\"events_url,omitempty\"`\n\tHooksURL         *string `json:\"hooks_url,omitempty\"`\n\tIssuesURL        *string `json:\"issues_url,omitempty\"`\n\tMembersURL       *string `json:\"members_url,omitempty\"`\n\tPublicMembersURL *string `json:\"public_members_url,omitempty\"`\n\tReposURL         *string `json:\"repos_url,omitempty\"`\n}\n```\nOrganization represents a GitHub organization account.\n\n```go\nfunc (o *Organization) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetBillingEmail() string\n```\nGetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetBlog() string\n```\nGetBlog returns the Blog field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetCollaborators() int\n```\nGetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetCompany() string\n```\nGetCompany returns the Company field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetDefaultRepoPermission() string\n```\nGetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetDefaultRepoSettings() string\n```\nGetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetDiskUsage() int\n```\nGetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetFollowers() int\n```\nGetFollowers returns the Followers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetFollowing() int\n```\nGetFollowing returns the Following field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetHasOrganizationProjects() bool\n```\nGetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetHasRepositoryProjects() bool\n```\nGetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetHooksURL() string\n```\nGetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetIsVerified() bool\n```\nGetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetIssuesURL() string\n```\nGetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersAllowedRepositoryCreationType() string\n```\nGetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanCreateInternalRepos() bool\n```\nGetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanCreatePrivateRepos() bool\n```\nGetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanCreatePublicRepos() bool\n```\nGetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanCreateRepos() bool\n```\nGetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersURL() string\n```\nGetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetOwnedPrivateRepos() int\n```\nGetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetPlan() *Plan\n```\nGetPlan returns the Plan field.\n\n```go\nfunc (o *Organization) GetPrivateGists() int\n```\nGetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetPublicGists() int\n```\nGetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetPublicMembersURL() string\n```\nGetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetPublicRepos() int\n```\nGetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetReposURL() string\n```\nGetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetTotalPrivateRepos() int\n```\nGetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetTwitterUsername() string\n```\nGetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetTwoFactorRequirementEnabled() bool\n```\nGetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o Organization) String() string\n```\n\n```go\ntype OrganizationEvent struct {\n\t// Action is the action that was performed.\n\t// Possible values are: \"deleted\", \"renamed\", \"member_added\", \"member_removed\", or \"member_invited\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// Invitation is the invitation for the user or email if the action is \"member_invited\".\n\tInvitation *Invitation `json:\"invitation,omitempty\"`\n\n\t// Membership is the membership between the user and the organization.\n\t// Not present when the action is \"member_invited\".\n\tMembership *Membership `json:\"membership,omitempty\"`\n\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nOrganizationEvent is triggered when an organization is deleted and renamed, and when a user is added, removed, or invited to an organization. Events of this type are not visible in timelines. These events are only used to trigger organization hooks. Webhook event name is \"organization\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#organizationevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#organizationevent)\n\n```go\nfunc (o *OrganizationEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrganizationEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (o *OrganizationEvent) GetInvitation() *Invitation\n```\nGetInvitation returns the Invitation field.\n\n```go\nfunc (o *OrganizationEvent) GetMembership() *Membership\n```\nGetMembership returns the Membership field.\n\n```go\nfunc (o *OrganizationEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (o *OrganizationEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype OrganizationInstallations struct {\n\tTotalCount    *int            `json:\"total_count,omitempty\"`\n\tInstallations []*Installation `json:\"installations,omitempty\"`\n}\n```\nOrganizationInstallations represents GitHub app installations for an organization.\n\n```go\nfunc (o *OrganizationInstallations) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype OrganizationsListOptions struct {\n\t// Since filters Organizations by ID.\n\tSince int64 `url:\"since,omitempty\"`\n\n\t// Note: Pagination is powered exclusively by the Since parameter,\n\t// ListOptions.Page has no effect.\n\t// ListOptions.PerPage controls an undocumented GitHub API parameter.\n\tListOptions\n}\n```\nOrganizationsListOptions specifies the optional parameters to the OrganizationsService.ListAll method.\n\n```go\ntype OrganizationsService service\n```\nOrganizationsService provides access to the organization related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/)\n\n```go\nfunc (s *OrganizationsService) BlockUser(ctx context.Context, org string, user string) (*Response, error)\n```\nBlockUser blocks specified user from an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#block-a-user-from-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#block-a-user-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) ConcealMembership(ctx context.Context, org, user string) (*Response, error)\n```\nConcealMembership conceals a user's membership in an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-public-organization-membership-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-public-organization-membership-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) ConvertMemberToOutsideCollaborator(ctx context.Context, org string, user string) (*Response, error)\n```\nConvertMemberToOutsideCollaborator reduces the permission level of a member of the organization to that of an outside collaborator. Therefore, they will only have access to the repositories that their current team membership allows. Responses for converting a non-member or the last owner to an outside collaborator are listed in GitHub API docs.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#convert-an-organization-member-to-outside-collaborator](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#convert-an-organization-member-to-outside-collaborator)\n\n```go\nfunc (s *OrganizationsService) CreateHook(ctx context.Context, org string, hook *Hook) (*Hook, *Response, error)\n```\nCreateHook creates a Hook for the specified org. Config is a required field.\n\nNote that only a subset of the hook fields are used and hook must not be nil.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#create-an-organization-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#create-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) CreateOrgInvitation(ctx context.Context, org string, opts *CreateOrgInvitationOptions) (*Invitation, *Response, error)\n```\nCreateOrgInvitation invites people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#create-an-organization-invitation](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#create-an-organization-invitation)\n\n```go\nfunc (s *OrganizationsService) CreateProject(ctx context.Context, org string, opts *ProjectOptions) (*Project, *Response, error)\n```\nCreateProject creates a GitHub Project for the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-an-organization-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-an-organization-project)\n\n```go\nfunc (s *OrganizationsService) DeleteHook(ctx context.Context, org string, id int64) (*Response, error)\n```\nDeleteHook deletes a specified Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#delete-an-organization-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#delete-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) Edit(ctx context.Context, name string, org *Organization) (*Organization, *Response, error)\n```\nEdit an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#update-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#update-an-organization)\n\n```go\nfunc (s *OrganizationsService) EditHook(ctx context.Context, org string, id int64, hook *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#update-an-organization-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#update-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) EditOrgMembership(ctx context.Context, user, org string, membership *Membership) (*Membership, *Response, error)\n```\nEditOrgMembership edits the membership for user in specified organization. Passing an empty string for user will edit the membership for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#update-an-organization-membership-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#update-an-organization-membership-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#set-organization-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#set-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) Get(ctx context.Context, org string) (*Organization, *Response, error)\n```\nGet fetches an organization by name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetByID(ctx context.Context, id int64) (*Organization, *Response, error)\n```\nGetByID fetches an organization.\n\nNote: GetByID uses the undocumented GitHub API endpoint /organizations/:id.\n\n```go\nfunc (s *OrganizationsService) GetHook(ctx context.Context, org string, id int64) (*Hook, *Response, error)\n```\nGetHook returns a single specified Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-an-organization-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) GetOrgMembership(ctx context.Context, user, org string) (*Membership, *Response, error)\n```\nGetOrgMembership gets the membership for a user in a specified organization. Passing an empty string for user will get the membership for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-an-organization-membership-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-an-organization-membership-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-organization-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#get-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) IsBlocked(ctx context.Context, org string, user string) (bool, *Response, error)\n```\nIsBlocked reports whether specified user is blocked from an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#check-if-a-user-is-blocked-by-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#check-if-a-user-is-blocked-by-an-organization)\n\n```go\nfunc (s *OrganizationsService) IsMember(ctx context.Context, org, user string) (bool, *Response, error)\n```\nIsMember checks if a user is a member of an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#check-organization-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#check-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) IsPublicMember(ctx context.Context, org, user string) (bool, *Response, error)\n```\nIsPublicMember checks if a user is a public member of an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#check-public-organization-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#check-public-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) List(ctx context.Context, user string, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organizations-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organizations-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organizations-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organizations-for-a-user)\n\n```go\nfunc (s *OrganizationsService) ListAll(ctx context.Context, opts *OrganizationsListOptions) ([]*Organization, *Response, error)\n```\nListAll lists all organizations, in the order that they were created on GitHub.\n\nNote: Pagination is powered exclusively by the since parameter. To continue listing the next set of organizations, use the ID of the last-returned organization as the opts.Since parameter for the next call.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organizations](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organizations)\n\n```go\nfunc (s *OrganizationsService) ListBlockedUsers(ctx context.Context, org string, opts *ListOptions) ([]*User, *Response, error)\n```\nListBlockedUsers lists all the users blocked by an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-users-blocked-by-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-users-blocked-by-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListHooks(ctx context.Context, org string, opts *ListOptions) ([]*Hook, *Response, error)\n```\nListHooks lists all Hooks for the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-webhooks](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-webhooks)\n\n```go\nfunc (s *OrganizationsService) ListInstallations(ctx context.Context, org string, opts *ListOptions) (*OrganizationInstallations, *Response, error)\n```\nListInstallations lists installations for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-app-installations-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-app-installations-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListMembers(ctx context.Context, org string, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-members](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-members) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-public-organization-members](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-public-organization-members)\n\n```go\nfunc (s *OrganizationsService) ListOrgInvitationTeams(ctx context.Context, org, invitationID string, opts *ListOptions) ([]*Team, *Response, error)\n```\nListOrgInvitationTeams lists all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-invitation-teams](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-invitation-teams)\n\n```go\nfunc (s *OrganizationsService) ListOrgMemberships(ctx context.Context, opts *ListOrgMembershipsOptions) ([]*Membership, *Response, error)\n```\nListOrgMemberships lists the organization memberships for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-memberships-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-organization-memberships-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) ListOutsideCollaborators(ctx context.Context, org string, opts *ListOutsideCollaboratorsOptions) ([]*User, *Response, error)\n```\nListOutsideCollaborators lists outside collaborators of organization's repositories. This will only work if the authenticated user is an owner of the organization.\n\nWarning: The API may change without advance notice during the preview period. Preview features are not supported for production use.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-outside-collaborators-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-outside-collaborators-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListPendingOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error)\n```\nListPendingOrgInvitations returns a list of pending invitations.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-pending-organization-invitations](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#list-pending-organization-invitations)\n\n```go\nfunc (s *OrganizationsService) ListProjects(ctx context.Context, org string, opts *ProjectListOptions) ([]*Project, *Response, error)\n```\nListProjects lists the projects for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-organization-projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-organization-projects)\n\n```go\nfunc (s *OrganizationsService) PingHook(ctx context.Context, org string, id int64) (*Response, error)\n```\nPingHook triggers a 'ping' event to be sent to the Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#ping-an-organization-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#ping-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) PublicizeMembership(ctx context.Context, org, user string) (*Response, error)\n```\nPublicizeMembership publicizes a user's membership in an organization. (A user cannot publicize the membership for another user.)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#set-public-organization-membership-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#set-public-organization-membership-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) RemoveMember(ctx context.Context, org, user string) (*Response, error)\n```\nRemoveMember removes a user from all teams of an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-an-organization-member](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-an-organization-member)\n\n```go\nfunc (s *OrganizationsService) RemoveOrgMembership(ctx context.Context, user, org string) (*Response, error)\n```\nRemoveOrgMembership removes user from the specified organization. If the user has been invited to the organization, this will cancel their invitation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-organization-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) RemoveOutsideCollaborator(ctx context.Context, org string, user string) (*Response, error)\n```\nRemoveOutsideCollaborator removes a user from the list of outside collaborators; consequently, removing them from all the organization's repositories.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-outside-collaborator-from-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#remove-outside-collaborator-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) UnblockUser(ctx context.Context, org string, user string) (*Response, error)\n```\nUnblockUser unblocks specified user from an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#unblock-a-user-from-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs/#unblock-a-user-from-an-organization)\n\n```go\ntype PRLink struct {\n\tHRef *string `json:\"href,omitempty\"`\n}\n```\nPRLink represents a single link object from GitHub pull request \\_links.\n\n```go\nfunc (p *PRLink) GetHRef() string\n```\nGetHRef returns the HRef field if it's non-nil, zero value otherwise.\n\n```go\ntype PRLinks struct {\n\tSelf           *PRLink `json:\"self,omitempty\"`\n\tHTML           *PRLink `json:\"html,omitempty\"`\n\tIssue          *PRLink `json:\"issue,omitempty\"`\n\tComments       *PRLink `json:\"comments,omitempty\"`\n\tReviewComments *PRLink `json:\"review_comments,omitempty\"`\n\tReviewComment  *PRLink `json:\"review_comment,omitempty\"`\n\tCommits        *PRLink `json:\"commits,omitempty\"`\n\tStatuses       *PRLink `json:\"statuses,omitempty\"`\n}\n```\nPRLinks represents the \"\\_links\" object in a GitHub pull request.\n\n```go\nfunc (p *PRLinks) GetComments() *PRLink\n```\nGetComments returns the Comments field.\n\n```go\nfunc (p *PRLinks) GetCommits() *PRLink\n```\nGetCommits returns the Commits field.\n\n```go\nfunc (p *PRLinks) GetHTML() *PRLink\n```\nGetHTML returns the HTML field.\n\n```go\nfunc (p *PRLinks) GetIssue() *PRLink\n```\nGetIssue returns the Issue field.\n\n```go\nfunc (p *PRLinks) GetReviewComment() *PRLink\n```\nGetReviewComment returns the ReviewComment field.\n\n```go\nfunc (p *PRLinks) GetReviewComments() *PRLink\n```\nGetReviewComments returns the ReviewComments field.\n\n```go\nfunc (p *PRLinks) GetSelf() *PRLink\n```\nGetSelf returns the Self field.\n\n```go\nfunc (p *PRLinks) GetStatuses() *PRLink\n```\nGetStatuses returns the Statuses field.\n\n```go\ntype Package struct {\n\tID             *int64           `json:\"id,omitempty\"`\n\tName           *string          `json:\"name,omitempty\"`\n\tPackageType    *string          `json:\"package_type,omitempty\"`\n\tHTMLURL        *string          `json:\"html_url,omitempty\"`\n\tCreatedAt      *Timestamp       `json:\"created_at,omitempty\"`\n\tUpdatedAt      *Timestamp       `json:\"updated_at,omitempty\"`\n\tOwner          *User            `json:\"owner,omitempty\"`\n\tPackageVersion *PackageVersion  `json:\"package_version,omitempty\"`\n\tRegistry       *PackageRegistry `json:\"registry,omitempty\"`\n}\n```\nPackage represents a GitHub package.\n\n```go\nfunc (p *Package) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (p *Package) GetPackageType() string\n```\nGetPackageType returns the PackageType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetPackageVersion() *PackageVersion\n```\nGetPackageVersion returns the PackageVersion field.\n\n```go\nfunc (p *Package) GetRegistry() *PackageRegistry\n```\nGetRegistry returns the Registry field.\n\n```go\nfunc (p *Package) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p Package) String() string\n```\n\n```go\ntype PackageEvent struct {\n\t// Action is the action that was performed.\n\t// Can be \"published\" or \"updated\".\n\tAction  *string       `json:\"action,omitempty\"`\n\tPackage *Package      `json:\"package,omitempty\"`\n\tRepo    *Repository   `json:\"repository,omitempty\"`\n\tOrg     *Organization `json:\"organization,omitempty\"`\n\tSender  *User         `json:\"sender,omitempty\"`\n}\n```\nPackageEvent represents activity related to GitHub Packages. The Webhook event name is \"package\".\n\nThis event is triggered when a GitHub Package is published or updated.\n\nGitHub API docs: [https://developer.github.com/webhooks/event-payloads/#package](https://developer.github.com/webhooks/event-payloads/#package)\n\n```go\nfunc (p *PackageEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *PackageEvent) GetPackage() *Package\n```\nGetPackage returns the Package field.\n\n```go\nfunc (p *PackageEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PackageEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PackageFile struct {\n\tDownloadURL *string    `json:\"download_url,omitempty\"`\n\tID          *int64     `json:\"id,omitempty\"`\n\tName        *string    `json:\"name,omitempty\"`\n\tSHA256      *string    `json:\"sha256,omitempty\"`\n\tSHA1        *string    `json:\"sha1,omitempty\"`\n\tMD5         *string    `json:\"md5,omitempty\"`\n\tContentType *string    `json:\"content_type,omitempty\"`\n\tState       *string    `json:\"state,omitempty\"`\n\tAuthor      *User      `json:\"author,omitempty\"`\n\tSize        *int64     `json:\"size,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nPackageFile represents a GitHub package version release file.\n\n```go\nfunc (p *PackageFile) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (p *PackageFile) GetContentType() string\n```\nGetContentType returns the ContentType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetDownloadURL() string\n```\nGetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetMD5() string\n```\nGetMD5 returns the MD5 field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetSHA1() string\n```\nGetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetSHA256() string\n```\nGetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetSize() int64\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageFile) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (pf PackageFile) String() string\n```\n\n```go\ntype PackageRegistry struct {\n\tAboutURL *string `json:\"about_url,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tType     *string `json:\"type,omitempty\"`\n\tURL      *string `json:\"url,omitempty\"`\n\tVendor   *string `json:\"vendor,omitempty\"`\n}\n```\nPackageRegistry represents a GitHub package registry.\n\n```go\nfunc (p *PackageRegistry) GetAboutURL() string\n```\nGetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRegistry) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRegistry) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRegistry) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRegistry) GetVendor() string\n```\nGetVendor returns the Vendor field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r PackageRegistry) String() string\n```\n\n```go\ntype PackageRelease struct {\n\tURL             *string    `json:\"url,omitempty\"`\n\tHTMLURL         *string    `json:\"html_url,omitempty\"`\n\tID              *int64     `json:\"id,omitempty\"`\n\tTagName         *string    `json:\"tag_name,omitempty\"`\n\tTargetCommitish *string    `json:\"target_commitish,omitempty\"`\n\tName            *string    `json:\"name,omitempty\"`\n\tDraft           *bool      `json:\"draft,omitempty\"`\n\tAuthor          *User      `json:\"author,omitempty\"`\n\tPrerelease      *bool      `json:\"prerelease,omitempty\"`\n\tCreatedAt       *Timestamp `json:\"created_at,omitempty\"`\n\tPublishedAt     *Timestamp `json:\"published_at,omitempty\"`\n}\n```\nPackageRelease represents a GitHub package version release.\n\n```go\nfunc (p *PackageRelease) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (p *PackageRelease) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetPrerelease() bool\n```\nGetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetPublishedAt() Timestamp\n```\nGetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetTagName() string\n```\nGetTagName returns the TagName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetTargetCommitish() string\n```\nGetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageRelease) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r PackageRelease) String() string\n```\n\n```go\ntype PackageVersion struct {\n\tID                  *int64          `json:\"id,omitempty\"`\n\tVersion             *string         `json:\"version,omitempty\"`\n\tSummary             *string         `json:\"summary,omitempty\"`\n\tBody                *string         `json:\"body,omitempty\"`\n\tBodyHTML            *string         `json:\"body_html,omitempty\"`\n\tRelease             *PackageRelease `json:\"release,omitempty\"`\n\tManifest            *string         `json:\"manifest,omitempty\"`\n\tHTMLURL             *string         `json:\"html_url,omitempty\"`\n\tTagName             *string         `json:\"tag_name,omitempty\"`\n\tTargetCommitish     *string         `json:\"target_commitish,omitempty\"`\n\tTargetOID           *string         `json:\"target_oid,omitempty\"`\n\tDraft               *bool           `json:\"draft,omitempty\"`\n\tPrerelease          *bool           `json:\"prerelease,omitempty\"`\n\tCreatedAt           *Timestamp      `json:\"created_at,omitempty\"`\n\tUpdatedAt           *Timestamp      `json:\"updated_at,omitempty\"`\n\tPackageFiles        []*PackageFile  `json:\"package_files,omitempty\"`\n\tAuthor              *User           `json:\"author,omitempty\"`\n\tInstallationCommand *string         `json:\"installation_command,omitempty\"`\n}\n```\nPackageVersion represents a GitHub package version.\n\n```go\nfunc (p *PackageVersion) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (p *PackageVersion) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetBodyHTML() string\n```\nGetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetInstallationCommand() string\n```\nGetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetManifest() string\n```\nGetManifest returns the Manifest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetPrerelease() bool\n```\nGetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetRelease() *PackageRelease\n```\nGetRelease returns the Release field.\n\n```go\nfunc (p *PackageVersion) GetSummary() string\n```\nGetSummary returns the Summary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetTagName() string\n```\nGetTagName returns the TagName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetTargetCommitish() string\n```\nGetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetTargetOID() string\n```\nGetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\nfunc (pv PackageVersion) String() string\n```\n\n```go\ntype Page struct {\n\tPageName *string `json:\"page_name,omitempty\"`\n\tTitle    *string `json:\"title,omitempty\"`\n\tSummary  *string `json:\"summary,omitempty\"`\n\tAction   *string `json:\"action,omitempty\"`\n\tSHA      *string `json:\"sha,omitempty\"`\n\tHTMLURL  *string `json:\"html_url,omitempty\"`\n}\n```\nPage represents a single Wiki page.\n\n```go\nfunc (p *Page) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Page) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Page) GetPageName() string\n```\nGetPageName returns the PageName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Page) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Page) GetSummary() string\n```\nGetSummary returns the Summary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Page) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype PageBuildEvent struct {\n\tBuild *PagesBuild `json:\"build,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tID           *int64        `json:\"id,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nPageBuildEvent represents an attempted build of a GitHub Pages site, whether successful or not. The Webhook event name is \"page\\_build\".\n\nThis event is triggered on push to a GitHub Pages enabled branch (gh-pages for project pages, master for user and organization pages).\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pagebuildevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pagebuildevent)\n\n```go\nfunc (p *PageBuildEvent) GetBuild() *PagesBuild\n```\nGetBuild returns the Build field.\n\n```go\nfunc (p *PageBuildEvent) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PageBuildEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PageBuildEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PageBuildEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PageStats struct {\n\tTotalPages *int `json:\"total_pages,omitempty\"`\n}\n```\nPageStats represents the total number of github pages.\n\n```go\nfunc (p *PageStats) GetTotalPages() int\n```\nGetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s PageStats) String() string\n```\n\n```go\ntype Pages struct {\n\tURL       *string      `json:\"url,omitempty\"`\n\tStatus    *string      `json:\"status,omitempty\"`\n\tCNAME     *string      `json:\"cname,omitempty\"`\n\tCustom404 *bool        `json:\"custom_404,omitempty\"`\n\tHTMLURL   *string      `json:\"html_url,omitempty\"`\n\tSource    *PagesSource `json:\"source,omitempty\"`\n}\n```\nPages represents a GitHub Pages site configuration.\n\n```go\nfunc (p *Pages) GetCNAME() string\n```\nGetCNAME returns the CNAME field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Pages) GetCustom404() bool\n```\nGetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Pages) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Pages) GetSource() *PagesSource\n```\nGetSource returns the Source field.\n\n```go\nfunc (p *Pages) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Pages) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype PagesBuild struct {\n\tURL       *string     `json:\"url,omitempty\"`\n\tStatus    *string     `json:\"status,omitempty\"`\n\tError     *PagesError `json:\"error,omitempty\"`\n\tPusher    *User       `json:\"pusher,omitempty\"`\n\tCommit    *string     `json:\"commit,omitempty\"`\n\tDuration  *int        `json:\"duration,omitempty\"`\n\tCreatedAt *Timestamp  `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp  `json:\"updated_at,omitempty\"`\n}\n```\nPagesBuild represents the build information for a GitHub Pages site.\n\n```go\nfunc (p *PagesBuild) GetCommit() string\n```\nGetCommit returns the Commit field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesBuild) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesBuild) GetDuration() int\n```\nGetDuration returns the Duration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesBuild) GetError() *PagesError\n```\nGetError returns the Error field.\n\n```go\nfunc (p *PagesBuild) GetPusher() *User\n```\nGetPusher returns the Pusher field.\n\n```go\nfunc (p *PagesBuild) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesBuild) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesBuild) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype PagesError struct {\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nPagesError represents a build error for a GitHub Pages site.\n\n```go\nfunc (p *PagesError) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\ntype PagesSource struct {\n\tBranch *string `json:\"branch,omitempty\"`\n\tPath   *string `json:\"path,omitempty\"`\n}\n```\nPagesSource represents a GitHub page's source.\n\n```go\nfunc (p *PagesSource) GetBranch() string\n```\nGetBranch returns the Branch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesSource) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\ntype PagesUpdate struct {\n\t// CNAME represents a custom domain for the repository.\n\t// Leaving CNAME empty will remove the custom domain.\n\tCNAME *string `json:\"cname\"`\n\t// Source must include the branch name, and may optionally specify the subdirectory \"/docs\".\n\t// Possible values are: \"gh-pages\", \"master\", and \"master /docs\".\n\tSource *string `json:\"source,omitempty\"`\n}\n```\nPagesUpdate sets up parameters needed to update a GitHub Pages site.\n\n```go\nfunc (p *PagesUpdate) GetCNAME() string\n```\nGetCNAME returns the CNAME field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesUpdate) GetSource() string\n```\nGetSource returns the Source field if it's non-nil, zero value otherwise.\n\n```go\ntype PingEvent struct {\n\t// Random string of GitHub zen.\n\tZen *string `json:\"zen,omitempty\"`\n\t// The ID of the webhook that triggered the ping.\n\tHookID *int64 `json:\"hook_id,omitempty\"`\n\t// The webhook configuration.\n\tHook         *Hook         `json:\"hook,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nPingEvent is triggered when a Webhook is added to GitHub.\n\nGitHub API docs: [https://developer.github.com/webhooks/#ping-event](https://developer.github.com/webhooks/#ping-event)\n\n```go\nfunc (p *PingEvent) GetHook() *Hook\n```\nGetHook returns the Hook field.\n\n```go\nfunc (p *PingEvent) GetHookID() int64\n```\nGetHookID returns the HookID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PingEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PingEvent) GetZen() string\n```\nGetZen returns the Zen field if it's non-nil, zero value otherwise.\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\tFilledSeats   *int    `json:\"filled_seats,omitempty\"`\n\tSeats         *int    `json:\"seats,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) GetCollaborators() int\n```\nGetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Plan) GetFilledSeats() int\n```\nGetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Plan) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Plan) GetPrivateRepos() int\n```\nGetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Plan) GetSeats() int\n```\nGetSeats returns the Seats field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Plan) GetSpace() int\n```\nGetSpace returns the Space field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p Plan) String() string\n```\n\n```go\ntype PreReceiveHook struct {\n\tID          *int64  `json:\"id,omitempty\"`\n\tName        *string `json:\"name,omitempty\"`\n\tEnforcement *string `json:\"enforcement,omitempty\"`\n\tConfigURL   *string `json:\"configuration_url,omitempty\"`\n}\n```\nPreReceiveHook represents a GitHub pre-receive hook for a repository.\n\n```go\nfunc (p *PreReceiveHook) GetConfigURL() string\n```\nGetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PreReceiveHook) GetEnforcement() string\n```\nGetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PreReceiveHook) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PreReceiveHook) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p PreReceiveHook) String() string\n```\n\n```go\ntype PreferenceList struct {\n\tAutoTriggerChecks []*AutoTriggerCheck `json:\"auto_trigger_checks,omitempty\"` // A slice of auto trigger checks that can be set for a check suite in a repository.\n}\n```\nPreferenceList represents a list of auto trigger checks for repository\n\n```go\ntype Project struct {\n\tID         *int64     `json:\"id,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n\tHTMLURL    *string    `json:\"html_url,omitempty\"`\n\tColumnsURL *string    `json:\"columns_url,omitempty\"`\n\tOwnerURL   *string    `json:\"owner_url,omitempty\"`\n\tName       *string    `json:\"name,omitempty\"`\n\tBody       *string    `json:\"body,omitempty\"`\n\tNumber     *int       `json:\"number,omitempty\"`\n\tState      *string    `json:\"state,omitempty\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt  *Timestamp `json:\"updated_at,omitempty\"`\n\tNodeID     *string    `json:\"node_id,omitempty\"`\n\n\t// The User object that generated the project.\n\tCreator *User `json:\"creator,omitempty\"`\n}\n```\nProject represents a GitHub Project.\n\n```go\nfunc (p *Project) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetColumnsURL() string\n```\nGetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *Project) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetOwnerURL() string\n```\nGetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Project) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p Project) String() string\n```\n\n```go\ntype ProjectCard struct {\n\tURL        *string    `json:\"url,omitempty\"`\n\tColumnURL  *string    `json:\"column_url,omitempty\"`\n\tContentURL *string    `json:\"content_url,omitempty\"`\n\tID         *int64     `json:\"id,omitempty\"`\n\tNote       *string    `json:\"note,omitempty\"`\n\tCreator    *User      `json:\"creator,omitempty\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt  *Timestamp `json:\"updated_at,omitempty\"`\n\tNodeID     *string    `json:\"node_id,omitempty\"`\n\tArchived   *bool      `json:\"archived,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tColumnID *int64 `json:\"column_id,omitempty\"`\n\n\t// The following fields are only populated by Events API.\n\tProjectID          *int64  `json:\"project_id,omitempty\"`\n\tProjectURL         *string `json:\"project_url,omitempty\"`\n\tColumnName         *string `json:\"column_name,omitempty\"`\n\tPreviousColumnName *string `json:\"previous_column_name,omitempty\"` // Populated in \"moved_columns_in_project\" event deliveries.\n}\n```\nProjectCard represents a card in a column of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/cards/#get-a-project-card](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/cards/#get-a-project-card)\n\n```go\nfunc (p *ProjectCard) GetArchived() bool\n```\nGetArchived returns the Archived field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetColumnID() int64\n```\nGetColumnID returns the ColumnID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetColumnName() string\n```\nGetColumnName returns the ColumnName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetColumnURL() string\n```\nGetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetContentURL() string\n```\nGetContentURL returns the ContentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *ProjectCard) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetNote() string\n```\nGetNote returns the Note field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetPreviousColumnName() string\n```\nGetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetProjectID() int64\n```\nGetProjectID returns the ProjectID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetProjectURL() string\n```\nGetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCard) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectCardChange struct {\n\tNote *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"note,omitempty\"`\n}\n```\nProjectCardChange represents the changes when a project card has been edited.\n\n```go\ntype ProjectCardEvent struct {\n\tAction      *string            `json:\"action,omitempty\"`\n\tChanges     *ProjectCardChange `json:\"changes,omitempty\"`\n\tAfterID     *int64             `json:\"after_id,omitempty\"`\n\tProjectCard *ProjectCard       `json:\"project_card,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nProjectCardEvent is triggered when a project card is created, updated, moved, converted to an issue, or deleted. The webhook event name is \"project\\_card\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#projectcardevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#projectcardevent)\n\n```go\nfunc (p *ProjectCardEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCardEvent) GetAfterID() int64\n```\nGetAfterID returns the AfterID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectCardEvent) GetChanges() *ProjectCardChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *ProjectCardEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *ProjectCardEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *ProjectCardEvent) GetProjectCard() *ProjectCard\n```\nGetProjectCard returns the ProjectCard field.\n\n```go\nfunc (p *ProjectCardEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *ProjectCardEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype ProjectCardListOptions struct {\n\t// ArchivedState is used to list all, archived, or not_archived project cards.\n\t// Defaults to not_archived when you omit this parameter.\n\tArchivedState *string `url:\"archived_state,omitempty\"`\n\n\tListOptions\n}\n```\nProjectCardListOptions specifies the optional parameters to the ProjectsService.ListProjectCards method.\n\n```go\nfunc (p *ProjectCardListOptions) GetArchivedState() string\n```\nGetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectCardMoveOptions struct {\n\t// Position can be one of \"top\", \"bottom\", or \"after:\u003ccard-id\u003e\", where\n\t// \u003ccard-id\u003e is the ID of a card in the same project.\n\tPosition string `json:\"position\"`\n\t// ColumnID is the ID of a column in the same project. Note that ColumnID\n\t// is required when using Position \"after:\u003ccard-id\u003e\" when that card is in\n\t// another column; otherwise it is optional.\n\tColumnID int64 `json:\"column_id,omitempty\"`\n}\n```\nProjectCardMoveOptions specifies the parameters to the ProjectsService.MoveProjectCard method.\n\n```go\ntype ProjectCardOptions struct {\n\t// The note of the card. Note and ContentID are mutually exclusive.\n\tNote string `json:\"note,omitempty\"`\n\t// The ID (not Number) of the Issue to associate with this card.\n\t// Note and ContentID are mutually exclusive.\n\tContentID int64 `json:\"content_id,omitempty\"`\n\t// The type of content to associate with this card. Possible values are: \"Issue\" and \"PullRequest\".\n\tContentType string `json:\"content_type,omitempty\"`\n\t// Use true to archive a project card.\n\t// Specify false if you need to restore a previously archived project card.\n\tArchived *bool `json:\"archived,omitempty\"`\n}\n```\nProjectCardOptions specifies the parameters to the ProjectsService.CreateProjectCard and ProjectsService.UpdateProjectCard methods.\n\n```go\nfunc (p *ProjectCardOptions) GetArchived() bool\n```\nGetArchived returns the Archived field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectChange struct {\n\tName *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"name,omitempty\"`\n\tBody *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"body,omitempty\"`\n}\n```\nProjectChange represents the changes when a project has been edited.\n\n```go\ntype ProjectCollaboratorOptions struct {\n\t// Permission specifies the permission to grant to the collaborator.\n\t// Possible values are:\n\t//     \"read\" - can read, but not write to or administer this project.\n\t//     \"write\" - can read and write, but not administer this project.\n\t//     \"admin\" - can read, write and administer this project.\n\t//\n\t// Default value is \"write\"\n\tPermission *string `json:\"permission,omitempty\"`\n}\n```\nProjectCollaboratorOptions specifies the optional parameters to the ProjectsService.AddProjectCollaborator method.\n\n```go\nfunc (p *ProjectCollaboratorOptions) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectColumn struct {\n\tID         *int64     `json:\"id,omitempty\"`\n\tName       *string    `json:\"name,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n\tProjectURL *string    `json:\"project_url,omitempty\"`\n\tCardsURL   *string    `json:\"cards_url,omitempty\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt  *Timestamp `json:\"updated_at,omitempty\"`\n\tNodeID     *string    `json:\"node_id,omitempty\"`\n}\n```\nProjectColumn represents a column of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/projects/](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/projects/)\n\n```go\nfunc (p *ProjectColumn) GetCardsURL() string\n```\nGetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetProjectURL() string\n```\nGetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumn) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectColumnChange struct {\n\tName *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"name,omitempty\"`\n}\n```\nProjectColumnChange represents the changes when a project column has been edited.\n\n```go\ntype ProjectColumnEvent struct {\n\tAction        *string              `json:\"action,omitempty\"`\n\tChanges       *ProjectColumnChange `json:\"changes,omitempty\"`\n\tAfterID       *int64               `json:\"after_id,omitempty\"`\n\tProjectColumn *ProjectColumn       `json:\"project_column,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nProjectColumnEvent is triggered when a project column is created, updated, moved, or deleted. The webhook event name is \"project\\_column\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#projectcolumnevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#projectcolumnevent)\n\n```go\nfunc (p *ProjectColumnEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumnEvent) GetAfterID() int64\n```\nGetAfterID returns the AfterID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *ProjectColumnEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *ProjectColumnEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn\n```\nGetProjectColumn returns the ProjectColumn field.\n\n```go\nfunc (p *ProjectColumnEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *ProjectColumnEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype ProjectColumnMoveOptions struct {\n\t// Position can be one of \"first\", \"last\", or \"after:\u003ccolumn-id\u003e\", where\n\t// \u003ccolumn-id\u003e is the ID of a column in the same project. (Required.)\n\tPosition string `json:\"position\"`\n}\n```\nProjectColumnMoveOptions specifies the parameters to the ProjectsService.MoveProjectColumn method.\n\n```go\ntype ProjectColumnOptions struct {\n\t// The name of the project column. (Required for creation and update.)\n\tName string `json:\"name\"`\n}\n```\nProjectColumnOptions specifies the parameters to the ProjectsService.CreateProjectColumn and ProjectsService.UpdateProjectColumn methods.\n\n```go\ntype ProjectEvent struct {\n\tAction  *string        `json:\"action,omitempty\"`\n\tChanges *ProjectChange `json:\"changes,omitempty\"`\n\tProject *Project       `json:\"project,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nProjectEvent is triggered when project is created, modified or deleted. The webhook event name is \"project\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#projectevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#projectevent)\n\n```go\nfunc (p *ProjectEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectEvent) GetChanges() *ProjectChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *ProjectEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *ProjectEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *ProjectEvent) GetProject() *Project\n```\nGetProject returns the Project field.\n\n```go\nfunc (p *ProjectEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *ProjectEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype ProjectListOptions struct {\n\t// Indicates the state of the projects to return. Can be either open, closed, or all. Default: open\n\tState string `url:\"state,omitempty\"`\n\n\tListOptions\n}\n```\nProjectListOptions specifies the optional parameters to the OrganizationsService.ListProjects and RepositoriesService.ListProjects methods.\n\n```go\ntype ProjectOptions struct {\n\t// The name of the project. (Required for creation; optional for update.)\n\tName *string `json:\"name,omitempty\"`\n\t// The body of the project. (Optional.)\n\tBody *string `json:\"body,omitempty\"`\n\n\t// State of the project. Either \"open\" or \"closed\". (Optional.)\n\tState *string `json:\"state,omitempty\"`\n\t// The permission level that all members of the project's organization\n\t// will have on this project.\n\t// Setting the organization permission is only available\n\t// for organization projects. (Optional.)\n\tOrganizationPermission *string `json:\"organization_permission,omitempty\"`\n\t// Sets visibility of the project within the organization.\n\t// Setting visibility is only available\n\t// for organization projects.(Optional.)\n\tPublic *bool `json:\"public,omitempty\"`\n}\n```\nProjectOptions specifies the parameters to the RepositoriesService.CreateProject and ProjectsService.UpdateProject methods.\n\n```go\nfunc (p *ProjectOptions) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectOptions) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectOptions) GetOrganizationPermission() string\n```\nGetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectOptions) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectOptions) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectPermissionLevel struct {\n\t// Possible values: \"admin\", \"write\", \"read\", \"none\"\n\tPermission *string `json:\"permission,omitempty\"`\n\n\tUser *User `json:\"user,omitempty\"`\n}\n```\nProjectPermissionLevel represents the permission level an organization member has for a given project.\n\n```go\nfunc (p *ProjectPermissionLevel) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectPermissionLevel) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype ProjectsService service\n```\nProjectsService provides access to the projects functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/)\n\n```go\nfunc (s *ProjectsService) AddProjectCollaborator(ctx context.Context, id int64, username string, opts *ProjectCollaboratorOptions) (*Response, error)\n```\nAddProjectCollaborator adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project admin to add a collaborator.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#add-project-collaborator](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#add-project-collaborator)\n\n```go\nfunc (s *ProjectsService) CreateProjectCard(ctx context.Context, columnID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error)\n```\nCreateProjectCard creates a card in the specified column of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-project-card](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-project-card)\n\n```go\nfunc (s *ProjectsService) CreateProjectColumn(ctx context.Context, projectID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error)\n```\nCreateProjectColumn creates a column for the specified (by number) project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-project-column](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-project-column)\n\n```go\nfunc (s *ProjectsService) DeleteProject(ctx context.Context, id int64) (*Response, error)\n```\nDeleteProject deletes a GitHub Project from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#delete-a-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#delete-a-project)\n\n```go\nfunc (s *ProjectsService) DeleteProjectCard(ctx context.Context, cardID int64) (*Response, error)\n```\nDeleteProjectCard deletes a card from a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#delete-a-project-card](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#delete-a-project-card)\n\n```go\nfunc (s *ProjectsService) DeleteProjectColumn(ctx context.Context, columnID int64) (*Response, error)\n```\nDeleteProjectColumn deletes a column from a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#delete-a-project-column](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#delete-a-project-column)\n\n```go\nfunc (s *ProjectsService) GetProject(ctx context.Context, id int64) (*Project, *Response, error)\n```\nGetProject gets a GitHub Project for a repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-a-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-a-project)\n\n```go\nfunc (s *ProjectsService) GetProjectCard(ctx context.Context, cardID int64) (*ProjectCard, *Response, error)\n```\nGetProjectCard gets a card in a column of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-a-project-card](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-a-project-card)\n\n```go\nfunc (s *ProjectsService) GetProjectColumn(ctx context.Context, id int64) (*ProjectColumn, *Response, error)\n```\nGetProjectColumn gets a column of a GitHub Project for a repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-a-project-column](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-a-project-column)\n\n```go\nfunc (s *ProjectsService) ListProjectCards(ctx context.Context, columnID int64, opts *ProjectCardListOptions) ([]*ProjectCard, *Response, error)\n```\nListProjectCards lists the cards in a column of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-project-cards](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-project-cards)\n\n```go\nfunc (s *ProjectsService) ListProjectCollaborators(ctx context.Context, id int64, opts *ListCollaboratorOptions) ([]*User, *Response, error)\n```\nListProjectCollaborators lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project admin to list collaborators.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-project-collaborators](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-project-collaborators)\n\n```go\nfunc (s *ProjectsService) ListProjectColumns(ctx context.Context, projectID int64, opts *ListOptions) ([]*ProjectColumn, *Response, error)\n```\nListProjectColumns lists the columns of a GitHub Project for a repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-project-columns](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-project-columns)\n\n```go\nfunc (s *ProjectsService) MoveProjectCard(ctx context.Context, cardID int64, opts *ProjectCardMoveOptions) (*Response, error)\n```\nMoveProjectCard moves a card within a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#move-a-project-card](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#move-a-project-card)\n\n```go\nfunc (s *ProjectsService) MoveProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnMoveOptions) (*Response, error)\n```\nMoveProjectColumn moves a column within a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#move-a-project-column](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#move-a-project-column)\n\n```go\nfunc (s *ProjectsService) RemoveProjectCollaborator(ctx context.Context, id int64, username string) (*Response, error)\n```\nRemoveProjectCollaborator removes a collaborator from an organization project. You must be an organization owner or a project admin to remove a collaborator.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#remove-user-as-a-collaborator](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#remove-user-as-a-collaborator)\n\n```go\nfunc (s *ProjectsService) ReviewProjectCollaboratorPermission(ctx context.Context, id int64, username string) (*ProjectPermissionLevel, *Response, error)\n```\nReviewProjectCollaboratorPermission returns the collaborator's permission level for an organization project. Possible values for the permission key: \"admin\", \"write\", \"read\", \"none\". You must be an organization owner or a project admin to review a user's permission level.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-project-permission-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#get-project-permission-for-a-user)\n\n```go\nfunc (s *ProjectsService) UpdateProject(ctx context.Context, id int64, opts *ProjectOptions) (*Project, *Response, error)\n```\nUpdateProject updates a repository project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#update-a-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#update-a-project)\n\n```go\nfunc (s *ProjectsService) UpdateProjectCard(ctx context.Context, cardID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error)\n```\nUpdateProjectCard updates a card of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#update-an-existing-project-card](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#update-an-existing-project-card)\n\n```go\nfunc (s *ProjectsService) UpdateProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error)\n```\nUpdateProjectColumn updates a column of a GitHub Project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#update-an-existing-project-column](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#update-an-existing-project-column)\n\n```go\ntype Protection struct {\n\tRequiredStatusChecks       *RequiredStatusChecks          `json:\"required_status_checks\"`\n\tRequiredPullRequestReviews *PullRequestReviewsEnforcement `json:\"required_pull_request_reviews\"`\n\tEnforceAdmins              *AdminEnforcement              `json:\"enforce_admins\"`\n\tRestrictions               *BranchRestrictions            `json:\"restrictions\"`\n\tRequireLinearHistory       *RequireLinearHistory          `json:\"required_linear_history\"`\n\tAllowForcePushes           *AllowForcePushes              `json:\"allow_force_pushes\"`\n\tAllowDeletions             *AllowDeletions                `json:\"allow_deletions\"`\n}\n```\nProtection represents a repository branch's protection.\n\n```go\nfunc (p *Protection) GetAllowDeletions() *AllowDeletions\n```\nGetAllowDeletions returns the AllowDeletions field.\n\n```go\nfunc (p *Protection) GetAllowForcePushes() *AllowForcePushes\n```\nGetAllowForcePushes returns the AllowForcePushes field.\n\n```go\nfunc (p *Protection) GetEnforceAdmins() *AdminEnforcement\n```\nGetEnforceAdmins returns the EnforceAdmins field.\n\n```go\nfunc (p *Protection) GetRequireLinearHistory() *RequireLinearHistory\n```\nGetRequireLinearHistory returns the RequireLinearHistory field.\n\n```go\nfunc (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement\n```\nGetRequiredPullRequestReviews returns the RequiredPullRequestReviews field.\n\n```go\nfunc (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks field.\n\n```go\nfunc (p *Protection) GetRestrictions() *BranchRestrictions\n```\nGetRestrictions returns the Restrictions field.\n\n```go\ntype ProtectionRequest struct {\n\tRequiredStatusChecks       *RequiredStatusChecks                 `json:\"required_status_checks\"`\n\tRequiredPullRequestReviews *PullRequestReviewsEnforcementRequest `json:\"required_pull_request_reviews\"`\n\tEnforceAdmins              bool                                  `json:\"enforce_admins\"`\n\tRestrictions               *BranchRestrictionsRequest            `json:\"restrictions\"`\n\t// Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch.\n\tRequireLinearHistory *bool `json:\"required_linear_history,omitempty\"`\n\t// Permits force pushes to the protected branch by anyone with write access to the repository.\n\tAllowForcePushes *bool `json:\"allow_force_pushes,omitempty\"`\n\t// Allows deletion of the protected branch by anyone with write access to the repository.\n\tAllowDeletions *bool `json:\"allow_deletions,omitempty\"`\n}\n```\nProtectionRequest represents a request to create/edit a branch's protection.\n\n```go\nfunc (p *ProtectionRequest) GetAllowDeletions() bool\n```\nGetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRequest) GetAllowForcePushes() bool\n```\nGetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRequest) GetRequireLinearHistory() bool\n```\nGetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest\n```\nGetRequiredPullRequestReviews returns the RequiredPullRequestReviews field.\n\n```go\nfunc (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks field.\n\n```go\nfunc (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest\n```\nGetRestrictions returns the Restrictions field.\n\n```go\ntype PublicEvent struct {\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nPublicEvent is triggered when a private repository is open sourced. According to GitHub: \"Without a doubt: the best GitHub event.\" The Webhook event name is \"public\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#publicevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#publicevent)\n\n```go\nfunc (p *PublicEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PublicEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PublicEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PublicKey struct {\n\tKeyID *string `json:\"key_id\"`\n\tKey   *string `json:\"key\"`\n}\n```\nPublicKey represents the public key that should be used to encrypt secrets.\n\n```go\nfunc (p *PublicKey) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PublicKey) GetKeyID() string\n```\nGetKeyID returns the KeyID field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequest struct {\n\tID                  *int64     `json:\"id,omitempty\"`\n\tNumber              *int       `json:\"number,omitempty\"`\n\tState               *string    `json:\"state,omitempty\"`\n\tLocked              *bool      `json:\"locked,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\tLabels              []*Label   `json:\"labels,omitempty\"`\n\tUser                *User      `json:\"user,omitempty\"`\n\tDraft               *bool      `json:\"draft,omitempty\"`\n\tMerged              *bool      `json:\"merged,omitempty\"`\n\tMergeable           *bool      `json:\"mergeable,omitempty\"`\n\tMergeableState      *string    `json:\"mergeable_state,omitempty\"`\n\tMergedBy            *User      `json:\"merged_by,omitempty\"`\n\tMergeCommitSHA      *string    `json:\"merge_commit_sha,omitempty\"`\n\tRebaseable          *bool      `json:\"rebaseable,omitempty\"`\n\tComments            *int       `json:\"comments,omitempty\"`\n\tCommits             *int       `json:\"commits,omitempty\"`\n\tAdditions           *int       `json:\"additions,omitempty\"`\n\tDeletions           *int       `json:\"deletions,omitempty\"`\n\tChangedFiles        *int       `json:\"changed_files,omitempty\"`\n\tURL                 *string    `json:\"url,omitempty\"`\n\tHTMLURL             *string    `json:\"html_url,omitempty\"`\n\tIssueURL            *string    `json:\"issue_url,omitempty\"`\n\tStatusesURL         *string    `json:\"statuses_url,omitempty\"`\n\tDiffURL             *string    `json:\"diff_url,omitempty\"`\n\tPatchURL            *string    `json:\"patch_url,omitempty\"`\n\tCommitsURL          *string    `json:\"commits_url,omitempty\"`\n\tCommentsURL         *string    `json:\"comments_url,omitempty\"`\n\tReviewCommentsURL   *string    `json:\"review_comments_url,omitempty\"`\n\tReviewCommentURL    *string    `json:\"review_comment_url,omitempty\"`\n\tReviewComments      *int       `json:\"review_comments,omitempty\"`\n\tAssignee            *User      `json:\"assignee,omitempty\"`\n\tAssignees           []*User    `json:\"assignees,omitempty\"`\n\tMilestone           *Milestone `json:\"milestone,omitempty\"`\n\tMaintainerCanModify *bool      `json:\"maintainer_can_modify,omitempty\"`\n\tAuthorAssociation   *string    `json:\"author_association,omitempty\"`\n\tNodeID              *string    `json:\"node_id,omitempty\"`\n\tRequestedReviewers  []*User    `json:\"requested_reviewers,omitempty\"`\n\n\t// RequestedTeams is populated as part of the PullRequestEvent.\n\t// See, https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestevent for an example.\n\tRequestedTeams []*Team `json:\"requested_teams,omitempty\"`\n\n\tLinks *PRLinks           `json:\"_links,omitempty\"`\n\tHead  *PullRequestBranch `json:\"head,omitempty\"`\n\tBase  *PullRequestBranch `json:\"base,omitempty\"`\n\n\t// ActiveLockReason is populated only when LockReason is provided while locking the pull request.\n\t// Possible values are: \"off-topic\", \"too heated\", \"resolved\", and \"spam\".\n\tActiveLockReason *string `json:\"active_lock_reason,omitempty\"`\n}\n```\nPullRequest represents a GitHub pull request on a repository.\n\n```go\nfunc (p *PullRequest) GetActiveLockReason() string\n```\nGetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetAdditions() int\n```\nGetAdditions returns the Additions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (p *PullRequest) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetBase() *PullRequestBranch\n```\nGetBase returns the Base field.\n\n```go\nfunc (p *PullRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetChangedFiles() int\n```\nGetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetClosedAt() time.Time\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetComments() int\n```\nGetComments returns the Comments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetCommentsURL() string\n```\nGetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetCommits() int\n```\nGetCommits returns the Commits field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetCommitsURL() string\n```\nGetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetDeletions() int\n```\nGetDeletions returns the Deletions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetDiffURL() string\n```\nGetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetHead() *PullRequestBranch\n```\nGetHead returns the Head field.\n\n```go\nfunc (p *PullRequest) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetIssueURL() string\n```\nGetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetLinks() *PRLinks\n```\nGetLinks returns the Links field.\n\n```go\nfunc (p *PullRequest) GetLocked() bool\n```\nGetLocked returns the Locked field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMaintainerCanModify() bool\n```\nGetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMergeCommitSHA() string\n```\nGetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMergeable() bool\n```\nGetMergeable returns the Mergeable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMergeableState() string\n```\nGetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMerged() bool\n```\nGetMerged returns the Merged field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMergedAt() time.Time\n```\nGetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetMergedBy() *User\n```\nGetMergedBy returns the MergedBy field.\n\n```go\nfunc (p *PullRequest) GetMilestone() *Milestone\n```\nGetMilestone returns the Milestone field.\n\n```go\nfunc (p *PullRequest) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetPatchURL() string\n```\nGetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetRebaseable() bool\n```\nGetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetReviewCommentURL() string\n```\nGetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetReviewComments() int\n```\nGetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetReviewCommentsURL() string\n```\nGetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetStatusesURL() string\n```\nGetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequest) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (p PullRequest) String() string\n```\n\n```go\ntype PullRequestBranch struct {\n\tLabel *string     `json:\"label,omitempty\"`\n\tRef   *string     `json:\"ref,omitempty\"`\n\tSHA   *string     `json:\"sha,omitempty\"`\n\tRepo  *Repository `json:\"repo,omitempty\"`\n\tUser  *User       `json:\"user,omitempty\"`\n}\n```\nPullRequestBranch represents a base or head branch in a GitHub pull request.\n\n```go\nfunc (p *PullRequestBranch) GetLabel() string\n```\nGetLabel returns the Label field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestBranch) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestBranch) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestBranch) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestBranch) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype PullRequestBranchUpdateOptions struct {\n\t// ExpectedHeadSHA specifies the most recent commit on the pull request's branch.\n\t// Default value is the SHA of the pull request's current HEAD ref.\n\tExpectedHeadSHA *string `json:\"expected_head_sha,omitempty\"`\n}\n```\nPullRequestBranchUpdateOptions specifies the optional parameters to the PullRequestsService.UpdateBranch method.\n\n```go\nfunc (p *PullRequestBranchUpdateOptions) GetExpectedHeadSHA() string\n```\nGetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestBranchUpdateResponse struct {\n\tMessage *string `json:\"message,omitempty\"`\n\tURL     *string `json:\"url,omitempty\"`\n}\n```\nPullRequestBranchUpdateResponse specifies the response of pull request branch update.\n\n```go\nfunc (p *PullRequestBranchUpdateResponse) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestBranchUpdateResponse) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestComment struct {\n\tID                  *int64     `json:\"id,omitempty\"`\n\tNodeID              *string    `json:\"node_id,omitempty\"`\n\tInReplyTo           *int64     `json:\"in_reply_to_id,omitempty\"`\n\tBody                *string    `json:\"body,omitempty\"`\n\tPath                *string    `json:\"path,omitempty\"`\n\tDiffHunk            *string    `json:\"diff_hunk,omitempty\"`\n\tPullRequestReviewID *int64     `json:\"pull_request_review_id,omitempty\"`\n\tPosition            *int       `json:\"position,omitempty\"`\n\tOriginalPosition    *int       `json:\"original_position,omitempty\"`\n\tStartLine           *int       `json:\"start_line,omitempty\"`\n\tLine                *int       `json:\"line,omitempty\"`\n\tOriginalLine        *int       `json:\"original_line,omitempty\"`\n\tOriginalStartLine   *int       `json:\"original_start_line,omitempty\"`\n\tSide                *string    `json:\"side,omitempty\"`\n\tStartSide           *string    `json:\"start_side,omitempty\"`\n\tCommitID            *string    `json:\"commit_id,omitempty\"`\n\tOriginalCommitID    *string    `json:\"original_commit_id,omitempty\"`\n\tUser                *User      `json:\"user,omitempty\"`\n\tReactions           *Reactions `json:\"reactions,omitempty\"`\n\tCreatedAt           *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt           *time.Time `json:\"updated_at,omitempty\"`\n\t// AuthorAssociation is the comment author's relationship to the pull request's repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\tAuthorAssociation *string `json:\"author_association,omitempty\"`\n\tURL               *string `json:\"url,omitempty\"`\n\tHTMLURL           *string `json:\"html_url,omitempty\"`\n\tPullRequestURL    *string `json:\"pull_request_url,omitempty\"`\n}\n```\nPullRequestComment represents a comment left on a pull request.\n\n```go\nfunc (p *PullRequestComment) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetCommitID() string\n```\nGetCommitID returns the CommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetDiffHunk() string\n```\nGetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetInReplyTo() int64\n```\nGetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetLine() int\n```\nGetLine returns the Line field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetOriginalCommitID() string\n```\nGetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetOriginalLine() int\n```\nGetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetOriginalPosition() int\n```\nGetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetOriginalStartLine() int\n```\nGetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetPosition() int\n```\nGetPosition returns the Position field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetPullRequestReviewID() int64\n```\nGetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetPullRequestURL() string\n```\nGetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (p *PullRequestComment) GetSide() string\n```\nGetSide returns the Side field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetStartLine() int\n```\nGetStartLine returns the StartLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetStartSide() string\n```\nGetStartSide returns the StartSide field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (p PullRequestComment) String() string\n```\n\n```go\ntype PullRequestEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"assigned\", \"unassigned\", \"review_requested\", \"review_request_removed\", \"labeled\", \"unlabeled\",\n\t// \"opened\", \"edited\", \"closed\", \"ready_for_review\", \"locked\", \"unlocked\", or \"reopened\".\n\t// If the action is \"closed\" and the \"merged\" key is \"false\", the pull request was closed with unmerged commits.\n\t// If the action is \"closed\" and the \"merged\" key is \"true\", the pull request was merged.\n\t// While webhooks are also triggered when a pull request is synchronized, Events API timelines\n\t// don't include pull request events with the \"synchronize\" action.\n\tAction      *string      `json:\"action,omitempty\"`\n\tAssignee    *User        `json:\"assignee,omitempty\"`\n\tNumber      *int         `json:\"number,omitempty\"`\n\tPullRequest *PullRequest `json:\"pull_request,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges *EditChange `json:\"changes,omitempty\"`\n\t// RequestedReviewer is populated in \"review_requested\", \"review_request_removed\" event deliveries.\n\t// A request affecting multiple reviewers at once is split into multiple\n\t// such event deliveries, each with a single, different RequestedReviewer.\n\tRequestedReviewer *User `json:\"requested_reviewer,omitempty\"`\n\t// In the event that a team is requested instead of a user, \"requested_team\" gets sent in place of\n\t// \"requested_user\" with the same delivery behavior.\n\tRequestedTeam *Team         `json:\"requested_team,omitempty\"`\n\tRepo          *Repository   `json:\"repository,omitempty\"`\n\tSender        *User         `json:\"sender,omitempty\"`\n\tInstallation  *Installation `json:\"installation,omitempty\"`\n\tLabel         *Label        `json:\"label,omitempty\"` // Populated in \"labeled\" event deliveries.\n\n\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\n\t// The following fields are only populated when the Action is \"synchronize\".\n\tBefore *string `json:\"before,omitempty\"`\n\tAfter  *string `json:\"after,omitempty\"`\n}\n```\nPullRequestEvent is triggered when a pull request is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, synchronize, ready\\_for\\_review, locked, unlocked, a pull request review is requested, or a review request is removed. The Webhook event name is \"pull\\_request\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestevent)\n\n```go\nfunc (p *PullRequestEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestEvent) GetAfter() string\n```\nGetAfter returns the After field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestEvent) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (p *PullRequestEvent) GetBefore() string\n```\nGetBefore returns the Before field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *PullRequestEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PullRequestEvent) GetLabel() *Label\n```\nGetLabel returns the Label field.\n\n```go\nfunc (p *PullRequestEvent) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (p *PullRequestEvent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestEvent) GetRequestedReviewer() *User\n```\nGetRequestedReviewer returns the RequestedReviewer field.\n\n```go\nfunc (p *PullRequestEvent) GetRequestedTeam() *Team\n```\nGetRequestedTeam returns the RequestedTeam field.\n\n```go\nfunc (p *PullRequestEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PullRequestLinks struct {\n\tURL      *string `json:\"url,omitempty\"`\n\tHTMLURL  *string `json:\"html_url,omitempty\"`\n\tDiffURL  *string `json:\"diff_url,omitempty\"`\n\tPatchURL *string `json:\"patch_url,omitempty\"`\n}\n```\nPullRequestLinks object is added to the Issue object when it's an issue included in the IssueCommentEvent webhook payload, if the webhook is fired by a comment on a PR.\n\n```go\nfunc (p *PullRequestLinks) GetDiffURL() string\n```\nGetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestLinks) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestLinks) GetPatchURL() string\n```\nGetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestLinks) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestListCommentsOptions struct {\n\t// Sort specifies how to sort comments. Possible values are: created, updated.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort comments. Possible values are: asc, desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Since filters comments by time.\n\tSince time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nPullRequestListCommentsOptions specifies the optional parameters to the PullRequestsService.ListComments method.\n\n```go\ntype PullRequestListOptions struct {\n\t// State filters pull requests based on their state. Possible values are:\n\t// open, closed, all. Default is \"open\".\n\tState string `url:\"state,omitempty\"`\n\n\t// Head filters pull requests by head user and branch name in the format of:\n\t// \"user:ref-name\".\n\tHead string `url:\"head,omitempty\"`\n\n\t// Base filters pull requests by base branch name.\n\tBase string `url:\"base,omitempty\"`\n\n\t// Sort specifies how to sort pull requests. Possible values are: created,\n\t// updated, popularity, long-running. Default is \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort pull requests. Possible values are: asc, desc.\n\t// If Sort is \"created\" or not specified, Default is \"desc\", otherwise Default\n\t// is \"asc\"\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nPullRequestListOptions specifies the optional parameters to the PullRequestsService.List method.\n\n```go\ntype PullRequestMergeResult struct {\n\tSHA     *string `json:\"sha,omitempty\"`\n\tMerged  *bool   `json:\"merged,omitempty\"`\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nPullRequestMergeResult represents the result of merging a pull request.\n\n```go\nfunc (p *PullRequestMergeResult) GetMerged() bool\n```\nGetMerged returns the Merged field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeResult) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeResult) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestOptions struct {\n\tCommitTitle string // Title for the automatic commit message. (Optional.)\n\tSHA         string // SHA that pull request head must match to allow merge. (Optional.)\n\n\t// The merge method to use. Possible values include: \"merge\", \"squash\", and \"rebase\" with the default being merge. (Optional.)\n\tMergeMethod string\n}\n```\nPullRequestOptions lets you define how a pull request will be merged.\n\n```go\ntype PullRequestReview struct {\n\tID             *int64     `json:\"id,omitempty\"`\n\tNodeID         *string    `json:\"node_id,omitempty\"`\n\tUser           *User      `json:\"user,omitempty\"`\n\tBody           *string    `json:\"body,omitempty\"`\n\tSubmittedAt    *time.Time `json:\"submitted_at,omitempty\"`\n\tCommitID       *string    `json:\"commit_id,omitempty\"`\n\tHTMLURL        *string    `json:\"html_url,omitempty\"`\n\tPullRequestURL *string    `json:\"pull_request_url,omitempty\"`\n\tState          *string    `json:\"state,omitempty\"`\n\t// AuthorAssociation is the comment author's relationship to the issue's repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\tAuthorAssociation *string `json:\"author_association,omitempty\"`\n}\n```\nPullRequestReview represents a review of a pull request.\n\n```go\nfunc (p *PullRequestReview) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetCommitID() string\n```\nGetCommitID returns the CommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetPullRequestURL() string\n```\nGetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetSubmittedAt() time.Time\n```\nGetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReview) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (p PullRequestReview) String() string\n```\n\n```go\ntype PullRequestReviewCommentEvent struct {\n\t// Action is the action that was performed on the comment.\n\t// Possible values are: \"created\", \"edited\", \"deleted\".\n\tAction      *string             `json:\"action,omitempty\"`\n\tPullRequest *PullRequest        `json:\"pull_request,omitempty\"`\n\tComment     *PullRequestComment `json:\"comment,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tChanges      *EditChange   `json:\"changes,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nPullRequestReviewCommentEvent is triggered when a comment is created on a portion of the unified diff of a pull request. The Webhook event name is \"pull\\_request\\_review\\_comment\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestreviewcommentevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestreviewcommentevent)\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment\n```\nGetComment returns the Comment field.\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestReviewCommentEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PullRequestReviewDismissalRequest struct {\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nPullRequestReviewDismissalRequest represents a request to dismiss a review.\n\n```go\nfunc (p *PullRequestReviewDismissalRequest) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r PullRequestReviewDismissalRequest) String() string\n```\n\n```go\ntype PullRequestReviewEvent struct {\n\t// Action is always \"submitted\".\n\tAction      *string            `json:\"action,omitempty\"`\n\tReview      *PullRequestReview `json:\"review,omitempty\"`\n\tPullRequest *PullRequest       `json:\"pull_request,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\n\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrganization *Organization `json:\"organization,omitempty\"`\n}\n```\nPullRequestReviewEvent is triggered when a review is submitted on a pull request. The Webhook event name is \"pull\\_request\\_review\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestreviewevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pullrequestreviewevent)\n\n```go\nfunc (p *PullRequestReviewEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PullRequestReviewEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (p *PullRequestReviewEvent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestReviewEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestReviewEvent) GetReview() *PullRequestReview\n```\nGetReview returns the Review field.\n\n```go\nfunc (p *PullRequestReviewEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PullRequestReviewRequest struct {\n\tNodeID   *string               `json:\"node_id,omitempty\"`\n\tCommitID *string               `json:\"commit_id,omitempty\"`\n\tBody     *string               `json:\"body,omitempty\"`\n\tEvent    *string               `json:\"event,omitempty\"`\n\tComments []*DraftReviewComment `json:\"comments,omitempty\"`\n}\n```\nPullRequestReviewRequest represents a request to create a review.\n\n```go\nfunc (p *PullRequestReviewRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewRequest) GetCommitID() string\n```\nGetCommitID returns the CommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewRequest) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewRequest) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r PullRequestReviewRequest) String() string\n```\n\n```go\ntype PullRequestReviewsEnforcement struct {\n\t// Specifies which users and teams can dismiss pull request reviews.\n\tDismissalRestrictions *DismissalRestrictions `json:\"dismissal_restrictions,omitempty\"`\n\t// Specifies if approved reviews are dismissed automatically, when a new commit is pushed.\n\tDismissStaleReviews bool `json:\"dismiss_stale_reviews\"`\n\t// RequireCodeOwnerReviews specifies if an approved review is required in pull requests including files with a designated code owner.\n\tRequireCodeOwnerReviews bool `json:\"require_code_owner_reviews\"`\n\t// RequiredApprovingReviewCount specifies the number of approvals required before the pull request can be merged.\n\t// Valid values are 1-6.\n\tRequiredApprovingReviewCount int `json:\"required_approving_review_count\"`\n}\n```\nPullRequestReviewsEnforcement represents the pull request reviews enforcement of a protected branch.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions\n```\nGetDismissalRestrictions returns the DismissalRestrictions field.\n\n```go\ntype PullRequestReviewsEnforcementRequest struct {\n\t// Specifies which users and teams should be allowed to dismiss pull request reviews.\n\t// User and team dismissal restrictions are only available for\n\t// organization-owned repositories. Must be nil for personal repositories.\n\tDismissalRestrictionsRequest *DismissalRestrictionsRequest `json:\"dismissal_restrictions,omitempty\"`\n\t// Specifies if approved reviews can be dismissed automatically, when a new commit is pushed. (Required)\n\tDismissStaleReviews bool `json:\"dismiss_stale_reviews\"`\n\t// RequireCodeOwnerReviews specifies if an approved review is required in pull requests including files with a designated code owner.\n\tRequireCodeOwnerReviews bool `json:\"require_code_owner_reviews\"`\n\t// RequiredApprovingReviewCount specifies the number of approvals required before the pull request can be merged.\n\t// Valid values are 1-6.\n\tRequiredApprovingReviewCount int `json:\"required_approving_review_count\"`\n}\n```\nPullRequestReviewsEnforcementRequest represents request to set the pull request review enforcement of a protected branch. It is separate from PullRequestReviewsEnforcement above because the request structure is different from the response structure.\n\n```go\nfunc (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest\n```\nGetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field.\n\n```go\ntype PullRequestReviewsEnforcementUpdate struct {\n\t// Specifies which users and teams can dismiss pull request reviews. Can be omitted.\n\tDismissalRestrictionsRequest *DismissalRestrictionsRequest `json:\"dismissal_restrictions,omitempty\"`\n\t// Specifies if approved reviews can be dismissed automatically, when a new commit is pushed. Can be omitted.\n\tDismissStaleReviews *bool `json:\"dismiss_stale_reviews,omitempty\"`\n\t// RequireCodeOwnerReviews specifies if an approved review is required in pull requests including files with a designated code owner.\n\tRequireCodeOwnerReviews bool `json:\"require_code_owner_reviews,omitempty\"`\n\t// RequiredApprovingReviewCount specifies the number of approvals required before the pull request can be merged.\n\t// Valid values are 1 - 6.\n\tRequiredApprovingReviewCount int `json:\"required_approving_review_count\"`\n}\n```\nPullRequestReviewsEnforcementUpdate represents request to patch the pull request review enforcement of a protected branch. It is separate from PullRequestReviewsEnforcementRequest above because the patch request does not require all fields to be initialized.\n\n```go\nfunc (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool\n```\nGetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest\n```\nGetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field.\n\n```go\ntype PullRequestsService service\n```\nPullRequestsService handles communication with the pull request related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/)\n\n```go\nfunc (s *PullRequestsService) Create(ctx context.Context, owner string, repo string, pull *NewPullRequest) (*PullRequest, *Response, error)\n```\nCreate a new pull request on the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateComment(ctx context.Context, 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://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-comment-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateCommentInReplyTo(ctx context.Context, owner string, repo string, number int, body string, commentID int64) (*PullRequestComment, *Response, error)\n```\nCreateCommentInReplyTo creates a new comment as a reply to an existing pull request comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-comment-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateReview(ctx context.Context, owner, repo string, number int, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error)\n```\nCreateReview creates a new review on the specified pull request.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#create-a-review-for-a-pull-request)\n\nIn order to use multi-line comments, you must use the \"comfort fade\" preview. This replaces the use of the \"Position\" field in comments with 4 new fields:\n\n\t[Start]Side, and [Start]Line.\n\nThese new fields must be used for ALL comments (including single-line), with the following restrictions (empirically observed, so subject to change).\n\nFor single-line \"comfort fade\" comments, you must use:\n\n\tPath:  \u0026path,  // as before\n\tBody:  \u0026body,  // as before\n\tSide:  \u0026\"RIGHT\" (or \"LEFT\")\n\tLine:  \u0026123,  // NOT THE SAME AS POSITION, this is an actual line number.\n\nIf StartSide or StartLine is used with single-line comments, a 422 is returned.\n\nFor multi-line \"comfort fade\" comments, you must use:\n\n\tPath:      \u0026path,  // as before\n\tBody:      \u0026body,  // as before\n\tStartSide: \u0026\"RIGHT\" (or \"LEFT\")\n\tSide:      \u0026\"RIGHT\" (or \"LEFT\")\n\tStartLine: \u0026120,\n\tLine:      \u0026125,\n\nSuggested edits are made by commenting on the lines to replace, and including the suggested edit in a block like this (it may be surrounded in non-suggestion markdown):\n\n\t```suggestion\n\tUse this instead.\n\tIt is waaaaaay better.\n\t```\n\n```go\nfunc (s *PullRequestsService) DeleteComment(ctx context.Context, owner string, repo string, commentID int64) (*Response, error)\n```\nDeleteComment deletes a pull request comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#delete-a-review-comment-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#delete-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) DeletePendingReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error)\n```\nDeletePendingReview deletes the specified pull request pending review.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#delete-a-pending-review-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#delete-a-pending-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewDismissalRequest) (*PullRequestReview, *Response, error)\n```\nDismissReview dismisses a specified review on the specified pull request.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#dismiss-a-review-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#dismiss-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) Edit(ctx context.Context, owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error)\n```\nEdit a pull request. pull must not be nil.\n\nThe following fields are editable: Title, Body, State, Base.Ref and MaintainerCanModify. Base.Ref updates the base branch of the pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *PullRequestComment) (*PullRequestComment, *Response, error)\n```\nEditComment updates a pull request comment. A non-nil comment.Body must be provided. Other comment fields should be left nil.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-review-comment-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) Get(ctx context.Context, owner string, repo string, number int) (*PullRequest, *Response, error)\n```\nGet a single pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetComment(ctx context.Context, owner string, repo string, commentID int64) (*PullRequestComment, *Response, error)\n```\nGetComment fetches the specified pull request comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-review-comment-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetRaw(ctx context.Context, owner string, repo string, number int, opts RawOptions) (string, *Response, error)\n```\nGetRaw gets a single pull request in raw (diff or patch) format.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error)\n```\nGetReview fetches the specified pull request review.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-review-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#get-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) IsMerged(ctx context.Context, owner string, repo string, number int) (bool, *Response, error)\n```\nIsMerged checks if a pull request has been merged.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#check-if-a-pull-request-has-been-merged](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#check-if-a-pull-request-has-been-merged)\n\n```go\nfunc (s *PullRequestsService) List(ctx context.Context, owner string, repo string, opts *PullRequestListOptions) ([]*PullRequest, *Response, error)\n```\nList the pull requests for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-pull-requests](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-pull-requests)\n\n```go\nfunc (s *PullRequestsService) ListComments(ctx context.Context, owner string, repo string, number int, opts *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://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-review-comments-on-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-review-comments-on-a-pull-request) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-review-comments-in-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-review-comments-in-a-repository)\n\n```go\nfunc (s *PullRequestsService) ListCommits(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*RepositoryCommit, *Response, error)\n```\nListCommits lists the commits in a pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-commits-on-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-commits-on-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*CommitFile, *Response, error)\n```\nListFiles lists the files in a pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-pull-requests-files](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-pull-requests-files)\n\n```go\nfunc (s *PullRequestsService) ListPullRequestsWithCommit(ctx context.Context, owner, repo, sha string, opts *PullRequestListOptions) ([]*PullRequest, *Response, error)\n```\nListPullRequestsWithCommit returns pull requests associated with a commit SHA.\n\nThe results will include open and closed pull requests.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-pull-requests-associated-with-a-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-pull-requests-associated-with-a-commit)\n\n```go\nfunc (s *PullRequestsService) ListReviewComments(ctx context.Context, owner, repo string, number int, reviewID int64, opts *ListOptions) ([]*PullRequestComment, *Response, error)\n```\nListReviewComments lists all the comments for the specified review.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-comments-for-a-pull-request-review](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-comments-for-a-pull-request-review)\n\n```go\nfunc (s *PullRequestsService) ListReviewers(ctx context.Context, owner, repo string, number int, opts *ListOptions) (*Reviewers, *Response, error)\n```\nListReviewers lists reviewers whose reviews have been requested on the specified pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-requested-reviewers-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-requested-reviewers-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListReviews(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*PullRequestReview, *Response, error)\n```\nListReviews lists all reviews on the specified pull request.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-reviews-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#list-reviews-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) Merge(ctx context.Context, owner string, repo string, number int, commitMessage string, options *PullRequestOptions) (*PullRequestMergeResult, *Response, error)\n```\nMerge a pull request. commitMessage is an extra detail to append to automatic commit message.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#merge-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#merge-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) RemoveReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*Response, error)\n```\nRemoveReviewers removes the review request for the provided reviewers for the specified pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#remove-requested-reviewers-from-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#remove-requested-reviewers-from-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) RequestReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*PullRequest, *Response, error)\n```\nRequestReviewers creates a review request for the provided reviewers for the specified pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#request-reviewers-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#request-reviewers-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error)\n```\nSubmitReview submits a specified review on the specified pull request.\n\nTODO: Follow up with GitHub support about an issue with this method's returned error format and remove this comment once it's fixed. Read more about it here - [https://github.com/google/go-github/issues/540](https://github.com/google/go-github/issues/540)\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#submit-a-review-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#submit-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) UpdateBranch(ctx context.Context, owner, repo string, number int, opts *PullRequestBranchUpdateOptions) (*PullRequestBranchUpdateResponse, *Response, error)\n```\nUpdateBranch updates the pull request branch with latest upstream changes.\n\nThis method might return an AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it has now scheduled the update of the pull request branch in a background task. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-pull-request-branch](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-pull-request-branch)\n\n```go\nfunc (s *PullRequestsService) UpdateReview(ctx context.Context, owner, repo string, number int, reviewID int64, body string) (*PullRequestReview, *Response, error)\n```\nUpdateReview updates the review summary on the specified pull request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-review-for-a-pull-request](https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls/#update-a-review-for-a-pull-request)\n\n```go\ntype PullStats struct {\n\tTotalPulls      *int `json:\"total_pulls,omitempty\"`\n\tMergedPulls     *int `json:\"merged_pulls,omitempty\"`\n\tMergablePulls   *int `json:\"mergeable_pulls,omitempty\"`\n\tUnmergablePulls *int `json:\"unmergeable_pulls,omitempty\"`\n}\n```\nPullStats represents the number of total, merged, mergable and unmergeable pull-requests.\n\n```go\nfunc (p *PullStats) GetMergablePulls() int\n```\nGetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullStats) GetMergedPulls() int\n```\nGetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullStats) GetTotalPulls() int\n```\nGetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullStats) GetUnmergablePulls() int\n```\nGetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s PullStats) String() string\n```\n\n```go\ntype PunchCard struct {\n\tDay     *int // Day of the week (0-6: =Sunday - Saturday).\n\tHour    *int // Hour of day (0-23).\n\tCommits *int // Number of commits.\n}\n```\nPunchCard represents the number of commits made during a given hour of a day of the week.\n\n```go\nfunc (p *PunchCard) GetCommits() int\n```\nGetCommits returns the Commits field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PunchCard) GetDay() int\n```\nGetDay returns the Day field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PunchCard) GetHour() int\n```\nGetHour returns the Hour field if it's non-nil, zero value otherwise.\n\n```go\ntype PushEvent struct {\n\tPushID       *int64        `json:\"push_id,omitempty\"`\n\tHead         *string       `json:\"head,omitempty\"`\n\tRef          *string       `json:\"ref,omitempty\"`\n\tSize         *int          `json:\"size,omitempty\"`\n\tCommits      []*HeadCommit `json:\"commits,omitempty\"`\n\tBefore       *string       `json:\"before,omitempty\"`\n\tDistinctSize *int          `json:\"distinct_size,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tAfter        *string              `json:\"after,omitempty\"`\n\tCreated      *bool                `json:\"created,omitempty\"`\n\tDeleted      *bool                `json:\"deleted,omitempty\"`\n\tForced       *bool                `json:\"forced,omitempty\"`\n\tBaseRef      *string              `json:\"base_ref,omitempty\"`\n\tCompare      *string              `json:\"compare,omitempty\"`\n\tRepo         *PushEventRepository `json:\"repository,omitempty\"`\n\tHeadCommit   *HeadCommit          `json:\"head_commit,omitempty\"`\n\tPusher       *User                `json:\"pusher,omitempty\"`\n\tSender       *User                `json:\"sender,omitempty\"`\n\tInstallation *Installation        `json:\"installation,omitempty\"`\n}\n```\nPushEvent represents a git push to a GitHub repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pushevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#pushevent)\n\n```go\nfunc (p *PushEvent) GetAfter() string\n```\nGetAfter returns the After field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetBaseRef() string\n```\nGetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetBefore() string\n```\nGetBefore returns the Before field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetCompare() string\n```\nGetCompare returns the Compare field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetCreated() bool\n```\nGetCreated returns the Created field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetDeleted() bool\n```\nGetDeleted returns the Deleted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetDistinctSize() int\n```\nGetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetForced() bool\n```\nGetForced returns the Forced field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetHead() string\n```\nGetHead returns the Head field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetHeadCommit() *HeadCommit\n```\nGetHeadCommit returns the HeadCommit field.\n\n```go\nfunc (p *PushEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PushEvent) GetPushID() int64\n```\nGetPushID returns the PushID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetPusher() *User\n```\nGetPusher returns the Pusher field.\n\n```go\nfunc (p *PushEvent) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEvent) GetRepo() *PushEventRepository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PushEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (p *PushEvent) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p PushEvent) String() string\n```\n\n```go\ntype PushEventRepoOwner struct {\n\tName  *string `json:\"name,omitempty\"`\n\tEmail *string `json:\"email,omitempty\"`\n}\n```\nPushEventRepoOwner is a basic representation of user/org in a PushEvent payload.\n\n```go\nfunc (p *PushEventRepoOwner) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepoOwner) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\ntype PushEventRepository struct {\n\tID              *int64     `json:\"id,omitempty\"`\n\tNodeID          *string    `json:\"node_id,omitempty\"`\n\tName            *string    `json:\"name,omitempty\"`\n\tFullName        *string    `json:\"full_name,omitempty\"`\n\tOwner           *User      `json:\"owner,omitempty\"`\n\tPrivate         *bool      `json:\"private,omitempty\"`\n\tDescription     *string    `json:\"description,omitempty\"`\n\tFork            *bool      `json:\"fork,omitempty\"`\n\tCreatedAt       *Timestamp `json:\"created_at,omitempty\"`\n\tPushedAt        *Timestamp `json:\"pushed_at,omitempty\"`\n\tUpdatedAt       *Timestamp `json:\"updated_at,omitempty\"`\n\tHomepage        *string    `json:\"homepage,omitempty\"`\n\tPullsURL        *string    `json:\"pulls_url,omitempty\"`\n\tSize            *int       `json:\"size,omitempty\"`\n\tStargazersCount *int       `json:\"stargazers_count,omitempty\"`\n\tWatchersCount   *int       `json:\"watchers_count,omitempty\"`\n\tLanguage        *string    `json:\"language,omitempty\"`\n\tHasIssues       *bool      `json:\"has_issues,omitempty\"`\n\tHasDownloads    *bool      `json:\"has_downloads,omitempty\"`\n\tHasWiki         *bool      `json:\"has_wiki,omitempty\"`\n\tHasPages        *bool      `json:\"has_pages,omitempty\"`\n\tForksCount      *int       `json:\"forks_count,omitempty\"`\n\tArchived        *bool      `json:\"archived,omitempty\"`\n\tDisabled        *bool      `json:\"disabled,omitempty\"`\n\tOpenIssuesCount *int       `json:\"open_issues_count,omitempty\"`\n\tDefaultBranch   *string    `json:\"default_branch,omitempty\"`\n\tMasterBranch    *string    `json:\"master_branch,omitempty\"`\n\tOrganization    *string    `json:\"organization,omitempty\"`\n\tURL             *string    `json:\"url,omitempty\"`\n\tArchiveURL      *string    `json:\"archive_url,omitempty\"`\n\tHTMLURL         *string    `json:\"html_url,omitempty\"`\n\tStatusesURL     *string    `json:\"statuses_url,omitempty\"`\n\tGitURL          *string    `json:\"git_url,omitempty\"`\n\tSSHURL          *string    `json:\"ssh_url,omitempty\"`\n\tCloneURL        *string    `json:\"clone_url,omitempty\"`\n\tSVNURL          *string    `json:\"svn_url,omitempty\"`\n}\n```\nPushEventRepository represents the repo object in a PushEvent payload.\n\n```go\nfunc (p *PushEventRepository) GetArchiveURL() string\n```\nGetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetArchived() bool\n```\nGetArchived returns the Archived field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetCloneURL() string\n```\nGetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetDefaultBranch() string\n```\nGetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetDisabled() bool\n```\nGetDisabled returns the Disabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetFork() bool\n```\nGetFork returns the Fork field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetForksCount() int\n```\nGetForksCount returns the ForksCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetFullName() string\n```\nGetFullName returns the FullName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetGitURL() string\n```\nGetGitURL returns the GitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetHasDownloads() bool\n```\nGetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetHasIssues() bool\n```\nGetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetHasPages() bool\n```\nGetHasPages returns the HasPages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetHasWiki() bool\n```\nGetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetHomepage() string\n```\nGetHomepage returns the Homepage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetLanguage() string\n```\nGetLanguage returns the Language field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetMasterBranch() string\n```\nGetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetOpenIssuesCount() int\n```\nGetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetOrganization() string\n```\nGetOrganization returns the Organization field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (p *PushEventRepository) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetPullsURL() string\n```\nGetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetPushedAt() Timestamp\n```\nGetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetSSHURL() string\n```\nGetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetSVNURL() string\n```\nGetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetStargazersCount() int\n```\nGetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetStatusesURL() string\n```\nGetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushEventRepository) GetWatchersCount() int\n```\nGetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise.\n\n```go\ntype Rate struct {\n\t// The number of requests per hour the client is currently limited to.\n\tLimit int `json:\"limit\"`\n\n\t// The number of remaining requests the client can make this hour.\n\tRemaining int `json:\"remaining\"`\n\n\t// The time at which the current rate limit will reset.\n\tReset Timestamp `json:\"reset\"`\n}\n```\nRate represents the rate limit for the current client.\n\n```go\nfunc (r Rate) String() string\n```\n\n```go\ntype RateLimitError struct {\n\tRate     Rate           // Rate specifies last known rate limit for the client\n\tResponse *http.Response // HTTP response that caused this error\n\tMessage  string         `json:\"message\"` // error message\n}\n```\nRateLimitError occurs when GitHub returns 403 Forbidden response with a rate limit remaining value of 0.\n\n```go\nfunc (r *RateLimitError) Error() string\n```\n\n```go\ntype RateLimits struct {\n\t// The rate limit for non-search API requests. Unauthenticated\n\t// requests are limited to 60 per hour. Authenticated requests are\n\t// limited to 5,000 per hour.\n\t//\n\t// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/#rate-limiting\n\tCore *Rate `json:\"core\"`\n\n\t// The rate limit for search API requests. Unauthenticated requests\n\t// are limited to 10 requests per minutes. Authenticated requests are\n\t// limited to 30 per minute.\n\t//\n\t// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#rate-limit\n\tSearch *Rate `json:\"search\"`\n}\n```\nRateLimits represents the rate limits for the current client.\n\n```go\nfunc (r *RateLimits) GetCore() *Rate\n```\nGetCore returns the Core field.\n\n```go\nfunc (r *RateLimits) GetSearch() *Rate\n```\nGetSearch returns the Search field.\n\n```go\nfunc (r RateLimits) String() string\n```\n\n```go\ntype RawOptions struct {\n\tType RawType\n}\n```\nRawOptions specifies parameters when user wants to get raw format of a response instead of JSON.\n\n```go\ntype RawType uint8\n```\nRawType represents type of raw format of a request instead of JSON.\n\n```go\nconst (\n\t// Diff format.\n\tDiff RawType = 1 + iota\n\t// Patch format.\n\tPatch\n)\n```\n\n```go\ntype Reaction struct {\n\t// ID is the Reaction ID.\n\tID     *int64  `json:\"id,omitempty\"`\n\tUser   *User   `json:\"user,omitempty\"`\n\tNodeID *string `json:\"node_id,omitempty\"`\n\t// Content is the type of reaction.\n\t// Possible values are:\n\t//     \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\tContent *string `json:\"content,omitempty\"`\n}\n```\nReaction represents a GitHub reaction.\n\n```go\nfunc (r *Reaction) GetContent() string\n```\nGetContent returns the Content field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reaction) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reaction) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reaction) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (r Reaction) String() string\n```\n\n```go\ntype Reactions struct {\n\tTotalCount *int    `json:\"total_count,omitempty\"`\n\tPlusOne    *int    `json:\"+1,omitempty\"`\n\tMinusOne   *int    `json:\"-1,omitempty\"`\n\tLaugh      *int    `json:\"laugh,omitempty\"`\n\tConfused   *int    `json:\"confused,omitempty\"`\n\tHeart      *int    `json:\"heart,omitempty\"`\n\tHooray     *int    `json:\"hooray,omitempty\"`\n\tRocket     *int    `json:\"rocket,omitempty\"`\n\tEyes       *int    `json:\"eyes,omitempty\"`\n\tURL        *string `json:\"url,omitempty\"`\n}\n```\nReactions represents a summary of GitHub reactions.\n\n```go\nfunc (r *Reactions) GetConfused() int\n```\nGetConfused returns the Confused field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetEyes() int\n```\nGetEyes returns the Eyes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetHeart() int\n```\nGetHeart returns the Heart field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetHooray() int\n```\nGetHooray returns the Hooray field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetLaugh() int\n```\nGetLaugh returns the Laugh field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetMinusOne() int\n```\nGetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetPlusOne() int\n```\nGetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetRocket() int\n```\nGetRocket returns the Rocket field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reactions) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype ReactionsService service\n```\nReactionsService provides access to the reactions-related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/)\n\n```go\nfunc (s *ReactionsService) CreateCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error)\n```\nCreateCommentReaction creates a reaction for a commit comment. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK. The content should have one of the following values: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-commit-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-commit-comment)\n\n```go\nfunc (s *ReactionsService) CreateIssueCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error)\n```\nCreateIssueCommentReaction creates a reaction for an issue comment. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK. The content should have one of the following values: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-an-issue-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-an-issue-comment)\n\n```go\nfunc (s *ReactionsService) CreateIssueReaction(ctx context.Context, owner, repo string, number int, content string) (*Reaction, *Response, error)\n```\nCreateIssueReaction creates a reaction for an issue. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK. The content should have one of the following values: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-an-issue)\n\n```go\nfunc (s *ReactionsService) CreatePullRequestCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error)\n```\nCreatePullRequestCommentReaction creates a reaction for a pull request review comment. Note that if you have already created a reaction of type content, the previously created reaction will be returned with Status: 200 OK. The content should have one of the following values: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-pull-request-review-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-pull-request-review-comment)\n\n```go\nfunc (s *ReactionsService) CreateTeamDiscussionCommentReaction(ctx context.Context, teamID int64, discussionNumber, commentNumber int, content string) (*Reaction, *Response, error)\n```\nCreateTeamDiscussionCommentReaction creates a reaction for a team discussion comment. The content should have one of the following values: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-team-discussion-comment-legacy](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-team-discussion-comment-legacy)\n\n```go\nfunc (s *ReactionsService) CreateTeamDiscussionReaction(ctx context.Context, teamID int64, discussionNumber int, content string) (*Reaction, *Response, error)\n```\nCreateTeamDiscussionReaction creates a reaction for a team discussion. The content should have one of the following values: \"+1\", \"-1\", \"laugh\", \"confused\", \"heart\", \"hooray\", \"rocket\", or \"eyes\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-team-discussion-legacy](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#create-reaction-for-a-team-discussion-legacy)\n\n```go\nfunc (s *ReactionsService) DeleteCommentReaction(ctx context.Context, owner, repo string, commentID, reactionID int64) (*Response, error)\n```\nDeleteCommentReaction deletes the reaction for a commit comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-commit-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-commit-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteCommentReactionByID(ctx context.Context, repoID, commentID, reactionID int64) (*Response, error)\n```\nDeleteCommentReactionByID deletes the reaction for a commit comment by repository ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-commit-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-commit-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteIssueCommentReaction(ctx context.Context, owner, repo string, commentID, reactionID int64) (*Response, error)\n```\nDeleteIssueCommentReaction deletes the reaction to an issue comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteIssueCommentReactionByID(ctx context.Context, repoID, commentID, reactionID int64) (*Response, error)\n```\nDeleteIssueCommentReactionByID deletes the reaction to an issue comment by repository ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteIssueReaction(ctx context.Context, owner, repo string, issueNumber int, reactionID int64) (*Response, error)\n```\nDeleteIssueReaction deletes the reaction to an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteIssueReactionByID(ctx context.Context, repoID, issueNumber int, reactionID int64) (*Response, error)\n```\nDeleteIssueReactionByID deletes the reaction to an issue by repository ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-an-issue-reaction)\n\n```go\nfunc (s *ReactionsService) DeletePullRequestCommentReaction(ctx context.Context, owner, repo string, commentID, reactionID int64) (*Response, error)\n```\nDeletePullRequestCommentReaction deletes the reaction to a pull request review comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-pull-request-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-pull-request-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeletePullRequestCommentReactionByID(ctx context.Context, repoID, commentID, reactionID int64) (*Response, error)\n```\nDeletePullRequestCommentReactionByID deletes the reaction to a pull request review comment by repository ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-pull-request-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-a-pull-request-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteTeamDiscussionCommentReaction(ctx context.Context, org, teamSlug string, discussionNumber, commentNumber int, reactionID int64) (*Response, error)\n```\nDeleteTeamDiscussionCommentReaction deletes the reaction to a team discussion comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteTeamDiscussionCommentReactionByOrgIDAndTeamID(ctx context.Context, orgID, teamID, discussionNumber, commentNumber int, reactionID int64) (*Response, error)\n```\nDeleteTeamDiscussionCommentReactionByOrgIDAndTeamID deletes the reaction to a team discussion comment by organization ID and team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-comment-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteTeamDiscussionReaction(ctx context.Context, org, teamSlug string, discussionNumber int, reactionID int64) (*Response, error)\n```\nDeleteTeamDiscussionReaction deletes the reaction to a team discussion.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteTeamDiscussionReactionByOrgIDAndTeamID(ctx context.Context, orgID, teamID, discussionNumber int, reactionID int64) (*Response, error)\n```\nDeleteTeamDiscussionReactionByOrgIDAndTeamID deletes the reaction to a team discussion by organization ID and team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-reaction](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#delete-team-discussion-reaction)\n\n```go\nfunc (s *ReactionsService) ListCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListCommentReactionOptions) ([]*Reaction, *Response, error)\n```\nListCommentReactions lists the reactions for a commit comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-commit-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-commit-comment)\n\n```go\nfunc (s *ReactionsService) ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error)\n```\nListIssueCommentReactions lists the reactions for an issue comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-an-issue-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-an-issue-comment)\n\n```go\nfunc (s *ReactionsService) ListIssueReactions(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Reaction, *Response, error)\n```\nListIssueReactions lists the reactions for an issue.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-an-issue](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-an-issue)\n\n```go\nfunc (s *ReactionsService) ListPullRequestCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error)\n```\nListPullRequestCommentReactions lists the reactions for a pull request review comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-pull-request-review-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-pull-request-review-comment)\n\n```go\nfunc (s *ReactionsService) ListTeamDiscussionCommentReactions(ctx context.Context, teamID int64, discussionNumber, commentNumber int, opts *ListOptions) ([]*Reaction, *Response, error)\n```\nListTeamDiscussionCommentReactions lists the reactions for a team discussion comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-team-discussion-comment-legacy](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-team-discussion-comment-legacy)\n\n```go\nfunc (s *ReactionsService) ListTeamDiscussionReactions(ctx context.Context, teamID int64, discussionNumber int, opts *ListOptions) ([]*Reaction, *Response, error)\n```\nListTeamDiscussionReactions lists the reactions for a team discussion.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-team-discussion-legacy](https://docs.github.com/en/free-pro-team@latest/rest/reference/reactions/#list-reactions-for-a-team-discussion-legacy)\n\n```go\ntype Reference struct {\n\tRef    *string    `json:\"ref\"`\n\tURL    *string    `json:\"url\"`\n\tObject *GitObject `json:\"object\"`\n\tNodeID *string    `json:\"node_id,omitempty\"`\n}\n```\nReference represents a GitHub reference.\n\n```go\nfunc (r *Reference) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reference) GetObject() *GitObject\n```\nGetObject returns the Object field.\n\n```go\nfunc (r *Reference) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Reference) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r Reference) String() string\n```\n\n```go\ntype ReferenceListOptions struct {\n\tRef string `url:\"-\"`\n\n\tListOptions\n}\n```\nReferenceListOptions specifies optional parameters to the GitService.ListMatchingRefs method.\n\n```go\ntype RegistrationToken struct {\n\tToken     *string    `json:\"token,omitempty\"`\n\tExpiresAt *Timestamp `json:\"expires_at,omitempty\"`\n}\n```\nRegistrationToken represents a token that can be used to add a self-hosted runner to a repository.\n\n```go\nfunc (r *RegistrationToken) GetExpiresAt() Timestamp\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RegistrationToken) GetToken() string\n```\nGetToken returns the Token field if it's non-nil, zero value otherwise.\n\n```go\ntype ReleaseAsset struct {\n\tID                 *int64     `json:\"id,omitempty\"`\n\tURL                *string    `json:\"url,omitempty\"`\n\tName               *string    `json:\"name,omitempty\"`\n\tLabel              *string    `json:\"label,omitempty\"`\n\tState              *string    `json:\"state,omitempty\"`\n\tContentType        *string    `json:\"content_type,omitempty\"`\n\tSize               *int       `json:\"size,omitempty\"`\n\tDownloadCount      *int       `json:\"download_count,omitempty\"`\n\tCreatedAt          *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt          *Timestamp `json:\"updated_at,omitempty\"`\n\tBrowserDownloadURL *string    `json:\"browser_download_url,omitempty\"`\n\tUploader           *User      `json:\"uploader,omitempty\"`\n\tNodeID             *string    `json:\"node_id,omitempty\"`\n}\n```\nReleaseAsset represents a GitHub release asset in a repository.\n\n```go\nfunc (r *ReleaseAsset) GetBrowserDownloadURL() string\n```\nGetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetContentType() string\n```\nGetContentType returns the ContentType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetDownloadCount() int\n```\nGetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetLabel() string\n```\nGetLabel returns the Label field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseAsset) GetUploader() *User\n```\nGetUploader returns the Uploader field.\n\n```go\nfunc (r ReleaseAsset) String() string\n```\n\n```go\ntype ReleaseEvent struct {\n\t// Action is the action that was performed. Possible values are: \"published\", \"unpublished\",\n\t// \"created\", \"edited\", \"deleted\", or \"prereleased\".\n\tAction  *string            `json:\"action,omitempty\"`\n\tRelease *RepositoryRelease `json:\"release,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nReleaseEvent is triggered when a release is published, unpublished, created, edited, deleted, or prereleased. The Webhook event name is \"release\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#releaseevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#releaseevent)\n\n```go\nfunc (r *ReleaseEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *ReleaseEvent) GetRelease() *RepositoryRelease\n```\nGetRelease returns the Release field.\n\n```go\nfunc (r *ReleaseEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (r *ReleaseEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype RemoveToken struct {\n\tToken     *string    `json:\"token,omitempty\"`\n\tExpiresAt *Timestamp `json:\"expires_at,omitempty\"`\n}\n```\nRemoveToken represents a token that can be used to remove a self-hosted runner from a repository.\n\n```go\nfunc (r *RemoveToken) GetExpiresAt() Timestamp\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RemoveToken) GetToken() string\n```\nGetToken returns the Token field if it's non-nil, zero value otherwise.\n\n```go\ntype Rename struct {\n\tFrom *string `json:\"from,omitempty\"`\n\tTo   *string `json:\"to,omitempty\"`\n}\n```\nRename contains details for 'renamed' events.\n\n```go\nfunc (r *Rename) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rename) GetTo() string\n```\nGetTo returns the To field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r Rename) String() string\n```\n\n```go\ntype RenameOrgResponse struct {\n\tMessage *string `json:\"message,omitempty\"`\n\tURL     *string `json:\"url,omitempty\"`\n}\n```\nRenameOrgResponse is the response given when renaming an Organization.\n\n```go\nfunc (r *RenameOrgResponse) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RenameOrgResponse) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoStats struct {\n\tTotalRepos  *int `json:\"total_repos,omitempty\"`\n\tRootRepos   *int `json:\"root_repos,omitempty\"`\n\tForkRepos   *int `json:\"fork_repos,omitempty\"`\n\tOrgRepos    *int `json:\"org_repos,omitempty\"`\n\tTotalPushes *int `json:\"total_pushes,omitempty\"`\n\tTotalWikis  *int `json:\"total_wikis,omitempty\"`\n}\n```\nRepoStats represents the number of total, root, fork, organization repositories together with the total number of pushes and wikis.\n\n```go\nfunc (r *RepoStats) GetForkRepos() int\n```\nGetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStats) GetOrgRepos() int\n```\nGetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStats) GetRootRepos() int\n```\nGetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStats) GetTotalPushes() int\n```\nGetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStats) GetTotalRepos() int\n```\nGetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStats) GetTotalWikis() int\n```\nGetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s RepoStats) String() string\n```\n\n```go\ntype RepoStatus struct {\n\tID     *int64  `json:\"id,omitempty\"`\n\tNodeID *string `json:\"node_id,omitempty\"`\n\tURL    *string `json:\"url,omitempty\"`\n\n\t// State is the current state of the repository. Possible values are:\n\t// pending, success, error, or failure.\n\tState *string `json:\"state,omitempty\"`\n\n\t// TargetURL is the URL of the page representing this status. It will be\n\t// linked from the GitHub UI to allow users to see the source of the status.\n\tTargetURL *string `json:\"target_url,omitempty\"`\n\n\t// Description is a short high level summary of the status.\n\tDescription *string `json:\"description,omitempty\"`\n\n\t// A string label to differentiate this status from the statuses of other systems.\n\tContext *string `json:\"context,omitempty\"`\n\n\tCreator   *User      `json:\"creator,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n}\n```\nRepoStatus represents the status of a repository at a particular reference.\n\n```go\nfunc (r *RepoStatus) GetContext() string\n```\nGetContext returns the Context field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (r *RepoStatus) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetTargetURL() string\n```\nGetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoStatus) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r RepoStatus) String() string\n```\n\n```go\ntype RepositoriesSearchResult struct {\n\tTotal             *int          `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool         `json:\"incomplete_results,omitempty\"`\n\tRepositories      []*Repository `json:\"items,omitempty\"`\n}\n```\nRepositoriesSearchResult represents the result of a repositories search.\n\n```go\nfunc (r *RepositoriesSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoriesSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoriesService service\n```\nRepositoriesService handles communication with the repository related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/)\n\n```go\nfunc (s *RepositoriesService) AddAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error)\n```\nAddAdminEnforcement adds admin enforcement to a protected branch. It requires admin access and branch protection to be enabled.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#set-admin-branch-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#set-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) AddAppRestrictions(ctx context.Context, owner, repo, branch string, slug []string) ([]*App, *Response, error)\n```\nAddAppRestrictions grants the specified apps push access to a given protected branch. It requires the GitHub apps to have \\`write\\` access to the \\`content\\` permission.\n\nNote: The list of users, apps, and teams in total is limited to 100 items.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#add-app-access-restrictions](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#add-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) AddCollaborator(ctx context.Context, owner, repo, user string, opts *RepositoryAddCollaboratorOptions) (*CollaboratorInvitation, *Response, error)\n```\nAddCollaborator sends an invitation to the specified GitHub user to become a collaborator to the given repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#add-a-repository-collaborator](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#add-a-repository-collaborator)\n\n```go\nfunc (s *RepositoriesService) CompareCommits(ctx context.Context, owner, repo string, base, head string) (*CommitsComparison, *Response, error)\n```\nCompareCommits compares a range of commits with each other.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#compare-two-commits](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#compare-two-commits)\n\n```go\nfunc (s *RepositoriesService) CompareCommitsRaw(ctx context.Context, owner, repo, base, head string, opts RawOptions) (string, *Response, error)\n```\nCompareCommitsRaw compares a range of commits with each other in raw (diff or patch) format.\n\nBoth \"base\" and \"head\" must be branch names in \"repo\". To compare branches across other repositories in the same network as \"repo\", use the format \"\\\u003cUSERNAME\u003e:branch\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#compare-two-commits](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#compare-two-commits)\n\n```go\nfunc (s *RepositoriesService) Create(ctx context.Context, 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\nNote that only a subset of the repo fields are used and repo must not be nil.\n\nAlso note that this method will return the response without actually waiting for GitHub to finish creating the repository and letting the changes propagate throughout its servers. You may set up a loop with exponential back-off to verify repository's creation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-an-organization-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-an-organization-repository)\n\n```go\nfunc (s *RepositoriesService) CreateComment(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-commit-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) CreateDeployment(ctx context.Context, owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error)\n```\nCreateDeployment creates a new deployment for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-deployment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-deployment)\n\n```go\nfunc (s *RepositoriesService) CreateDeploymentStatus(ctx context.Context, owner, repo string, deployment int64, request *DeploymentStatusRequest) (*DeploymentStatus, *Response, error)\n```\nCreateDeploymentStatus creates a new status for a deployment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-deployment-status](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-deployment-status)\n\n```go\nfunc (s *RepositoriesService) CreateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)\n```\nCreateFile creates a new file in a repository at the given path and returns the commit and file metadata.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-or-update-file-contents](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-or-update-file-contents)\n\n```go\nfunc (s *RepositoriesService) CreateFork(ctx context.Context, owner, repo string, opts *RepositoryCreateForkOptions) (*Repository, *Response, error)\n```\nCreateFork creates a fork of the specified repository.\n\nThis method might return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it is now computing creating the fork in a background task. In this event, the Repository value will be returned, which includes the details about the pending fork. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-fork](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-fork)\n\n```go\nfunc (s *RepositoriesService) CreateFromTemplate(ctx context.Context, templateOwner, templateRepo string, templateRepoReq *TemplateRepoRequest) (*Repository, *Response, error)\n```\nCreateFromTemplate generates a repository from a template.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-using-a-template](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-using-a-template)\n\n```go\nfunc (s *RepositoriesService) CreateHook(ctx context.Context, owner, repo string, hook *Hook) (*Hook, *Response, error)\n```\nCreateHook creates a Hook for the specified repository. Config is a required field.\n\nNote that only a subset of the hook fields are used and hook must not be nil.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) CreateKey(ctx context.Context, owner string, repo string, key *Key) (*Key, *Response, error)\n```\nCreateKey adds a deploy key for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-deploy-key](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-deploy-key)\n\n```go\nfunc (s *RepositoriesService) CreateProject(ctx context.Context, owner, repo string, opts *ProjectOptions) (*Project, *Response, error)\n```\nCreateProject creates a GitHub Project for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-repository-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-repository-project)\n\n```go\nfunc (s *RepositoriesService) CreateRelease(ctx context.Context, owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error)\n```\nCreateRelease adds a new release for a repository.\n\nNote that only a subset of the release fields are used. See RepositoryRelease for more information.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-release](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-release)\n\n```go\nfunc (s *RepositoriesService) CreateStatus(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-commit-status](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-commit-status)\n\n```go\nfunc (s *RepositoriesService) Delete(ctx context.Context, owner, repo string) (*Response, error)\n```\nDelete a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-repository)\n\n```go\nfunc (s *RepositoriesService) DeleteComment(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeleteComment deletes a single comment from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-commit-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) DeleteDeployment(ctx context.Context, owner, repo string, deploymentID int64) (*Response, error)\n```\nDeleteDeployment deletes an existing deployment for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-deployment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-deployment)\n\n```go\nfunc (s *RepositoriesService) DeleteFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)\n```\nDeleteFile deletes a file from a repository and returns the commit. Requires the blob SHA of the file to be deleted.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-file](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-file)\n\n```go\nfunc (s *RepositoriesService) DeleteHook(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeleteHook deletes a specified Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-repository-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) DeleteInvitation(ctx context.Context, owner, repo string, invitationID int64) (*Response, error)\n```\nDeleteInvitation deletes a repository invitation.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-repository-invitation](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-repository-invitation)\n\n```go\nfunc (s *RepositoriesService) DeleteKey(ctx context.Context, owner string, repo string, id int64) (*Response, error)\n```\nDeleteKey deletes a deploy key.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-deploy-key](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-deploy-key)\n\n```go\nfunc (s *RepositoriesService) DeletePreReceiveHook(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeletePreReceiveHook deletes a specified pre-receive hook.\n\nGitHub API docs: [https://developer.github.com/enterprise/2.13/v3/repos/pre\\_receive\\_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook](https://developer.github.com/enterprise/2.13/v3/repos/pre_receive_hooks/#remove-enforcement-overrides-for-a-pre-receive-hook)\n\n```go\nfunc (s *RepositoriesService) DeleteRelease(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeleteRelease delete a single release from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-release](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-release)\n\n```go\nfunc (s *RepositoriesService) DeleteReleaseAsset(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeleteReleaseAsset delete a single release asset from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-release-asset](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) DisableAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*Response, error)\n```\nDisableAutomatedSecurityFixes disables vulnerability alerts and the dependency graph for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#disable-automated-security-fixes](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#disable-automated-security-fixes)\n\n```go\nfunc (s *RepositoriesService) DisableDismissalRestrictions(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error)\n```\nDisableDismissalRestrictions disables dismissal restrictions of a protected branch. It requires admin access and branch protection to be enabled.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-pull-request-review-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) DisablePages(ctx context.Context, owner, repo string) (*Response, error)\n```\nDisablePages disables GitHub Pages for the named repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-github-pages-site](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) DisableVulnerabilityAlerts(ctx context.Context, owner, repository string) (*Response, error)\n```\nDisableVulnerabilityAlerts disables vulnerability alerts and the dependency graph for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#disable-vulnerability-alerts](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#disable-vulnerability-alerts)\n\n```go\nfunc (s *RepositoriesService) Dispatch(ctx context.Context, owner, repo string, opts DispatchRequestOptions) (*Repository, *Response, error)\n```\nDispatch triggers a repository\\_dispatch event in a GitHub Actions workflow.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-dispatch-event](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-repository-dispatch-event)\n\n```go\nfunc (s *RepositoriesService) DownloadContents(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *Response, error)\n```\nDownloadContents returns an io.ReadCloser that reads the contents of the specified file. This function will work with files of any size, as opposed to GetContents which is limited to 1 Mb files. It is the caller's responsibility to close the ReadCloser.\n\nIt is possible for the download to result in a failed response when the returned error is nil. Callers should check the returned Response status code to verify the content is from a successful response.\n\n```go\nfunc (s *RepositoriesService) DownloadReleaseAsset(ctx context.Context, owner, repo string, id int64, followRedirectsClient *http.Client) (rc io.ReadCloser, redirectURL string, err error)\n```\nDownloadReleaseAsset downloads a release asset or returns a redirect URL.\n\nDownloadReleaseAsset returns an io.ReadCloser that reads the contents of the specified release asset. It is the caller's responsibility to close the ReadCloser. If a redirect is returned, the redirect URL will be returned as a string instead of the io.ReadCloser. Exactly one of rc and redirectURL will be zero.\n\nfollowRedirectsClient can be passed to download the asset from a redirected location. Passing http.DefaultClient is recommended unless special circumstances exist, but it's possible to pass any http.Client. If nil is passed the redirectURL will be returned instead.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release-asset](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) Edit(ctx context.Context, owner, repo string, repository *Repository) (*Repository, *Response, error)\n```\nEdit updates a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-repository)\n\n```go\nfunc (s *RepositoriesService) EditHook(ctx context.Context, owner, repo string, id int64, hook *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-repository-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) EditRelease(ctx context.Context, owner, repo string, id int64, release *RepositoryRelease) (*RepositoryRelease, *Response, error)\n```\nEditRelease edits a repository release.\n\nNote that only a subset of the release fields are used. See RepositoryRelease for more information.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-release](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-release)\n\n```go\nfunc (s *RepositoriesService) EditReleaseAsset(ctx context.Context, owner, repo string, id int64, release *ReleaseAsset) (*ReleaseAsset, *Response, error)\n```\nEditReleaseAsset edits a repository release asset.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-release-asset](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) EnableAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*Response, error)\n```\nEnableAutomatedSecurityFixes enables the automated security fixes for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#enable-automated-security-fixes](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#enable-automated-security-fixes)\n\n```go\nfunc (s *RepositoriesService) EnablePages(ctx context.Context, owner, repo string, pages *Pages) (*Pages, *Response, error)\n```\nEnablePages enables GitHub Pages for the named repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-github-pages-site](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) EnableVulnerabilityAlerts(ctx context.Context, owner, repository string) (*Response, error)\n```\nEnableVulnerabilityAlerts enables vulnerability alerts and the dependency graph for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#enable-vulnerability-alerts](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#enable-vulnerability-alerts)\n\n```go\nfunc (s *RepositoriesService) Get(ctx context.Context, owner, repo string) (*Repository, *Response, error)\n```\nGet fetches a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error)\n```\nGetAdminEnforcement gets admin enforcement information of a protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-admin-branch-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) GetArchiveLink(ctx context.Context, owner, repo string, archiveformat ArchiveFormat, opts *RepositoryContentGetOptions, followRedirects bool) (*url.URL, *Response, error)\n```\nGetArchiveLink returns an URL to download a tarball or zipball archive for a repository. The archiveFormat can be specified by either the github.Tarball or github.Zipball constant.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/contents/#get-archive-link](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/contents/#get-archive-link)\n\n```go\nfunc (s *RepositoriesService) GetBranch(ctx context.Context, owner, repo, branch string) (*Branch, *Response, error)\n```\nGetBranch gets the specified branch for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-branch](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-branch)\n\n```go\nfunc (s *RepositoriesService) GetBranchProtection(ctx context.Context, owner, repo, branch string) (*Protection, *Response, error)\n```\nGetBranchProtection gets the protection of a given branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-branch-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-branch-protection)\n\n```go\nfunc (s *RepositoriesService) GetByID(ctx context.Context, id int64) (*Repository, *Response, error)\n```\nGetByID fetches a repository.\n\nNote: GetByID uses the undocumented GitHub API endpoint /repositories/:id.\n\n```go\nfunc (s *RepositoriesService) GetCodeOfConduct(ctx context.Context, owner, repo string) (*CodeOfConduct, *Response, error)\n```\nGetCodeOfConduct gets the contents of a repository's code of conduct.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/codes-of-conduct/#get-the-code-of-conduct-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/codes-of-conduct/#get-the-code-of-conduct-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetCombinedStatus(ctx context.Context, owner, repo, ref string, opts *ListOptions) (*CombinedStatus, *Response, error)\n```\nGetCombinedStatus returns the combined status of a repository at the specified reference. ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-combined-status-for-a-specific-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-combined-status-for-a-specific-reference)\n\n```go\nfunc (s *RepositoriesService) GetComment(ctx context.Context, owner, repo string, id int64) (*RepositoryComment, *Response, error)\n```\nGetComment gets a single comment from a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) GetCommit(ctx context.Context, owner, repo, sha string) (*RepositoryCommit, *Response, error)\n```\nGetCommit fetches the specified commit, including all details about it.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-single-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-single-commit) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit)\n\n```go\nfunc (s *RepositoriesService) GetCommitRaw(ctx context.Context, owner string, repo string, sha string, opts RawOptions) (string, *Response, error)\n```\nGetCommitRaw fetches the specified commit in raw (diff or patch) format.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit)\n\n```go\nfunc (s *RepositoriesService) GetCommitSHA1(ctx context.Context, owner, repo, ref, lastSHA string) (string, *Response, error)\n```\nGetCommitSHA1 gets the SHA-1 of a commit reference. If a last-known SHA1 is supplied and no new commits have occurred, a 304 Unmodified response is returned.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-commit)\n\n```go\nfunc (s *RepositoriesService) GetCommunityHealthMetrics(ctx context.Context, owner, repo string) (*CommunityHealthMetrics, *Response, error)\n```\nGetCommunityHealthMetrics retrieves all the community health  metrics for a  repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-community-profile-metrics](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-community-profile-metrics)\n\n```go\nfunc (s *RepositoriesService) GetContents(ctx context.Context, owner, repo, path string, opts *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, resp *Response, err error)\n```\nGetContents can return either the metadata and content of a single file (when path references a file) or the metadata of all the files and/or subdirectories of a directory (when path references a directory). To make it easy to distinguish between both result types and to mimic the API as much as possible, both result types will be returned but only one will contain a value and the other will be nil.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-repository-content](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-repository-content)\n\n```go\nfunc (s *RepositoriesService) GetDeployment(ctx context.Context, owner, repo string, deploymentID int64) (*Deployment, *Response, error)\n```\nGetDeployment returns a single deployment of a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-deployment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-deployment)\n\n```go\nfunc (s *RepositoriesService) GetDeploymentStatus(ctx context.Context, owner, repo string, deploymentID, deploymentStatusID int64) (*DeploymentStatus, *Response, error)\n```\nGetDeploymentStatus returns a single deployment status of a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-deployment-status](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-deployment-status)\n\n```go\nfunc (s *RepositoriesService) GetHook(ctx context.Context, owner, repo string, id int64) (*Hook, *Response, error)\n```\nGetHook returns a single specified Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-repository-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) GetKey(ctx context.Context, owner string, repo string, id int64) (*Key, *Response, error)\n```\nGetKey fetches a single deploy key.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-deploy-key](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-deploy-key)\n\n```go\nfunc (s *RepositoriesService) GetLatestPagesBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error)\n```\nGetLatestPagesBuild fetches the latest build information for a GitHub pages site.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-latest-pages-build](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-latest-pages-build)\n\n```go\nfunc (s *RepositoriesService) GetLatestRelease(ctx context.Context, owner, repo string) (*RepositoryRelease, *Response, error)\n```\nGetLatestRelease fetches the latest published release for the repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-latest-release](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-latest-release)\n\n```go\nfunc (s *RepositoriesService) GetPageBuild(ctx context.Context, owner, repo string, id int64) (*PagesBuild, *Response, error)\n```\nGetPageBuild fetches the specific build information for a GitHub pages site.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-github-pages-build](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-github-pages-build)\n\n```go\nfunc (s *RepositoriesService) GetPagesInfo(ctx context.Context, owner, repo string) (*Pages, *Response, error)\n```\nGetPagesInfo fetches information about a GitHub Pages site.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-github-pages-site](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) GetPermissionLevel(ctx context.Context, owner, repo, user string) (*RepositoryPermissionLevel, *Response, error)\n```\nGetPermissionLevel retrieves the specific permission level a collaborator has for a given repository. GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-repository-permissions-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-repository-permissions-for-a-user)\n\n```go\nfunc (s *RepositoriesService) GetPreReceiveHook(ctx context.Context, owner, repo string, id int64) (*PreReceiveHook, *Response, error)\n```\nGetPreReceiveHook returns a single specified pre-receive hook.\n\nGitHub API docs: [https://developer.github.com/enterprise/2.13/v3/repos/pre\\_receive\\_hooks/#get-a-single-pre-receive-hook](https://developer.github.com/enterprise/2.13/v3/repos/pre_receive_hooks/#get-a-single-pre-receive-hook)\n\n```go\nfunc (s *RepositoriesService) GetPullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error)\n```\nGetPullRequestReviewEnforcement gets pull request review enforcement of a protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-pull-request-review-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) GetReadme(ctx context.Context, owner, repo string, opts *RepositoryContentGetOptions) (*RepositoryContent, *Response, error)\n```\nGetReadme gets the Readme file for the repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-repository-readme](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-repository-readme)\n\n```go\nfunc (s *RepositoriesService) GetRelease(ctx context.Context, owner, repo string, id int64) (*RepositoryRelease, *Response, error)\n```\nGetRelease fetches a single release.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release)\n\n```go\nfunc (s *RepositoriesService) GetReleaseAsset(ctx context.Context, owner, repo string, id int64) (*ReleaseAsset, *Response, error)\n```\nGetReleaseAsset fetches a single release asset.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release-asset](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*RepositoryRelease, *Response, error)\n```\nGetReleaseByTag fetches a release with the specified tag.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release-by-tag-name](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-a-release-by-tag-name)\n\n```go\nfunc (s *RepositoriesService) GetRequiredStatusChecks(ctx context.Context, owner, repo, branch string) (*RequiredStatusChecks, *Response, error)\n```\nGetRequiredStatusChecks gets the required status checks for a given protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-status-checks-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-status-checks-protection)\n\n```go\nfunc (s *RepositoriesService) GetSignaturesProtectedBranch(ctx context.Context, owner, repo, branch string) (*SignaturesProtectedBranch, *Response, error)\n```\nGetSignaturesProtectedBranch gets required signatures of protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-commit-signature-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-commit-signature-protection)\n\n```go\nfunc (s *RepositoriesService) GetVulnerabilityAlerts(ctx context.Context, owner, repository string) (bool, *Response, error)\n```\nGetVulnerabilityAlerts checks if vulnerability alerts are enabled for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) IsCollaborator(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#check-if-a-user-is-a-repository-collaborator](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#check-if-a-user-is-a-repository-collaborator)\n\n```go\nfunc (s *RepositoriesService) License(ctx context.Context, owner, repo string) (*RepositoryLicense, *Response, error)\n```\nLicense gets the contents of a repository's license if one is detected.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/#get-the-license-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/licenses/#get-the-license-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) List(ctx context.Context, user string, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repositories-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repositories-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repositories-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repositories-for-a-user)\n\n```go\nfunc (s *RepositoriesService) ListAll(ctx context.Context, opts *RepositoryListAllOptions) ([]*Repository, *Response, error)\n```\nListAll lists all GitHub repositories in the order that they were created.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-public-repositories](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-public-repositories)\n\n```go\nfunc (s *RepositoriesService) ListAllTopics(ctx context.Context, owner, repo string) ([]string, *Response, error)\n```\nListAllTopics lists topics for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-all-repository-topics](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-all-repository-topics)\n\n```go\nfunc (s *RepositoriesService) ListApps(ctx context.Context, owner, repo, branch string) ([]*App, *Response, error)\n```\nListApps lists the GitHub apps that have push access to a given protected branch. It requires the GitHub apps to have \\`write\\` access to the \\`content\\` permission.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-apps-with-access-to-the-protected-branch](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-apps-with-access-to-the-protected-branch)\n\n```go\nfunc (s *RepositoriesService) ListBranches(ctx context.Context, owner string, repo string, opts *BranchListOptions) ([]*Branch, *Response, error)\n```\nListBranches lists branches for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-branches](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-branches)\n\n```go\nfunc (s *RepositoriesService) ListBranchesHeadCommit(ctx context.Context, owner, repo, sha string) ([]*BranchCommit, *Response, error)\n```\nListBranchesHeadCommit gets all branches where the given commit SHA is the HEAD, or latest commit for the branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-branches-for-head-commit](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-branches-for-head-commit)\n\n```go\nfunc (s *RepositoriesService) ListByOrg(ctx context.Context, org string, opts *RepositoryListByOrgOptions) ([]*Repository, *Response, error)\n```\nListByOrg lists the repositories for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-organization-repositories](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-organization-repositories)\n\n```go\nfunc (s *RepositoriesService) ListCodeFrequency(ctx context.Context, owner, repo string) ([]*WeeklyStats, *Response, error)\n```\nListCodeFrequency returns a weekly aggregate of the number of additions and deletions pushed to a repository. Returned WeeklyStats will contain additions and deletions, but not total commits.\n\nIf this is the first time these statistics are requested for the given repository, this method will return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-weekly-commit-activity](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-weekly-commit-activity)\n\n```go\nfunc (s *RepositoriesService) ListCollaborators(ctx context.Context, owner, repo string, opts *ListCollaboratorsOptions) ([]*User, *Response, error)\n```\nListCollaborators lists the GitHub users that have access to the repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-collaborators](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-collaborators)\n\n```go\nfunc (s *RepositoriesService) ListComments(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryComment, *Response, error)\n```\nListComments lists all the comments for the repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commit-comments-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commit-comments-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListCommitActivity(ctx context.Context, owner, repo string) ([]*WeeklyCommitActivity, *Response, error)\n```\nListCommitActivity returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday.\n\nIf this is the first time these statistics are requested for the given repository, this method will return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-last-year-of-commit-activity](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-last-year-of-commit-activity)\n\n```go\nfunc (s *RepositoriesService) ListCommitComments(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*RepositoryComment, *Response, error)\n```\nListCommitComments lists all the comments for a given commit SHA.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commit-comments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commit-comments)\n\n```go\nfunc (s *RepositoriesService) ListCommits(ctx context.Context, owner, repo string, opts *CommitsListOptions) ([]*RepositoryCommit, *Response, error)\n```\nListCommits lists the commits of a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commits](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commits)\n\n```go\nfunc (s *RepositoriesService) ListContributors(ctx context.Context, owner string, repository string, opts *ListContributorsOptions) ([]*Contributor, *Response, error)\n```\nListContributors lists contributors for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-contributors](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-contributors)\n\n```go\nfunc (s *RepositoriesService) ListContributorsStats(ctx context.Context, owner, repo string) ([]*ContributorStats, *Response, error)\n```\nListContributorsStats gets a repo's contributor list with additions, deletions and commit counts.\n\nIf this is the first time these statistics are requested for the given repository, this method will return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-all-contributor-commit-activity](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-all-contributor-commit-activity)\n\n```go\nfunc (s *RepositoriesService) ListDeploymentStatuses(ctx context.Context, owner, repo string, deployment int64, opts *ListOptions) ([]*DeploymentStatus, *Response, error)\n```\nListDeploymentStatuses lists the statuses of a given deployment of a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-deployment-statuses](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-deployment-statuses)\n\n```go\nfunc (s *RepositoriesService) ListDeployments(ctx context.Context, owner, repo string, opts *DeploymentsListOptions) ([]*Deployment, *Response, error)\n```\nListDeployments lists the deployments of a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-deployments](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-deployments)\n\n```go\nfunc (s *RepositoriesService) ListForks(ctx context.Context, owner, repo string, opts *RepositoryListForksOptions) ([]*Repository, *Response, error)\n```\nListForks lists the forks of the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-forks](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-forks)\n\n```go\nfunc (s *RepositoriesService) ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Hook, *Response, error)\n```\nListHooks lists all Hooks for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-webhooks](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-webhooks)\n\n```go\nfunc (s *RepositoriesService) ListInvitations(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryInvitation, *Response, error)\n```\nListInvitations lists all currently-open repository invitations.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-invitations](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-invitations)\n\n```go\nfunc (s *RepositoriesService) ListKeys(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Key, *Response, error)\n```\nListKeys lists the deploy keys for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-deploy-keys](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-deploy-keys)\n\n```go\nfunc (s *RepositoriesService) ListLanguages(ctx context.Context, owner string, repo string) (map[string]int, *Response, error)\n```\nListLanguages lists languages for the specified repository. The returned map specifies the languages and the number of bytes of code written in that language. For example:\n\n\t{\n\t  \"C\": 78769,\n\t  \"Python\": 7769\n\t}\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-languages](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-languages)\n\n```go\nfunc (s *RepositoriesService) ListPagesBuilds(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PagesBuild, *Response, error)\n```\nListPagesBuilds lists the builds for a GitHub Pages site.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-github-pages-builds](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-github-pages-builds)\n\n```go\nfunc (s *RepositoriesService) ListParticipation(ctx context.Context, owner, repo string) (*RepositoryParticipation, *Response, error)\n```\nListParticipation returns the total commit counts for the 'owner' and total commit counts in 'all'. 'all' is everyone combined, including the 'owner' in the last 52 weeks. If you’d like to get the commit counts for non-owners, you can subtract 'all' from 'owner'.\n\nThe array order is oldest week (index 0) to most recent week.\n\nIf this is the first time these statistics are requested for the given repository, this method will return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-weekly-commit-count](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-weekly-commit-count)\n\n```go\nfunc (s *RepositoriesService) ListPreReceiveHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PreReceiveHook, *Response, error)\n```\nListPreReceiveHooks lists all pre-receive hooks for the specified repository.\n\nGitHub API docs: [https://developer.github.com/enterprise/2.13/v3/repos/pre\\_receive\\_hooks/#list-pre-receive-hooks](https://developer.github.com/enterprise/2.13/v3/repos/pre_receive_hooks/#list-pre-receive-hooks)\n\n```go\nfunc (s *RepositoriesService) ListProjects(ctx context.Context, owner, repo string, opts *ProjectListOptions) ([]*Project, *Response, error)\n```\nListProjects lists the projects for a repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-repository-projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-repository-projects)\n\n```go\nfunc (s *RepositoriesService) ListPunchCard(ctx context.Context, owner, repo string) ([]*PunchCard, *Response, error)\n```\nListPunchCard returns the number of commits per hour in each day.\n\nIf this is the first time these statistics are requested for the given repository, this method will return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it is now computing the requested statistics. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-hourly-commit-count-for-each-day](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-the-hourly-commit-count-for-each-day)\n\n```go\nfunc (s *RepositoriesService) ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*ReleaseAsset, *Response, error)\n```\nListReleaseAssets lists the release's assets.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-release-assets](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-release-assets)\n\n```go\nfunc (s *RepositoriesService) ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryRelease, *Response, error)\n```\nListReleases lists the releases for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-releases](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-releases)\n\n```go\nfunc (s *RepositoriesService) ListRequiredStatusChecksContexts(ctx context.Context, owner, repo, branch string) (contexts []string, resp *Response, err error)\n```\nListRequiredStatusChecksContexts lists the required status checks contexts for a given protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-all-status-check-contexts](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-all-status-check-contexts)\n\n```go\nfunc (s *RepositoriesService) ListStatuses(ctx context.Context, owner, repo, ref string, opts *ListOptions) ([]*RepoStatus, *Response, error)\n```\nListStatuses lists the statuses of a repository at the specified reference. ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commit-statuses-for-a-reference](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-commit-statuses-for-a-reference)\n\n```go\nfunc (s *RepositoriesService) ListTags(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*RepositoryTag, *Response, error)\n```\nListTags lists tags for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-tags](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-tags)\n\n```go\nfunc (s *RepositoriesService) ListTeams(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Team, *Response, error)\n```\nListTeams lists the teams for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-teams](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-teams)\n\n```go\nfunc (s *RepositoriesService) ListTrafficClones(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficClones, *Response, error)\n```\nListTrafficClones get total number of clones for the last 14 days and breaks it down either per day or week for the last 14 days.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-repository-clones](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-repository-clones)\n\n```go\nfunc (s *RepositoriesService) ListTrafficPaths(ctx context.Context, owner, repo string) ([]*TrafficPath, *Response, error)\n```\nListTrafficPaths list the top 10 popular content over the last 14 days.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-top-referral-paths](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-top-referral-paths)\n\n```go\nfunc (s *RepositoriesService) ListTrafficReferrers(ctx context.Context, owner, repo string) ([]*TrafficReferrer, *Response, error)\n```\nListTrafficReferrers list the top 10 referrers over the last 14 days.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-top-referral-sources](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-top-referral-sources)\n\n```go\nfunc (s *RepositoriesService) ListTrafficViews(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficViews, *Response, error)\n```\nListTrafficViews get total number of views for the last 14 days and breaks it down either per day or week.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-page-views](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#get-page-views)\n\n```go\nfunc (s *RepositoriesService) Merge(ctx context.Context, owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error)\n```\nMerge a branch in the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#merge-a-branch](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#merge-a-branch)\n\n```go\nfunc (s *RepositoriesService) OptionalSignaturesOnProtectedBranch(ctx context.Context, owner, repo, branch string) (*Response, error)\n```\nOptionalSignaturesOnProtectedBranch removes required signed commits on a given branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-commit-signature-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-commit-signature-protection)\n\n```go\nfunc (s *RepositoriesService) PingHook(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nPingHook triggers a 'ping' event to be sent to the Hook.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#ping-a-repository-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#ping-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) RemoveAdminEnforcement(ctx context.Context, owner, repo, branch string) (*Response, error)\n```\nRemoveAdminEnforcement removes admin enforcement from a protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-admin-branch-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) RemoveAppRestrictions(ctx context.Context, owner, repo, branch string, slug []string) ([]*App, *Response, error)\n```\nRemoveAppRestrictions removes the ability of an app to push to this branch. It requires the GitHub apps to have \\`write\\` access to the \\`content\\` permission.\n\nNote: The list of users, apps, and teams in total is limited to 100 items.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#remove-app-access-restrictions](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#remove-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) RemoveBranchProtection(ctx context.Context, owner, repo, branch string) (*Response, error)\n```\nRemoveBranchProtection removes the protection of a given branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-branch-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-branch-protection)\n\n```go\nfunc (s *RepositoriesService) RemoveCollaborator(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#remove-a-repository-collaborator](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#remove-a-repository-collaborator)\n\n```go\nfunc (s *RepositoriesService) RemovePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*Response, error)\n```\nRemovePullRequestReviewEnforcement removes pull request enforcement of a protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-pull-request-review-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#delete-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) ReplaceAllTopics(ctx context.Context, owner, repo string, topics []string) ([]string, *Response, error)\n```\nReplaceAllTopics replaces topics for a repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#replace-all-repository-topics](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#replace-all-repository-topics)\n\n```go\nfunc (s *RepositoriesService) ReplaceAppRestrictions(ctx context.Context, owner, repo, branch string, slug []string) ([]*App, *Response, error)\n```\nReplaceAppRestrictions replaces the apps that have push access to a given protected branch. It removes all apps that previously had push access and grants push access to the new list of apps. It requires the GitHub apps to have \\`write\\` access to the \\`content\\` permission.\n\nNote: The list of users, apps, and teams in total is limited to 100 items.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#set-app-access-restrictions](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#set-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) RequestPageBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error)\n```\nRequestPageBuild requests a build of a GitHub Pages site without needing to push new commit.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#request-a-github-pages-build](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#request-a-github-pages-build)\n\n```go\nfunc (s *RepositoriesService) RequireSignaturesOnProtectedBranch(ctx context.Context, owner, repo, branch string) (*SignaturesProtectedBranch, *Response, error)\n```\nRequireSignaturesOnProtectedBranch makes signed commits required on a protected branch. It requires admin access and branch protection to be enabled.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-commit-signature-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-commit-signature-protection)\n\n```go\nfunc (s *RepositoriesService) TestHook(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nTestHook triggers a test Hook by github.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#test-the-push-repository-webhook](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#test-the-push-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) Transfer(ctx context.Context, owner, repo string, transfer TransferRequest) (*Repository, *Response, error)\n```\nTransfer transfers a repository from one account or organization to another.\n\nThis method might return an \\*AcceptedError and a status code of 202. This is because this is the status that GitHub returns to signify that it has now scheduled the transfer of the repository in a background task. A follow up request, after a delay of a second or so, should result in a successful request.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#transfer-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#transfer-a-repository)\n\n```go\nfunc (s *RepositoriesService) UpdateBranchProtection(ctx context.Context, owner, repo, branch string, preq *ProtectionRequest) (*Protection, *Response, error)\n```\nUpdateBranchProtection updates the protection of a given branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-branch-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-branch-protection)\n\n```go\nfunc (s *RepositoriesService) UpdateComment(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment) (*RepositoryComment, *Response, error)\n```\nUpdateComment updates the body of a single comment.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-commit-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) UpdateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)\n```\nUpdateFile updates a file in a repository at the given path and returns the commit and file metadata. Requires the blob SHA of the file being updated.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-or-update-file-contents](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#create-or-update-file-contents)\n\n```go\nfunc (s *RepositoriesService) UpdateInvitation(ctx context.Context, owner, repo string, invitationID int64, permissions string) (*RepositoryInvitation, *Response, error)\n```\nUpdateInvitation updates the permissions associated with a repository invitation.\n\npermissions represents the permissions that the associated user will have on the repository. Possible values are: \"read\", \"write\", \"admin\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-repository-invitation](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-a-repository-invitation)\n\n```go\nfunc (s *RepositoriesService) UpdatePages(ctx context.Context, owner, repo string, opts *PagesUpdate) (*Response, error)\n```\nUpdatePages updates GitHub Pages for the named repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-information-about-a-github-pages-site](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-information-about-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) UpdatePreReceiveHook(ctx context.Context, owner, repo string, id int64, hook *PreReceiveHook) (*PreReceiveHook, *Response, error)\n```\nUpdatePreReceiveHook updates a specified pre-receive hook.\n\nGitHub API docs: [https://developer.github.com/enterprise/2.13/v3/repos/pre\\_receive\\_hooks/#update-pre-receive-hook-enforcement](https://developer.github.com/enterprise/2.13/v3/repos/pre_receive_hooks/#update-pre-receive-hook-enforcement)\n\n```go\nfunc (s *RepositoriesService) UpdatePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string, patch *PullRequestReviewsEnforcementUpdate) (*PullRequestReviewsEnforcement, *Response, error)\n```\nUpdatePullRequestReviewEnforcement patches pull request review enforcement of a protected branch. It requires admin access and branch protection to be enabled.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-pull-request-review-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) UpdateRequiredStatusChecks(ctx context.Context, owner, repo, branch string, sreq *RequiredStatusChecksRequest) (*RequiredStatusChecks, *Response, error)\n```\nUpdateRequiredStatusChecks updates the required status checks for a given protected branch.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-status-check-protection](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#update-status-check-protection)\n\n```go\nfunc (s *RepositoriesService) UploadReleaseAsset(ctx context.Context, owner, repo string, id int64, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#upload-a-release-asset](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#upload-a-release-asset)\n\n```go\ntype Repository struct {\n\tID                  *int64           `json:\"id,omitempty\"`\n\tNodeID              *string          `json:\"node_id,omitempty\"`\n\tOwner               *User            `json:\"owner,omitempty\"`\n\tName                *string          `json:\"name,omitempty\"`\n\tFullName            *string          `json:\"full_name,omitempty\"`\n\tDescription         *string          `json:\"description,omitempty\"`\n\tHomepage            *string          `json:\"homepage,omitempty\"`\n\tCodeOfConduct       *CodeOfConduct   `json:\"code_of_conduct,omitempty\"`\n\tDefaultBranch       *string          `json:\"default_branch,omitempty\"`\n\tMasterBranch        *string          `json:\"master_branch,omitempty\"`\n\tCreatedAt           *Timestamp       `json:\"created_at,omitempty\"`\n\tPushedAt            *Timestamp       `json:\"pushed_at,omitempty\"`\n\tUpdatedAt           *Timestamp       `json:\"updated_at,omitempty\"`\n\tHTMLURL             *string          `json:\"html_url,omitempty\"`\n\tCloneURL            *string          `json:\"clone_url,omitempty\"`\n\tGitURL              *string          `json:\"git_url,omitempty\"`\n\tMirrorURL           *string          `json:\"mirror_url,omitempty\"`\n\tSSHURL              *string          `json:\"ssh_url,omitempty\"`\n\tSVNURL              *string          `json:\"svn_url,omitempty\"`\n\tLanguage            *string          `json:\"language,omitempty\"`\n\tFork                *bool            `json:\"fork,omitempty\"`\n\tForksCount          *int             `json:\"forks_count,omitempty\"`\n\tNetworkCount        *int             `json:\"network_count,omitempty\"`\n\tOpenIssuesCount     *int             `json:\"open_issues_count,omitempty\"`\n\tStargazersCount     *int             `json:\"stargazers_count,omitempty\"`\n\tSubscribersCount    *int             `json:\"subscribers_count,omitempty\"`\n\tWatchersCount       *int             `json:\"watchers_count,omitempty\"`\n\tSize                *int             `json:\"size,omitempty\"`\n\tAutoInit            *bool            `json:\"auto_init,omitempty\"`\n\tParent              *Repository      `json:\"parent,omitempty\"`\n\tSource              *Repository      `json:\"source,omitempty\"`\n\tTemplateRepository  *Repository      `json:\"template_repository,omitempty\"`\n\tOrganization        *Organization    `json:\"organization,omitempty\"`\n\tPermissions         *map[string]bool `json:\"permissions,omitempty\"`\n\tAllowRebaseMerge    *bool            `json:\"allow_rebase_merge,omitempty\"`\n\tAllowSquashMerge    *bool            `json:\"allow_squash_merge,omitempty\"`\n\tAllowMergeCommit    *bool            `json:\"allow_merge_commit,omitempty\"`\n\tDeleteBranchOnMerge *bool            `json:\"delete_branch_on_merge,omitempty\"`\n\tTopics              []string         `json:\"topics,omitempty\"`\n\tArchived            *bool            `json:\"archived,omitempty\"`\n\tDisabled            *bool            `json:\"disabled,omitempty\"`\n\n\t// Only provided when using RepositoriesService.Get while in preview\n\tLicense *License `json:\"license,omitempty\"`\n\n\t// Additional mutable fields when creating and editing a repository\n\tPrivate           *bool   `json:\"private,omitempty\"`\n\tHasIssues         *bool   `json:\"has_issues,omitempty\"`\n\tHasWiki           *bool   `json:\"has_wiki,omitempty\"`\n\tHasPages          *bool   `json:\"has_pages,omitempty\"`\n\tHasProjects       *bool   `json:\"has_projects,omitempty\"`\n\tHasDownloads      *bool   `json:\"has_downloads,omitempty\"`\n\tIsTemplate        *bool   `json:\"is_template,omitempty\"`\n\tLicenseTemplate   *string `json:\"license_template,omitempty\"`\n\tGitignoreTemplate *string `json:\"gitignore_template,omitempty\"`\n\n\t// Creating an organization repository. Required for non-owners.\n\tTeamID *int64 `json:\"team_id,omitempty\"`\n\n\t// API URLs\n\tURL              *string `json:\"url,omitempty\"`\n\tArchiveURL       *string `json:\"archive_url,omitempty\"`\n\tAssigneesURL     *string `json:\"assignees_url,omitempty\"`\n\tBlobsURL         *string `json:\"blobs_url,omitempty\"`\n\tBranchesURL      *string `json:\"branches_url,omitempty\"`\n\tCollaboratorsURL *string `json:\"collaborators_url,omitempty\"`\n\tCommentsURL      *string `json:\"comments_url,omitempty\"`\n\tCommitsURL       *string `json:\"commits_url,omitempty\"`\n\tCompareURL       *string `json:\"compare_url,omitempty\"`\n\tContentsURL      *string `json:\"contents_url,omitempty\"`\n\tContributorsURL  *string `json:\"contributors_url,omitempty\"`\n\tDeploymentsURL   *string `json:\"deployments_url,omitempty\"`\n\tDownloadsURL     *string `json:\"downloads_url,omitempty\"`\n\tEventsURL        *string `json:\"events_url,omitempty\"`\n\tForksURL         *string `json:\"forks_url,omitempty\"`\n\tGitCommitsURL    *string `json:\"git_commits_url,omitempty\"`\n\tGitRefsURL       *string `json:\"git_refs_url,omitempty\"`\n\tGitTagsURL       *string `json:\"git_tags_url,omitempty\"`\n\tHooksURL         *string `json:\"hooks_url,omitempty\"`\n\tIssueCommentURL  *string `json:\"issue_comment_url,omitempty\"`\n\tIssueEventsURL   *string `json:\"issue_events_url,omitempty\"`\n\tIssuesURL        *string `json:\"issues_url,omitempty\"`\n\tKeysURL          *string `json:\"keys_url,omitempty\"`\n\tLabelsURL        *string `json:\"labels_url,omitempty\"`\n\tLanguagesURL     *string `json:\"languages_url,omitempty\"`\n\tMergesURL        *string `json:\"merges_url,omitempty\"`\n\tMilestonesURL    *string `json:\"milestones_url,omitempty\"`\n\tNotificationsURL *string `json:\"notifications_url,omitempty\"`\n\tPullsURL         *string `json:\"pulls_url,omitempty\"`\n\tReleasesURL      *string `json:\"releases_url,omitempty\"`\n\tStargazersURL    *string `json:\"stargazers_url,omitempty\"`\n\tStatusesURL      *string `json:\"statuses_url,omitempty\"`\n\tSubscribersURL   *string `json:\"subscribers_url,omitempty\"`\n\tSubscriptionURL  *string `json:\"subscription_url,omitempty\"`\n\tTagsURL          *string `json:\"tags_url,omitempty\"`\n\tTreesURL         *string `json:\"trees_url,omitempty\"`\n\tTeamsURL         *string `json:\"teams_url,omitempty\"`\n\n\t// TextMatches is only populated from search results that request text matches\n\t// See: search.go and https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#text-match-metadata\n\tTextMatches []*TextMatch `json:\"text_matches,omitempty\"`\n\n\t// Visibility is only used for Create and Edit endpoints. The visibility field\n\t// overrides the field parameter when both are used.\n\t// Can be one of public, private or internal.\n\tVisibility *string `json:\"visibility,omitempty\"`\n}\n```\nRepository represents a GitHub repository.\n\n```go\nfunc (r *Repository) GetAllowMergeCommit() bool\n```\nGetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetAllowRebaseMerge() bool\n```\nGetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetAllowSquashMerge() bool\n```\nGetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetArchiveURL() string\n```\nGetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetArchived() bool\n```\nGetArchived returns the Archived field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetAssigneesURL() string\n```\nGetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetAutoInit() bool\n```\nGetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetBlobsURL() string\n```\nGetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetBranchesURL() string\n```\nGetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetCloneURL() string\n```\nGetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetCodeOfConduct() *CodeOfConduct\n```\nGetCodeOfConduct returns the CodeOfConduct field.\n\n```go\nfunc (r *Repository) GetCollaboratorsURL() string\n```\nGetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetCommentsURL() string\n```\nGetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetCommitsURL() string\n```\nGetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetCompareURL() string\n```\nGetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetContentsURL() string\n```\nGetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetContributorsURL() string\n```\nGetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetDefaultBranch() string\n```\nGetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetDeleteBranchOnMerge() bool\n```\nGetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetDeploymentsURL() string\n```\nGetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetDisabled() bool\n```\nGetDisabled returns the Disabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetDownloadsURL() string\n```\nGetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetFork() bool\n```\nGetFork returns the Fork field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetForksCount() int\n```\nGetForksCount returns the ForksCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetForksURL() string\n```\nGetForksURL returns the ForksURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetFullName() string\n```\nGetFullName returns the FullName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetGitCommitsURL() string\n```\nGetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetGitRefsURL() string\n```\nGetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetGitTagsURL() string\n```\nGetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetGitURL() string\n```\nGetGitURL returns the GitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetGitignoreTemplate() string\n```\nGetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHasDownloads() bool\n```\nGetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHasIssues() bool\n```\nGetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHasPages() bool\n```\nGetHasPages returns the HasPages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHasProjects() bool\n```\nGetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHasWiki() bool\n```\nGetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHomepage() string\n```\nGetHomepage returns the Homepage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetHooksURL() string\n```\nGetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetIsTemplate() bool\n```\nGetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetIssueCommentURL() string\n```\nGetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetIssueEventsURL() string\n```\nGetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetIssuesURL() string\n```\nGetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetKeysURL() string\n```\nGetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetLabelsURL() string\n```\nGetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetLanguage() string\n```\nGetLanguage returns the Language field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetLanguagesURL() string\n```\nGetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetLicense() *License\n```\nGetLicense returns the License field.\n\n```go\nfunc (r *Repository) GetLicenseTemplate() string\n```\nGetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetMasterBranch() string\n```\nGetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetMergesURL() string\n```\nGetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetMilestonesURL() string\n```\nGetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetMirrorURL() string\n```\nGetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetNetworkCount() int\n```\nGetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetNotificationsURL() string\n```\nGetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetOpenIssuesCount() int\n```\nGetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (r *Repository) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (r *Repository) GetParent() *Repository\n```\nGetParent returns the Parent field.\n\n```go\nfunc (r *Repository) GetPermissions() map[string]bool\n```\nGetPermissions returns the Permissions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetPullsURL() string\n```\nGetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetPushedAt() Timestamp\n```\nGetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetReleasesURL() string\n```\nGetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSSHURL() string\n```\nGetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSVNURL() string\n```\nGetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSource() *Repository\n```\nGetSource returns the Source field.\n\n```go\nfunc (r *Repository) GetStargazersCount() int\n```\nGetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetStargazersURL() string\n```\nGetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetStatusesURL() string\n```\nGetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSubscribersCount() int\n```\nGetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSubscribersURL() string\n```\nGetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSubscriptionURL() string\n```\nGetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetTagsURL() string\n```\nGetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetTeamID() int64\n```\nGetTeamID returns the TeamID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetTeamsURL() string\n```\nGetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetTemplateRepository() *Repository\n```\nGetTemplateRepository returns the TemplateRepository field.\n\n```go\nfunc (r *Repository) GetTreesURL() string\n```\nGetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetWatchersCount() int\n```\nGetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r Repository) String() string\n```\n\n```go\ntype RepositoryAddCollaboratorOptions struct {\n\t// Permission specifies the permission to grant the user on this repository.\n\t// Possible values are:\n\t//     pull - team members can pull, but not push to or administer this repository\n\t//     push - team members can pull and push, but not administer this repository\n\t//     admin - team members can pull, push and administer this repository\n\t//     maintain - team members can manage the repository without access to sensitive or destructive actions.\n\t//     triage - team members can proactively manage issues and pull requests without write access.\n\t//\n\t// Default value is \"push\". This option is only valid for organization-owned repositories.\n\tPermission string `json:\"permission,omitempty\"`\n}\n```\nRepositoryAddCollaboratorOptions specifies the optional parameters to the RepositoriesService.AddCollaborator method.\n\n```go\ntype RepositoryComment struct {\n\tHTMLURL   *string    `json:\"html_url,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tID        *int64     `json:\"id,omitempty\"`\n\tNodeID    *string    `json:\"node_id,omitempty\"`\n\tCommitID  *string    `json:\"commit_id,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tReactions *Reactions `json:\"reactions,omitempty\"`\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\tUpdatedAt *time.Time `json:\"updated_at,omitempty\"`\n\n\t// User-mutable fields\n\tBody *string `json:\"body\"`\n\t// User-initialized fields\n\tPath     *string `json:\"path,omitempty\"`\n\tPosition *int    `json:\"position,omitempty\"`\n}\n```\nRepositoryComment represents a comment for a commit, file, or line in a repository.\n\n```go\nfunc (r *RepositoryComment) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetCommitID() string\n```\nGetCommitID returns the CommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetPosition() int\n```\nGetPosition returns the Position field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (r *RepositoryComment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetUpdatedAt() time.Time\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryComment) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\nfunc (r RepositoryComment) String() string\n```\n\n```go\ntype RepositoryCommit struct {\n\tNodeID      *string   `json:\"node_id,omitempty\"`\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\tHTMLURL     *string   `json:\"html_url,omitempty\"`\n\tURL         *string   `json:\"url,omitempty\"`\n\tCommentsURL *string   `json:\"comments_url,omitempty\"`\n\n\t// Details about how many changes were made in this commit. Only filled in during GetCommit!\n\tStats *CommitStats `json:\"stats,omitempty\"`\n\t// Details about which files, and how this commit touched. Only filled in during GetCommit!\n\tFiles []*CommitFile `json:\"files,omitempty\"`\n}\n```\nRepositoryCommit represents a commit in a repo. Note that it's wrapping a Commit, so author/committer information is in two places, but contain different details about them: in RepositoryCommit \"github details\", in Commit - \"git details\".\n\n```go\nfunc (r *RepositoryCommit) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (r *RepositoryCommit) GetCommentsURL() string\n```\nGetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryCommit) GetCommit() *Commit\n```\nGetCommit returns the Commit field.\n\n```go\nfunc (r *RepositoryCommit) GetCommitter() *User\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (r *RepositoryCommit) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryCommit) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryCommit) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryCommit) GetStats() *CommitStats\n```\nGetStats returns the Stats field.\n\n```go\nfunc (r *RepositoryCommit) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r RepositoryCommit) String() string\n```\n\n```go\ntype RepositoryContent struct {\n\tType *string `json:\"type,omitempty\"`\n\t// Target is only set if the type is \"symlink\" and the target is not a normal file.\n\t// If Target is set, Path will be the symlink path.\n\tTarget   *string `json:\"target,omitempty\"`\n\tEncoding *string `json:\"encoding,omitempty\"`\n\tSize     *int    `json:\"size,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tPath     *string `json:\"path,omitempty\"`\n\t// Content contains the actual file content, which may be encoded.\n\t// Callers should call GetContent which will decode the content if\n\t// necessary.\n\tContent     *string `json:\"content,omitempty\"`\n\tSHA         *string `json:\"sha,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\tGitURL      *string `json:\"git_url,omitempty\"`\n\tHTMLURL     *string `json:\"html_url,omitempty\"`\n\tDownloadURL *string `json:\"download_url,omitempty\"`\n}\n```\nRepositoryContent represents a file or directory in a github repository.\n\n```go\nfunc (r *RepositoryContent) GetContent() (string, error)\n```\nGetContent returns the content of r, decoding it if necessary.\n\n```go\nfunc (r *RepositoryContent) GetDownloadURL() string\n```\nGetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetEncoding() string\n```\nGetEncoding returns the Encoding field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetGitURL() string\n```\nGetGitURL returns the GitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetTarget() string\n```\nGetTarget returns the Target field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContent) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r RepositoryContent) String() string\n```\nString converts RepositoryContent to a string. It's primarily for testing.\n\n```go\ntype RepositoryContentFileOptions struct {\n\tMessage   *string       `json:\"message,omitempty\"`\n\tContent   []byte        `json:\"content,omitempty\"` // unencoded\n\tSHA       *string       `json:\"sha,omitempty\"`\n\tBranch    *string       `json:\"branch,omitempty\"`\n\tAuthor    *CommitAuthor `json:\"author,omitempty\"`\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n}\n```\nRepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile.\n\n```go\nfunc (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (r *RepositoryContentFileOptions) GetBranch() string\n```\nGetBranch returns the Branch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (r *RepositoryContentFileOptions) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryContentFileOptions) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryContentGetOptions struct {\n\tRef string `url:\"ref,omitempty\"`\n}\n```\nRepositoryContentGetOptions represents an optional ref parameter, which can be a SHA, branch, or tag\n\n```go\ntype RepositoryContentResponse struct {\n\tContent *RepositoryContent `json:\"content,omitempty\"`\n\tCommit  `json:\"commit,omitempty\"`\n}\n```\nRepositoryContentResponse holds the parsed response from CreateFile, UpdateFile, and DeleteFile.\n\n```go\nfunc (r *RepositoryContentResponse) GetContent() *RepositoryContent\n```\nGetContent returns the Content field.\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 RepositoryDispatchEvent struct {\n\t// Action is the event_type that submitted with the repository dispatch payload. Value can be any string.\n\tAction        *string         `json:\"action,omitempty\"`\n\tBranch        *string         `json:\"branch,omitempty\"`\n\tClientPayload json.RawMessage `json:\"client_payload,omitempty\"`\n\tRepo          *Repository     `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nRepositoryDispatchEvent is triggered when a client sends a POST request to the repository dispatch event endpoint.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#repositorydispatchevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#repositorydispatchevent)\n\n```go\nfunc (r *RepositoryDispatchEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryDispatchEvent) GetBranch() string\n```\nGetBranch returns the Branch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryDispatchEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *RepositoryDispatchEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (r *RepositoryDispatchEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (r *RepositoryDispatchEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype RepositoryEvent struct {\n\t// Action is the action that was performed. Possible values are: \"created\",\n\t// \"deleted\" (organization hooks only), \"archived\", \"unarchived\", \"edited\", \"renamed\",\n\t// \"transferred\", \"publicized\", or \"privatized\".\n\tAction *string     `json:\"action,omitempty\"`\n\tRepo   *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nRepositoryEvent is triggered when a repository is created, archived, unarchived, renamed, edited, transferred, made public, or made private. Organization hooks are also trigerred when a repository is deleted. The Webhook event name is \"repository\".\n\nEvents of this type are not visible in timelines, they are only used to trigger organization webhooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#repositoryevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#repositoryevent)\n\n```go\nfunc (r *RepositoryEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *RepositoryEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (r *RepositoryEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (r *RepositoryEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype RepositoryInvitation struct {\n\tID      *int64      `json:\"id,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\tInvitee *User       `json:\"invitee,omitempty\"`\n\tInviter *User       `json:\"inviter,omitempty\"`\n\n\t// Permissions represents the permissions that the associated user will have\n\t// on the repository. Possible values are: \"read\", \"write\", \"admin\".\n\tPermissions *string    `json:\"permissions,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tURL         *string    `json:\"url,omitempty\"`\n\tHTMLURL     *string    `json:\"html_url,omitempty\"`\n}\n```\nRepositoryInvitation represents an invitation to collaborate on a repo.\n\n```go\nfunc (r *RepositoryInvitation) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryInvitation) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryInvitation) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryInvitation) GetInvitee() *User\n```\nGetInvitee returns the Invitee field.\n\n```go\nfunc (r *RepositoryInvitation) GetInviter() *User\n```\nGetInviter returns the Inviter field.\n\n```go\nfunc (r *RepositoryInvitation) GetPermissions() string\n```\nGetPermissions returns the Permissions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryInvitation) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (r *RepositoryInvitation) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryLicense struct {\n\tName *string `json:\"name,omitempty\"`\n\tPath *string `json:\"path,omitempty\"`\n\n\tSHA         *string  `json:\"sha,omitempty\"`\n\tSize        *int     `json:\"size,omitempty\"`\n\tURL         *string  `json:\"url,omitempty\"`\n\tHTMLURL     *string  `json:\"html_url,omitempty\"`\n\tGitURL      *string  `json:\"git_url,omitempty\"`\n\tDownloadURL *string  `json:\"download_url,omitempty\"`\n\tType        *string  `json:\"type,omitempty\"`\n\tContent     *string  `json:\"content,omitempty\"`\n\tEncoding    *string  `json:\"encoding,omitempty\"`\n\tLicense     *License `json:\"license,omitempty\"`\n}\n```\nRepositoryLicense represents the license for a repository.\n\n```go\nfunc (r *RepositoryLicense) GetContent() string\n```\nGetContent returns the Content field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetDownloadURL() string\n```\nGetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetEncoding() string\n```\nGetEncoding returns the Encoding field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetGitURL() string\n```\nGetGitURL returns the GitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetLicense() *License\n```\nGetLicense returns the License field.\n\n```go\nfunc (r *RepositoryLicense) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryLicense) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l RepositoryLicense) String() string\n```\n\n```go\ntype RepositoryListAllOptions struct {\n\t// ID of the last repository seen\n\tSince int64 `url:\"since,omitempty\"`\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\t// How to sort the repository list. Can be one of created, updated, pushed,\n\t// full_name. Default is \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories. Can be one of asc or desc.\n\t// Default when using full_name: asc; otherwise desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListByOrgOptions specifies the optional parameters to the RepositoriesService.ListByOrg method.\n\n```go\ntype RepositoryListForksOptions struct {\n\t// How to sort the forks list. Possible values are: newest, oldest,\n\t// watchers. Default is \"newest\".\n\tSort string `url:\"sort,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListForksOptions specifies the optional parameters to the RepositoriesService.ListForks method.\n\n```go\ntype RepositoryListOptions struct {\n\t// Visibility of repositories to list. Can be one of all, public, or private.\n\t// Default: all\n\tVisibility string `url:\"visibility,omitempty\"`\n\n\t// List repos of given affiliation[s].\n\t// Comma-separated list of values. Can include:\n\t// * owner: Repositories that are owned by the authenticated user.\n\t// * collaborator: Repositories that the user has been added to as a\n\t//   collaborator.\n\t// * organization_member: Repositories that the user has access to through\n\t//   being a member of an organization. This includes every repository on\n\t//   every team that the user is on.\n\t// Default: owner,collaborator,organization_member\n\tAffiliation string `url:\"affiliation,omitempty\"`\n\n\t// Type of repositories to list.\n\t// Can be one of all, owner, public, private, member. Default: all\n\t// Will cause a 422 error if used in the same request as visibility or\n\t// affiliation.\n\tType string `url:\"type,omitempty\"`\n\n\t// How to sort the repository list. Can be one of created, updated, pushed,\n\t// full_name. Default: full_name\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort repositories. Can be one of asc or desc.\n\t// Default: when using full_name: asc; otherwise desc\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListOptions specifies the optional parameters to the RepositoriesService.List method.\n\n```go\ntype RepositoryMergeRequest struct {\n\tBase          *string `json:\"base,omitempty\"`\n\tHead          *string `json:\"head,omitempty\"`\n\tCommitMessage *string `json:\"commit_message,omitempty\"`\n}\n```\nRepositoryMergeRequest represents a request to merge a branch in a repository.\n\n```go\nfunc (r *RepositoryMergeRequest) GetBase() string\n```\nGetBase returns the Base field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryMergeRequest) GetCommitMessage() string\n```\nGetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryMergeRequest) GetHead() string\n```\nGetHead returns the Head field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryParticipation struct {\n\tAll   []int `json:\"all,omitempty\"`\n\tOwner []int `json:\"owner,omitempty\"`\n}\n```\nRepositoryParticipation is the number of commits by everyone who has contributed to the repository (including the owner) as well as the number of commits by the owner themself.\n\n```go\nfunc (r RepositoryParticipation) String() string\n```\n\n```go\ntype RepositoryPermissionLevel struct {\n\t// Possible values: \"admin\", \"write\", \"read\", \"none\"\n\tPermission *string `json:\"permission,omitempty\"`\n\n\tUser *User `json:\"user,omitempty\"`\n}\n```\nRepositoryPermissionLevel represents the permission level an organization member has for a given repository.\n\n```go\nfunc (r *RepositoryPermissionLevel) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryPermissionLevel) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype RepositoryRelease struct {\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\n\t// The following fields are not used in CreateRelease or EditRelease:\n\tID          *int64          `json:\"id,omitempty\"`\n\tCreatedAt   *Timestamp      `json:\"created_at,omitempty\"`\n\tPublishedAt *Timestamp      `json:\"published_at,omitempty\"`\n\tURL         *string         `json:\"url,omitempty\"`\n\tHTMLURL     *string         `json:\"html_url,omitempty\"`\n\tAssetsURL   *string         `json:\"assets_url,omitempty\"`\n\tAssets      []*ReleaseAsset `json:\"assets,omitempty\"`\n\tUploadURL   *string         `json:\"upload_url,omitempty\"`\n\tZipballURL  *string         `json:\"zipball_url,omitempty\"`\n\tTarballURL  *string         `json:\"tarball_url,omitempty\"`\n\tAuthor      *User           `json:\"author,omitempty\"`\n\tNodeID      *string         `json:\"node_id,omitempty\"`\n}\n```\nRepositoryRelease represents a GitHub release in a repository.\n\n```go\nfunc (r *RepositoryRelease) GetAssetsURL() string\n```\nGetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (r *RepositoryRelease) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetPrerelease() bool\n```\nGetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetPublishedAt() Timestamp\n```\nGetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetTagName() string\n```\nGetTagName returns the TagName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetTarballURL() string\n```\nGetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetTargetCommitish() string\n```\nGetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetUploadURL() string\n```\nGetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetZipballURL() string\n```\nGetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r RepositoryRelease) String() string\n```\n\n```go\ntype RepositoryTag struct {\n\tName       *string `json:\"name,omitempty\"`\n\tCommit     *Commit `json:\"commit,omitempty\"`\n\tZipballURL *string `json:\"zipball_url,omitempty\"`\n\tTarballURL *string `json:\"tarball_url,omitempty\"`\n}\n```\nRepositoryTag represents a repository tag.\n\n```go\nfunc (r *RepositoryTag) GetCommit() *Commit\n```\nGetCommit returns the Commit field.\n\n```go\nfunc (r *RepositoryTag) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryTag) GetTarballURL() string\n```\nGetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryTag) GetZipballURL() string\n```\nGetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryVulnerabilityAlertEvent struct {\n\t// Action is the action that was performed. Possible values are: \"create\", \"dismiss\", \"resolve\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t//The security alert of the vulnerable dependency.\n\tAlert *struct {\n\t\tID                  *int64     `json:\"id,omitempty\"`\n\t\tAffectedRange       *string    `json:\"affected_range,omitempty\"`\n\t\tAffectedPackageName *string    `json:\"affected_package_name,omitempty\"`\n\t\tExternalReference   *string    `json:\"external_reference,omitempty\"`\n\t\tExternalIdentifier  *string    `json:\"external_identifier,omitempty\"`\n\t\tFixedIn             *string    `json:\"fixed_in,omitempty\"`\n\t\tDismisser           *User      `json:\"dismisser,omitempty\"`\n\t\tDismissReason       *string    `json:\"dismiss_reason,omitempty\"`\n\t\tDismissedAt         *Timestamp `json:\"dismissed_at,omitempty\"`\n\t} `json:\"alert,omitempty\"`\n\n\t//The repository of the vulnerable dependency.\n\tRepository *Repository `json:\"repository,omitempty\"`\n}\n```\nRepositoryVulnerabilityAlertEvent is triggered when a security alert is created, dismissed, or resolved.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#repositoryvulnerabilityalertevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#repositoryvulnerabilityalertevent)\n\n```go\nfunc (r *RepositoryVulnerabilityAlertEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\ntype RequestedAction struct {\n\tIdentifier string `json:\"identifier\"` // The integrator reference of the action requested by the user.\n}\n```\nRequestedAction is included in a CheckRunEvent when a user has invoked an action, i.e. when the CheckRunEvent's Action field is \"requested\\_action\".\n\n```go\ntype RequireLinearHistory struct {\n\tEnabled bool `json:\"enabled\"`\n}\n```\nRequireLinearHistory represents the configuration to enfore branches with no merge commit.\n\n```go\ntype RequiredStatusChecks struct {\n\t// Require branches to be up to date before merging. (Required.)\n\tStrict bool `json:\"strict\"`\n\t// The list of status checks to require in order to merge into this\n\t// branch. (Required; use []string{} instead of nil for empty list.)\n\tContexts []string `json:\"contexts\"`\n}\n```\nRequiredStatusChecks represents the protection status of a individual branch.\n\n```go\ntype RequiredStatusChecksRequest struct {\n\tStrict   *bool    `json:\"strict,omitempty\"`\n\tContexts []string `json:\"contexts,omitempty\"`\n}\n```\nRequiredStatusChecksRequest represents a request to edit a protected branch's status checks.\n\n```go\nfunc (r *RequiredStatusChecksRequest) GetStrict() bool\n```\nGetStrict returns the Strict field if it's non-nil, zero value otherwise.\n\n```go\ntype Response struct {\n\t*http.Response\n\n\t// These fields provide the page values for paginating through a set of\n\t// results. Any or all of these may be set to the zero value for\n\t// responses that are not part of a paginated set, or for which there\n\t// are no additional pages.\n\t//\n\t// These fields support what is called \"offset pagination\" and should\n\t// be used with the ListOptions struct.\n\tNextPage  int\n\tPrevPage  int\n\tFirstPage int\n\tLastPage  int\n\n\t// Additionally, some APIs support \"cursor pagination\" instead of offset.\n\t// This means that a token points directly to the next record which\n\t// can lead to O(1) performance compared to O(n) performance provided\n\t// by offset pagination.\n\t//\n\t// For APIs that support cursor pagination (such as\n\t// TeamsService.ListIDPGroupsInOrganization), the following field\n\t// will be populated to point to the next page.\n\t//\n\t// To use this token, set ListCursorOptions.Page to this value before\n\t// calling the endpoint again.\n\tNextPageToken string\n\n\t// Explicitly specify the Rate type so Rate's String() receiver doesn't\n\t// propagate to Response.\n\tRate Rate\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 Reviewers struct {\n\tUsers []*User `json:\"users,omitempty\"`\n\tTeams []*Team `json:\"teams,omitempty\"`\n}\n```\nReviewers represents reviewers of a pull request.\n\n```go\ntype ReviewersRequest struct {\n\tNodeID        *string  `json:\"node_id,omitempty\"`\n\tReviewers     []string `json:\"reviewers,omitempty\"`\n\tTeamReviewers []string `json:\"team_reviewers,omitempty\"`\n}\n```\nReviewersRequest specifies users and teams for a pull request review request.\n\n```go\nfunc (r *ReviewersRequest) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\ntype Runner struct {\n\tID     *int64          `json:\"id,omitempty\"`\n\tName   *string         `json:\"name,omitempty\"`\n\tOS     *string         `json:\"os,omitempty\"`\n\tStatus *string         `json:\"status,omitempty\"`\n\tBusy   *bool           `json:\"busy,omitempty\"`\n\tLabels []*RunnerLabels `json:\"labels,omitempty\"`\n}\n```\nRunner represents a self-hosted runner registered with a repository.\n\n```go\nfunc (r *Runner) GetBusy() bool\n```\nGetBusy returns the Busy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Runner) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Runner) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Runner) GetOS() string\n```\nGetOS returns the OS field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Runner) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype RunnerApplicationDownload struct {\n\tOS           *string `json:\"os,omitempty\"`\n\tArchitecture *string `json:\"architecture,omitempty\"`\n\tDownloadURL  *string `json:\"download_url,omitempty\"`\n\tFilename     *string `json:\"filename,omitempty\"`\n}\n```\nRunnerApplicationDownload represents a binary for the self-hosted runner application that can be downloaded.\n\n```go\nfunc (r *RunnerApplicationDownload) GetArchitecture() string\n```\nGetArchitecture returns the Architecture field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerApplicationDownload) GetDownloadURL() string\n```\nGetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerApplicationDownload) GetFilename() string\n```\nGetFilename returns the Filename field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerApplicationDownload) GetOS() string\n```\nGetOS returns the OS field if it's non-nil, zero value otherwise.\n\n```go\ntype RunnerLabels struct {\n\tID   *int64  `json:\"id,omitempty\"`\n\tName *string `json:\"name,omitempty\"`\n\tType *string `json:\"type,omitempty\"`\n}\n```\nRunnerLabels represents a collection of labels attached to each runner.\n\n```go\nfunc (r *RunnerLabels) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerLabels) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerLabels) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype Runners struct {\n\tTotalCount int       `json:\"total_count\"`\n\tRunners    []*Runner `json:\"runners\"`\n}\n```\nRunners represents a collection of self-hosted runners for a repository.\n\n```go\ntype Scope string\n```\nScope models a GitHub authorization scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth/#scopes](https://docs.github.com/en/free-pro-team@latest/rest/reference/oauth/#scopes)\n\n```go\nconst (\n\tScopeNone           Scope = \"(no scope)\" // REVISIT: is this actually returned, or just a documentation artifact?\n\tScopeUser           Scope = \"user\"\n\tScopeUserEmail      Scope = \"user:email\"\n\tScopeUserFollow     Scope = \"user:follow\"\n\tScopePublicRepo     Scope = \"public_repo\"\n\tScopeRepo           Scope = \"repo\"\n\tScopeRepoDeployment Scope = \"repo_deployment\"\n\tScopeRepoStatus     Scope = \"repo:status\"\n\tScopeDeleteRepo     Scope = \"delete_repo\"\n\tScopeNotifications  Scope = \"notifications\"\n\tScopeGist           Scope = \"gist\"\n\tScopeReadRepoHook   Scope = \"read:repo_hook\"\n\tScopeWriteRepoHook  Scope = \"write:repo_hook\"\n\tScopeAdminRepoHook  Scope = \"admin:repo_hook\"\n\tScopeAdminOrgHook   Scope = \"admin:org_hook\"\n\tScopeReadOrg        Scope = \"read:org\"\n\tScopeWriteOrg       Scope = \"write:org\"\n\tScopeAdminOrg       Scope = \"admin:org\"\n\tScopeReadPublicKey  Scope = \"read:public_key\"\n\tScopeWritePublicKey Scope = \"write:public_key\"\n\tScopeAdminPublicKey Scope = \"admin:public_key\"\n\tScopeReadGPGKey     Scope = \"read:gpg_key\"\n\tScopeWriteGPGKey    Scope = \"write:gpg_key\"\n\tScopeAdminGPGKey    Scope = \"admin:gpg_key\"\n\tScopeSecurityEvents Scope = \"security_events\"\n)\n```\nThis is the set of scopes for GitHub API V3\n\n```go\ntype SearchOptions struct {\n\t// How to sort the search results. Possible values are:\n\t//   - for repositories: stars, fork, updated\n\t//   - for commits: author-date, committer-date\n\t//   - for code: indexed\n\t//   - for issues: comments, created, updated\n\t//   - for users: followers, repositories, joined\n\t//\n\t// Default is to sort by best match.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Sort order if sort parameter is provided. Possible values are: asc,\n\t// desc. Default is desc.\n\tOrder string `url:\"order,omitempty\"`\n\n\t// Whether to retrieve text match metadata with a query\n\tTextMatch bool `url:\"-\"`\n\n\tListOptions\n}\n```\nSearchOptions specifies optional parameters to the SearchService methods.\n\n```go\ntype SearchService service\n```\nSearchService provides access to the search related functions in the GitHub API.\n\nEach method takes a query string defining the search keywords and any search qualifiers. For example, when searching issues, the query \"gopher is:issue language:go\" will search for issues containing the word \"gopher\" in Go repositories. The method call\n\n\topts :=  \u0026github.SearchOptions{Sort: \"created\", Order: \"asc\"}\n\tcl.Search.Issues(ctx, \"gopher is:issue language:go\", opts)\n\nwill search for such issues, sorting by creation date in ascending order (i.e., oldest first).\n\nIf query includes multiple conditions, it MUST NOT include \"+\" as the condition separator. You have to use \" \" as the separator instead. For example, querying with \"language:c++\" and \"leveldb\", then query should be \"language:c++ leveldb\" but not \"language:c+++leveldb\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/)\n\n```go\nfunc (s *SearchService) Code(ctx context.Context, query string, opts *SearchOptions) (*CodeSearchResult, *Response, error)\n```\nCode searches code via various criteria.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-code](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-code)\n\n```go\nfunc (s *SearchService) Commits(ctx context.Context, query string, opts *SearchOptions) (*CommitsSearchResult, *Response, error)\n```\nCommits searches commits via various criteria.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-commits](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-commits)\n\n```go\nfunc (s *SearchService) Issues(ctx context.Context, query string, opts *SearchOptions) (*IssuesSearchResult, *Response, error)\n```\nIssues searches issues via various criteria.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-issues-and-pull-requests](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-issues-and-pull-requests)\n\n```go\nfunc (s *SearchService) Labels(ctx context.Context, repoID int64, query string, opts *SearchOptions) (*LabelsSearchResult, *Response, error)\n```\nLabels searches labels in the repository with ID repoID via various criteria.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-labels](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-labels)\n\n```go\nfunc (s *SearchService) Repositories(ctx context.Context, query string, opts *SearchOptions) (*RepositoriesSearchResult, *Response, error)\n```\nRepositories searches repositories via various criteria.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-repositories](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-repositories)\n\n```go\nfunc (s *SearchService) Topics(ctx context.Context, query string, opts *SearchOptions) (*TopicsSearchResult, *Response, error)\n```\nTopics finds topics via various criteria. Results are sorted by best match. Please see [https://help.github.com/en/articles/searching-topics](https://help.github.com/en/articles/searching-topics) for more information about search qualifiers.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-topics](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-topics)\n\n```go\nfunc (s *SearchService) Users(ctx context.Context, query string, opts *SearchOptions) (*UsersSearchResult, *Response, error)\n```\nUsers searches users via various criteria.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-users](https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-users)\n\n```go\ntype Secret struct {\n\tName                    string    `json:\"name\"`\n\tCreatedAt               Timestamp `json:\"created_at\"`\n\tUpdatedAt               Timestamp `json:\"updated_at\"`\n\tVisibility              string    `json:\"visibility,omitempty\"`\n\tSelectedRepositoriesURL string    `json:\"selected_repositories_url,omitempty\"`\n}\n```\nSecret represents a repository action secret.\n\n```go\ntype Secrets struct {\n\tTotalCount int       `json:\"total_count\"`\n\tSecrets    []*Secret `json:\"secrets\"`\n}\n```\nSecrets represents one item from the ListSecrets response.\n\n```go\ntype SelectedRepoIDs []int64\n```\nSelectedRepoIDs are the repository IDs that have access to the secret.\n\n```go\ntype SelectedReposList struct {\n\tTotalCount   *int          `json:\"total_count,omitempty\"`\n\tRepositories []*Repository `json:\"repositories,omitempty\"`\n}\n```\nSelectedReposList represents the list of repositories selected for an organization secret.\n\n```go\nfunc (s *SelectedReposList) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ServiceHook struct {\n\tName            *string    `json:\"name,omitempty\"`\n\tEvents          []string   `json:\"events,omitempty\"`\n\tSupportedEvents []string   `json:\"supported_events,omitempty\"`\n\tSchema          [][]string `json:\"schema,omitempty\"`\n}\n```\nServiceHook represents a hook that has configuration settings, a list of available events, and default events.\n\n```go\nfunc (s *ServiceHook) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ServiceHook) String() string\n```\n\n```go\ntype SignatureVerification struct {\n\tVerified  *bool   `json:\"verified,omitempty\"`\n\tReason    *string `json:\"reason,omitempty\"`\n\tSignature *string `json:\"signature,omitempty\"`\n\tPayload   *string `json:\"payload,omitempty\"`\n}\n```\nSignatureVerification represents GPG signature verification.\n\n```go\nfunc (s *SignatureVerification) GetPayload() string\n```\nGetPayload returns the Payload field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SignatureVerification) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SignatureVerification) GetSignature() string\n```\nGetSignature returns the Signature field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SignatureVerification) GetVerified() bool\n```\nGetVerified returns the Verified field if it's non-nil, zero value otherwise.\n\n```go\ntype SignaturesProtectedBranch struct {\n\tURL *string `json:\"url,omitempty\"`\n\t// Commits pushed to matching branches must have verified signatures.\n\tEnabled *bool `json:\"enabled,omitempty\"`\n}\n```\nSignaturesProtectedBranch represents the protection status of an individual branch.\n\n```go\nfunc (s *SignaturesProtectedBranch) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SignaturesProtectedBranch) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype Source struct {\n\tID    *int64  `json:\"id,omitempty\"`\n\tURL   *string `json:\"url,omitempty\"`\n\tActor *User   `json:\"actor,omitempty\"`\n\tType  *string `json:\"type,omitempty\"`\n\tIssue *Issue  `json:\"issue,omitempty\"`\n}\n```\nSource represents a reference's source.\n\n```go\nfunc (s *Source) GetActor() *User\n```\nGetActor returns the Actor field.\n\n```go\nfunc (s *Source) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Source) GetIssue() *Issue\n```\nGetIssue returns the Issue field.\n\n```go\nfunc (s *Source) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Source) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype SourceImportAuthor struct {\n\tID         *int64  `json:\"id,omitempty\"`\n\tRemoteID   *string `json:\"remote_id,omitempty\"`\n\tRemoteName *string `json:\"remote_name,omitempty\"`\n\tEmail      *string `json:\"email,omitempty\"`\n\tName       *string `json:\"name,omitempty\"`\n\tURL        *string `json:\"url,omitempty\"`\n\tImportURL  *string `json:\"import_url,omitempty\"`\n}\n```\nSourceImportAuthor identifies an author imported from a source repository.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/migration/source\\_imports/#get-commit-authors](https://docs.github.com/en/free-pro-team@latest/rest/reference/migration/source_imports/#get-commit-authors)\n\n```go\nfunc (s *SourceImportAuthor) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SourceImportAuthor) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SourceImportAuthor) GetImportURL() string\n```\nGetImportURL returns the ImportURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SourceImportAuthor) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SourceImportAuthor) GetRemoteID() string\n```\nGetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SourceImportAuthor) GetRemoteName() string\n```\nGetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SourceImportAuthor) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a SourceImportAuthor) String() string\n```\n\n```go\ntype StarEvent struct {\n\t// Action is the action that was performed. Possible values are: \"created\" or \"deleted\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// StarredAt is the time the star was created. It will be null for the \"deleted\" action.\n\tStarredAt *Timestamp `json:\"starred_at,omitempty\"`\n}\n```\nStarEvent is triggered when a star is added or removed from a repository. The Webhook event name is \"star\".\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#starevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#starevent)\n\n```go\nfunc (s *StarEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StarEvent) GetStarredAt() Timestamp\n```\nGetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise.\n\n```go\ntype Stargazer struct {\n\tStarredAt *Timestamp `json:\"starred_at,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n}\n```\nStargazer represents a user that has starred a repository.\n\n```go\nfunc (s *Stargazer) GetStarredAt() Timestamp\n```\nGetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Stargazer) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype StarredRepository struct {\n\tStarredAt  *Timestamp  `json:\"starred_at,omitempty\"`\n\tRepository *Repository `json:\"repo,omitempty\"`\n}\n```\nStarredRepository is returned by ListStarred.\n\n```go\nfunc (s *StarredRepository) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (s *StarredRepository) GetStarredAt() Timestamp\n```\nGetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise.\n\n```go\ntype StatusEvent struct {\n\tSHA *string `json:\"sha,omitempty\"`\n\t// State is the new state. Possible values are: \"pending\", \"success\", \"failure\", \"error\".\n\tState       *string   `json:\"state,omitempty\"`\n\tDescription *string   `json:\"description,omitempty\"`\n\tTargetURL   *string   `json:\"target_url,omitempty\"`\n\tBranches    []*Branch `json:\"branches,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tID           *int64            `json:\"id,omitempty\"`\n\tName         *string           `json:\"name,omitempty\"`\n\tContext      *string           `json:\"context,omitempty\"`\n\tCommit       *RepositoryCommit `json:\"commit,omitempty\"`\n\tCreatedAt    *Timestamp        `json:\"created_at,omitempty\"`\n\tUpdatedAt    *Timestamp        `json:\"updated_at,omitempty\"`\n\tRepo         *Repository       `json:\"repository,omitempty\"`\n\tSender       *User             `json:\"sender,omitempty\"`\n\tInstallation *Installation     `json:\"installation,omitempty\"`\n}\n```\nStatusEvent is triggered when the status of a Git commit changes. The Webhook event name is \"status\".\n\nEvents of this type are not visible in timelines, they are only used to trigger hooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#statusevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#statusevent)\n\n```go\nfunc (s *StatusEvent) GetCommit() *RepositoryCommit\n```\nGetCommit returns the Commit field.\n\n```go\nfunc (s *StatusEvent) GetContext() string\n```\nGetContext returns the Context field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *StatusEvent) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (s *StatusEvent) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (s *StatusEvent) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetTargetURL() string\n```\nGetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *StatusEvent) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype Subscription struct {\n\tSubscribed *bool      `json:\"subscribed,omitempty\"`\n\tIgnored    *bool      `json:\"ignored,omitempty\"`\n\tReason     *string    `json:\"reason,omitempty\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n\n\t// only populated for repository subscriptions\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n\n\t// only populated for thread subscriptions\n\tThreadURL *string `json:\"thread_url,omitempty\"`\n}\n```\nSubscription identifies a repository or thread subscription.\n\n```go\nfunc (s *Subscription) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetIgnored() bool\n```\nGetIgnored returns the Ignored field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetSubscribed() bool\n```\nGetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetThreadURL() string\n```\nGetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype Tag struct {\n\tTag          *string                `json:\"tag,omitempty\"`\n\tSHA          *string                `json:\"sha,omitempty\"`\n\tURL          *string                `json:\"url,omitempty\"`\n\tMessage      *string                `json:\"message,omitempty\"`\n\tTagger       *CommitAuthor          `json:\"tagger,omitempty\"`\n\tObject       *GitObject             `json:\"object,omitempty\"`\n\tVerification *SignatureVerification `json:\"verification,omitempty\"`\n\tNodeID       *string                `json:\"node_id,omitempty\"`\n}\n```\nTag represents a tag object.\n\n```go\nfunc (t *Tag) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tag) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tag) GetObject() *GitObject\n```\nGetObject returns the Object field.\n\n```go\nfunc (t *Tag) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tag) GetTag() string\n```\nGetTag returns the Tag field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tag) GetTagger() *CommitAuthor\n```\nGetTagger returns the Tagger field.\n\n```go\nfunc (t *Tag) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tag) GetVerification() *SignatureVerification\n```\nGetVerification returns the Verification field.\n\n```go\ntype TaskStep struct {\n\tName        *string    `json:\"name,omitempty\"`\n\tStatus      *string    `json:\"status,omitempty\"`\n\tConclusion  *string    `json:\"conclusion,omitempty\"`\n\tNumber      *int64     `json:\"number,omitempty\"`\n\tStartedAt   *Timestamp `json:\"started_at,omitempty\"`\n\tCompletedAt *Timestamp `json:\"completed_at,omitempty\"`\n}\n```\nTaskStep represents a single task step from a sequence of tasks of a job.\n\n```go\nfunc (t *TaskStep) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TaskStep) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TaskStep) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TaskStep) GetNumber() int64\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TaskStep) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TaskStep) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype Team struct {\n\tID          *int64  `json:\"id,omitempty\"`\n\tNodeID      *string `json:\"node_id,omitempty\"`\n\tName        *string `json:\"name,omitempty\"`\n\tDescription *string `json:\"description,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\tSlug        *string `json:\"slug,omitempty\"`\n\n\t// Permission specifies the default permission for repositories owned by the team.\n\tPermission *string `json:\"permission,omitempty\"`\n\n\t// Privacy identifies the level of privacy this team should have.\n\t// Possible values are:\n\t//     secret - only visible to organization owners and members of this team\n\t//     closed - visible to all members of this organization\n\t// Default is \"secret\".\n\tPrivacy *string `json:\"privacy,omitempty\"`\n\n\tMembersCount    *int          `json:\"members_count,omitempty\"`\n\tReposCount      *int          `json:\"repos_count,omitempty\"`\n\tOrganization    *Organization `json:\"organization,omitempty\"`\n\tMembersURL      *string       `json:\"members_url,omitempty\"`\n\tRepositoriesURL *string       `json:\"repositories_url,omitempty\"`\n\tParent          *Team         `json:\"parent,omitempty\"`\n\n\t// LDAPDN is only available in GitHub Enterprise and when the team\n\t// membership is synchronized with LDAP.\n\tLDAPDN *string `json:\"ldap_dn,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) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetMembersCount() int\n```\nGetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetMembersURL() string\n```\nGetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (t *Team) GetParent() *Team\n```\nGetParent returns the Parent field.\n\n```go\nfunc (t *Team) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetPrivacy() string\n```\nGetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetReposCount() int\n```\nGetReposCount returns the ReposCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetRepositoriesURL() string\n```\nGetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t Team) String() string\n```\n\n```go\ntype TeamAddEvent struct {\n\tTeam *Team       `json:\"team,omitempty\"`\n\tRepo *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nTeamAddEvent is triggered when a repository is added to a team. The Webhook event name is \"team\\_add\".\n\nEvents of this type are not visible in timelines. These events are only used to trigger hooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#teamaddevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#teamaddevent)\n\n```go\nfunc (t *TeamAddEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (t *TeamAddEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (t *TeamAddEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (t *TeamAddEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (t *TeamAddEvent) GetTeam() *Team\n```\nGetTeam returns the Team field.\n\n```go\ntype TeamAddTeamMembershipOptions struct {\n\t// Role specifies the role the user should have in the team. Possible\n\t// values are:\n\t//     member - a normal member of the team\n\t//     maintainer - a team maintainer. Able to add/remove other team\n\t//                  members, promote other team members to team\n\t//                  maintainer, and edit the team’s name and description\n\t//\n\t// Default value is \"member\".\n\tRole string `json:\"role,omitempty\"`\n}\n```\nTeamAddTeamMembershipOptions specifies the optional parameters to the TeamsService.AddTeamMembership method.\n\n```go\ntype TeamAddTeamRepoOptions struct {\n\t// Permission specifies the permission to grant the team on this repository.\n\t// Possible values are:\n\t//     pull - team members can pull, but not push to or administer this repository\n\t//     push - team members can pull and push, but not administer this repository\n\t//     admin - team members can pull, push and administer this repository\n\t//     maintain - team members can manage the repository without access to sensitive or destructive actions.\n\t//     triage - team members can proactively manage issues and pull requests without write access.\n\t//\n\t// If not specified, the team's permission attribute will be used.\n\tPermission string `json:\"permission,omitempty\"`\n}\n```\nTeamAddTeamRepoOptions specifies the optional parameters to the TeamsService.AddTeamRepo method.\n\n```go\ntype TeamChange struct {\n\tDescription *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"description,omitempty\"`\n\tName *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"name,omitempty\"`\n\tPrivacy *struct {\n\t\tFrom *string `json:\"from,omitempty\"`\n\t} `json:\"privacy,omitempty\"`\n\tRepository *struct {\n\t\tPermissions *struct {\n\t\t\tFrom *struct {\n\t\t\t\tAdmin *bool `json:\"admin,omitempty\"`\n\t\t\t\tPull  *bool `json:\"pull,omitempty\"`\n\t\t\t\tPush  *bool `json:\"push,omitempty\"`\n\t\t\t} `json:\"from,omitempty\"`\n\t\t} `json:\"permissions,omitempty\"`\n\t} `json:\"repository,omitempty\"`\n}\n```\nTeamChange represents the changes when a team has been edited.\n\n```go\ntype TeamDiscussion struct {\n\tAuthor        *User      `json:\"author,omitempty\"`\n\tBody          *string    `json:\"body,omitempty\"`\n\tBodyHTML      *string    `json:\"body_html,omitempty\"`\n\tBodyVersion   *string    `json:\"body_version,omitempty\"`\n\tCommentsCount *int       `json:\"comments_count,omitempty\"`\n\tCommentsURL   *string    `json:\"comments_url,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tLastEditedAt  *Timestamp `json:\"last_edited_at,omitempty\"`\n\tHTMLURL       *string    `json:\"html_url,omitempty\"`\n\tNodeID        *string    `json:\"node_id,omitempty\"`\n\tNumber        *int       `json:\"number,omitempty\"`\n\tPinned        *bool      `json:\"pinned,omitempty\"`\n\tPrivate       *bool      `json:\"private,omitempty\"`\n\tTeamURL       *string    `json:\"team_url,omitempty\"`\n\tTitle         *string    `json:\"title,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n\tURL           *string    `json:\"url,omitempty\"`\n\tReactions     *Reactions `json:\"reactions,omitempty\"`\n}\n```\nTeamDiscussion represents a GitHub dicussion in a team.\n\n```go\nfunc (t *TeamDiscussion) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (t *TeamDiscussion) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetBodyHTML() string\n```\nGetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetBodyVersion() string\n```\nGetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetCommentsCount() int\n```\nGetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetCommentsURL() string\n```\nGetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetLastEditedAt() Timestamp\n```\nGetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetPinned() bool\n```\nGetPinned returns the Pinned field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (t *TeamDiscussion) GetTeamURL() string\n```\nGetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamDiscussion) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d TeamDiscussion) String() string\n```\n\n```go\ntype TeamEvent struct {\n\tAction  *string     `json:\"action,omitempty\"`\n\tTeam    *Team       `json:\"team,omitempty\"`\n\tChanges *TeamChange `json:\"changes,omitempty\"`\n\tRepo    *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nTeamEvent is triggered when an organization's team is created, modified or deleted. The Webhook event name is \"team\".\n\nEvents of this type are not visible in timelines. These events are only used to trigger hooks.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#teamevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#teamevent)\n\n```go\nfunc (t *TeamEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamEvent) GetChanges() *TeamChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (t *TeamEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (t *TeamEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (t *TeamEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (t *TeamEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (t *TeamEvent) GetTeam() *Team\n```\nGetTeam returns the Team field.\n\n```go\ntype TeamLDAPMapping struct {\n\tID          *int64  `json:\"id,omitempty\"`\n\tLDAPDN      *string `json:\"ldap_dn,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\tName        *string `json:\"name,omitempty\"`\n\tSlug        *string `json:\"slug,omitempty\"`\n\tDescription *string `json:\"description,omitempty\"`\n\tPrivacy     *string `json:\"privacy,omitempty\"`\n\tPermission  *string `json:\"permission,omitempty\"`\n\n\tMembersURL      *string `json:\"members_url,omitempty\"`\n\tRepositoriesURL *string `json:\"repositories_url,omitempty\"`\n}\n```\nTeamLDAPMapping represents the mapping between a GitHub team and an LDAP group.\n\n```go\nfunc (t *TeamLDAPMapping) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetMembersURL() string\n```\nGetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetPrivacy() string\n```\nGetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetRepositoriesURL() string\n```\nGetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamLDAPMapping) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m TeamLDAPMapping) String() string\n```\n\n```go\ntype TeamListTeamMembersOptions struct {\n\t// Role filters members returned by their role in the team. Possible\n\t// values are \"all\", \"member\", \"maintainer\". Default is \"all\".\n\tRole string `url:\"role,omitempty\"`\n\n\tListOptions\n}\n```\nTeamListTeamMembersOptions specifies the optional parameters to the TeamsService.ListTeamMembers method.\n\n```go\ntype TeamProjectOptions struct {\n\t// Permission specifies the permission to grant to the team for this project.\n\t// Possible values are:\n\t//     \"read\" - team members can read, but not write to or administer this project.\n\t//     \"write\" - team members can read and write, but not administer this project.\n\t//     \"admin\" - team members can read, write and administer this project.\n\t//\n\tPermission *string `json:\"permission,omitempty\"`\n}\n```\nTeamProjectOptions specifies the optional parameters to the TeamsService.AddTeamProject method.\n\n```go\nfunc (t *TeamProjectOptions) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\ntype TeamsService service\n```\nTeamsService provides access to the team-related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/)\n\n```go\nfunc (s *TeamsService) AddTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error)\n```\nAddTeamMembershipByID adds or invites a user to a team, given a specified organization ID, by team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) AddTeamMembershipBySlug(ctx context.Context, org, slug, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error)\n```\nAddTeamMembershipBySlug adds or invites a user to a team, given a specified organization name, by team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) AddTeamProjectByID(ctx context.Context, orgID, teamID, projectID int64, opts *TeamProjectOptions) (*Response, error)\n```\nAddTeamProjectByID adds an organization project to a team given the team ID. To add a project to a team or update the team's permission on a project, the authenticated user must have admin permissions for the project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-project-permissions](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-project-permissions)\n\n```go\nfunc (s *TeamsService) AddTeamProjectBySlug(ctx context.Context, org, slug string, projectID int64, opts *TeamProjectOptions) (*Response, error)\n```\nAddTeamProjectBySlug adds an organization project to a team given the team slug. To add a project to a team or update the team's permission on a project, the authenticated user must have admin permissions for the project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-project-permissions](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-project-permissions)\n\n```go\nfunc (s *TeamsService) AddTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string, opts *TeamAddTeamRepoOptions) (*Response, error)\n```\nAddTeamRepoByID adds a repository to be managed by the specified team given the team ID. 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-repository-permissions](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-repository-permissions)\n\n```go\nfunc (s *TeamsService) AddTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string, opts *TeamAddTeamRepoOptions) (*Response, error)\n```\nAddTeamRepoBySlug adds a repository to be managed by the specified team given the team slug. 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-repository-permissions](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#add-or-update-team-repository-permissions)\n\n```go\nfunc (s *TeamsService) CreateCommentByID(ctx context.Context, orgID, teamID int64, discsusionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error)\n```\nCreateCommentByID creates a new comment on a team discussion by team ID. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) CreateCommentBySlug(ctx context.Context, org, slug string, discsusionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error)\n```\nCreateCommentBySlug creates a new comment on a team discussion by team slug. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) CreateDiscussionByID(ctx context.Context, orgID, teamID int64, discussion TeamDiscussion) (*TeamDiscussion, *Response, error)\n```\nCreateDiscussionByID creates a new discussion post on a team's page given Organization and Team ID. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion)\n\n```go\nfunc (s *TeamsService) CreateDiscussionBySlug(ctx context.Context, org, slug string, discussion TeamDiscussion) (*TeamDiscussion, *Response, error)\n```\nCreateDiscussionBySlug creates a new discussion post on a team's page given Organization name and Team's slug. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-discussion)\n\n```go\nfunc (s *TeamsService) CreateOrUpdateIDPGroupConnectionsByID(ctx context.Context, orgID, teamID int64, opts IDPGroupList) (*IDPGroupList, *Response, error)\n```\nCreateOrUpdateIDPGroupConnectionsByID creates, updates, or removes a connection between a team and an IDP group given organization and team IDs.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-or-update-idp-group-connections](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-or-update-idp-group-connections)\n\n```go\nfunc (s *TeamsService) CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org, slug string, opts IDPGroupList) (*IDPGroupList, *Response, error)\n```\nCreateOrUpdateIDPGroupConnectionsBySlug creates, updates, or removes a connection between a team and an IDP group given organization name and team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-or-update-idp-group-connections](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-or-update-idp-group-connections)\n\n```go\nfunc (s *TeamsService) CreateTeam(ctx context.Context, org string, team NewTeam) (*Team, *Response, error)\n```\nCreateTeam creates a new team within an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#create-a-team)\n\n```go\nfunc (s *TeamsService) DeleteCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int) (*Response, error)\n```\nDeleteCommentByID deletes a comment on a team discussion by team ID. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) DeleteCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int) (*Response, error)\n```\nDeleteCommentBySlug deletes a comment on a team discussion by team slug. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) DeleteDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*Response, error)\n```\nDeleteDiscussionByID deletes a discussion from team's page given Organization and Team ID. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion)\n\n```go\nfunc (s *TeamsService) DeleteDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*Response, error)\n```\nDeleteDiscussionBySlug deletes a discussion from team's page given Organization name and Team's slug. Authenticated user must grant write:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-discussion)\n\n```go\nfunc (s *TeamsService) DeleteTeamByID(ctx context.Context, orgID, teamID int64) (*Response, error)\n```\nDeleteTeamByID deletes a team referenced by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-team)\n\n```go\nfunc (s *TeamsService) DeleteTeamBySlug(ctx context.Context, org, slug string) (*Response, error)\n```\nDeleteTeamBySlug deletes a team reference by slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#delete-a-team)\n\n```go\nfunc (s *TeamsService) EditCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error)\n```\nEditCommentByID edits the body text of a discussion comment by team ID. Authenticated user must grant write:discussion scope. User is allowed to edit body of a comment only.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) EditCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error)\n```\nEditCommentBySlug edits the body text of a discussion comment by team slug. Authenticated user must grant write:discussion scope. User is allowed to edit body of a comment only.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) EditDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error)\n```\nEditDiscussionByID edits the title and body text of a discussion post given Organization and Team ID. Authenticated user must grant write:discussion scope. User is allowed to change Title and Body of a discussion only.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion)\n\n```go\nfunc (s *TeamsService) EditDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error)\n```\nEditDiscussionBySlug edits the title and body text of a discussion post given Organization name and Team's slug. Authenticated user must grant write:discussion scope. User is allowed to change Title and Body of a discussion only.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-discussion)\n\n```go\nfunc (s *TeamsService) EditTeamByID(ctx context.Context, orgID, teamID int64, team NewTeam, removeParent bool) (*Team, *Response, error)\n```\nEditTeamByID edits a team, given an organization ID, selected by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-team)\n\n```go\nfunc (s *TeamsService) EditTeamBySlug(ctx context.Context, org, slug string, team NewTeam, removeParent bool) (*Team, *Response, error)\n```\nEditTeamBySlug edits a team, given an organization name, by slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#update-a-team)\n\n```go\nfunc (s *TeamsService) GetCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error)\n```\nGetCommentByID gets a specific comment on a team discussion by team ID. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) GetCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error)\n```\nGetCommentBySlug gets a specific comment on a team discussion by team slug. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion-comment](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) GetDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*TeamDiscussion, *Response, error)\n```\nGetDiscussionByID gets a specific discussion on a team's page given Organization and Team ID. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion)\n\n```go\nfunc (s *TeamsService) GetDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*TeamDiscussion, *Response, error)\n```\nGetDiscussionBySlug gets a specific discussion on a team's page given Organization name and Team's slug. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-discussion)\n\n```go\nfunc (s *TeamsService) GetTeamByID(ctx context.Context, orgID, teamID int64) (*Team, *Response, error)\n```\nGetTeamByID fetches a team, given a specified organization ID, by ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-team-by-name](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-team-by-name)\n\n```go\nfunc (s *TeamsService) GetTeamBySlug(ctx context.Context, org, slug string) (*Team, *Response, error)\n```\nGetTeamBySlug fetches a team, given a specified organization name, by slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-team-by-name](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-a-team-by-name)\n\n```go\nfunc (s *TeamsService) GetTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string) (*Membership, *Response, error)\n```\nGetTeamMembershipByID returns the membership status for a user in a team, given a specified organization ID, by team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-team-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) GetTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*Membership, *Response, error)\n```\nGetTeamMembershipBySlug returns the membership status for a user in a team, given a specified organization name, by team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-team-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#get-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) IsTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string) (*Repository, *Response, error)\n```\nIsTeamRepoByID checks if a team, given its ID, manages the specified repository. If the repository is managed by team, a Repository is returned which includes the permissions team has for that repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-repository)\n\n```go\nfunc (s *TeamsService) IsTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string) (*Repository, *Response, error)\n```\nIsTeamRepoBySlug checks if a team, given its slug, manages the specified repository. If the repository is managed by team, a Repository is returned which includes the permissions team has for that repo.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-repository](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-repository)\n\n```go\nfunc (s *TeamsService) ListChildTeamsByParentID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Team, *Response, error)\n```\nListChildTeamsByParentID lists child teams for a parent team given parent ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-child-teams](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-child-teams)\n\n```go\nfunc (s *TeamsService) ListChildTeamsByParentSlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Team, *Response, error)\n```\nListChildTeamsByParentSlug lists child teams for a parent team given parent slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-child-teams](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-child-teams)\n\n```go\nfunc (s *TeamsService) ListCommentsByID(ctx context.Context, orgID, teamID int64, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error)\n```\nListCommentsByID lists all comments on a team discussion by team ID. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussion-comments](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussion-comments)\n\n```go\nfunc (s *TeamsService) ListCommentsBySlug(ctx context.Context, org, slug string, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error)\n```\nListCommentsBySlug lists all comments on a team discussion by team slug. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussion-comments](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussion-comments)\n\n```go\nfunc (s *TeamsService) ListDiscussionsByID(ctx context.Context, orgID, teamID int64, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error)\n```\nListDiscussionsByID lists all discussions on team's page given Organization and Team ID. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussions](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussions)\n\n```go\nfunc (s *TeamsService) ListDiscussionsBySlug(ctx context.Context, org, slug string, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error)\n```\nListDiscussionsBySlug lists all discussions on team's page given Organization name and Team's slug. Authenticated user must grant read:discussion scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussions](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-discussions)\n\n```go\nfunc (s *TeamsService) ListIDPGroupsForTeamByID(ctx context.Context, orgID, teamID int64) (*IDPGroupList, *Response, error)\n```\nListIDPGroupsForTeamByID lists IDP groups connected to a team on GitHub given organization and team IDs.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-idp-groups-for-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-idp-groups-for-a-team)\n\n```go\nfunc (s *TeamsService) ListIDPGroupsForTeamBySlug(ctx context.Context, org, slug string) (*IDPGroupList, *Response, error)\n```\nListIDPGroupsForTeamBySlug lists IDP groups connected to a team on GitHub given organization name and team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-idp-groups-for-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-idp-groups-for-a-team)\n\n```go\nfunc (s *TeamsService) ListIDPGroupsInOrganization(ctx context.Context, org string, opts *ListCursorOptions) (*IDPGroupList, *Response, error)\n```\nListIDPGroupsInOrganization lists IDP groups available in an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-idp-groups-for-an-organization](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-idp-groups-for-an-organization)\n\n```go\nfunc (s *TeamsService) ListPendingTeamInvitationsByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Invitation, *Response, error)\n```\nListPendingTeamInvitationsByID gets pending invitation list of a team, given a specified organization ID, by team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-pending-team-invitations](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-pending-team-invitations)\n\n```go\nfunc (s *TeamsService) ListPendingTeamInvitationsBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Invitation, *Response, error)\n```\nListPendingTeamInvitationsBySlug get pending invitation list of a team, given a specified organization name, by team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-pending-team-invitations](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-pending-team-invitations)\n\n```go\nfunc (s *TeamsService) ListTeamMembersByID(ctx context.Context, orgID, teamID int64, opts *TeamListTeamMembersOptions) ([]*User, *Response, error)\n```\nListTeamMembersByID lists all of the users who are members of a team, given a specified organization ID, by team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-members](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-members)\n\n```go\nfunc (s *TeamsService) ListTeamMembersBySlug(ctx context.Context, org, slug string, opts *TeamListTeamMembersOptions) ([]*User, *Response, error)\n```\nListTeamMembersBySlug lists all of the users who are members of a team, given a specified organization name, by team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-members](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-members)\n\n```go\nfunc (s *TeamsService) ListTeamProjectsByID(ctx context.Context, orgID, teamID int64) ([]*Project, *Response, error)\n```\nListTeamProjectsByID lists the organization projects for a team given the team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-projects)\n\n```go\nfunc (s *TeamsService) ListTeamProjectsBySlug(ctx context.Context, org, slug string) ([]*Project, *Response, error)\n```\nListTeamProjectsBySlug lists the organization projects for a team given the team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-projects)\n\n```go\nfunc (s *TeamsService) ListTeamReposByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Repository, *Response, error)\n```\nListTeamReposByID lists the repositories given a team ID that the specified team has access to.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-repositories](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-repositories)\n\n```go\nfunc (s *TeamsService) ListTeamReposBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Repository, *Response, error)\n```\nListTeamReposBySlug lists the repositories given a team slug that the specified team has access to.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-repositories](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-team-repositories)\n\n```go\nfunc (s *TeamsService) ListTeams(ctx context.Context, org string, opts *ListOptions) ([]*Team, *Response, error)\n```\nListTeams lists all of the teams for an organization.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-teams](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-teams)\n\n```go\nfunc (s *TeamsService) ListUserTeams(ctx context.Context, opts *ListOptions) ([]*Team, *Response, error)\n```\nListUserTeams lists a user's teams GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-teams-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#list-teams-for-the-authenticated-user)\n\n```go\nfunc (s *TeamsService) RemoveTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string) (*Response, error)\n```\nRemoveTeamMembershipByID removes a user from a team, given a specified organization ID, by team ID.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-team-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) RemoveTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*Response, error)\n```\nRemoveTeamMembershipBySlug removes a user from a team, given a specified organization name, by team slug.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-team-membership-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) RemoveTeamProjectByID(ctx context.Context, orgID, teamID, projectID int64) (*Response, error)\n```\nRemoveTeamProjectByID removes an organization project from a team given team ID. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have \"read\" access to both the team and project, or \"admin\" access to the team or project. Note: This endpoint removes the project from the team, but does not delete it.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-project-from-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-project-from-a-team)\n\n```go\nfunc (s *TeamsService) RemoveTeamProjectBySlug(ctx context.Context, org, slug string, projectID int64) (*Response, error)\n```\nRemoveTeamProjectBySlug removes an organization project from a team given team slug. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have \"read\" access to both the team and project, or \"admin\" access to the team or project. Note: This endpoint removes the project from the team, but does not delete it.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-project-from-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-project-from-a-team)\n\n```go\nfunc (s *TeamsService) RemoveTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string) (*Response, error)\n```\nRemoveTeamRepoByID removes a repository from being managed by the specified team given the team ID. Note that this does not delete the repository, it just removes it from the team.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-repository-from-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-repository-from-a-team)\n\n```go\nfunc (s *TeamsService) RemoveTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string) (*Response, error)\n```\nRemoveTeamRepoBySlug removes a repository from being managed by the specified team given the team slug. Note that this does not delete the repository, it just removes it from the team.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-repository-from-a-team](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#remove-a-repository-from-a-team)\n\n```go\nfunc (s *TeamsService) ReviewTeamProjectsByID(ctx context.Context, orgID, teamID, projectID int64) (*Project, *Response, error)\n```\nReviewTeamProjectsByID checks whether a team, given its ID, has read, write, or admin permissions for an organization project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-project)\n\n```go\nfunc (s *TeamsService) ReviewTeamProjectsBySlug(ctx context.Context, org, slug string, projectID int64) (*Project, *Response, error)\n```\nReviewTeamProjectsBySlug checks whether a team, given its slug, has read, write, or admin permissions for an organization project.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/teams/#check-team-permissions-for-a-project)\n\n```go\ntype TemplateRepoRequest struct {\n\t// Name is required when creating a repo.\n\tName        *string `json:\"name,omitempty\"`\n\tOwner       *string `json:\"owner,omitempty\"`\n\tDescription *string `json:\"description,omitempty\"`\n\n\tPrivate *bool `json:\"private,omitempty\"`\n}\n```\nTemplateRepoRequest represents a request to create a repository from a template.\n\n```go\nfunc (t *TemplateRepoRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TemplateRepoRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TemplateRepoRequest) GetOwner() string\n```\nGetOwner returns the Owner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TemplateRepoRequest) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\ntype TextMatch struct {\n\tObjectURL  *string  `json:\"object_url,omitempty\"`\n\tObjectType *string  `json:\"object_type,omitempty\"`\n\tProperty   *string  `json:\"property,omitempty\"`\n\tFragment   *string  `json:\"fragment,omitempty\"`\n\tMatches    []*Match `json:\"matches,omitempty\"`\n}\n```\nTextMatch represents a text match for a SearchResult\n\n```go\nfunc (t *TextMatch) GetFragment() string\n```\nGetFragment returns the Fragment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TextMatch) GetObjectType() string\n```\nGetObjectType returns the ObjectType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TextMatch) GetObjectURL() string\n```\nGetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TextMatch) GetProperty() string\n```\nGetProperty returns the Property field if it's non-nil, zero value otherwise.\n\n```go\nfunc (tm TextMatch) String() string\n```\n\n```go\ntype Timeline struct {\n\tID        *int64  `json:\"id,omitempty\"`\n\tURL       *string `json:\"url,omitempty\"`\n\tCommitURL *string `json:\"commit_url,omitempty\"`\n\n\t// The User object that generated the event.\n\tActor *User `json:\"actor,omitempty\"`\n\n\t// Event identifies the actual type of Event that occurred. Possible values\n\t// are:\n\t//\n\t//     assigned\n\t//       The issue was assigned to the assignee.\n\t//\n\t//     closed\n\t//       The issue was closed by the actor. When the commit_id is present, it\n\t//       identifies the commit that closed the issue using \"closes / fixes #NN\"\n\t//       syntax.\n\t//\n\t//     commented\n\t//       A comment was added to the issue.\n\t//\n\t//     committed\n\t//       A commit was added to the pull request's 'HEAD' branch. Only provided\n\t//       for pull requests.\n\t//\n\t//     cross-referenced\n\t//       The issue was referenced from another issue. The 'source' attribute\n\t//       contains the 'id', 'actor', and 'url' of the reference's source.\n\t//\n\t//     demilestoned\n\t//       The issue was removed from a milestone.\n\t//\n\t//     head_ref_deleted\n\t//       The pull request's branch was deleted.\n\t//\n\t//     head_ref_restored\n\t//       The pull request's branch was restored.\n\t//\n\t//     labeled\n\t//       A label was added to the issue.\n\t//\n\t//     locked\n\t//       The issue was locked by the actor.\n\t//\n\t//     mentioned\n\t//       The actor was @mentioned in an issue body.\n\t//\n\t//     merged\n\t//       The issue was merged by the actor. The 'commit_id' attribute is the\n\t//       SHA1 of the HEAD commit that was merged.\n\t//\n\t//     milestoned\n\t//       The issue was added to a milestone.\n\t//\n\t//     referenced\n\t//       The issue was referenced from a commit message. The 'commit_id'\n\t//       attribute is the commit SHA1 of where that happened.\n\t//\n\t//     renamed\n\t//       The issue title was changed.\n\t//\n\t//     reopened\n\t//       The issue was reopened by the actor.\n\t//\n\t//     subscribed\n\t//       The actor subscribed to receive notifications for an issue.\n\t//\n\t//     unassigned\n\t//       The assignee was unassigned from the issue.\n\t//\n\t//     unlabeled\n\t//       A label was removed from the issue.\n\t//\n\t//     unlocked\n\t//       The issue was unlocked by the actor.\n\t//\n\t//     unsubscribed\n\t//       The actor unsubscribed to stop receiving notifications for an issue.\n\t//\n\tEvent *string `json:\"event,omitempty\"`\n\n\t// The string SHA of a commit that referenced this Issue or Pull Request.\n\tCommitID *string `json:\"commit_id,omitempty\"`\n\t// The timestamp indicating when the event occurred.\n\tCreatedAt *time.Time `json:\"created_at,omitempty\"`\n\t// The Label object including `name` and `color` attributes. Only provided for\n\t// 'labeled' and 'unlabeled' events.\n\tLabel *Label `json:\"label,omitempty\"`\n\t// The User object which was assigned to (or unassigned from) this Issue or\n\t// Pull Request. Only provided for 'assigned' and 'unassigned' events.\n\tAssignee *User `json:\"assignee,omitempty\"`\n\t// The Milestone object including a 'title' attribute.\n\t// Only provided for 'milestoned' and 'demilestoned' events.\n\tMilestone *Milestone `json:\"milestone,omitempty\"`\n\t// The 'id', 'actor', and 'url' for the source of a reference from another issue.\n\t// Only provided for 'cross-referenced' events.\n\tSource *Source `json:\"source,omitempty\"`\n\t// An object containing rename details including 'from' and 'to' attributes.\n\t// Only provided for 'renamed' events.\n\tRename      *Rename      `json:\"rename,omitempty\"`\n\tProjectCard *ProjectCard `json:\"project_card,omitempty\"`\n}\n```\nTimeline represents an event that occurred around an Issue or Pull Request.\n\nIt is similar to an IssueEvent but may contain more information. GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/timeline/](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/timeline/)\n\n```go\nfunc (t *Timeline) GetActor() *User\n```\nGetActor returns the Actor field.\n\n```go\nfunc (t *Timeline) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (t *Timeline) GetCommitID() string\n```\nGetCommitID returns the CommitID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetCommitURL() string\n```\nGetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetCreatedAt() time.Time\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetLabel() *Label\n```\nGetLabel returns the Label field.\n\n```go\nfunc (t *Timeline) GetMilestone() *Milestone\n```\nGetMilestone returns the Milestone field.\n\n```go\nfunc (t *Timeline) GetProjectCard() *ProjectCard\n```\nGetProjectCard returns the ProjectCard field.\n\n```go\nfunc (t *Timeline) GetRename() *Rename\n```\nGetRename returns the Rename field.\n\n```go\nfunc (t *Timeline) GetSource() *Source\n```\nGetSource returns the Source field.\n\n```go\nfunc (t *Timeline) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\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 TopicResult struct {\n\tName             *string    `json:\"name,omitempty\"`\n\tDisplayName      *string    `json:\"display_name,omitempty\"`\n\tShortDescription *string    `json:\"short_description,omitempty\"`\n\tDescription      *string    `json:\"description,omitempty\"`\n\tCreatedBy        *string    `json:\"created_by,omitempty\"`\n\tCreatedAt        *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt        *string    `json:\"updated_at,omitempty\"`\n\tFeatured         *bool      `json:\"featured,omitempty\"`\n\tCurated          *bool      `json:\"curated,omitempty\"`\n\tScore            *float64   `json:\"score,omitempty\"`\n}\n```\n\n```go\nfunc (t *TopicResult) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetCreatedBy() string\n```\nGetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetCurated() bool\n```\nGetCurated returns the Curated field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetFeatured() bool\n```\nGetFeatured returns the Featured field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetScore() *float64\n```\nGetScore returns the Score field.\n\n```go\nfunc (t *TopicResult) GetShortDescription() string\n```\nGetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicResult) GetUpdatedAt() string\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype TopicsSearchResult struct {\n\tTotal             *int           `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool          `json:\"incomplete_results,omitempty\"`\n\tTopics            []*TopicResult `json:\"items,omitempty\"`\n}\n```\nTopicsSearchResult represents the result of a topics search.\n\n```go\nfunc (t *TopicsSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TopicsSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype TrafficBreakdownOptions struct {\n\tPer string `url:\"per,omitempty\"`\n}\n```\nTrafficBreakdownOptions specifies the parameters to methods that support breakdown per day or week. Can be one of: day, week. Default: day.\n\n```go\ntype TrafficClones struct {\n\tClones  []*TrafficData `json:\"clones,omitempty\"`\n\tCount   *int           `json:\"count,omitempty\"`\n\tUniques *int           `json:\"uniques,omitempty\"`\n}\n```\nTrafficClones represent information about the number of clones in the last 14 days.\n\n```go\nfunc (t *TrafficClones) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficClones) GetUniques() int\n```\nGetUniques returns the Uniques field if it's non-nil, zero value otherwise.\n\n```go\ntype TrafficData struct {\n\tTimestamp *Timestamp `json:\"timestamp,omitempty\"`\n\tCount     *int       `json:\"count,omitempty\"`\n\tUniques   *int       `json:\"uniques,omitempty\"`\n}\n```\nTrafficData represent information about a specific timestamp in views or clones list.\n\n```go\nfunc (t *TrafficData) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficData) GetTimestamp() Timestamp\n```\nGetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficData) GetUniques() int\n```\nGetUniques returns the Uniques field if it's non-nil, zero value otherwise.\n\n```go\ntype TrafficPath struct {\n\tPath    *string `json:\"path,omitempty\"`\n\tTitle   *string `json:\"title,omitempty\"`\n\tCount   *int    `json:\"count,omitempty\"`\n\tUniques *int    `json:\"uniques,omitempty\"`\n}\n```\nTrafficPath represent information about the traffic on a path of the repo.\n\n```go\nfunc (t *TrafficPath) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficPath) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficPath) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficPath) GetUniques() int\n```\nGetUniques returns the Uniques field if it's non-nil, zero value otherwise.\n\n```go\ntype TrafficReferrer struct {\n\tReferrer *string `json:\"referrer,omitempty\"`\n\tCount    *int    `json:\"count,omitempty\"`\n\tUniques  *int    `json:\"uniques,omitempty\"`\n}\n```\nTrafficReferrer represent information about traffic from a referrer .\n\n```go\nfunc (t *TrafficReferrer) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficReferrer) GetReferrer() string\n```\nGetReferrer returns the Referrer field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficReferrer) GetUniques() int\n```\nGetUniques returns the Uniques field if it's non-nil, zero value otherwise.\n\n```go\ntype TrafficViews struct {\n\tViews   []*TrafficData `json:\"views,omitempty\"`\n\tCount   *int           `json:\"count,omitempty\"`\n\tUniques *int           `json:\"uniques,omitempty\"`\n}\n```\nTrafficViews represent information about the number of views in the last 14 days.\n\n```go\nfunc (t *TrafficViews) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TrafficViews) GetUniques() int\n```\nGetUniques returns the Uniques field if it's non-nil, zero value otherwise.\n\n```go\ntype TransferRequest struct {\n\tNewOwner string  `json:\"new_owner\"`\n\tTeamID   []int64 `json:\"team_ids,omitempty\"`\n}\n```\nTransferRequest represents a request to transfer a repository.\n\n```go\ntype Tree struct {\n\tSHA     *string      `json:\"sha,omitempty\"`\n\tEntries []*TreeEntry `json:\"tree,omitempty\"`\n\n\t// Truncated is true if the number of items in the tree\n\t// exceeded GitHub's maximum limit and the Entries were truncated\n\t// in the response. Only populated for requests that fetch\n\t// trees like Git.GetTree.\n\tTruncated *bool `json:\"truncated,omitempty\"`\n}\n```\nTree represents a GitHub tree.\n\n```go\nfunc (t *Tree) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tree) GetTruncated() bool\n```\nGetTruncated returns the Truncated field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t Tree) String() string\n```\n\n```go\ntype TreeEntry struct {\n\tSHA     *string `json:\"sha,omitempty\"`\n\tPath    *string `json:\"path,omitempty\"`\n\tMode    *string `json:\"mode,omitempty\"`\n\tType    *string `json:\"type,omitempty\"`\n\tSize    *int    `json:\"size,omitempty\"`\n\tContent *string `json:\"content,omitempty\"`\n\tURL     *string `json:\"url,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) GetContent() string\n```\nGetContent returns the Content field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) GetMode() string\n```\nGetMode returns the Mode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TreeEntry) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (t TreeEntry) String() string\n```\n\n```go\ntype TwoFactorAuthError ErrorResponse\n```\nTwoFactorAuthError occurs when using HTTP Basic Authentication for a user that has two-factor authentication enabled. The request can be reattempted by providing a one-time password in the request.\n\n```go\nfunc (r *TwoFactorAuthError) Error() string\n```\n\n```go\ntype UnauthenticatedRateLimitedTransport struct {\n\t// ClientID is the GitHub OAuth client ID of the current application, which\n\t// can be found by selecting its entry in the list at\n\t// https://github.com/settings/applications.\n\tClientID string\n\n\t// ClientSecret is the GitHub OAuth client secret of the current\n\t// application.\n\tClientSecret string\n\n\t// Transport is the underlying HTTP transport to use when making requests.\n\t// It will default to http.DefaultTransport if nil.\n\tTransport http.RoundTripper\n}\n```\nUnauthenticatedRateLimitedTransport allows you to make unauthenticated calls that need to use a higher rate limit associated with your OAuth application.\n\n\tt := \u0026github.UnauthenticatedRateLimitedTransport{\n\t\tClientID:     \"your app's client ID\",\n\t\tClientSecret: \"your app's client secret\",\n\t}\n\tclient := github.NewClient(t.Client())\n\nThis will add the client id and secret as a base64-encoded string in the format ClientID:ClientSecret and apply it as an \"Authorization\": \"Basic\" header.\n\nSee [https://docs.github.com/en/free-pro-team@latest/rest/reference/#unauthenticated-rate-limited-requests](https://docs.github.com/en/free-pro-team@latest/rest/reference/#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 UpdateCheckRunOptions struct {\n\tName        string            `json:\"name\"`                   // The name of the check (e.g., \"code-coverage\"). (Required.)\n\tDetailsURL  *string           `json:\"details_url,omitempty\"`  // The URL of the integrator's site that has the full details of the check. (Optional.)\n\tExternalID  *string           `json:\"external_id,omitempty\"`  // A reference for the run on the integrator's system. (Optional.)\n\tStatus      *string           `json:\"status,omitempty\"`       // The current status. Can be one of \"queued\", \"in_progress\", or \"completed\". Default: \"queued\". (Optional.)\n\tConclusion  *string           `json:\"conclusion,omitempty\"`   // Can be one of \"success\", \"failure\", \"neutral\", \"cancelled\", \"skipped\", \"timed_out\", or \"action_required\". (Optional. Required if you provide a status of \"completed\".)\n\tCompletedAt *Timestamp        `json:\"completed_at,omitempty\"` // The time the check completed. (Optional. Required if you provide conclusion.)\n\tOutput      *CheckRunOutput   `json:\"output,omitempty\"`       // Provide descriptive details about the run. (Optional)\n\tActions     []*CheckRunAction `json:\"actions,omitempty\"`      // Possible further actions the integrator can perform, which a user may trigger. (Optional.)\n}\n```\nUpdateCheckRunOptions sets up parameters needed to update a CheckRun.\n\n```go\nfunc (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCheckRunOptions) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCheckRunOptions) GetDetailsURL() string\n```\nGetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCheckRunOptions) GetExternalID() string\n```\nGetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput\n```\nGetOutput returns the Output field.\n\n```go\nfunc (u *UpdateCheckRunOptions) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype UploadOptions struct {\n\tName      string `url:\"name,omitempty\"`\n\tLabel     string `url:\"label,omitempty\"`\n\tMediaType string `url:\"-\"`\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                      *int64     `json:\"id,omitempty\"`\n\tNodeID                  *string    `json:\"node_id,omitempty\"`\n\tAvatarURL               *string    `json:\"avatar_url,omitempty\"`\n\tHTMLURL                 *string    `json:\"html_url,omitempty\"`\n\tGravatarID              *string    `json:\"gravatar_id,omitempty\"`\n\tName                    *string    `json:\"name,omitempty\"`\n\tCompany                 *string    `json:\"company,omitempty\"`\n\tBlog                    *string    `json:\"blog,omitempty\"`\n\tLocation                *string    `json:\"location,omitempty\"`\n\tEmail                   *string    `json:\"email,omitempty\"`\n\tHireable                *bool      `json:\"hireable,omitempty\"`\n\tBio                     *string    `json:\"bio,omitempty\"`\n\tTwitterUsername         *string    `json:\"twitter_username,omitempty\"`\n\tPublicRepos             *int       `json:\"public_repos,omitempty\"`\n\tPublicGists             *int       `json:\"public_gists,omitempty\"`\n\tFollowers               *int       `json:\"followers,omitempty\"`\n\tFollowing               *int       `json:\"following,omitempty\"`\n\tCreatedAt               *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt               *Timestamp `json:\"updated_at,omitempty\"`\n\tSuspendedAt             *Timestamp `json:\"suspended_at,omitempty\"`\n\tType                    *string    `json:\"type,omitempty\"`\n\tSiteAdmin               *bool      `json:\"site_admin,omitempty\"`\n\tTotalPrivateRepos       *int       `json:\"total_private_repos,omitempty\"`\n\tOwnedPrivateRepos       *int       `json:\"owned_private_repos,omitempty\"`\n\tPrivateGists            *int       `json:\"private_gists,omitempty\"`\n\tDiskUsage               *int       `json:\"disk_usage,omitempty\"`\n\tCollaborators           *int       `json:\"collaborators,omitempty\"`\n\tTwoFactorAuthentication *bool      `json:\"two_factor_authentication,omitempty\"`\n\tPlan                    *Plan      `json:\"plan,omitempty\"`\n\tLdapDn                  *string    `json:\"ldap_dn,omitempty\"`\n\n\t// API URLs\n\tURL               *string `json:\"url,omitempty\"`\n\tEventsURL         *string `json:\"events_url,omitempty\"`\n\tFollowingURL      *string `json:\"following_url,omitempty\"`\n\tFollowersURL      *string `json:\"followers_url,omitempty\"`\n\tGistsURL          *string `json:\"gists_url,omitempty\"`\n\tOrganizationsURL  *string `json:\"organizations_url,omitempty\"`\n\tReceivedEventsURL *string `json:\"received_events_url,omitempty\"`\n\tReposURL          *string `json:\"repos_url,omitempty\"`\n\tStarredURL        *string `json:\"starred_url,omitempty\"`\n\tSubscriptionsURL  *string `json:\"subscriptions_url,omitempty\"`\n\n\t// TextMatches is only populated from search results that request text matches\n\t// See: search.go and https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#text-match-metadata\n\tTextMatches []*TextMatch `json:\"text_matches,omitempty\"`\n\n\t// Permissions identifies the permissions that a user has on a given\n\t// repository. This is only populated when calling Repositories.ListCollaborators.\n\tPermissions *map[string]bool `json:\"permissions,omitempty\"`\n}\n```\nUser represents a GitHub user.\n\n```go\nfunc (u *User) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetBio() string\n```\nGetBio returns the Bio field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetBlog() string\n```\nGetBlog returns the Blog field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetCollaborators() int\n```\nGetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetCompany() string\n```\nGetCompany returns the Company field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetDiskUsage() int\n```\nGetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetFollowers() int\n```\nGetFollowers returns the Followers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetFollowersURL() string\n```\nGetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetFollowing() int\n```\nGetFollowing returns the Following field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetFollowingURL() string\n```\nGetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetGistsURL() string\n```\nGetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetGravatarID() string\n```\nGetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetHireable() bool\n```\nGetHireable returns the Hireable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetLdapDn() string\n```\nGetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetOrganizationsURL() string\n```\nGetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetOwnedPrivateRepos() int\n```\nGetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetPermissions() map[string]bool\n```\nGetPermissions returns the Permissions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetPlan() *Plan\n```\nGetPlan returns the Plan field.\n\n```go\nfunc (u *User) GetPrivateGists() int\n```\nGetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetPublicGists() int\n```\nGetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetPublicRepos() int\n```\nGetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetReceivedEventsURL() string\n```\nGetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetReposURL() string\n```\nGetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetSiteAdmin() bool\n```\nGetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetStarredURL() string\n```\nGetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetSubscriptionsURL() string\n```\nGetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetSuspendedAt() Timestamp\n```\nGetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetTotalPrivateRepos() int\n```\nGetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetTwitterUsername() string\n```\nGetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetTwoFactorAuthentication() bool\n```\nGetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u User) String() string\n```\n\n```go\ntype UserAuthorization struct {\n\tID             *int64     `json:\"id,omitempty\"`\n\tURL            *string    `json:\"url,omitempty\"`\n\tScopes         []string   `json:\"scopes,omitempty\"`\n\tToken          *string    `json:\"token,omitempty\"`\n\tTokenLastEight *string    `json:\"token_last_eight,omitempty\"`\n\tHashedToken    *string    `json:\"hashed_token,omitempty\"`\n\tApp            *OAuthAPP  `json:\"app,omitempty\"`\n\tNote           *string    `json:\"note,omitempty\"`\n\tNoteURL        *string    `json:\"note_url,omitempty\"`\n\tUpdatedAt      *Timestamp `json:\"updated_at,omitempty\"`\n\tCreatedAt      *Timestamp `json:\"created_at,omitempty\"`\n\tFingerprint    *string    `json:\"fingerprint,omitempty\"`\n}\n```\nUserAuthorization represents the impersonation response.\n\n```go\nfunc (u *UserAuthorization) GetApp() *OAuthAPP\n```\nGetApp returns the App field.\n\n```go\nfunc (u *UserAuthorization) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetHashedToken() string\n```\nGetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetNote() string\n```\nGetNote returns the Note field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetNoteURL() string\n```\nGetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetToken() string\n```\nGetToken returns the Token field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetTokenLastEight() string\n```\nGetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserAuthorization) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype UserContext struct {\n\tMessage *string `json:\"message,omitempty\"`\n\tOcticon *string `json:\"octicon,omitempty\"`\n}\n```\nUserContext represents the contextual information about user.\n\n```go\nfunc (u *UserContext) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserContext) GetOcticon() string\n```\nGetOcticon returns the Octicon field if it's non-nil, zero value otherwise.\n\n```go\ntype UserEmail struct {\n\tEmail      *string `json:\"email,omitempty\"`\n\tPrimary    *bool   `json:\"primary,omitempty\"`\n\tVerified   *bool   `json:\"verified,omitempty\"`\n\tVisibility *string `json:\"visibility,omitempty\"`\n}\n```\nUserEmail represents user's email address\n\n```go\nfunc (u *UserEmail) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserEmail) GetPrimary() bool\n```\nGetPrimary returns the Primary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserEmail) GetVerified() bool\n```\nGetVerified returns the Verified field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserEmail) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\ntype UserEvent struct {\n\tUser *User `json:\"user,omitempty\"`\n\t// The action performed. Possible values are: \"created\" or \"deleted\".\n\tAction     *string     `json:\"action,omitempty\"`\n\tEnterprise *Enterprise `json:\"enterprise,omitempty\"`\n\tSender     *User       `json:\"sender,omitempty\"`\n}\n```\nUserEvent is triggered when a user is created or deleted. The Webhook event name is \"user\".\n\nOnly global webhooks can subscribe to this event type.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/activity/events/types/#userevent-enterprise](https://developer.github.com/enterprise/v3/activity/events/types/#userevent-enterprise)\n\n```go\nfunc (u *UserEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (u *UserEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (u *UserEvent) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype UserLDAPMapping struct {\n\tID         *int64  `json:\"id,omitempty\"`\n\tLDAPDN     *string `json:\"ldap_dn,omitempty\"`\n\tLogin      *string `json:\"login,omitempty\"`\n\tAvatarURL  *string `json:\"avatar_url,omitempty\"`\n\tGravatarID *string `json:\"gravatar_id,omitempty\"`\n\tType       *string `json:\"type,omitempty\"`\n\tSiteAdmin  *bool   `json:\"site_admin,omitempty\"`\n\n\tURL               *string `json:\"url,omitempty\"`\n\tEventsURL         *string `json:\"events_url,omitempty\"`\n\tFollowingURL      *string `json:\"following_url,omitempty\"`\n\tFollowersURL      *string `json:\"followers_url,omitempty\"`\n\tGistsURL          *string `json:\"gists_url,omitempty\"`\n\tOrganizationsURL  *string `json:\"organizations_url,omitempty\"`\n\tReceivedEventsURL *string `json:\"received_events_url,omitempty\"`\n\tReposURL          *string `json:\"repos_url,omitempty\"`\n\tStarredURL        *string `json:\"starred_url,omitempty\"`\n\tSubscriptionsURL  *string `json:\"subscriptions_url,omitempty\"`\n}\n```\nUserLDAPMapping represents the mapping between a GitHub user and an LDAP user.\n\n```go\nfunc (u *UserLDAPMapping) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetFollowersURL() string\n```\nGetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetFollowingURL() string\n```\nGetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetGistsURL() string\n```\nGetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetGravatarID() string\n```\nGetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetOrganizationsURL() string\n```\nGetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetReceivedEventsURL() string\n```\nGetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetReposURL() string\n```\nGetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetSiteAdmin() bool\n```\nGetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetStarredURL() string\n```\nGetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetSubscriptionsURL() string\n```\nGetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserLDAPMapping) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m UserLDAPMapping) String() string\n```\n\n```go\ntype UserListOptions struct {\n\t// ID of the last user seen\n\tSince int64 `url:\"since,omitempty\"`\n\n\t// Note: Pagination is powered exclusively by the Since parameter,\n\t// ListOptions.Page has no effect.\n\t// ListOptions.PerPage controls an undocumented GitHub API parameter.\n\tListOptions\n}\n```\nUserListOptions specifies optional parameters to the UsersService.ListAll method.\n\n```go\ntype UserMigration struct {\n\tID   *int64  `json:\"id,omitempty\"`\n\tGUID *string `json:\"guid,omitempty\"`\n\t// State is the current state of a migration.\n\t// Possible values are:\n\t//     \"pending\" which means the migration hasn't started yet,\n\t//     \"exporting\" which means the migration is in progress,\n\t//     \"exported\" which means the migration finished successfully, or\n\t//     \"failed\" which means the migration failed.\n\tState *string `json:\"state,omitempty\"`\n\t// LockRepositories indicates whether repositories are locked (to prevent\n\t// manipulation) while migrating data.\n\tLockRepositories *bool `json:\"lock_repositories,omitempty\"`\n\t// ExcludeAttachments indicates whether attachments should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeAttachments *bool         `json:\"exclude_attachments,omitempty\"`\n\tURL                *string       `json:\"url,omitempty\"`\n\tCreatedAt          *string       `json:\"created_at,omitempty\"`\n\tUpdatedAt          *string       `json:\"updated_at,omitempty\"`\n\tRepositories       []*Repository `json:\"repositories,omitempty\"`\n}\n```\nUserMigration represents a GitHub migration (archival).\n\n```go\nfunc (u *UserMigration) GetCreatedAt() string\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetExcludeAttachments() bool\n```\nGetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetGUID() string\n```\nGetGUID returns the GUID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetLockRepositories() bool\n```\nGetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserMigration) GetUpdatedAt() string\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m UserMigration) String() string\n```\n\n```go\ntype UserMigrationOptions struct {\n\t// LockRepositories indicates whether repositories should be locked (to prevent\n\t// manipulation) while migrating data.\n\tLockRepositories bool\n\n\t// ExcludeAttachments indicates whether attachments should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeAttachments bool\n}\n```\nUserMigrationOptions specifies the optional parameters to Migration methods.\n\n```go\ntype UserStats struct {\n\tTotalUsers     *int `json:\"total_users,omitempty\"`\n\tAdminUsers     *int `json:\"admin_users,omitempty\"`\n\tSuspendedUsers *int `json:\"suspended_users,omitempty\"`\n}\n```\nUserStats represents the number of total, admin and suspended users.\n\n```go\nfunc (u *UserStats) GetAdminUsers() int\n```\nGetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserStats) GetSuspendedUsers() int\n```\nGetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserStats) GetTotalUsers() int\n```\nGetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s UserStats) String() string\n```\n\n```go\ntype UserSuspendOptions struct {\n\tReason *string `json:\"reason,omitempty\"`\n}\n```\nUserSuspendOptions represents the reason a user is being suspended.\n\n```go\nfunc (u *UserSuspendOptions) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\ntype UsersSearchResult struct {\n\tTotal             *int    `json:\"total_count,omitempty\"`\n\tIncompleteResults *bool   `json:\"incomplete_results,omitempty\"`\n\tUsers             []*User `json:\"items,omitempty\"`\n}\n```\nUsersSearchResult represents the result of a users search.\n\n```go\nfunc (u *UsersSearchResult) GetIncompleteResults() bool\n```\nGetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsersSearchResult) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype UsersService service\n```\nUsersService handles communication with the user related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/)\n\n```go\nfunc (s *UsersService) AcceptInvitation(ctx context.Context, invitationID int64) (*Response, error)\n```\nAcceptInvitation accepts the currently-open repository invitation for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#accept-a-repository-invitation](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#accept-a-repository-invitation)\n\n```go\nfunc (s *UsersService) AddEmails(ctx context.Context, emails []string) ([]*UserEmail, *Response, error)\n```\nAddEmails adds email addresses of the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#add-an-email-address-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#add-an-email-address-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) BlockUser(ctx context.Context, user string) (*Response, error)\n```\nBlockUser blocks specified user for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#block-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#block-a-user)\n\n```go\nfunc (s *UsersService) CreateGPGKey(ctx context.Context, armoredPublicKey string) (*GPGKey, *Response, error)\n```\nCreateGPGKey creates a GPG key. It requires authenticatation via Basic Auth or OAuth with at least write:gpg\\_key scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#create-a-gpg-key](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#create-a-gpg-key)\n\n```go\nfunc (s *UsersService) CreateKey(ctx context.Context, key *Key) (*Key, *Response, error)\n```\nCreateKey adds a public key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#create-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#create-a-public-ssh-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) CreateProject(ctx context.Context, opts *CreateUserProjectOptions) (*Project, *Response, error)\n```\nCreateProject creates a GitHub Project for the current user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-user-project](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#create-a-user-project)\n\n```go\nfunc (s *UsersService) DeclineInvitation(ctx context.Context, invitationID int64) (*Response, error)\n```\nDeclineInvitation declines the currently-open repository invitation for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#decline-a-repository-invitation](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#decline-a-repository-invitation)\n\n```go\nfunc (s *UsersService) DeleteEmails(ctx context.Context, emails []string) (*Response, error)\n```\nDeleteEmails deletes email addresses from authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#delete-an-email-address-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#delete-an-email-address-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) DeleteGPGKey(ctx context.Context, id int64) (*Response, error)\n```\nDeleteGPGKey deletes a GPG key. It requires authentication via Basic Auth or via OAuth with at least admin:gpg\\_key scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#delete-a-gpg-key-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#delete-a-gpg-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) DeleteKey(ctx context.Context, id int64) (*Response, error)\n```\nDeleteKey deletes a public key.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#delete-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#delete-a-public-ssh-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) DemoteSiteAdmin(ctx context.Context, user string) (*Response, error)\n```\nDemoteSiteAdmin demotes a user from site administrator of a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#demote-a-site-administrator-to-an-ordinary-user](https://developer.github.com/enterprise/v3/enterprise-admin/users/#demote-a-site-administrator-to-an-ordinary-user)\n\n```go\nfunc (s *UsersService) Edit(ctx context.Context, user *User) (*User, *Response, error)\n```\nEdit the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#update-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#update-the-authenticated-user)\n\n```go\nfunc (s *UsersService) Follow(ctx context.Context, user string) (*Response, error)\n```\nFollow will cause the authenticated user to follow the specified user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#follow-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#follow-a-user)\n\n```go\nfunc (s *UsersService) Get(ctx context.Context, user string) (*User, *Response, error)\n```\nGet fetches a user. Passing the empty string will fetch the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-a-user)\n\n```go\nfunc (s *UsersService) GetByID(ctx context.Context, id int64) (*User, *Response, error)\n```\nGetByID fetches a user.\n\nNote: GetByID uses the undocumented GitHub API endpoint /user/:id.\n\n```go\nfunc (s *UsersService) GetGPGKey(ctx context.Context, id int64) (*GPGKey, *Response, error)\n```\nGetGPGKey gets extended details for a single GPG key. It requires authentication via Basic Auth or via OAuth with at least read:gpg\\_key scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-a-gpg-key-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-a-gpg-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) GetHovercard(ctx context.Context, user string, opts *HovercardOptions) (*Hovercard, *Response, error)\n```\nGetHovercard fetches contextual information about user. It requires authentication via Basic Auth or via OAuth with the repo scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-contextual-information-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-contextual-information-for-a-user)\n\n```go\nfunc (s *UsersService) GetKey(ctx context.Context, id int64) (*Key, *Response, error)\n```\nGetKey fetches a single public key.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#get-a-public-ssh-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) IsBlocked(ctx context.Context, user string) (bool, *Response, error)\n```\nIsBlocked reports whether specified user is blocked by the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#check-if-a-user-is-blocked-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#check-if-a-user-is-blocked-by-the-authenticated-user)\n\n```go\nfunc (s *UsersService) IsFollowing(ctx context.Context, 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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#check-if-a-person-is-followed-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#check-if-a-person-is-followed-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#check-if-a-user-follows-another-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#check-if-a-user-follows-another-user)\n\n```go\nfunc (s *UsersService) ListAll(ctx context.Context, opts *UserListOptions) ([]*User, *Response, error)\n```\nListAll lists all GitHub users.\n\nTo paginate through all users, populate 'Since' with the ID of the last user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-users](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-users)\n\n```go\nfunc (s *UsersService) ListBlockedUsers(ctx context.Context, opts *ListOptions) ([]*User, *Response, error)\n```\nListBlockedUsers lists all the blocked users by the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-users-blocked-by-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-users-blocked-by-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListEmails(ctx context.Context, opts *ListOptions) ([]*UserEmail, *Response, error)\n```\nListEmails lists all email addresses for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-email-addresses-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-email-addresses-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListFollowers(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error)\n```\nListFollowers lists the followers for a user. Passing the empty string will fetch followers for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-followers-of-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-followers-of-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-followers-of-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-followers-of-a-user)\n\n```go\nfunc (s *UsersService) ListFollowing(ctx context.Context, user string, opts *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: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-the-people-the-authenticated-user-follows](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-the-people-the-authenticated-user-follows) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-the-people-a-user-follows](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-the-people-a-user-follows)\n\n```go\nfunc (s *UsersService) ListGPGKeys(ctx context.Context, user string, opts *ListOptions) ([]*GPGKey, *Response, error)\n```\nListGPGKeys lists the public GPG keys for a user. Passing the empty string will fetch keys for the authenticated user. It requires authentication via Basic Auth or via OAuth with at least read:gpg\\_key scope.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-gpg-keys-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-gpg-keys-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-gpg-keys-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-gpg-keys-for-a-user)\n\n```go\nfunc (s *UsersService) ListInvitations(ctx context.Context, opts *ListOptions) ([]*RepositoryInvitation, *Response, error)\n```\nListInvitations lists all currently-open repository invitations for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-invitations-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#list-repository-invitations-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListKeys(ctx context.Context, user string, opts *ListOptions) ([]*Key, *Response, error)\n```\nListKeys lists the verified public keys for a user. Passing the empty string will fetch keys for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-public-ssh-keys-for-the-authenticated-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-public-ssh-keys-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-public-keys-for-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#list-public-keys-for-a-user)\n\n```go\nfunc (s *UsersService) ListProjects(ctx context.Context, user string, opts *ProjectListOptions) ([]*Project, *Response, error)\n```\nListProjects lists the projects for the specified user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-user-projects](https://docs.github.com/en/free-pro-team@latest/rest/reference/projects/#list-user-projects)\n\n```go\nfunc (s *UsersService) PromoteSiteAdmin(ctx context.Context, user string) (*Response, error)\n```\nPromoteSiteAdmin promotes a user to a site administrator of a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#promote-an-ordinary-user-to-a-site-administrator](https://developer.github.com/enterprise/v3/enterprise-admin/users/#promote-an-ordinary-user-to-a-site-administrator)\n\n```go\nfunc (s *UsersService) Suspend(ctx context.Context, user string, opts *UserSuspendOptions) (*Response, error)\n```\nSuspend a user on a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#suspend-a-user](https://developer.github.com/enterprise/v3/enterprise-admin/users/#suspend-a-user)\n\n```go\nfunc (s *UsersService) UnblockUser(ctx context.Context, user string) (*Response, error)\n```\nUnblockUser unblocks specified user for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#unblock-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#unblock-a-user)\n\n```go\nfunc (s *UsersService) Unfollow(ctx context.Context, user string) (*Response, error)\n```\nUnfollow will cause the authenticated user to unfollow the specified user.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#unfollow-a-user](https://docs.github.com/en/free-pro-team@latest/rest/reference/users/#unfollow-a-user)\n\n```go\nfunc (s *UsersService) Unsuspend(ctx context.Context, user string) (*Response, error)\n```\nUnsuspend a user on a GitHub Enterprise instance.\n\nGitHub API docs: [https://developer.github.com/enterprise/v3/enterprise-admin/users/#unsuspend-a-user](https://developer.github.com/enterprise/v3/enterprise-admin/users/#unsuspend-a-user)\n\n```go\ntype WatchEvent struct {\n\t// Action is the action that was performed. Possible value is: \"started\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nWatchEvent is related to starring a repository, not watching. See this API blog post for an explanation: [https://developer.github.com/changes/2012-09-05-watcher-api/](https://developer.github.com/changes/2012-09-05-watcher-api/)\n\nThe event’s actor is the user who starred a repository, and the event’s repository is the repository that was starred.\n\nGitHub API docs: [https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#watchevent](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity/events/types/#watchevent)\n\n```go\nfunc (w *WatchEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WatchEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (w *WatchEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (w *WatchEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookAuthor) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookAuthor) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\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) GetAuthor() *WebHookAuthor\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (w *WebHookCommit) GetCommitter() *WebHookAuthor\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (w *WebHookCommit) GetDistinct() bool\n```\nGetDistinct returns the Distinct field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookCommit) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookCommit) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookCommit) GetTimestamp() time.Time\n```\nGetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w WebHookCommit) String() string\n```\n\n```go\ntype WebHookPayload struct {\n\tAfter      *string          `json:\"after,omitempty\"`\n\tBefore     *string          `json:\"before,omitempty\"`\n\tCommits    []*WebHookCommit `json:\"commits,omitempty\"`\n\tCompare    *string          `json:\"compare,omitempty\"`\n\tCreated    *bool            `json:\"created,omitempty\"`\n\tDeleted    *bool            `json:\"deleted,omitempty\"`\n\tForced     *bool            `json:\"forced,omitempty\"`\n\tHeadCommit *WebHookCommit   `json:\"head_commit,omitempty\"`\n\tPusher     *User            `json:\"pusher,omitempty\"`\n\tRef        *string          `json:\"ref,omitempty\"`\n\tRepo       *Repository      `json:\"repository,omitempty\"`\n\tSender     *User            `json:\"sender,omitempty\"`\n}\n```\nWebHookPayload represents the data that is received from GitHub when a push event hook is triggered. The format of these payloads pre-date most of the GitHub v3 API, so there are lots of minor incompatibilities with the types defined in the rest of the API. Therefore, several types are duplicated here to account for these differences.\n\nGitHub API docs: [https://help.github.com/articles/post-receive-hooks](https://help.github.com/articles/post-receive-hooks)\n\n```go\nfunc (w *WebHookPayload) GetAfter() string\n```\nGetAfter returns the After field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetBefore() string\n```\nGetBefore returns the Before field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetCompare() string\n```\nGetCompare returns the Compare field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetCreated() bool\n```\nGetCreated returns the Created field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetDeleted() bool\n```\nGetDeleted returns the Deleted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetForced() bool\n```\nGetForced returns the Forced field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetHeadCommit() *WebHookCommit\n```\nGetHeadCommit returns the HeadCommit field.\n\n```go\nfunc (w *WebHookPayload) GetPusher() *User\n```\nGetPusher returns the Pusher field.\n\n```go\nfunc (w *WebHookPayload) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WebHookPayload) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (w *WebHookPayload) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (w WebHookPayload) String() string\n```\n\n```go\ntype WeeklyCommitActivity struct {\n\tDays  []int      `json:\"days,omitempty\"`\n\tTotal *int       `json:\"total,omitempty\"`\n\tWeek  *Timestamp `json:\"week,omitempty\"`\n}\n```\nWeeklyCommitActivity represents the weekly commit activity for a repository. The days array is a group of commits per day, starting on Sunday.\n\n```go\nfunc (w *WeeklyCommitActivity) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WeeklyCommitActivity) GetWeek() Timestamp\n```\nGetWeek returns the Week field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w WeeklyCommitActivity) String() string\n```\n\n```go\ntype WeeklyStats struct {\n\tWeek      *Timestamp `json:\"w,omitempty\"`\n\tAdditions *int       `json:\"a,omitempty\"`\n\tDeletions *int       `json:\"d,omitempty\"`\n\tCommits   *int       `json:\"c,omitempty\"`\n}\n```\nWeeklyStats represents the number of additions, deletions and commits a Contributor made in a given week.\n\n```go\nfunc (w *WeeklyStats) GetAdditions() int\n```\nGetAdditions returns the Additions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WeeklyStats) GetCommits() int\n```\nGetCommits returns the Commits field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WeeklyStats) GetDeletions() int\n```\nGetDeletions returns the Deletions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WeeklyStats) GetWeek() Timestamp\n```\nGetWeek returns the Week field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w WeeklyStats) String() string\n```\n\n```go\ntype Workflow struct {\n\tID        *int64     `json:\"id,omitempty\"`\n\tNodeID    *string    `json:\"node_id,omitempty\"`\n\tName      *string    `json:\"name,omitempty\"`\n\tPath      *string    `json:\"path,omitempty\"`\n\tState     *string    `json:\"state,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n\tURL       *string    `json:\"url,omitempty\"`\n\tHTMLURL   *string    `json:\"html_url,omitempty\"`\n\tBadgeURL  *string    `json:\"badge_url,omitempty\"`\n}\n```\nWorkflow represents a repository action workflow.\n\n```go\nfunc (w *Workflow) GetBadgeURL() string\n```\nGetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *Workflow) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowBill struct {\n\tTotalMS *int64 `json:\"total_ms,omitempty\"`\n}\n```\nWorkflowBill specifies billable time for a specific environment in a workflow.\n\n```go\nfunc (w *WorkflowBill) GetTotalMS() int64\n```\nGetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowDispatchEvent struct {\n\tInputs   json.RawMessage `json:\"inputs,omitempty\"`\n\tRef      *string         `json:\"ref,omitempty\"`\n\tWorkflow *string         `json:\"workflow,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tRepo   *Repository   `json:\"repository,omitempty\"`\n\tOrg    *Organization `json:\"organization,omitempty\"`\n\tSender *User         `json:\"sender,omitempty\"`\n}\n```\nWorkflowDispatchEvent is triggered when someone triggers a workflow run on GitHub or sends a POST request to the create a workflow dispatch event endpoint.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#workflow\\_dispatch](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch)\n\n```go\nfunc (w *WorkflowDispatchEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (w *WorkflowDispatchEvent) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowDispatchEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (w *WorkflowDispatchEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (w *WorkflowDispatchEvent) GetWorkflow() string\n```\nGetWorkflow returns the Workflow field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowEnvironment struct {\n\tUbuntu  *WorkflowBill `json:\"UBUNTU,omitempty\"`\n\tMacOS   *WorkflowBill `json:\"MACOS,omitempty\"`\n\tWindows *WorkflowBill `json:\"WINDOWS,omitempty\"`\n}\n```\nWorkflowEnvironment represents different runner environments available for a workflow.\n\n```go\nfunc (w *WorkflowEnvironment) GetMacOS() *WorkflowBill\n```\nGetMacOS returns the MacOS field.\n\n```go\nfunc (w *WorkflowEnvironment) GetUbuntu() *WorkflowBill\n```\nGetUbuntu returns the Ubuntu field.\n\n```go\nfunc (w *WorkflowEnvironment) GetWindows() *WorkflowBill\n```\nGetWindows returns the Windows field.\n\n```go\ntype WorkflowJob struct {\n\tID          *int64      `json:\"id,omitempty\"`\n\tRunID       *int64      `json:\"run_id,omitempty\"`\n\tRunURL      *string     `json:\"run_url,omitempty\"`\n\tNodeID      *string     `json:\"node_id,omitempty\"`\n\tHeadSHA     *string     `json:\"head_sha,omitempty\"`\n\tURL         *string     `json:\"url,omitempty\"`\n\tHTMLURL     *string     `json:\"html_url,omitempty\"`\n\tStatus      *string     `json:\"status,omitempty\"`\n\tConclusion  *string     `json:\"conclusion,omitempty\"`\n\tStartedAt   *Timestamp  `json:\"started_at,omitempty\"`\n\tCompletedAt *Timestamp  `json:\"completed_at,omitempty\"`\n\tName        *string     `json:\"name,omitempty\"`\n\tSteps       []*TaskStep `json:\"steps,omitempty\"`\n\tCheckRunURL *string     `json:\"check_run_url,omitempty\"`\n}\n```\nWorkflowJob represents a repository action workflow job.\n\n```go\nfunc (w *WorkflowJob) GetCheckRunURL() string\n```\nGetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetRunID() int64\n```\nGetRunID returns the RunID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetRunURL() string\n```\nGetRunURL returns the RunURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowRun struct {\n\tID             *int64         `json:\"id,omitempty\"`\n\tNodeID         *string        `json:\"node_id,omitempty\"`\n\tHeadBranch     *string        `json:\"head_branch,omitempty\"`\n\tHeadSHA        *string        `json:\"head_sha,omitempty\"`\n\tRunNumber      *int           `json:\"run_number,omitempty\"`\n\tEvent          *string        `json:\"event,omitempty\"`\n\tStatus         *string        `json:\"status,omitempty\"`\n\tConclusion     *string        `json:\"conclusion,omitempty\"`\n\tWorkflowID     *int64         `json:\"workflow_id,omitempty\"`\n\tURL            *string        `json:\"url,omitempty\"`\n\tHTMLURL        *string        `json:\"html_url,omitempty\"`\n\tPullRequests   []*PullRequest `json:\"pull_requests,omitempty\"`\n\tCreatedAt      *Timestamp     `json:\"created_at,omitempty\"`\n\tUpdatedAt      *Timestamp     `json:\"updated_at,omitempty\"`\n\tJobsURL        *string        `json:\"jobs_url,omitempty\"`\n\tLogsURL        *string        `json:\"logs_url,omitempty\"`\n\tCheckSuiteURL  *string        `json:\"check_suite_url,omitempty\"`\n\tArtifactsURL   *string        `json:\"artifacts_url,omitempty\"`\n\tCancelURL      *string        `json:\"cancel_url,omitempty\"`\n\tRerunURL       *string        `json:\"rerun_url,omitempty\"`\n\tHeadCommit     *HeadCommit    `json:\"head_commit,omitempty\"`\n\tWorkflowURL    *string        `json:\"workflow_url,omitempty\"`\n\tRepository     *Repository    `json:\"repository,omitempty\"`\n\tHeadRepository *Repository    `json:\"head_repository,omitempty\"`\n}\n```\nWorkflowRun represents a repository action workflow run.\n\n```go\nfunc (w *WorkflowRun) GetArtifactsURL() string\n```\nGetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetCancelURL() string\n```\nGetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetCheckSuiteURL() string\n```\nGetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetHeadBranch() string\n```\nGetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetHeadCommit() *HeadCommit\n```\nGetHeadCommit returns the HeadCommit field.\n\n```go\nfunc (w *WorkflowRun) GetHeadRepository() *Repository\n```\nGetHeadRepository returns the HeadRepository field.\n\n```go\nfunc (w *WorkflowRun) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetJobsURL() string\n```\nGetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetLogsURL() string\n```\nGetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (w *WorkflowRun) GetRerunURL() string\n```\nGetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetRunNumber() int\n```\nGetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetWorkflowID() int64\n```\nGetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetWorkflowURL() string\n```\nGetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowRunBill struct {\n\tTotalMS *int64 `json:\"total_ms,omitempty\"`\n\tJobs    *int   `json:\"jobs,omitempty\"`\n}\n```\nWorkflowRunBill specifies billable time for a specific environment in a workflow run.\n\n```go\nfunc (w *WorkflowRunBill) GetJobs() int\n```\nGetJobs returns the Jobs field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRunBill) GetTotalMS() int64\n```\nGetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowRunEnvironment struct {\n\tUbuntu  *WorkflowRunBill `json:\"UBUNTU,omitempty\"`\n\tMacOS   *WorkflowRunBill `json:\"MACOS,omitempty\"`\n\tWindows *WorkflowRunBill `json:\"WINDOWS,omitempty\"`\n}\n```\nWorkflowRunEnvironment represents different runner environments available for a workflow run.\n\n```go\nfunc (w *WorkflowRunEnvironment) GetMacOS() *WorkflowRunBill\n```\nGetMacOS returns the MacOS field.\n\n```go\nfunc (w *WorkflowRunEnvironment) GetUbuntu() *WorkflowRunBill\n```\nGetUbuntu returns the Ubuntu field.\n\n```go\nfunc (w *WorkflowRunEnvironment) GetWindows() *WorkflowRunBill\n```\nGetWindows returns the Windows field.\n\n```go\ntype WorkflowRunEvent struct {\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tOrg    *Organization `json:\"organization,omitempty\"`\n\tRepo   *Repository   `json:\"repository,omitempty\"`\n\tSender *User         `json:\"sender,omitempty\"`\n}\n```\nWorkflowRunEvent is triggered when a GitHub Actions workflow run is requested or completed.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#workflow\\_run](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#workflow_run)\n\n```go\nfunc (w *WorkflowRunEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRunEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (w *WorkflowRunEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (w *WorkflowRunEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype WorkflowRunUsage struct {\n\tBillable      *WorkflowRunEnvironment `json:\"billable,omitempty\"`\n\tRunDurationMS *int64                  `json:\"run_duration_ms,omitempty\"`\n}\n```\nWorkflowRunUsage represents a usage of a specific workflow run.\n\n```go\nfunc (w *WorkflowRunUsage) GetBillable() *WorkflowRunEnvironment\n```\nGetBillable returns the Billable field.\n\n```go\nfunc (w *WorkflowRunUsage) GetRunDurationMS() int64\n```\nGetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowRuns struct {\n\tTotalCount   *int           `json:\"total_count,omitempty\"`\n\tWorkflowRuns []*WorkflowRun `json:\"workflow_runs,omitempty\"`\n}\n```\nWorkflowRuns represents a slice of repository action workflow run.\n\n```go\nfunc (w *WorkflowRuns) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowUsage struct {\n\tBillable *WorkflowEnvironment `json:\"billable,omitempty\"`\n}\n```\nWorkflowUsage represents a usage of a specific workflow.\n\n```go\nfunc (w *WorkflowUsage) GetBillable() *WorkflowEnvironment\n```\nGetBillable returns the Billable field.\n\n```go\ntype Workflows struct {\n\tTotalCount *int        `json:\"total_count,omitempty\"`\n\tWorkflows  []*Workflow `json:\"workflows,omitempty\"`\n}\n```\nWorkflows represents a slice of repository action workflows.\n\n```go\nfunc (w *Workflows) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n","path":"github.com/google/go-github/v33/github","name":"github","synopsis":"Package github provides a client for using the GitHub API.","isRedistributable":true}
