{"modulePath":"github.com/google/go-github/v54","version":"v54.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/v54/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/rest](https://docs.github.com/en/rest) .\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. It supports both authentication as an installation, using an installation access token, and as an app, using a JWT.\n\nTo authenticate as an installation:\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\nTo authenticate as an app, using a JWT:\n\n\timport \"github.com/bradleyfalzon/ghinstallation\"\n\n\tfunc main() {\n\t\t// Wrap the shared transport for use with the application ID 1.\n\t\tatr, err := ghinstallation.NewAppsTransportKeyFromFile(http.DefaultTransport, 1, \"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 app transport with client\n\t\tclient := github.NewClient(\u0026http.Client{Transport: atr})\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. For secondary rate limits, you can check if its type is \\*github.AbuseRateLimitError:\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\tif _, ok := err.(*github.AbuseRateLimitError); ok {\n\t\tlog.Println(\"hit secondary rate limit\")\n\t}\n\nLearn more about GitHub rate limiting at [https://docs.github.com/en/rest/rate-limit](https://docs.github.com/en/rest/rate-limit) .\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/rest/overview/resources-in-the-rest-api#conditional-requests](https://docs.github.com/en/rest/overview/resources-in-the-rest-api#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## Constants\n\n```go\nconst (\n\n\t// SHA1SignatureHeader is the GitHub header key used to pass the HMAC-SHA1 hexdigest.\n\tSHA1SignatureHeader = \"X-Hub-Signature\"\n\t// SHA256SignatureHeader is the GitHub header key used to pass the HMAC-SHA256 hexdigest.\n\tSHA256SignatureHeader = \"X-Hub-Signature-256\"\n\t// EventTypeHeader is the GitHub header key used to pass the event type.\n\tEventTypeHeader = \"X-Github-Event\"\n\t// DeliveryIDHeader is the GitHub header key used to pass the unique ID for the webhook event.\n\tDeliveryIDHeader = \"X-Github-Delivery\"\n)\n```\n\n```go\nconst (\n\tVersion = \"v54.0.0\"\n)\n```\n\n## Variables\n\n```go\nvar ErrBranchNotProtected = errors.New(\"branch is not protected\")\n```\n\n```go\nvar ErrMixedCommentStyles = errors.New(\"cannot use both position and side/line form comments\")\n```\n\n```go\nvar ErrPathForbidden = errors.New(\"path must not contain '..' due to auth vulnerability issue\")\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/developers/webhooks-and-events/events/github-event-types](https://docs.github.com/en/developers/webhooks-and-events/events/github-event-types)\n\n```go\nfunc EventForType(messageType string) interface{}\n```\nEventForType returns an empty struct matching the specified GitHub event type. If messageType does not match any known event types, it returns nil.\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 MessageTypes() []string\n```\nWebhookTypes returns a sorted list of all the known GitHub event type strings supported by go-github.\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 ValidatePayloadFromBody(contentType string, readable io.Reader, signature string, secretToken []byte) (payload []byte, err error)\n```\nValidatePayloadFromBody validates an incoming GitHub Webhook event request body 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 an empty secretToken. Webhooks without a secret token are not secure and should be avoided.\n\nExample usage:\n\n\tfunc (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) {\n\t  // read signature from request\n\t  signature := \"\"\n\t  payload, err := github.ValidatePayloadFromBody(r.Header.Get(\"Content-Type\"), r.Body, signature, 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/developers/webhooks-and-events/events/github-event-types](https://docs.github.com/en/developers/webhooks-and-events/events/github-event-types)\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\t// An array of IP addresses in CIDR format specifying the IP addresses\n\t// GitHub Actions will originate from.\n\tActions []string `json:\"actions,omitempty\"`\n\n\t// An array of IP addresses in CIDR format specifying the IP addresses\n\t// Dependabot will originate from.\n\tDependabot []string `json:\"dependabot,omitempty\"`\n\n\t// A map of algorithms to SSH key fingerprints.\n\tSSHKeyFingerprints map[string]string `json:\"ssh_key_fingerprints,omitempty\"`\n\n\t// An array of SSH keys.\n\tSSHKeys []string `json:\"ssh_keys,omitempty\"`\n\n\t// An array of IP addresses in CIDR format specifying the addresses\n\t// which serve GitHub websites.\n\tWeb []string `json:\"web,omitempty\"`\n\n\t// An array of IP addresses in CIDR format specifying the addresses\n\t// which serve GitHub APIs.\n\tAPI []string `json:\"api,omitempty\"`\n}\n```\nAPIMeta represents metadata about the GitHub API.\n\n```go\nfunc (a *APIMeta) GetSSHKeyFingerprints() map[string]string\n```\nGetSSHKeyFingerprints returns the SSHKeyFingerprints map if it's non-nil, an empty map otherwise.\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/rest/overview/resources-in-the-rest-api#secondary-rate-limits](https://docs.github.com/en/rest/overview/resources-in-the-rest-api#secondary-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\nfunc (r *AbuseRateLimitError) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\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\nfunc (ae *AcceptedError) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\n\n```go\ntype ActionBilling struct {\n\tTotalMinutesUsed     float64              `json:\"total_minutes_used\"`\n\tTotalPaidMinutesUsed float64              `json:\"total_paid_minutes_used\"`\n\tIncludedMinutes      float64              `json:\"included_minutes\"`\n\tMinutesUsedBreakdown MinutesUsedBreakdown `json:\"minutes_used_breakdown\"`\n}\n```\nActionBilling represents a GitHub Action billing.\n\n```go\ntype ActionsAllowed struct {\n\tGithubOwnedAllowed *bool    `json:\"github_owned_allowed,omitempty\"`\n\tVerifiedAllowed    *bool    `json:\"verified_allowed,omitempty\"`\n\tPatternsAllowed    []string `json:\"patterns_allowed,omitempty\"`\n}\n```\nActionsAllowed represents selected actions that are allowed.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions](https://docs.github.com/en/rest/actions/permissions)\n\n```go\nfunc (a *ActionsAllowed) GetGithubOwnedAllowed() bool\n```\nGetGithubOwnedAllowed returns the GithubOwnedAllowed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsAllowed) GetVerifiedAllowed() bool\n```\nGetVerifiedAllowed returns the VerifiedAllowed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a ActionsAllowed) String() string\n```\n\n```go\ntype ActionsCache struct {\n\tID             *int64     `json:\"id,omitempty\" url:\"-\"`\n\tRef            *string    `json:\"ref,omitempty\" url:\"ref\"`\n\tKey            *string    `json:\"key,omitempty\" url:\"key\"`\n\tVersion        *string    `json:\"version,omitempty\" url:\"-\"`\n\tLastAccessedAt *Timestamp `json:\"last_accessed_at,omitempty\" url:\"-\"`\n\tCreatedAt      *Timestamp `json:\"created_at,omitempty\" url:\"-\"`\n\tSizeInBytes    *int64     `json:\"size_in_bytes,omitempty\" url:\"-\"`\n}\n```\nActionsCache represents a GitHub action cache.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#about-the-cache-api](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#about-the-cache-api)\n\n```go\nfunc (a *ActionsCache) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCache) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCache) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCache) GetLastAccessedAt() Timestamp\n```\nGetLastAccessedAt returns the LastAccessedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCache) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCache) GetSizeInBytes() int64\n```\nGetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCache) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsCacheList struct {\n\tTotalCount    int             `json:\"total_count\"`\n\tActionsCaches []*ActionsCache `json:\"actions_caches,omitempty\"`\n}\n```\nActionsCacheList represents a list of GitHub actions Cache.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository)\n\n```go\ntype ActionsCacheListOptions struct {\n\tListOptions\n\t// The Git reference for the results you want to list.\n\t// The ref for a branch can be formatted either as refs/heads/\u003cbranch name\u003e\n\t// or simply \u003cbranch name\u003e. To reference a pull request use refs/pull/\u003cnumber\u003e/merge\n\tRef *string `url:\"ref,omitempty\"`\n\tKey *string `url:\"key,omitempty\"`\n\t// Can be one of: \"created_at\", \"last_accessed_at\", \"size_in_bytes\". Default: \"last_accessed_at\"\n\tSort *string `url:\"sort,omitempty\"`\n\t// Can be one of: \"asc\", \"desc\" Default: desc\n\tDirection *string `url:\"direction,omitempty\"`\n}\n```\nActionsCacheListOptions represents a list of all possible optional Query parameters for ListCaches method.\n\nGitHub API docs:  [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository)\n\n```go\nfunc (a *ActionsCacheListOptions) GetDirection() string\n```\nGetDirection returns the Direction field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCacheListOptions) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCacheListOptions) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsCacheListOptions) GetSort() string\n```\nGetSort returns the Sort field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsCacheUsage struct {\n\tFullName                string `json:\"full_name\"`\n\tActiveCachesSizeInBytes int64  `json:\"active_caches_size_in_bytes\"`\n\tActiveCachesCount       int    `json:\"active_caches_count\"`\n}\n```\nActionsCacheUsage represents a GitHub Actions Cache Usage object.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository)\n\n```go\ntype ActionsCacheUsageList struct {\n\tTotalCount     int                  `json:\"total_count\"`\n\tRepoCacheUsage []*ActionsCacheUsage `json:\"repository_cache_usages,omitempty\"`\n}\n```\nActionsCacheUsageList represents a list of repositories with GitHub Actions cache usage for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository)\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 ActionsPermissions struct {\n\tEnabledRepositories *string `json:\"enabled_repositories,omitempty\"`\n\tAllowedActions      *string `json:\"allowed_actions,omitempty\"`\n\tSelectedActionsURL  *string `json:\"selected_actions_url,omitempty\"`\n}\n```\nActionsPermissions represents a policy for repositories and allowed actions in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions](https://docs.github.com/en/rest/actions/permissions)\n\n```go\nfunc (a *ActionsPermissions) GetAllowedActions() string\n```\nGetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPermissions) GetEnabledRepositories() string\n```\nGetEnabledRepositories returns the EnabledRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPermissions) GetSelectedActionsURL() string\n```\nGetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a ActionsPermissions) String() string\n```\n\n```go\ntype ActionsPermissionsRepository struct {\n\tEnabled            *bool   `json:\"enabled,omitempty\"`\n\tAllowedActions     *string `json:\"allowed_actions,omitempty\"`\n\tSelectedActionsURL *string `json:\"selected_actions_url,omitempty\"`\n}\n```\nActionsPermissionsRepository represents a policy for repositories and allowed actions in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions](https://docs.github.com/en/rest/actions/permissions)\n\n```go\nfunc (a *ActionsPermissionsRepository) GetAllowedActions() string\n```\nGetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPermissionsRepository) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPermissionsRepository) GetSelectedActionsURL() string\n```\nGetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a ActionsPermissionsRepository) String() string\n```\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/rest/actions/](https://docs.github.com/en/rest/actions/)\n\n```go\nfunc (s *ActionsService) AddEnabledReposInOrg(ctx context.Context, owner string, repositoryID int64) (*Response, error)\n```\nAddEnabledReposInOrg adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#enable-a-selected-repository-for-github-actions-in-an-organization](https://docs.github.com/en/rest/actions/permissions#enable-a-selected-repository-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) AddRepoToRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID, repoID int64) (*Response, error)\n```\nAddRepoToRequiredWorkflow adds the Repository to a required workflow.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#add-a-repository-to-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#add-a-repository-to-a-required-workflow)\n\n```go\nfunc (s *ActionsService) AddRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID, repoID int64) (*Response, error)\n```\nAddRepositoryAccessRunnerGroup adds a repository to the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility set to 'selected'.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization)\n\n```go\nfunc (s *ActionsService) AddRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error)\n```\nAddRunnerGroupRunners adds a self-hosted runner to a runner group configured in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-organization)\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/rest/actions/secrets#add-selected-repository-to-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#add-selected-repository-to-an-organization-secret)\n\n```go\nfunc (s *ActionsService) AddSelectedRepoToOrgVariable(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nAddSelectedRepoToOrgVariable adds a repository to an organization variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#add-selected-repository-to-an-organization-variable](https://docs.github.com/en/rest/actions/variables#add-selected-repository-to-an-organization-variable)\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/rest/actions/workflow-runs#cancel-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-runs#cancel-a-workflow-run)\n\n```go\nfunc (s *ActionsService) CreateEnvVariable(ctx context.Context, repoID int, env string, variable *ActionsVariable) (*Response, error)\n```\nCreateEnvVariable creates an environment variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#create-an-environment-variable](https://docs.github.com/en/rest/actions/variables#create-an-environment-variable)\n\n```go\nfunc (s *ActionsService) CreateOrUpdateEnvSecret(ctx context.Context, repoID int, env string, eSecret *EncryptedSecret) (*Response, error)\n```\nCreateOrUpdateEnvSecret creates or updates a single environment secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/secrets#create-or-update-an-environment-secret](https://docs.github.com/en/rest/actions/secrets#create-or-update-an-environment-secret)\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/rest/actions/secrets#create-or-update-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#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/rest/actions/secrets#create-or-update-a-repository-secret](https://docs.github.com/en/rest/actions/secrets#create-or-update-a-repository-secret)\n\n```go\nfunc (s *ActionsService) CreateOrgVariable(ctx context.Context, org string, variable *ActionsVariable) (*Response, error)\n```\nCreateOrgVariable creates an organization variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#create-an-organization-variable](https://docs.github.com/en/rest/actions/variables#create-an-organization-variable)\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/rest/actions/self-hosted-runners#create-a-registration-token-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners#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/rest/actions/self-hosted-runners#create-a-remove-token-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners#create-a-remove-token-for-an-organization)\n\n```go\nfunc (s *ActionsService) CreateOrganizationRunnerGroup(ctx context.Context, org string, createReq CreateRunnerGroupRequest) (*RunnerGroup, *Response, error)\n```\nCreateOrganizationRunnerGroup creates a new self-hosted runner group for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-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/rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners#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/rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository)\n\n```go\nfunc (s *ActionsService) CreateRepoVariable(ctx context.Context, owner, repo string, variable *ActionsVariable) (*Response, error)\n```\nCreateRepoVariable creates a repository variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#create-a-repository-variable](https://docs.github.com/en/rest/actions/variables#create-a-repository-variable)\n\n```go\nfunc (s *ActionsService) CreateRequiredWorkflow(ctx context.Context, org string, createRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error)\n```\nCreateRequiredWorkflow creates the required workflow in an org.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#create-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#create-a-required-workflow)\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/rest/actions/workflows#create-a-workflow-dispatch-event](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/workflows#create-a-workflow-dispatch-event](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/artifacts#delete-an-artifact](https://docs.github.com/en/rest/actions/artifacts#delete-an-artifact)\n\n```go\nfunc (s *ActionsService) DeleteCachesByID(ctx context.Context, owner, repo string, cacheID int64) (*Response, error)\n```\nDeleteCachesByID deletes a GitHub Actions cache for a repository, using a cache ID.\n\nPermissions: You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the actions:write permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id)\n\n```go\nfunc (s *ActionsService) DeleteCachesByKey(ctx context.Context, owner, repo, key string, ref *string) (*Response, error)\n```\nDeleteCachesByKey deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref. The ref for a branch can be formatted either as \"refs/heads/\\\u003cbranch name\u003e\" or simply \"\\\u003cbranch name\u003e\". To reference a pull request use \"refs/pull/\\\u003cnumber\u003e/merge\". If you don't want to use ref just pass nil in parameter.\n\nPermissions: You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the actions:write permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-github-actions-caches-for-a-repository-using-a-cache-key](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-github-actions-caches-for-a-repository-using-a-cache-key)\n\n```go\nfunc (s *ActionsService) DeleteEnvSecret(ctx context.Context, repoID int, env, secretName string) (*Response, error)\n```\nDeleteEnvSecret deletes a secret in an environment using the secret name.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/secrets#delete-an-environment-secret](https://docs.github.com/en/rest/actions/secrets#delete-an-environment-secret)\n\n```go\nfunc (s *ActionsService) DeleteEnvVariable(ctx context.Context, repoID int, env, variableName string) (*Response, error)\n```\nDeleteEnvVariable deletes a variable in an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#delete-an-environment-variable](https://docs.github.com/en/rest/actions/variables#delete-an-environment-variable)\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/rest/actions/secrets#delete-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#delete-an-organization-secret)\n\n```go\nfunc (s *ActionsService) DeleteOrgVariable(ctx context.Context, org, name string) (*Response, error)\n```\nDeleteOrgVariable deletes a variable in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#delete-an-organization-variable](https://docs.github.com/en/rest/actions/variables#delete-an-organization-variable)\n\n```go\nfunc (s *ActionsService) DeleteOrganizationRunnerGroup(ctx context.Context, org string, groupID int64) (*Response, error)\n```\nDeleteOrganizationRunnerGroup deletes a self-hosted runner group from an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-organization)\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/rest/actions/secrets#delete-a-repository-secret](https://docs.github.com/en/rest/actions/secrets#delete-a-repository-secret)\n\n```go\nfunc (s *ActionsService) DeleteRepoVariable(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteRepoVariable deletes a variable in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#delete-a-repository-variable](https://docs.github.com/en/rest/actions/variables#delete-a-repository-variable)\n\n```go\nfunc (s *ActionsService) DeleteRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64) (*Response, error)\n```\nDeleteRequiredWorkflow deletes a required workflow in an org.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#update-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#update-a-required-workflow)\n\n```go\nfunc (s *ActionsService) DeleteWorkflowRun(ctx context.Context, owner, repo string, runID int64) (*Response, error)\n```\nDeleteWorkflowRun deletes a workflow run by ID.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/workflow-runs#delete-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-runs#delete-a-workflow-run)\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/rest/actions/workflow-runs#delete-workflow-run-logs](https://docs.github.com/en/rest/actions/workflow-runs#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/rest/actions/workflows#disable-a-workflow](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/workflows#disable-a-workflow](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/artifacts#download-an-artifact](https://docs.github.com/en/rest/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/rest/actions/workflows#enable-a-workflow](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/workflows#enable-a-workflow](https://docs.github.com/en/rest/actions/workflows#enable-a-workflow)\n\n```go\nfunc (s *ActionsService) GenerateOrgJITConfig(ctx context.Context, owner string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error)\n```\nGenerateOrgJITConfig generate a just-in-time configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) GenerateRepoJITConfig(ctx context.Context, owner, repo string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error)\n```\nGenerateRepoJITConfig generates a just-in-time configuration for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-a-repository)\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/rest/actions/artifacts#get-an-artifact](https://docs.github.com/en/rest/actions/artifacts#get-an-artifact)\n\n```go\nfunc (s *ActionsService) GetCacheUsageForRepo(ctx context.Context, owner, repo string) (*ActionsCacheUsage, *Response, error)\n```\nGetCacheUsageForRepo gets GitHub Actions cache usage for a repository. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.\n\nPermissions: Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository)\n\n```go\nfunc (s *ActionsService) GetEnvPublicKey(ctx context.Context, repoID int, env string) (*PublicKey, *Response, error)\n```\nGetEnvPublicKey gets a public key that should be used for secret encryption.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/secrets#get-an-environment-public-key](https://docs.github.com/en/rest/actions/secrets#get-an-environment-public-key)\n\n```go\nfunc (s *ActionsService) GetEnvSecret(ctx context.Context, repoID int, env, secretName string) (*Secret, *Response, error)\n```\nGetEnvSecret gets a single environment secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/secrets#get-an-environment-secret](https://docs.github.com/en/rest/actions/secrets#get-an-environment-secret)\n\n```go\nfunc (s *ActionsService) GetEnvVariable(ctx context.Context, repoID int, env, variableName string) (*ActionsVariable, *Response, error)\n```\nGetEnvVariable gets a single environment variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#get-an-environment-variable](https://docs.github.com/en/rest/actions/variables#get-an-environment-variable)\n\n```go\nfunc (s *ActionsService) GetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string) (*OIDCSubjectClaimCustomTemplate, *Response, error)\n```\nGetOrgOIDCSubjectClaimCustomTemplate gets the subject claim customization template for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization](https://docs.github.com/en/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization)\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/rest/actions/secrets#get-an-organization-public-key](https://docs.github.com/en/rest/actions/secrets#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/rest/actions/secrets#get-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#get-an-organization-secret)\n\n```go\nfunc (s *ActionsService) GetOrgVariable(ctx context.Context, org, name string) (*ActionsVariable, *Response, error)\n```\nGetOrgVariable gets a single organization variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#get-an-organization-variable](https://docs.github.com/en/rest/actions/variables#get-an-organization-variable)\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/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetOrganizationRunnerGroup(ctx context.Context, org string, groupID int64) (*RunnerGroup, *Response, error)\n```\nGetOrganizationRunnerGroup gets a specific self-hosted runner group for an organization using its RunnerGroup ID.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetRepoOIDCSubjectClaimCustomTemplate(ctx context.Context, owner, repo string) (*OIDCSubjectClaimCustomTemplate, *Response, error)\n```\nGetRepoOIDCSubjectClaimCustomTemplate gets the subject claim customization template for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository](https://docs.github.com/en/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository)\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/rest/actions/secrets#get-a-repository-public-key](https://docs.github.com/en/rest/actions/secrets#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/rest/actions/secrets#get-a-repository-secret](https://docs.github.com/en/rest/actions/secrets#get-a-repository-secret)\n\n```go\nfunc (s *ActionsService) GetRepoVariable(ctx context.Context, owner, repo, name string) (*ActionsVariable, *Response, error)\n```\nGetRepoVariable gets a single repository variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#get-a-repository-variable](https://docs.github.com/en/rest/actions/variables#get-a-repository-variable)\n\n```go\nfunc (s *ActionsService) GetRequiredWorkflowByID(ctx context.Context, owner string, requiredWorkflowID int64) (*OrgRequiredWorkflow, *Response, error)\n```\nGetRequiredWorkflowByID get the RequiredWorkflows for an org by its ID.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-required-workflows](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-required-workflows)\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/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository)\n\n```go\nfunc (s *ActionsService) GetTotalCacheUsageForEnterprise(ctx context.Context, enterprise string) (*TotalCacheUsage, *Response, error)\n```\nGetTotalCacheUsageForEnterprise gets the total GitHub Actions cache usage for an enterprise. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.\n\nPermissions: You must authenticate using an access token with the \"admin:enterprise\" scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) GetTotalCacheUsageForOrg(ctx context.Context, org string) (*TotalCacheUsage, *Response, error)\n```\nGetTotalCacheUsageForOrg gets the total GitHub Actions cache usage for an organization. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.\n\nPermissions: You must authenticate using an access token with the read:org scope to use this endpoint. GitHub Apps must have the organization\\_admistration:read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-organization](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-organization)\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/rest/actions/workflows#get-a-workflow](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/workflows#get-a-workflow](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/workflow-jobs#get-a-job-for-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-jobs#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/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunAttempt(ctx context.Context, owner, repo string, runID int64, attemptNumber int, opts *WorkflowRunAttemptOptions) (*WorkflowRun, *Response, error)\n```\nGetWorkflowRunAttempt gets a specific workflow run attempt.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/workflow-runs#get-a-workflow-run-attempt](https://docs.github.com/en/rest/actions/workflow-runs#get-a-workflow-run-attempt)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunAttemptLogs(ctx context.Context, owner, repo string, runID int64, attemptNumber int, followRedirects bool) (*url.URL, *Response, error)\n```\nGetWorkflowRunAttemptLogs gets a redirect URL to download a plain text file of logs for a workflow run for attempt number.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/workflow-runs#download-workflow-run-attempt-logs](https://docs.github.com/en/rest/actions/workflow-runs#download-workflow-run-attempt-logs)\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/rest/actions/workflow-runs#get-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-runs#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/rest/actions/workflow-runs#download-workflow-run-logs](https://docs.github.com/en/rest/actions/workflow-runs#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/rest/actions/workflow-runs#get-workflow-run-usage](https://docs.github.com/en/rest/actions/workflow-runs#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/rest/actions/workflows#get-workflow-usage](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/workflows#get-workflow-usage](https://docs.github.com/en/rest/actions/workflows#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/rest/actions/artifacts#list-artifacts-for-a-repository](https://docs.github.com/en/rest/actions/artifacts#list-artifacts-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListCacheUsageByRepoForOrg(ctx context.Context, org string, opts *ListOptions) (*ActionsCacheUsageList, *Response, error)\n```\nListCacheUsageByRepoForOrg lists repositories and their GitHub Actions cache usage for an organization. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.\n\nPermissions: You must authenticate using an access token with the read:org scope to use this endpoint. GitHub Apps must have the organization\\_admistration:read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-repositories-with-github-actions-cache-usage-for-an-organization](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-repositories-with-github-actions-cache-usage-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListCaches(ctx context.Context, owner, repo string, opts *ActionsCacheListOptions) (*ActionsCacheList, *Response, error)\n```\nListCaches lists the GitHub Actions caches for a repository. You must authenticate using an access token with the repo scope to use this endpoint.\n\nPermissions: must have the actions:read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-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/rest/actions/permissions#list-selected-repositories-enabled-for-github-actions-in-an-organization](https://docs.github.com/en/rest/actions/permissions#list-selected-repositories-enabled-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) ListEnvSecrets(ctx context.Context, repoID int, env string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListEnvSecrets lists all secrets available in an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/secrets#list-environment-secrets](https://docs.github.com/en/rest/actions/secrets#list-environment-secrets)\n\n```go\nfunc (s *ActionsService) ListEnvVariables(ctx context.Context, repoID int, env string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListEnvVariables lists all variables available in an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#list-environment-variables](https://docs.github.com/en/rest/actions/variables#list-environment-variables)\n\n```go\nfunc (s *ActionsService) ListOrgRequiredWorkflows(ctx context.Context, org string, opts *ListOptions) (*OrgRequiredWorkflows, *Response, error)\n```\nListOrgRequiredWorkflows lists the RequiredWorkflows for an org.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-required-workflows](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-required-workflows)\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/rest/actions/secrets#list-organization-secrets](https://docs.github.com/en/rest/actions/secrets#list-organization-secrets)\n\n```go\nfunc (s *ActionsService) ListOrgVariables(ctx context.Context, org string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListOrgVariables lists all variables available in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#list-organization-variables](https://docs.github.com/en/rest/actions/variables#list-organization-variables)\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/rest/actions/self-hosted-runners#list-runner-applications-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners#list-runner-applications-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListOrganizationRunnerGroups(ctx context.Context, org string, opts *ListOrgRunnerGroupOptions) (*RunnerGroups, *Response, error)\n```\nListOrganizationRunnerGroups lists all self-hosted runner groups configured in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-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/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListRepoRequiredWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*RepoRequiredWorkflows, *Response, error)\n```\nListRepoRequiredWorkflows lists the RequiredWorkflows for a repo.\n\nGithub API docs:[https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-repository-required-workflows](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-repository-required-workflows)\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/rest/actions/secrets#list-repository-secrets](https://docs.github.com/en/rest/actions/secrets#list-repository-secrets)\n\n```go\nfunc (s *ActionsService) ListRepoVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListRepoVariables lists all variables available in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#list-repository-variables](https://docs.github.com/en/rest/actions/variables#list-repository-variables)\n\n```go\nfunc (s *ActionsService) ListRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, opts *ListOptions) (*ListRepositories, *Response, error)\n```\nListRepositoryAccessRunnerGroup lists the repositories with access to a self-hosted runner group configured in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization)\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/rest/actions/workflow-runs#list-workflow-runs-for-a-repository](https://docs.github.com/en/rest/actions/workflow-runs#list-workflow-runs-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, opts *ListOptions) (*RequiredWorkflowSelectedRepos, *Response, error)\n```\nListRequiredWorkflowSelectedRepos lists the Repositories selected for a workflow.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-selected-repositories-for-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#list-selected-repositories-for-a-required-workflow)\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/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRunnerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error)\n```\nListRunnerGroupRunners lists self-hosted runners that are in a specific organization group.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-organization)\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/rest/actions/self-hosted-runners#list-self-hosted-runners-for-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners#list-self-hosted-runners-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgSecret lists all repositories that have access to a secret.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/secrets#list-selected-repositories-for-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *ActionsService) ListSelectedReposForOrgVariable(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgVariable lists all repositories that have access to a variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#list-selected-repositories-for-an-organization-variable](https://docs.github.com/en/rest/actions/variables#list-selected-repositories-for-an-organization-variable)\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/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-jobs#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/rest/actions/artifacts#list-workflow-run-artifacts](https://docs.github.com/en/rest/actions/artifacts#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/rest/actions/workflow-runs#list-workflow-runs](https://docs.github.com/en/rest/actions/workflow-runs#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/rest/actions/workflow-runs#list-workflow-runs](https://docs.github.com/en/rest/actions/workflow-runs#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/rest/actions/workflows#list-repository-workflows](https://docs.github.com/en/rest/actions/workflows#list-repository-workflows)\n\n```go\nfunc (s *ActionsService) PendingDeployments(ctx context.Context, owner, repo string, runID int64, request *PendingDeploymentsRequest) ([]*Deployment, *Response, error)\n```\nPendingDeployments approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) RemoveEnabledRepoInOrg(ctx context.Context, owner string, repositoryID int64) (*Response, error)\n```\nRemoveEnabledRepoInOrg removes a single repository from the list of enabled repos for GitHub Actions in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#disable-a-selected-repository-for-github-actions-in-an-organization](https://docs.github.com/en/rest/actions/permissions#disable-a-selected-repository-for-github-actions-in-an-organization)\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/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization)\n\n```go\nfunc (s *ActionsService) RemoveRepoFromRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID, repoID int64) (*Response, error)\n```\nRemoveRepoFromRequiredWorkflow removes the Repository from a required workflow.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#add-a-repository-to-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#add-a-repository-to-a-required-workflow)\n\n```go\nfunc (s *ActionsService) RemoveRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID, repoID int64) (*Response, error)\n```\nRemoveRepositoryAccessRunnerGroup removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility set to 'selected'.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#remove-repository-access-to-a-self-hosted-runner-group-in-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/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository](https://docs.github.com/en/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository)\n\n```go\nfunc (s *ActionsService) RemoveRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error)\n```\nRemoveRunnerGroupRunners removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-organization)\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/rest/actions/secrets#remove-selected-repository-from-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#remove-selected-repository-from-an-organization-secret)\n\n```go\nfunc (s *ActionsService) RemoveSelectedRepoFromOrgVariable(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nRemoveSelectedRepoFromOrgVariable removes a repository from an organization variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#remove-selected-repository-from-an-organization-variable](https://docs.github.com/en/rest/actions/variables#remove-selected-repository-from-an-organization-variable)\n\n```go\nfunc (s *ActionsService) RerunFailedJobsByID(ctx context.Context, owner, repo string, runID int64) (*Response, error)\n```\nRerunFailedJobsByID re-runs all of the failed jobs and their dependent jobs in a workflow run by ID.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run)\n\n```go\nfunc (s *ActionsService) RerunJobByID(ctx context.Context, owner, repo string, jobID int64) (*Response, error)\n```\nRerunJobByID re-runs a job and its dependent jobs in a workflow run by ID.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run](https://docs.github.com/en/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)\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/rest/actions/workflow-runs#re-run-a-workflow](https://docs.github.com/en/rest/actions/workflow-runs#re-run-a-workflow)\n\n```go\nfunc (s *ActionsService) SetEnabledReposInOrg(ctx context.Context, owner string, repositoryIDs []int64) (*Response, error)\n```\nSetEnabledReposInOrg replaces the list of selected repositories that are enabled for GitHub Actions in an organization..\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-selected-repositories-enabled-for-github-actions-in-an-organization](https://docs.github.com/en/rest/actions/permissions#set-selected-repositories-enabled-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) SetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string, template *OIDCSubjectClaimCustomTemplate) (*Response, error)\n```\nSetOrgOIDCSubjectClaimCustomTemplate sets the subject claim customization for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization](https://docs.github.com/en/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization)\n\n```go\nfunc (s *ActionsService) SetRepoOIDCSubjectClaimCustomTemplate(ctx context.Context, owner, repo string, template *OIDCSubjectClaimCustomTemplate) (*Response, error)\n```\nSetRepoOIDCSubjectClaimCustomTemplate sets the subject claim customization for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository](https://docs.github.com/en/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository)\n\n```go\nfunc (s *ActionsService) SetRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, ids SetRepoAccessRunnerGroupRequest) (*Response, error)\n```\nSetRepositoryAccessRunnerGroup replaces the list of repositories that have access to a self-hosted runner group configured in an organization with a new List of repositories.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#set-repository-access-for-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#set-repository-access-for-a-self-hosted-runner-group-in-an-organization)\n\n```go\nfunc (s *ActionsService) SetRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, ids SelectedRepoIDs) (*Response, error)\n```\nSetRequiredWorkflowSelectedRepos sets the Repositories selected for a workflow.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#sets-repositories-for-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#sets-repositories-for-a-required-workflow)\n\n```go\nfunc (s *ActionsService) SetRunnerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error)\n```\nSetRunnerGroupRunners replaces the list of self-hosted runners that are part of an organization runner group with a new list of runners.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-organization)\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/rest/actions/secrets#set-selected-repositories-for-an-organization-secret](https://docs.github.com/en/rest/actions/secrets#set-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *ActionsService) SetSelectedReposForOrgVariable(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error)\n```\nSetSelectedReposForOrgVariable sets the repositories that have access to a variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#set-selected-repositories-for-an-organization-variable](https://docs.github.com/en/rest/actions/variables#set-selected-repositories-for-an-organization-variable)\n\n```go\nfunc (s *ActionsService) UpdateEnvVariable(ctx context.Context, repoID int, env string, variable *ActionsVariable) (*Response, error)\n```\nUpdateEnvVariable updates an environment variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#create-an-environment-variable](https://docs.github.com/en/rest/actions/variables#create-an-environment-variable)\n\n```go\nfunc (s *ActionsService) UpdateOrgVariable(ctx context.Context, org string, variable *ActionsVariable) (*Response, error)\n```\nUpdateOrgVariable updates an organization variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#update-an-organization-variable](https://docs.github.com/en/rest/actions/variables#update-an-organization-variable)\n\n```go\nfunc (s *ActionsService) UpdateOrganizationRunnerGroup(ctx context.Context, org string, groupID int64, updateReq UpdateRunnerGroupRequest) (*RunnerGroup, *Response, error)\n```\nUpdateOrganizationRunnerGroup updates a self-hosted runner group for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization](https://docs.github.com/en/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateRepoVariable(ctx context.Context, owner, repo string, variable *ActionsVariable) (*Response, error)\n```\nUpdateRepoVariable updates a repository variable.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/variables#update-a-repository-variable](https://docs.github.com/en/rest/actions/variables#update-a-repository-variable)\n\n```go\nfunc (s *ActionsService) UpdateRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64, updateRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error)\n```\nUpdateRequiredWorkflow updates a required workflow in an org.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#update-a-required-workflow](https://docs.github.com/en/rest/actions/required-workflows?apiVersion=2022-11-28#update-a-required-workflow)\n\n```go\ntype ActionsVariable struct {\n\tName       string     `json:\"name\"`\n\tValue      string     `json:\"value\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt  *Timestamp `json:\"updated_at,omitempty\"`\n\tVisibility *string    `json:\"visibility,omitempty\"`\n\t// Used by ListOrgVariables and GetOrgVariables\n\tSelectedRepositoriesURL *string `json:\"selected_repositories_url,omitempty\"`\n\t// Used by UpdateOrgVariable and CreateOrgVariable\n\tSelectedRepositoryIDs *SelectedRepoIDs `json:\"selected_repository_ids,omitempty\"`\n}\n```\nActionsVariable represents a repository action variable.\n\n```go\nfunc (a *ActionsVariable) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsVariable) GetSelectedRepositoriesURL() string\n```\nGetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsVariable) GetSelectedRepositoryIDs() *SelectedRepoIDs\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs field.\n\n```go\nfunc (a *ActionsVariable) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsVariable) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsVariables struct {\n\tTotalCount int                `json:\"total_count\"`\n\tVariables  []*ActionsVariable `json:\"variables\"`\n}\n```\nActionsVariables represents one item from the ListVariables response.\n\n```go\ntype ActiveCommitters struct {\n\tTotalAdvancedSecurityCommitters int                           `json:\"total_advanced_security_committers\"`\n\tRepositories                    []*RepositoryActiveCommitters `json:\"repositories,omitempty\"`\n}\n```\nActiveCommitters represents the total active committers across all repositories in an Organization.\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/rest/activity/](https://docs.github.com/en/rest/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/rest/activity/watching#delete-a-repository-subscription](https://docs.github.com/en/rest/activity/watching#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/rest/activity/notifications#delete-a-thread-subscription](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/watching#get-a-repository-subscription](https://docs.github.com/en/rest/activity/watching#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/rest/activity/notifications#get-a-thread](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/notifications#get-a-thread-subscription-for-the-authenticated-user](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user](https://docs.github.com/en/rest/activity/starring#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/rest/activity/events#list-public-events](https://docs.github.com/en/rest/activity/events#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/rest/activity/events#list-public-organization-events](https://docs.github.com/en/rest/activity/events#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/rest/activity/events#list-public-events-for-a-network-of-repositories](https://docs.github.com/en/rest/activity/events#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/rest/activity/events#list-events-for-the-authenticated-user](https://docs.github.com/en/rest/activity/events#list-events-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/activity/events#list-public-events-for-a-user](https://docs.github.com/en/rest/activity/events#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/rest/activity/events#list-events-received-by-the-authenticated-user](https://docs.github.com/en/rest/activity/events#list-events-received-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/activity/events#list-public-events-received-by-a-user](https://docs.github.com/en/rest/activity/events#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/rest/issues/events#list-issue-events-for-a-repository](https://docs.github.com/en/rest/issues/events#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/rest/activity/notifications#list-notifications-for-the-authenticated-user](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/events#list-repository-events](https://docs.github.com/en/rest/activity/events#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/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/starring#list-stargazers](https://docs.github.com/en/rest/activity/starring#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/rest/activity/starring#list-repositories-starred-by-the-authenticated-user](https://docs.github.com/en/rest/activity/starring#list-repositories-starred-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/activity/starring#list-repositories-starred-by-a-user](https://docs.github.com/en/rest/activity/starring#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/rest/activity/events#list-organization-events-for-the-authenticated-user](https://docs.github.com/en/rest/activity/events#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/rest/activity/watching#list-repositories-watched-by-the-authenticated-user](https://docs.github.com/en/rest/activity/watching#list-repositories-watched-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/activity/watching#list-repositories-watched-by-a-user](https://docs.github.com/en/rest/activity/watching#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/rest/activity/watching#list-watchers](https://docs.github.com/en/rest/activity/watching#list-watchers)\n\n```go\nfunc (s *ActivityService) MarkNotificationsRead(ctx context.Context, lastRead Timestamp) (*Response, error)\n```\nMarkNotificationsRead marks all notifications up to lastRead as read.\n\nGitHub API docs: [https://docs.github.com/en/rest/activity#mark-as-read](https://docs.github.com/en/rest/activity#mark-as-read)\n\n```go\nfunc (s *ActivityService) MarkRepositoryNotificationsRead(ctx context.Context, owner, repo string, lastRead Timestamp) (*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/rest/activity/notifications#mark-repository-notifications-as-read](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/notifications#mark-a-thread-as-read](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/watching#set-a-repository-subscription](https://docs.github.com/en/rest/activity/watching#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/rest/activity/notifications#set-a-thread-subscription](https://docs.github.com/en/rest/activity/notifications#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/rest/activity/starring#star-a-repository-for-the-authenticated-user](https://docs.github.com/en/rest/activity/starring#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/rest/activity/starring#unstar-a-repository-for-the-authenticated-user](https://docs.github.com/en/rest/activity/starring#unstar-a-repository-for-the-authenticated-user)\n\n```go\ntype ActorLocation struct {\n\tCountryCode *string `json:\"country_code,omitempty\"`\n}\n```\nActorLocation contains information about reported location for an actor.\n\n```go\nfunc (a *ActorLocation) GetCountryCode() string\n```\nGetCountryCode returns the CountryCode field if it's non-nil, zero value otherwise.\n\n```go\ntype AdminEnforcedChanges struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nAdminEnforcedChanges represents the changes made to the AdminEnforced policy.\n\n```go\nfunc (a *AdminEnforcedChanges) GetFrom() bool\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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/rest/enterprise-admin](https://docs.github.com/en/rest/enterprise-admin)\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/rest/enterprise-admin/admin\\_stats/](https://docs.github.com/en/rest/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/rest/enterprise/ldap/#update-ldap-mapping-for-a-team](https://docs.github.com/en/rest/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/enterprise-server/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user](https://docs.github.com/en/enterprise-server/rest/enterprise-admin/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 AdvancedSecurity struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nAdvancedSecurity specifies the state of advanced security on a repository.\n\nGitHub API docs: [https://docs.github.com/en/github/getting-started-with-github/learning-about-github/about-github-advanced-security](https://docs.github.com/en/github/getting-started-with-github/learning-about-github/about-github-advanced-security)\n\n```go\nfunc (a *AdvancedSecurity) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a AdvancedSecurity) String() string\n```\n\n```go\ntype AdvancedSecurityCommittersBreakdown struct {\n\tUserLogin      *string `json:\"user_login,omitempty\"`\n\tLastPushedDate *string `json:\"last_pushed_date,omitempty\"`\n}\n```\nAdvancedSecurityCommittersBreakdown represents the user activity breakdown for ActiveCommitters.\n\n```go\nfunc (a *AdvancedSecurityCommittersBreakdown) GetLastPushedDate() string\n```\nGetLastPushedDate returns the LastPushedDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AdvancedSecurityCommittersBreakdown) GetUserLogin() string\n```\nGetUserLogin returns the UserLogin field if it's non-nil, zero value otherwise.\n\n```go\ntype AdvisoryCVSs struct {\n\tScore        *float64 `json:\"score,omitempty\"`\n\tVectorString *string  `json:\"vector_string,omitempty\"`\n}\n```\nAdvisoryCVSs represents the advisory pertaining to the Common Vulnerability Scoring System.\n\n```go\nfunc (a *AdvisoryCVSs) GetScore() *float64\n```\nGetScore returns the Score field.\n\n```go\nfunc (a *AdvisoryCVSs) GetVectorString() string\n```\nGetVectorString returns the VectorString field if it's non-nil, zero value otherwise.\n\n```go\ntype AdvisoryCWEs struct {\n\tCWEID *string `json:\"cwe_id,omitempty\"`\n\tName  *string `json:\"name,omitempty\"`\n}\n```\nAdvisoryCWEs reprensent the advisory pertaining to Common Weakness Enumeration.\n\n```go\nfunc (a *AdvisoryCWEs) GetCWEID() string\n```\nGetCWEID returns the CWEID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AdvisoryCWEs) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\ntype AdvisoryIdentifier struct {\n\tValue *string `json:\"value,omitempty\"`\n\tType  *string `json:\"type,omitempty\"`\n}\n```\nAdvisoryIdentifier represents the identifier for a Security Advisory.\n\n```go\nfunc (a *AdvisoryIdentifier) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AdvisoryIdentifier) GetValue() string\n```\nGetValue returns the Value field if it's non-nil, zero value otherwise.\n\n```go\ntype AdvisoryReference struct {\n\tURL *string `json:\"url,omitempty\"`\n}\n```\nAdvisoryReference represents the reference url for the security advisory.\n\n```go\nfunc (a *AdvisoryReference) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype AdvisoryVulnerability struct {\n\tPackage                *VulnerabilityPackage `json:\"package,omitempty\"`\n\tSeverity               *string               `json:\"severity,omitempty\"`\n\tVulnerableVersionRange *string               `json:\"vulnerable_version_range,omitempty\"`\n\tFirstPatchedVersion    *FirstPatchedVersion  `json:\"first_patched_version,omitempty\"`\n}\n```\nAdvisoryVulnerability represents the vulnerability object for a Security Advisory.\n\n```go\nfunc (a *AdvisoryVulnerability) GetFirstPatchedVersion() *FirstPatchedVersion\n```\nGetFirstPatchedVersion returns the FirstPatchedVersion field.\n\n```go\nfunc (a *AdvisoryVulnerability) GetPackage() *VulnerabilityPackage\n```\nGetPackage returns the Package field.\n\n```go\nfunc (a *AdvisoryVulnerability) GetSeverity() string\n```\nGetSeverity returns the Severity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AdvisoryVulnerability) GetVulnerableVersionRange() string\n```\nGetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise.\n\n```go\ntype Alert struct {\n\tNumber             *int                  `json:\"number,omitempty\"`\n\tRepository         *Repository           `json:\"repository,omitempty\"`\n\tRuleID             *string               `json:\"rule_id,omitempty\"`\n\tRuleSeverity       *string               `json:\"rule_severity,omitempty\"`\n\tRuleDescription    *string               `json:\"rule_description,omitempty\"`\n\tRule               *Rule                 `json:\"rule,omitempty\"`\n\tTool               *Tool                 `json:\"tool,omitempty\"`\n\tCreatedAt          *Timestamp            `json:\"created_at,omitempty\"`\n\tUpdatedAt          *Timestamp            `json:\"updated_at,omitempty\"`\n\tFixedAt            *Timestamp            `json:\"fixed_at,omitempty\"`\n\tState              *string               `json:\"state,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\tMostRecentInstance *MostRecentInstance   `json:\"most_recent_instance,omitempty\"`\n\tInstances          []*MostRecentInstance `json:\"instances,omitempty\"`\n\tDismissedBy        *User                 `json:\"dismissed_by,omitempty\"`\n\tDismissedAt        *Timestamp            `json:\"dismissed_at,omitempty\"`\n\tDismissedReason    *string               `json:\"dismissed_reason,omitempty\"`\n\tDismissedComment   *string               `json:\"dismissed_comment,omitempty\"`\n\tInstancesURL       *string               `json:\"instances_url,omitempty\"`\n}\n```\nAlert represents an individual GitHub Code Scanning Alert on a single repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning](https://docs.github.com/en/rest/code-scanning)\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) GetDismissedAt() Timestamp\n```\nGetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetDismissedBy() *User\n```\nGetDismissedBy returns the DismissedBy field.\n\n```go\nfunc (a *Alert) GetDismissedComment() string\n```\nGetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetDismissedReason() string\n```\nGetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetFixedAt() Timestamp\n```\nGetFixedAt returns the FixedAt 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) GetInstancesURL() string\n```\nGetInstancesURL returns the InstancesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetMostRecentInstance() *MostRecentInstance\n```\nGetMostRecentInstance returns the MostRecentInstance field.\n\n```go\nfunc (a *Alert) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (a *Alert) GetRule() *Rule\n```\nGetRule returns the Rule field.\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) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Alert) GetTool() *Tool\n```\nGetTool returns the Tool field.\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) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt 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\t// If specified, only code scanning alerts with this severity will be returned. Possible values are: critical, high, medium, low, warning, note, error.\n\tSeverity string `url:\"severity,omitempty\"`\n\n\t// The name of a code scanning tool. Only results by this tool will be listed.\n\tToolName string `url:\"tool_name,omitempty\"`\n\n\tListCursorOptions\n\n\t// Add ListOptions so offset pagination with integer type \"page\" query parameter is accepted\n\t// since ListCursorOptions accepts \"page\" as string only.\n\tListOptions\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 AllowDeletionsEnforcementLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nAllowDeletionsEnforcementLevelChanges represents the changes made to the AllowDeletionsEnforcementLevel policy.\n\n```go\nfunc (a *AllowDeletionsEnforcementLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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 AllowForkSyncing struct {\n\tEnabled *bool `json:\"enabled,omitempty\"`\n}\n```\nAllowForkSyncing represents whether users can pull changes from upstream when the branch is locked.\n\n```go\nfunc (a *AllowForkSyncing) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\ntype AnalysesListOptions struct {\n\t// Return code scanning analyses belonging to the same SARIF upload.\n\tSarifID *string `url:\"sarif_id,omitempty\"`\n\n\t// Return code scanning analyses for a specific branch reference. The ref can be formatted as refs/heads/\u003cbranch name\u003e or simply \u003cbranch name\u003e.\n\tRef *string `url:\"ref,omitempty\"`\n\n\tListOptions\n}\n```\nAnalysesListOptions specifies optional parameters to the CodeScanningService.ListAnalysesForRepo method.\n\n```go\nfunc (a *AnalysesListOptions) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AnalysesListOptions) GetSarifID() string\n```\nGetSarifID returns the SarifID field if it's non-nil, zero value otherwise.\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\tInstallationsCount *int                     `json:\"installations_count,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) GetInstallationsCount() int\n```\nGetInstallationsCount returns the InstallationsCount 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\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\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) GetSlug() string\n```\nGetSlug returns the Slug 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/rest/apps/](https://docs.github.com/en/rest/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/rest/apps/installations#add-a-repository-to-an-app-installation](https://docs.github.com/en/rest/apps/installations#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/rest/apps/apps#create-a-github-app-from-a-manifest](https://docs.github.com/en/rest/apps/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\nTODO: Find GitHub API docs.\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/rest/apps/apps#create-an-installation-access-token-for-an-app](https://docs.github.com/en/rest/apps/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/rest/apps/apps#delete-an-installation-for-the-authenticated-app](https://docs.github.com/en/rest/apps/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/rest/apps/apps#get-an-organization-installation-for-the-authenticated-app](https://docs.github.com/en/rest/apps/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/rest/apps/apps#get-a-repository-installation-for-the-authenticated-app](https://docs.github.com/en/rest/apps/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/rest/apps/apps#get-a-user-installation-for-the-authenticated-app](https://docs.github.com/en/rest/apps/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/rest/apps/apps#get-the-authenticated-app](https://docs.github.com/en/rest/apps/apps#get-the-authenticated-app) GitHub API docs: [https://docs.github.com/en/rest/apps/apps#get-an-app](https://docs.github.com/en/rest/apps/apps#get-an-app)\n\n```go\nfunc (s *AppsService) GetHookConfig(ctx context.Context) (*HookConfig, *Response, error)\n```\nGetHookConfig returns the webhook configuration for a GitHub App. The underlying transport must be authenticated as an app.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps#get-a-webhook-configuration-for-an-app](https://docs.github.com/en/rest/apps#get-a-webhook-configuration-for-an-app)\n\n```go\nfunc (s *AppsService) GetHookDelivery(ctx context.Context, deliveryID int64) (*HookDelivery, *Response, error)\n```\nGetHookDelivery returns the App webhook delivery with the specified ID.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps/webhooks#get-a-delivery-for-an-app-webhook](https://docs.github.com/en/rest/apps/webhooks#get-a-delivery-for-an-app-webhook)\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/rest/apps/apps#get-an-installation-for-the-authenticated-app](https://docs.github.com/en/rest/apps/apps#get-an-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) ListHookDeliveries(ctx context.Context, opts *ListCursorOptions) ([]*HookDelivery, *Response, error)\n```\nListHookDeliveries lists deliveries of an App webhook.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps/webhooks#list-deliveries-for-an-app-webhook](https://docs.github.com/en/rest/apps/webhooks#list-deliveries-for-an-app-webhook)\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/rest/apps/apps#list-installations-for-the-authenticated-app](https://docs.github.com/en/rest/apps/apps#list-installations-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) ListRepos(ctx context.Context, opts *ListOptions) (*ListRepositories, *Response, error)\n```\nListRepos lists the repositories that are accessible to the authenticated installation.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps/installations#list-repositories-accessible-to-the-app-installation](https://docs.github.com/en/rest/apps/installations#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/rest/apps/installations#list-app-installations-accessible-to-the-user-access-token](https://docs.github.com/en/rest/apps/installations#list-app-installations-accessible-to-the-user-access-token)\n\n```go\nfunc (s *AppsService) ListUserRepos(ctx context.Context, id int64, opts *ListOptions) (*ListRepositories, *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/rest/apps/installations#list-repositories-accessible-to-the-user-access-token](https://docs.github.com/en/rest/apps/installations#list-repositories-accessible-to-the-user-access-token)\n\n```go\nfunc (s *AppsService) RedeliverHookDelivery(ctx context.Context, deliveryID int64) (*HookDelivery, *Response, error)\n```\nRedeliverHookDelivery redelivers a delivery for an App webhook.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps/webhooks#redeliver-a-delivery-for-an-app-webhook](https://docs.github.com/en/rest/apps/webhooks#redeliver-a-delivery-for-an-app-webhook)\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/rest/apps/installations#remove-a-repository-from-an-app-installation](https://docs.github.com/en/rest/apps/installations#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/rest/apps/installations#revoke-an-installation-access-token](https://docs.github.com/en/rest/apps/installations#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/rest/apps/apps#suspend-an-app-installation](https://docs.github.com/en/rest/apps/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/rest/apps/apps#unsuspend-an-app-installation](https://docs.github.com/en/rest/apps/apps#unsuspend-an-app-installation)\n\n```go\nfunc (s *AppsService) UpdateHookConfig(ctx context.Context, config *HookConfig) (*HookConfig, *Response, error)\n```\nUpdateHookConfig updates the webhook configuration for a GitHub App. The underlying transport must be authenticated as an app.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps#update-a-webhook-configuration-for-an-app](https://docs.github.com/en/rest/apps#update-a-webhook-configuration-for-an-app)\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 ArchivedAt struct {\n\tFrom *Timestamp `json:\"from,omitempty\"`\n\tTo   *Timestamp `json:\"to,omitempty\"`\n}\n```\nArchivedAt represents an archiving date change.\n\n```go\nfunc (a *ArchivedAt) GetFrom() Timestamp\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArchivedAt) GetTo() Timestamp\n```\nGetTo returns the To field if it's non-nil, zero value otherwise.\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\tURL                *string              `json:\"url,omitempty\"`\n\tArchiveDownloadURL *string              `json:\"archive_download_url,omitempty\"`\n\tExpired            *bool                `json:\"expired,omitempty\"`\n\tCreatedAt          *Timestamp           `json:\"created_at,omitempty\"`\n\tUpdatedAt          *Timestamp           `json:\"updated_at,omitempty\"`\n\tExpiresAt          *Timestamp           `json:\"expires_at,omitempty\"`\n\tWorkflowRun        *ArtifactWorkflowRun `json:\"workflow_run,omitempty\"`\n}\n```\nArtifact represents 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/rest/actions/artifacts](https://docs.github.com/en/rest/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\nfunc (a *Artifact) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Artifact) GetWorkflowRun() *ArtifactWorkflowRun\n```\nGetWorkflowRun returns the WorkflowRun field.\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/rest/actions/artifacts#artifacts](https://docs.github.com/en/rest/actions/artifacts#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 ArtifactWorkflowRun struct {\n\tID               *int64  `json:\"id,omitempty\"`\n\tRepositoryID     *int64  `json:\"repository_id,omitempty\"`\n\tHeadRepositoryID *int64  `json:\"head_repository_id,omitempty\"`\n\tHeadBranch       *string `json:\"head_branch,omitempty\"`\n\tHeadSHA          *string `json:\"head_sha,omitempty\"`\n}\n```\nArtifactWorkflowRun represents a GitHub artifact's workflow run.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/artifacts](https://docs.github.com/en/rest/actions/artifacts)\n\n```go\nfunc (a *ArtifactWorkflowRun) GetHeadBranch() string\n```\nGetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactWorkflowRun) GetHeadRepositoryID() int64\n```\nGetHeadRepositoryID returns the HeadRepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactWorkflowRun) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactWorkflowRun) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactWorkflowRun) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID 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 AuditEntry struct {\n\tActorIP                *string                 `json:\"actor_ip,omitempty\"`\n\tAction                 *string                 `json:\"action,omitempty\"` // The name of the action that was performed, for example `user.login` or `repo.create`.\n\tActive                 *bool                   `json:\"active,omitempty\"`\n\tActiveWas              *bool                   `json:\"active_was,omitempty\"`\n\tActor                  *string                 `json:\"actor,omitempty\"` // The actor who performed the action.\n\tActorLocation          *ActorLocation          `json:\"actor_location,omitempty\"`\n\tBlockedUser            *string                 `json:\"blocked_user,omitempty\"`\n\tBusiness               *string                 `json:\"business,omitempty\"`\n\tCancelledAt            *Timestamp              `json:\"cancelled_at,omitempty\"`\n\tCompletedAt            *Timestamp              `json:\"completed_at,omitempty\"`\n\tConclusion             *string                 `json:\"conclusion,omitempty\"`\n\tConfig                 *HookConfig             `json:\"config,omitempty\"`\n\tConfigWas              *HookConfig             `json:\"config_was,omitempty\"`\n\tContentType            *string                 `json:\"content_type,omitempty\"`\n\tCreatedAt              *Timestamp              `json:\"created_at,omitempty\"`\n\tDeployKeyFingerprint   *string                 `json:\"deploy_key_fingerprint,omitempty\"`\n\tDocumentID             *string                 `json:\"_document_id,omitempty\"`\n\tEmoji                  *string                 `json:\"emoji,omitempty\"`\n\tEnvironmentName        *string                 `json:\"environment_name,omitempty\"`\n\tEvent                  *string                 `json:\"event,omitempty\"`\n\tEvents                 []string                `json:\"events,omitempty\"`\n\tEventsWere             []string                `json:\"events_were,omitempty\"`\n\tExplanation            *string                 `json:\"explanation,omitempty\"`\n\tFingerprint            *string                 `json:\"fingerprint,omitempty\"`\n\tHashedToken            *string                 `json:\"hashed_token,omitempty\"`\n\tHeadBranch             *string                 `json:\"head_branch,omitempty\"`\n\tHeadSHA                *string                 `json:\"head_sha,omitempty\"`\n\tHookID                 *int64                  `json:\"hook_id,omitempty\"`\n\tIsHostedRunner         *bool                   `json:\"is_hosted_runner,omitempty\"`\n\tJobName                *string                 `json:\"job_name,omitempty\"`\n\tJobWorkflowRef         *string                 `json:\"job_workflow_ref,omitempty\"`\n\tLimitedAvailability    *bool                   `json:\"limited_availability,omitempty\"`\n\tMessage                *string                 `json:\"message,omitempty\"`\n\tName                   *string                 `json:\"name,omitempty\"`\n\tOAuthApplicationID     *int64                  `json:\"oauth_application_id,omitempty\"`\n\tOldUser                *string                 `json:\"old_user,omitempty\"`\n\tOldPermission          *string                 `json:\"old_permission,omitempty\"` // The permission level for membership changes, for example `admin` or `read`.\n\tOpenSSHPublicKey       *string                 `json:\"openssh_public_key,omitempty\"`\n\tOperationType          *string                 `json:\"operation_type,omitempty\"`\n\tOrg                    *string                 `json:\"org,omitempty\"`\n\tOrgID                  *int64                  `json:\"org_id,omitempty\"`\n\tOverriddenCodes        []string                `json:\"overridden_codes,omitempty\"`\n\tPermission             *string                 `json:\"permission,omitempty\"` // The permission level for membership changes, for example `admin` or `read`.\n\tPreviousVisibility     *string                 `json:\"previous_visibility,omitempty\"`\n\tProgrammaticAccessType *string                 `json:\"programmatic_access_type,omitempty\"`\n\tPullRequestID          *int64                  `json:\"pull_request_id,omitempty\"`\n\tPullRequestTitle       *string                 `json:\"pull_request_title,omitempty\"`\n\tPullRequestURL         *string                 `json:\"pull_request_url,omitempty\"`\n\tReadOnly               *string                 `json:\"read_only,omitempty\"`\n\tReasons                []*PolicyOverrideReason `json:\"reasons,omitempty\"`\n\tRepo                   *string                 `json:\"repo,omitempty\"`\n\tRepository             *string                 `json:\"repository,omitempty\"`\n\tRepositoryPublic       *bool                   `json:\"repository_public,omitempty\"`\n\tRunAttempt             *int64                  `json:\"run_attempt,omitempty\"`\n\tRunnerGroupID          *int64                  `json:\"runner_group_id,omitempty\"`\n\tRunnerGroupName        *string                 `json:\"runner_group_name,omitempty\"`\n\tRunnerID               *int64                  `json:\"runner_id,omitempty\"`\n\tRunnerLabels           []string                `json:\"runner_labels,omitempty\"`\n\tRunnerName             *string                 `json:\"runner_name,omitempty\"`\n\tRunNumber              *int64                  `json:\"run_number,omitempty\"`\n\tSecretsPassed          []string                `json:\"secrets_passed,omitempty\"`\n\tSourceVersion          *string                 `json:\"source_version,omitempty\"`\n\tStartedAt              *Timestamp              `json:\"started_at,omitempty\"`\n\tTargetLogin            *string                 `json:\"target_login,omitempty\"`\n\tTargetVersion          *string                 `json:\"target_version,omitempty\"`\n\tTeam                   *string                 `json:\"team,omitempty\"`\n\tTimestamp              *Timestamp              `json:\"@timestamp,omitempty\"` // The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n\tTokenID                *int64                  `json:\"token_id,omitempty\"`\n\tTokenScopes            *string                 `json:\"token_scopes,omitempty\"`\n\tTopic                  *string                 `json:\"topic,omitempty\"`\n\tTransportProtocolName  *string                 `json:\"transport_protocol_name,omitempty\"` // A human readable name for the protocol (for example, HTTP or SSH) used to transfer Git data.\n\tTransportProtocol      *int                    `json:\"transport_protocol,omitempty\"`      // The type of protocol (for example, HTTP=1 or SSH=2) used to transfer Git data.\n\tTriggerID              *int64                  `json:\"trigger_id,omitempty\"`\n\tUser                   *string                 `json:\"user,omitempty\"` // The user that was affected by the action performed (if available).\n\tUserAgent              *string                 `json:\"user_agent,omitempty\"`\n\tVisibility             *string                 `json:\"visibility,omitempty\"` // The repository visibility, for example `public` or `private`.\n\tWorkflowID             *int64                  `json:\"workflow_id,omitempty\"`\n\tWorkflowRunID          *int64                  `json:\"workflow_run_id,omitempty\"`\n\n\tData *AuditEntryData `json:\"data,omitempty\"`\n}\n```\nAuditEntry describes the fields that may be represented by various audit-log \"action\" entries. For a list of actions see - [https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#audit-log-actions](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#audit-log-actions)\n\n```go\nfunc (a *AuditEntry) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetActive() bool\n```\nGetActive returns the Active field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetActiveWas() bool\n```\nGetActiveWas returns the ActiveWas field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetActor() string\n```\nGetActor returns the Actor field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetActorIP() string\n```\nGetActorIP returns the ActorIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetActorLocation() *ActorLocation\n```\nGetActorLocation returns the ActorLocation field.\n\n```go\nfunc (a *AuditEntry) GetBlockedUser() string\n```\nGetBlockedUser returns the BlockedUser field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetBusiness() string\n```\nGetBusiness returns the Business field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetCancelledAt() Timestamp\n```\nGetCancelledAt returns the CancelledAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetConfig() *HookConfig\n```\nGetConfig returns the Config field.\n\n```go\nfunc (a *AuditEntry) GetConfigWas() *HookConfig\n```\nGetConfigWas returns the ConfigWas field.\n\n```go\nfunc (a *AuditEntry) GetContentType() string\n```\nGetContentType returns the ContentType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetData() *AuditEntryData\n```\nGetData returns the Data field.\n\n```go\nfunc (a *AuditEntry) GetDeployKeyFingerprint() string\n```\nGetDeployKeyFingerprint returns the DeployKeyFingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetDocumentID() string\n```\nGetDocumentID returns the DocumentID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetEmoji() string\n```\nGetEmoji returns the Emoji field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetEnvironmentName() string\n```\nGetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetExplanation() string\n```\nGetExplanation returns the Explanation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetHashedToken() string\n```\nGetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetHeadBranch() string\n```\nGetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetHookID() int64\n```\nGetHookID returns the HookID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetIsHostedRunner() bool\n```\nGetIsHostedRunner returns the IsHostedRunner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetJobName() string\n```\nGetJobName returns the JobName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetJobWorkflowRef() string\n```\nGetJobWorkflowRef returns the JobWorkflowRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetLimitedAvailability() bool\n```\nGetLimitedAvailability returns the LimitedAvailability field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOAuthApplicationID() int64\n```\nGetOAuthApplicationID returns the OAuthApplicationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOldPermission() string\n```\nGetOldPermission returns the OldPermission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOldUser() string\n```\nGetOldUser returns the OldUser field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOpenSSHPublicKey() string\n```\nGetOpenSSHPublicKey returns the OpenSSHPublicKey field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOperationType() string\n```\nGetOperationType returns the OperationType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOrg() string\n```\nGetOrg returns the Org field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetOrgID() int64\n```\nGetOrgID returns the OrgID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetPreviousVisibility() string\n```\nGetPreviousVisibility returns the PreviousVisibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetProgrammaticAccessType() string\n```\nGetProgrammaticAccessType returns the ProgrammaticAccessType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetPullRequestID() int64\n```\nGetPullRequestID returns the PullRequestID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetPullRequestTitle() string\n```\nGetPullRequestTitle returns the PullRequestTitle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetPullRequestURL() string\n```\nGetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetReadOnly() string\n```\nGetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRepo() string\n```\nGetRepo returns the Repo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRepository() string\n```\nGetRepository returns the Repository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRepositoryPublic() bool\n```\nGetRepositoryPublic returns the RepositoryPublic field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRunAttempt() int64\n```\nGetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRunNumber() int64\n```\nGetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRunnerGroupName() string\n```\nGetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRunnerID() int64\n```\nGetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetRunnerName() string\n```\nGetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetSourceVersion() string\n```\nGetSourceVersion returns the SourceVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTargetLogin() string\n```\nGetTargetLogin returns the TargetLogin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTargetVersion() string\n```\nGetTargetVersion returns the TargetVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTeam() string\n```\nGetTeam returns the Team field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTimestamp() Timestamp\n```\nGetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTokenID() int64\n```\nGetTokenID returns the TokenID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTokenScopes() string\n```\nGetTokenScopes returns the TokenScopes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTopic() string\n```\nGetTopic returns the Topic field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTransportProtocol() int\n```\nGetTransportProtocol returns the TransportProtocol field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTransportProtocolName() string\n```\nGetTransportProtocolName returns the TransportProtocolName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetTriggerID() int64\n```\nGetTriggerID returns the TriggerID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetUserAgent() string\n```\nGetUserAgent returns the UserAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetWorkflowID() int64\n```\nGetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetWorkflowRunID() int64\n```\nGetWorkflowRunID returns the WorkflowRunID field if it's non-nil, zero value otherwise.\n\n```go\ntype AuditEntryData struct {\n\tOldName  *string `json:\"old_name,omitempty\"`  // The previous name of the repository, for a name change\n\tOldLogin *string `json:\"old_login,omitempty\"` // The previous name of the organization, for a name change\n}\n```\nAuditEntryData represents additional information stuffed into a \\`data\\` field.\n\n```go\nfunc (a *AuditEntryData) GetOldLogin() string\n```\nGetOldLogin returns the OldLogin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntryData) GetOldName() string\n```\nGetOldName returns the OldName 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/rest/oauth-authorizations#update-an-existing-authorization](https://docs.github.com/en/rest/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/rest/oauth-authorizations](https://docs.github.com/en/rest/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/rest/apps/oauth-applications#check-a-token](https://docs.github.com/en/rest/apps/oauth-applications#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/rest/apps/oauth-applications#delete-an-app-authorization](https://docs.github.com/en/rest/apps/oauth-applications#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/rest/apps/oauth-applications#reset-a-token](https://docs.github.com/en/rest/apps/oauth-applications#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/rest/apps/oauth-applications#delete-an-app-token](https://docs.github.com/en/rest/apps/oauth-applications#delete-an-app-token)\n\n```go\ntype AuthorizedActorNames struct {\n\tFrom []string `json:\"from,omitempty\"`\n}\n```\nAuthorizedActorNames represents who are authorized to edit the branch protection rules.\n\n```go\ntype AuthorizedActorsOnly struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nAuthorizedActorsOnly represents if the branch rule can be edited by authorized actors only.\n\n```go\nfunc (a *AuthorizedActorsOnly) GetFrom() bool\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype AuthorizedDismissalActorsOnlyChanges struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nAuthorizedDismissalActorsOnlyChanges represents the changes made to the AuthorizedDismissalActorsOnly policy.\n\n```go\nfunc (a *AuthorizedDismissalActorsOnlyChanges) GetFrom() bool\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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 Autolink struct {\n\tID             *int64  `json:\"id,omitempty\"`\n\tKeyPrefix      *string `json:\"key_prefix,omitempty\"`\n\tURLTemplate    *string `json:\"url_template,omitempty\"`\n\tIsAlphanumeric *bool   `json:\"is_alphanumeric,omitempty\"`\n}\n```\nAutolink represents autolinks to external resources like JIRA issues and Zendesk tickets.\n\n```go\nfunc (a *Autolink) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Autolink) GetIsAlphanumeric() bool\n```\nGetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Autolink) GetKeyPrefix() string\n```\nGetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *Autolink) GetURLTemplate() string\n```\nGetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise.\n\n```go\ntype AutolinkOptions struct {\n\tKeyPrefix      *string `json:\"key_prefix,omitempty\"`\n\tURLTemplate    *string `json:\"url_template,omitempty\"`\n\tIsAlphanumeric *bool   `json:\"is_alphanumeric,omitempty\"`\n}\n```\nAutolinkOptions specifies parameters for RepositoriesService.AddAutolink method.\n\n```go\nfunc (a *AutolinkOptions) GetIsAlphanumeric() bool\n```\nGetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AutolinkOptions) GetKeyPrefix() string\n```\nGetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AutolinkOptions) GetURLTemplate() string\n```\nGetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise.\n\n```go\ntype AutomatedSecurityFixes struct {\n\tEnabled *bool `json:\"enabled\"`\n\tPaused  *bool `json:\"paused\"`\n}\n```\nAutomatedSecurityFixes represents their status.\n\n```go\nfunc (a *AutomatedSecurityFixes) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AutomatedSecurityFixes) GetPaused() bool\n```\nGetPaused returns the Paused 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 BillingService service\n```\nBillingService provides access to the billing related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing](https://docs.github.com/en/rest/billing)\n\n```go\nfunc (s *BillingService) GetActionsBillingOrg(ctx context.Context, org string) (*ActionBilling, *Response, error)\n```\nGetActionsBillingOrg returns the summary of the free and paid GitHub Actions minutes used for an Org.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing#get-github-actions-billing-for-an-organization](https://docs.github.com/en/rest/billing#get-github-actions-billing-for-an-organization)\n\n```go\nfunc (s *BillingService) GetActionsBillingUser(ctx context.Context, user string) (*ActionBilling, *Response, error)\n```\nGetActionsBillingUser returns the summary of the free and paid GitHub Actions minutes used for a user.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing#get-github-actions-billing-for-a-user](https://docs.github.com/en/rest/billing#get-github-actions-billing-for-a-user)\n\n```go\nfunc (s *BillingService) GetAdvancedSecurityActiveCommittersOrg(ctx context.Context, org string, opts *ListOptions) (*ActiveCommitters, *Response, error)\n```\nGetAdvancedSecurityActiveCommittersOrg returns the GitHub Advanced Security active committers for an organization per repository.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/billing?apiVersion=2022-11-28#get-github-advanced-security-active-committers-for-an-organization](https://docs.github.com/en/enterprise-cloud@latest/rest/billing?apiVersion=2022-11-28#get-github-advanced-security-active-committers-for-an-organization)\n\n```go\nfunc (s *BillingService) GetPackagesBillingOrg(ctx context.Context, org string) (*PackageBilling, *Response, error)\n```\nGetPackagesBillingOrg returns the free and paid storage used for GitHub Packages in gigabytes for an Org.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing#get-github-packages-billing-for-an-organization](https://docs.github.com/en/rest/billing#get-github-packages-billing-for-an-organization)\n\n```go\nfunc (s *BillingService) GetPackagesBillingUser(ctx context.Context, user string) (*PackageBilling, *Response, error)\n```\nGetPackagesBillingUser returns the free and paid storage used for GitHub Packages in gigabytes for a user.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing#get-github-packages-billing-for-a-user](https://docs.github.com/en/rest/billing#get-github-packages-billing-for-a-user)\n\n```go\nfunc (s *BillingService) GetStorageBillingOrg(ctx context.Context, org string) (*StorageBilling, *Response, error)\n```\nGetStorageBillingOrg returns the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages in gigabytes for an Org.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing#get-shared-storage-billing-for-an-organization](https://docs.github.com/en/rest/billing#get-shared-storage-billing-for-an-organization)\n\n```go\nfunc (s *BillingService) GetStorageBillingUser(ctx context.Context, user string) (*StorageBilling, *Response, error)\n```\nGetStorageBillingUser returns the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages in gigabytes for a user.\n\nGitHub API docs: [https://docs.github.com/en/rest/billing#get-shared-storage-billing-for-a-user](https://docs.github.com/en/rest/billing#get-shared-storage-billing-for-a-user)\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 BlockCreations struct {\n\tEnabled *bool `json:\"enabled,omitempty\"`\n}\n```\nBlockCreations represents whether users can push changes that create branches. If this is true, this setting blocks pushes that create new branches, unless the push is initiated by a user, team, or app which has the ability to push.\n\n```go\nfunc (b *BlockCreations) GetEnabled() bool\n```\nGetEnabled returns the Enabled 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 BranchPolicy struct {\n\tProtectedBranches    *bool `json:\"protected_branches,omitempty\"`\n\tCustomBranchPolicies *bool `json:\"custom_branch_policies,omitempty\"`\n}\n```\nBranchPolicy represents the options for whether a branch deployment policy is applied to this environment.\n\n```go\nfunc (b *BranchPolicy) GetCustomBranchPolicies() bool\n```\nGetCustomBranchPolicies returns the CustomBranchPolicies field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchPolicy) GetProtectedBranches() bool\n```\nGetProtectedBranches returns the ProtectedBranches field if it's non-nil, zero value otherwise.\n\n```go\ntype BranchProtectionRule struct {\n\tID                                       *int64     `json:\"id,omitempty\"`\n\tRepositoryID                             *int64     `json:\"repository_id,omitempty\"`\n\tName                                     *string    `json:\"name,omitempty\"`\n\tCreatedAt                                *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt                                *Timestamp `json:\"updated_at,omitempty\"`\n\tPullRequestReviewsEnforcementLevel       *string    `json:\"pull_request_reviews_enforcement_level,omitempty\"`\n\tRequiredApprovingReviewCount             *int       `json:\"required_approving_review_count,omitempty\"`\n\tDismissStaleReviewsOnPush                *bool      `json:\"dismiss_stale_reviews_on_push,omitempty\"`\n\tAuthorizedDismissalActorsOnly            *bool      `json:\"authorized_dismissal_actors_only,omitempty\"`\n\tIgnoreApprovalsFromContributors          *bool      `json:\"ignore_approvals_from_contributors,omitempty\"`\n\tRequireCodeOwnerReview                   *bool      `json:\"require_code_owner_review,omitempty\"`\n\tRequiredStatusChecks                     []string   `json:\"required_status_checks,omitempty\"`\n\tRequiredStatusChecksEnforcementLevel     *string    `json:\"required_status_checks_enforcement_level,omitempty\"`\n\tStrictRequiredStatusChecksPolicy         *bool      `json:\"strict_required_status_checks_policy,omitempty\"`\n\tSignatureRequirementEnforcementLevel     *string    `json:\"signature_requirement_enforcement_level,omitempty\"`\n\tLinearHistoryRequirementEnforcementLevel *string    `json:\"linear_history_requirement_enforcement_level,omitempty\"`\n\tAdminEnforced                            *bool      `json:\"admin_enforced,omitempty\"`\n\tAllowForcePushesEnforcementLevel         *string    `json:\"allow_force_pushes_enforcement_level,omitempty\"`\n\tAllowDeletionsEnforcementLevel           *string    `json:\"allow_deletions_enforcement_level,omitempty\"`\n\tMergeQueueEnforcementLevel               *string    `json:\"merge_queue_enforcement_level,omitempty\"`\n\tRequiredDeploymentsEnforcementLevel      *string    `json:\"required_deployments_enforcement_level,omitempty\"`\n\tRequiredConversationResolutionLevel      *string    `json:\"required_conversation_resolution_level,omitempty\"`\n\tAuthorizedActorsOnly                     *bool      `json:\"authorized_actors_only,omitempty\"`\n\tAuthorizedActorNames                     []string   `json:\"authorized_actor_names,omitempty\"`\n}\n```\nBranchProtectionRule represents the rule applied to a repositories branch.\n\n```go\nfunc (b *BranchProtectionRule) GetAdminEnforced() bool\n```\nGetAdminEnforced returns the AdminEnforced field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetAllowDeletionsEnforcementLevel() string\n```\nGetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetAllowForcePushesEnforcementLevel() string\n```\nGetAllowForcePushesEnforcementLevel returns the AllowForcePushesEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetAuthorizedActorsOnly() bool\n```\nGetAuthorizedActorsOnly returns the AuthorizedActorsOnly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetAuthorizedDismissalActorsOnly() bool\n```\nGetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetDismissStaleReviewsOnPush() bool\n```\nGetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetIgnoreApprovalsFromContributors() bool\n```\nGetIgnoreApprovalsFromContributors returns the IgnoreApprovalsFromContributors field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetLinearHistoryRequirementEnforcementLevel() string\n```\nGetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetMergeQueueEnforcementLevel() string\n```\nGetMergeQueueEnforcementLevel returns the MergeQueueEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetPullRequestReviewsEnforcementLevel() string\n```\nGetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetRequireCodeOwnerReview() bool\n```\nGetRequireCodeOwnerReview returns the RequireCodeOwnerReview field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetRequiredApprovingReviewCount() int\n```\nGetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetRequiredConversationResolutionLevel() string\n```\nGetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetRequiredDeploymentsEnforcementLevel() string\n```\nGetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetRequiredStatusChecksEnforcementLevel() string\n```\nGetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetSignatureRequirementEnforcementLevel() string\n```\nGetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetStrictRequiredStatusChecksPolicy() bool\n```\nGetStrictRequiredStatusChecksPolicy returns the StrictRequiredStatusChecksPolicy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRule) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype BranchProtectionRuleEvent struct {\n\tAction       *string               `json:\"action,omitempty\"`\n\tRule         *BranchProtectionRule `json:\"rule,omitempty\"`\n\tChanges      *ProtectionChanges    `json:\"changes,omitempty\"`\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```\nBranchProtectionRuleEvent triggered when a check suite is \"created\", \"edited\", or \"deleted\". The Webhook event name is \"branch\\_protection\\_rule\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch\\_protection\\_rule](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule)\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetChanges() *ProtectionChanges\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetRule() *BranchProtectionRule\n```\nGetRule returns the Rule field.\n\n```go\nfunc (b *BranchProtectionRuleEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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\"`\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 BypassActor struct {\n\tActorID *int64 `json:\"actor_id,omitempty\"`\n\t// Possible values for ActorType are: RepositoryRole, Team, Integration, OrganizationAdmin\n\tActorType *string `json:\"actor_type,omitempty\"`\n\t// Possible values for BypassMode are: always, pull_request\n\tBypassMode *string `json:\"bypass_mode,omitempty\"`\n}\n```\nBypassActor represents the bypass actors from a ruleset.\n\n```go\nfunc (b *BypassActor) GetActorID() int64\n```\nGetActorID returns the ActorID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BypassActor) GetActorType() string\n```\nGetActorType returns the ActorType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BypassActor) GetBypassMode() string\n```\nGetBypassMode returns the BypassMode field if it's non-nil, zero value otherwise.\n\n```go\ntype BypassPullRequestAllowances struct {\n\t// The list of users allowed to bypass pull request requirements.\n\tUsers []*User `json:\"users\"`\n\t// The list of teams allowed to bypass pull request requirements.\n\tTeams []*Team `json:\"teams\"`\n\t// The list of apps allowed to bypass pull request requirements.\n\tApps []*App `json:\"apps\"`\n}\n```\nBypassPullRequestAllowances represents the people, teams, or apps who are allowed to bypass required pull requests.\n\n```go\ntype BypassPullRequestAllowancesRequest struct {\n\t// The list of user logins allowed to bypass pull request requirements.\n\tUsers []string `json:\"users\"`\n\t// The list of team slugs allowed to bypass pull request requirements.\n\tTeams []string `json:\"teams\"`\n\t// The list of app slugs allowed to bypass pull request requirements.\n\tApps []string `json:\"apps\"`\n}\n```\nBypassPullRequestAllowancesRequest represents the people, teams, or apps who are allowed to bypass required pull requests. It is separate from BypassPullRequestAllowances 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\", \"completed\", \"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\", \"completed\", or \"rerequested\". The Webhook event name is \"check\\_run\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#check\\_run](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#check_run)\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\tCreatedAt    *Timestamp     `json:\"created_at,omitempty\"`\n\tUpdatedAt    *Timestamp     `json:\"updated_at,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) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt 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) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt 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/developers/webhooks-and-events/webhook-events-and-payloads#check\\_suite](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#check_suite)\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/rest/checks/](https://docs.github.com/en/rest/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/rest/checks/runs#create-a-check-run](https://docs.github.com/en/rest/checks/runs#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/rest/checks/suites#create-a-check-suite](https://docs.github.com/en/rest/checks/suites#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/rest/checks/runs#get-a-check-run](https://docs.github.com/en/rest/checks/runs#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/rest/checks/suites#get-a-check-suite](https://docs.github.com/en/rest/checks/suites#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/rest/checks/runs#list-check-run-annotations](https://docs.github.com/en/rest/checks/runs#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/rest/checks/runs#list-check-runs-in-a-check-suite](https://docs.github.com/en/rest/checks/runs#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/rest/checks/runs#list-check-runs-for-a-git-reference](https://docs.github.com/en/rest/checks/runs#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/rest/checks/suites#list-check-suites-for-a-git-reference](https://docs.github.com/en/rest/checks/suites#list-check-suites-for-a-git-reference)\n\n```go\nfunc (s *ChecksService) ReRequestCheckRun(ctx context.Context, owner, repo string, checkRunID int64) (*Response, error)\n```\nReRequestCheckRun triggers GitHub to rerequest an existing check run.\n\nGitHub API docs: [https://docs.github.com/en/rest/checks/runs#rerequest-a-check-run](https://docs.github.com/en/rest/checks/runs#rerequest-a-check-run)\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/rest/checks/suites#rerequest-a-check-suite](https://docs.github.com/en/rest/checks/suites#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/rest/checks/suites#update-repository-preferences-for-check-suites](https://docs.github.com/en/rest/checks/suites#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/rest/checks/runs#update-a-check-run](https://docs.github.com/en/rest/checks/runs#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\tBilling            *BillingService\n\tChecks             *ChecksService\n\tCodeScanning       *CodeScanningService\n\tCodespaces         *CodespacesService\n\tDependabot         *DependabotService\n\tDependencyGraph    *DependencyGraphService\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\tSCIM               *SCIMService\n\tSearch             *SearchService\n\tSecretScanning     *SecretScanningService\n\tSecurityAdvisories *SecurityAdvisoriesService\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 NewClientWithEnvProxy() *Client\n```\nNewClientWithEnvProxy enhances NewClient with the HttpProxy env.\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 NewTokenClient(ctx context.Context, token string) *Client\n```\nNewTokenClient returns a new GitHub API client authenticated with the provided token.\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/rest/meta#get-github-meta-information](https://docs.github.com/en/rest/meta#get-github-meta-information)\n\n```go\nfunc (c *Client) BareDo(ctx context.Context, req *http.Request) (*Response, error)\n```\nBareDo sends an API request and lets you handle the api response. If an error or API Error occurs, the error will contain more information. Otherwise you are supposed to read and close the response's Body. If rate limit is exceeded and reset time is in the future, BareDo 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) Client() *http.Client\n```\nClient returns the http.Client used by this GitHub client.\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 v is nil, and no error hapens, the response is returned as is. 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/rest/codes\\_of\\_conduct/#get-an-individual-code-of-conduct](https://docs.github.com/en/rest/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/rest/codes\\_of\\_conduct/#list-all-codes-of-conduct](https://docs.github.com/en/rest/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/rest/emojis/](https://docs.github.com/en/rest/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/rest/markdown/](https://docs.github.com/en/rest/markdown/)\n\n```go\nfunc (c *Client) NewFormRequest(urlStr string, body io.Reader, opts ...RequestOption) (*http.Request, error)\n```\nNewFormRequest 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. Body is sent with Content-Type: application/x-www-form-urlencoded.\n\n```go\nfunc (c *Client) NewRequest(method, urlStr string, body interface{}, opts ...RequestOption) (*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, opts ...RequestOption) (*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 CodeScanningAlertEvent struct {\n\tAction *string `json:\"action,omitempty\"`\n\tAlert  *Alert  `json:\"alert,omitempty\"`\n\tRef    *string `json:\"ref,omitempty\"`\n\t// CommitOID is the commit SHA of the code scanning alert\n\tCommitOID *string       `json:\"commit_oid,omitempty\"`\n\tRepo      *Repository   `json:\"repository,omitempty\"`\n\tOrg       *Organization `json:\"organization,omitempty\"`\n\tSender    *User         `json:\"sender,omitempty\"`\n\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nCodeScanningAlertEvent is triggered when a code scanning finds a potential vulnerability or error in your code.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#code\\_scanning\\_alert](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#code_scanning_alert)\n\n```go\nfunc (c *CodeScanningAlertEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetAlert() *Alert\n```\nGetAlert returns the Alert field.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetCommitOID() string\n```\nGetCommitOID returns the CommitOID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CodeScanningAlertEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype CodeScanningAlertState struct {\n\t// State sets the state of the code scanning alert and is a required field.\n\t// You must also provide DismissedReason when you set the state to \"dismissed\".\n\t// State can be one of: \"open\", \"dismissed\".\n\tState string `json:\"state\"`\n\t// DismissedReason represents the reason for dismissing or closing the alert.\n\t// It is required when the state is \"dismissed\".\n\t// It can be one of: \"false positive\", \"won't fix\", \"used in tests\".\n\tDismissedReason *string `json:\"dismissed_reason,omitempty\"`\n\t// DismissedComment is associated with the dismissal of the alert.\n\tDismissedComment *string `json:\"dismissed_comment,omitempty\"`\n}\n```\nCodeScanningAlertState specifies the state of a code scanning alert.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning](https://docs.github.com/en/rest/code-scanning)\n\n```go\nfunc (c *CodeScanningAlertState) GetDismissedComment() string\n```\nGetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeScanningAlertState) GetDismissedReason() string\n```\nGetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise.\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/rest/code-scanning](https://docs.github.com/en/rest/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/rest/code-scanning#get-a-code-scanning-alert](https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-alert)\n\n```go\nfunc (s *CodeScanningService) GetAnalysis(ctx context.Context, owner, repo string, id int64) (*ScanningAnalysis, *Response, error)\n```\nGetAnalysis gets a single code scanning analysis 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 analysis\\_id is the ID of the analysis, as returned from the ListAnalysesForRepo operation.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-analysis-for-a-repository](https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-analysis-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) GetDefaultSetupConfiguration(ctx context.Context, owner, repo string) (*DefaultSetupConfiguration, *Response, error)\n```\nGetDefaultSetupConfiguration gets a code scanning default setup configuration.\n\nYou must use an access token with the repo scope to use this endpoint with private repos or the public\\_repo scope for public repos. GitHub Apps must have the repo write permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-default-setup-configuration](https://docs.github.com/en/rest/code-scanning#get-a-code-scanning-default-setup-configuration)\n\n```go\nfunc (s *CodeScanningService) ListAlertsForOrg(ctx context.Context, org string, opts *AlertListOptions) ([]*Alert, *Response, error)\n```\nListAlertsForOrg lists code scanning alerts for an org.\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\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-an-organization](https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-an-organization)\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/rest/code-scanning#list-code-scanning-alerts-for-a-repository](https://docs.github.com/en/rest/code-scanning#list-code-scanning-alerts-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) ListAnalysesForRepo(ctx context.Context, owner, repo string, opts *AnalysesListOptions) ([]*ScanningAnalysis, *Response, error)\n```\nListAnalysesForRepo lists code scanning analyses for a repository.\n\nLists the details of all code scanning analyses for a repository, starting with the most recent. 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/rest/code-scanning#list-code-scanning-analyses-for-a-repository](https://docs.github.com/en/rest/code-scanning#list-code-scanning-analyses-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) UpdateAlert(ctx context.Context, owner, repo string, id int64, stateInfo *CodeScanningAlertState) (*Alert, *Response, error)\n```\nUpdateAlert updates the state of 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/rest/code-scanning?apiVersion=2022-11-28#update-a-code-scanning-alert](https://docs.github.com/en/rest/code-scanning?apiVersion=2022-11-28#update-a-code-scanning-alert)\n\n```go\nfunc (s *CodeScanningService) UpdateDefaultSetupConfiguration(ctx context.Context, owner, repo string, options *UpdateDefaultSetupConfigurationOptions) (*UpdateDefaultSetupConfigurationResponse, *Response, error)\n```\nUpdateDefaultSetupConfiguration updates a code scanning default setup configuration.\n\nYou must use an access token with the repo scope to use this endpoint with private repos or the public\\_repo scope for public repos. GitHub Apps must have the repo write permission to use this endpoint.\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.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning#update-a-code-scanning-default-setup-configuration](https://docs.github.com/en/rest/code-scanning#update-a-code-scanning-default-setup-configuration)\n\n```go\nfunc (s *CodeScanningService) UploadSarif(ctx context.Context, owner, repo string, sarif *SarifAnalysis) (*SarifID, *Response, error)\n```\nUploadSarif uploads the result of code scanning job to GitHub.\n\nFor the parameter sarif, you must first compress your SARIF file using gzip and then translate the contents of the file into a Base64 encoding string. You must use an access token with the security\\_events scope to use this endpoint. GitHub Apps must have the security\\_events write permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning#upload-an-analysis-as-sarif-data](https://docs.github.com/en/rest/code-scanning#upload-an-analysis-as-sarif-data)\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 CodeownersError struct {\n\tLine       int     `json:\"line\"`\n\tColumn     int     `json:\"column\"`\n\tKind       string  `json:\"kind\"`\n\tSource     string  `json:\"source\"`\n\tSuggestion *string `json:\"suggestion,omitempty\"`\n\tMessage    string  `json:\"message\"`\n\tPath       string  `json:\"path\"`\n}\n```\nCodeownersError represents a syntax error detected in the CODEOWNERS file.\n\n```go\nfunc (c *CodeownersError) GetSuggestion() string\n```\nGetSuggestion returns the Suggestion field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeownersErrors struct {\n\tErrors []*CodeownersError `json:\"errors\"`\n}\n```\nCodeownersErrors represents a list of syntax errors detected in the CODEOWNERS file.\n\n```go\ntype Codespace struct {\n\tID                             *int64                        `json:\"id,omitempty\"`\n\tName                           *string                       `json:\"name,omitempty\"`\n\tDisplayName                    *string                       `json:\"display_name,omitempty\"`\n\tEnvironmentID                  *string                       `json:\"environment_id,omitempty\"`\n\tOwner                          *User                         `json:\"owner,omitempty\"`\n\tBillableOwner                  *User                         `json:\"billable_owner,omitempty\"`\n\tRepository                     *Repository                   `json:\"repository,omitempty\"`\n\tMachine                        *CodespacesMachine            `json:\"machine,omitempty\"`\n\tDevcontainerPath               *string                       `json:\"devcontainer_path,omitempty\"`\n\tPrebuild                       *bool                         `json:\"prebuild,omitempty\"`\n\tCreatedAt                      *Timestamp                    `json:\"created_at,omitempty\"`\n\tUpdatedAt                      *Timestamp                    `json:\"updated_at,omitempty\"`\n\tLastUsedAt                     *Timestamp                    `json:\"last_used_at,omitempty\"`\n\tState                          *string                       `json:\"state,omitempty\"`\n\tURL                            *string                       `json:\"url,omitempty\"`\n\tGitStatus                      *CodespacesGitStatus          `json:\"git_status,omitempty\"`\n\tLocation                       *string                       `json:\"location,omitempty\"`\n\tIdleTimeoutMinutes             *int                          `json:\"idle_timeout_minutes,omitempty\"`\n\tWebURL                         *string                       `json:\"web_url,omitempty\"`\n\tMachinesURL                    *string                       `json:\"machines_url,omitempty\"`\n\tStartURL                       *string                       `json:\"start_url,omitempty\"`\n\tStopURL                        *string                       `json:\"stop_url,omitempty\"`\n\tPullsURL                       *string                       `json:\"pulls_url,omitempty\"`\n\tRecentFolders                  []string                      `json:\"recent_folders,omitempty\"`\n\tRuntimeConstraints             *CodespacesRuntimeConstraints `json:\"runtime_constraints,omitempty\"`\n\tPendingOperation               *bool                         `json:\"pending_operation,omitempty\"`\n\tPendingOperationDisabledReason *string                       `json:\"pending_operation_disabled_reason,omitempty\"`\n\tIdleTimeoutNotice              *string                       `json:\"idle_timeout_notice,omitempty\"`\n\tRetentionPeriodMinutes         *int                          `json:\"retention_period_minutes,omitempty\"`\n\tRetentionExpiresAt             *Timestamp                    `json:\"retention_expires_at,omitempty\"`\n\tLastKnownStopNotice            *string                       `json:\"last_known_stop_notice,omitempty\"`\n}\n```\nCodespace represents a codespace.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces](https://docs.github.com/en/rest/codespaces)\n\n```go\nfunc (c *Codespace) GetBillableOwner() *User\n```\nGetBillableOwner returns the BillableOwner field.\n\n```go\nfunc (c *Codespace) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetDevcontainerPath() string\n```\nGetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetEnvironmentID() string\n```\nGetEnvironmentID returns the EnvironmentID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetGitStatus() *CodespacesGitStatus\n```\nGetGitStatus returns the GitStatus field.\n\n```go\nfunc (c *Codespace) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetIdleTimeoutMinutes() int\n```\nGetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetIdleTimeoutNotice() string\n```\nGetIdleTimeoutNotice returns the IdleTimeoutNotice field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetLastKnownStopNotice() string\n```\nGetLastKnownStopNotice returns the LastKnownStopNotice field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetLastUsedAt() Timestamp\n```\nGetLastUsedAt returns the LastUsedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetMachine() *CodespacesMachine\n```\nGetMachine returns the Machine field.\n\n```go\nfunc (c *Codespace) GetMachinesURL() string\n```\nGetMachinesURL returns the MachinesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (c *Codespace) GetPendingOperation() bool\n```\nGetPendingOperation returns the PendingOperation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetPendingOperationDisabledReason() string\n```\nGetPendingOperationDisabledReason returns the PendingOperationDisabledReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetPrebuild() bool\n```\nGetPrebuild returns the Prebuild field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetPullsURL() string\n```\nGetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (c *Codespace) GetRetentionExpiresAt() Timestamp\n```\nGetRetentionExpiresAt returns the RetentionExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetRetentionPeriodMinutes() int\n```\nGetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetRuntimeConstraints() *CodespacesRuntimeConstraints\n```\nGetRuntimeConstraints returns the RuntimeConstraints field.\n\n```go\nfunc (c *Codespace) GetStartURL() string\n```\nGetStartURL returns the StartURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetStopURL() string\n```\nGetStopURL returns the StopURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Codespace) GetWebURL() string\n```\nGetWebURL returns the WebURL field if it's non-nil, zero value otherwise.\n\n```go\ntype CodespacesGitStatus struct {\n\tAhead                 *int    `json:\"ahead,omitempty\"`\n\tBehind                *int    `json:\"behind,omitempty\"`\n\tHasUnpushedChanges    *bool   `json:\"has_unpushed_changes,omitempty\"`\n\tHasUncommittedChanges *bool   `json:\"has_uncommitted_changes,omitempty\"`\n\tRef                   *string `json:\"ref,omitempty\"`\n}\n```\nCodespacesGitStatus represents the git status of a codespace.\n\n```go\nfunc (c *CodespacesGitStatus) GetAhead() int\n```\nGetAhead returns the Ahead field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesGitStatus) GetBehind() int\n```\nGetBehind returns the Behind field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesGitStatus) GetHasUncommittedChanges() bool\n```\nGetHasUncommittedChanges returns the HasUncommittedChanges field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesGitStatus) GetHasUnpushedChanges() bool\n```\nGetHasUnpushedChanges returns the HasUnpushedChanges field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesGitStatus) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\ntype CodespacesMachine struct {\n\tName                 *string `json:\"name,omitempty\"`\n\tDisplayName          *string `json:\"display_name,omitempty\"`\n\tOperatingSystem      *string `json:\"operating_system,omitempty\"`\n\tStorageInBytes       *int64  `json:\"storage_in_bytes,omitempty\"`\n\tMemoryInBytes        *int64  `json:\"memory_in_bytes,omitempty\"`\n\tCPUs                 *int    `json:\"cpus,omitempty\"`\n\tPrebuildAvailability *string `json:\"prebuild_availability,omitempty\"`\n}\n```\nCodespacesMachine represents the machine type of a codespace.\n\n```go\nfunc (c *CodespacesMachine) GetCPUs() int\n```\nGetCPUs returns the CPUs field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesMachine) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesMachine) GetMemoryInBytes() int64\n```\nGetMemoryInBytes returns the MemoryInBytes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesMachine) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesMachine) GetOperatingSystem() string\n```\nGetOperatingSystem returns the OperatingSystem field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesMachine) GetPrebuildAvailability() string\n```\nGetPrebuildAvailability returns the PrebuildAvailability field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespacesMachine) GetStorageInBytes() int64\n```\nGetStorageInBytes returns the StorageInBytes field if it's non-nil, zero value otherwise.\n\n```go\ntype CodespacesRuntimeConstraints struct {\n\tAllowedPortPrivacySettings []string `json:\"allowed_port_privacy_settings,omitempty\"`\n}\n```\nCodespacesRuntimeConstraints represents the runtime constraints of a codespace.\n\n```go\ntype CodespacesService service\n```\nCodespacesService handles communication with the Codespaces related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/](https://docs.github.com/en/rest/codespaces/)\n\n```go\nfunc (s *CodespacesService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nAddSelectedRepoToOrgSecret adds a repository to the list of repositories that have been granted the ability to use an organization's codespace secret.\n\nAdds a repository to an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGithub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#add-selected-repository-to-an-organization-secret](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#add-selected-repository-to-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) AddSelectedRepoToUserSecret(ctx context.Context, name string, repo *Repository) (*Response, error)\n```\nAddSelectedRepoToUserSecret adds a repository to the list of repositories that have been granted the ability to use a user's codespace secret.\n\nAdds a repository to the selected repositories for a user's codespace secret. You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have write access to the codespaces\\_user\\_secrets user permission and write access to the codespaces\\_secrets repository permission on the referenced repository to use this endpoint.\n\nGithub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#add-a-selected-repository-to-a-user-secret](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#add-a-selected-repository-to-a-user-secret)\n\n```go\nfunc (s *CodespacesService) CreateInRepo(ctx context.Context, owner, repo string, request *CreateCodespaceOptions) (*Codespace, *Response, error)\n```\nCreateInRepo creates a codespace in a repository.\n\nCreates a codespace owned by the authenticated user in the specified repository. You must authenticate using an access token with the codespace scope to use this endpoint. GitHub Apps must have write access to the codespaces repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-in-a-repository](https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-in-a-repository)\n\n```go\nfunc (s *CodespacesService) CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error)\n```\nCreateOrUpdateOrgSecret creates or updates an orgs codespace secret\n\nCreates or updates an organization secret with an encrypted value. Encrypt your secret using LibSodium. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error)\n```\nCreateOrUpdateRepoSecret creates or updates a repos codespace secret\n\nCreates or updates a repository secret with an encrypted value. Encrypt your secret using LibSodium. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces\\_secrets repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret](https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret)\n\n```go\nfunc (s *CodespacesService) CreateOrUpdateUserSecret(ctx context.Context, eSecret *EncryptedSecret) (*Response, error)\n```\nCreateOrUpdateUserSecret creates or updates a users codespace secret\n\nCreates or updates a secret for a user's codespace with an encrypted value. Encrypt your secret using LibSodium. You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must also have Codespaces access to use this endpoint. GitHub Apps must have write access to the codespaces\\_user\\_secrets user permission and codespaces\\_secrets repository permission on all referenced repositories to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#create-or-update-a-secret-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#create-or-update-a-secret-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) Delete(ctx context.Context, codespaceName string) (*Response, error)\n```\nDelete deletes a codespace.\n\nYou must authenticate using an access token with the codespace scope to use this endpoint. GitHub Apps must have write access to the codespaces repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#delete-a-codespace-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#delete-a-codespace-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error)\n```\nDeleteOrgSecret deletes an orgs codespace secret\n\nDeletes an organization secret using the secret name. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#delete-an-organization-secret](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#delete-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteRepoSecret deletes a repos codespace secret\n\nDeletes a secret in a repository using the secret name. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces\\_secrets repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#delete-a-repository-secret](https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#delete-a-repository-secret)\n\n```go\nfunc (s *CodespacesService) DeleteUserSecret(ctx context.Context, name string) (*Response, error)\n```\nDeleteUserSecret deletes a users codespace secret\n\nDeletes a secret from a user's codespaces using the secret name. Deleting the secret will remove access from all codespaces that were allowed to access the secret. You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have write access to the codespaces\\_user\\_secrets user permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#delete-a-secret-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#delete-a-secret-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error)\n```\nGetOrgPublicKey gets the org public key for encrypting codespace secrets\n\nGets a public key for an organization, which is required in order to encrypt secrets. You need to encrypt the value of a secret before you can create or update secrets. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#get-an-organization-public-key](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#get-an-organization-public-key)\n\n```go\nfunc (s *CodespacesService) GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error)\n```\nGetOrgSecret gets an org codespace secret\n\nGets an organization secret without revealing its encrypted value. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#get-an-organization-secret](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#get-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error)\n```\nGetRepoPublicKey gets the repo public key for encrypting codespace secrets\n\nGets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo scope. GitHub Apps must have write access to the codespaces\\_secrets repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#get-a-repository-public-key](https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#get-a-repository-public-key)\n\n```go\nfunc (s *CodespacesService) GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error)\n```\nGetRepoSecret gets a repo codespace secret\n\nGets a single repository secret without revealing its encrypted value. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces\\_secrets repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#get-a-repository-secret](https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#get-a-repository-secret)\n\n```go\nfunc (s *CodespacesService) GetUserPublicKey(ctx context.Context) (*PublicKey, *Response, error)\n```\nGetUserPublicKey gets the users public key for encrypting codespace secrets\n\nGets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have read access to the codespaces\\_user\\_secrets user permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#get-public-key-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#get-public-key-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) GetUserSecret(ctx context.Context, name string) (*Secret, *Response, error)\n```\nGetUserSecret gets a users codespace secret\n\nGets a secret available to a user's codespaces without revealing its encrypted value. You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have read access to the codespaces\\_user\\_secrets user permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#get-a-secret-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#get-a-secret-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) List(ctx context.Context, opts *ListCodespacesOptions) (*ListCodespaces, *Response, error)\n```\nList lists codespaces for an authenticated user.\n\nLists the authenticated user's codespaces. You must authenticate using an access token with the codespace scope to use this endpoint. GitHub Apps must have read access to the codespaces repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ListInRepo(ctx context.Context, owner, repo string, opts *ListOptions) (*ListCodespaces, *Response, error)\n```\nListInRepo lists codespaces for a user in a repository.\n\nLists the codespaces associated with a specified repository and the authenticated user. You must authenticate using an access token with the codespace scope to use this endpoint. GitHub Apps must have read access to the codespaces repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-in-a-repository-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-in-a-repository-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListOrgSecrets list all secrets available to an org\n\nLists all Codespaces secrets available at the organization-level without revealing their encrypted values. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-organization-secrets](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-organization-secrets)\n\n```go\nfunc (s *CodespacesService) ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListRepoSecrets list all secrets available to a repo\n\nLists all secrets available in a repository without revealing their encrypted values. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces\\_secrets repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#list-repository-secrets](https://docs.github.com/en/rest/codespaces/repository-secrets?apiVersion=2022-11-28#list-repository-secrets)\n\n```go\nfunc (s *CodespacesService) ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgSecret lists the repositories that have been granted the ability to use an organization's codespace secret.\n\nLists all repositories that have been selected when the visibility for repository access to a secret is set to selected. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) ListSelectedReposForUserSecret(ctx context.Context, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForUserSecret lists the repositories that have been granted the ability to use a user's codespace secret.\n\nYou must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have read access to the codespaces\\_user\\_secrets user permission and write access to the codespaces\\_secrets repository permission on all referenced repositories to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#list-selected-repositories-for-a-user-secret](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#list-selected-repositories-for-a-user-secret)\n\n```go\nfunc (s *CodespacesService) ListUserSecrets(ctx context.Context, opts *ListOptions) (*Secrets, *Response, error)\n```\nListUserSecrets list all secrets available for a users codespace\n\nLists all secrets available for a user's Codespaces without revealing their encrypted values You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint GitHub Apps must have read access to the codespaces\\_user\\_secrets user permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#list-secrets-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#list-secrets-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nRemoveSelectedRepoFromOrgSecret removes a repository from the list of repositories that have been granted the ability to use an organization's codespace secret.\n\nRemoves a repository from an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGithub API docs: [https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-secret](https://docs.github.com/en/rest/codespaces/organization-secrets?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) RemoveSelectedRepoFromUserSecret(ctx context.Context, name string, repo *Repository) (*Response, error)\n```\nRemoveSelectedRepoFromUserSecret removes a repository from the list of repositories that have been granted the ability to use a user's codespace secret.\n\nRemoves a repository from the selected repositories for a user's codespace secret. You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have write access to the codespaces\\_user\\_secrets user permission to use this endpoint.\n\nGithub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#remove-a-selected-repository-from-a-user-secret](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#remove-a-selected-repository-from-a-user-secret)\n\n```go\nfunc (s *CodespacesService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error)\n```\nSetSelectedReposForOrgSecret sets the repositories that have been granted the ability to use a user's codespace secret.\n\nReplaces all repositories for an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint.\n\nGithub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#set-selected-repositories-for-a-user-secret](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#set-selected-repositories-for-a-user-secret)\n\n```go\nfunc (s *CodespacesService) SetSelectedReposForUserSecret(ctx context.Context, name string, ids SelectedRepoIDs) (*Response, error)\n```\nSetSelectedReposForUserSecret sets the repositories that have been granted the ability to use a user's codespace secret.\n\nYou must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint. GitHub Apps must have write access to the codespaces\\_user\\_secrets user permission and write access to the codespaces\\_secrets repository permission on all referenced repositories to use this endpoint.\n\nGithub API docs: [https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#set-selected-repositories-for-a-user-secret](https://docs.github.com/en/rest/codespaces/secrets?apiVersion=2022-11-28#set-selected-repositories-for-a-user-secret)\n\n```go\nfunc (s *CodespacesService) Start(ctx context.Context, codespaceName string) (*Codespace, *Response, error)\n```\nStart starts a codespace.\n\nYou must authenticate using an access token with the codespace scope to use this endpoint. GitHub Apps must have write access to the codespaces\\_lifecycle\\_admin repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#start-a-codespace-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#start-a-codespace-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) Stop(ctx context.Context, codespaceName string) (*Codespace, *Response, error)\n```\nStop stops a codespace.\n\nYou must authenticate using an access token with the codespace scope to use this endpoint. GitHub Apps must have write access to the codespaces\\_lifecycle\\_admin repository permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#stop-a-codespace-for-the-authenticated-user](https://docs.github.com/en/rest/codespaces/codespaces?apiVersion=2022-11-28#stop-a-codespace-for-the-authenticated-user)\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/rest/repos/collaborators/#response-when-a-new-invitation-is-created](https://docs.github.com/en/rest/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 *Timestamp `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() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CommentDiscussion struct {\n\tAuthorAssociation *string    `json:\"author_association,omitempty\"`\n\tBody              *string    `json:\"body,omitempty\"`\n\tChildCommentCount *int       `json:\"child_comment_count,omitempty\"`\n\tCreatedAt         *Timestamp `json:\"created_at,omitempty\"`\n\tDiscussionID      *int64     `json:\"discussion_id,omitempty\"`\n\tHTMLURL           *string    `json:\"html_url,omitempty\"`\n\tID                *int64     `json:\"id,omitempty\"`\n\tNodeID            *string    `json:\"node_id,omitempty\"`\n\tParentID          *int64     `json:\"parent_id,omitempty\"`\n\tReactions         *Reactions `json:\"reactions,omitempty\"`\n\tRepositoryURL     *string    `json:\"repository_url,omitempty\"`\n\tUpdatedAt         *Timestamp `json:\"updated_at,omitempty\"`\n\tUser              *User      `json:\"user,omitempty\"`\n}\n```\nCommentDiscussion represents a comment in a GitHub DiscussionCommentEvent.\n\n```go\nfunc (c *CommentDiscussion) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetChildCommentCount() int\n```\nGetChildCommentCount returns the ChildCommentCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetDiscussionID() int64\n```\nGetDiscussionID returns the DiscussionID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetParentID() int64\n```\nGetParentID returns the ParentID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (c *CommentDiscussion) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommentDiscussion) GetUser() *User\n```\nGetUser returns the User field.\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  *Timestamp `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() Timestamp\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/developers/webhooks-and-events/webhook-events-and-payloads#commit\\_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#commit_comment)\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\tCodeOfConductFile   *Metric `json:\"code_of_conduct_file\"`\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) GetCodeOfConductFile() *Metric\n```\nGetCodeOfConductFile returns the CodeOfConductFile 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\tDescription           *string               `json:\"description\"`\n\tDocumentation         *string               `json:\"documentation\"`\n\tFiles                 *CommunityHealthFiles `json:\"files\"`\n\tUpdatedAt             *Timestamp            `json:\"updated_at\"`\n\tContentReportsEnabled *bool                 `json:\"content_reports_enabled\"`\n}\n```\nCommunityHealthMetrics represents a response containing the community metrics of a repository.\n\n```go\nfunc (c *CommunityHealthMetrics) GetContentReportsEnabled() bool\n```\nGetContentReportsEnabled returns the ContentReportsEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommunityHealthMetrics) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CommunityHealthMetrics) GetDocumentation() string\n```\nGetDocumentation returns the Documentation field if it's non-nil, zero value otherwise.\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() Timestamp\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\tName              *string `json:\"name,omitempty\"`\n\tEmail             *string `json:\"email,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) GetEmail() string\n```\nGetEmail returns the Email 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) GetName() string\n```\nGetName returns the Name 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 CreateCodespaceOptions struct {\n\tRef *string `json:\"ref,omitempty\"`\n\t// Geo represents the geographic area for this codespace.\n\t// If not specified, the value is assigned by IP.\n\t// This property replaces location, which is being deprecated.\n\t// Geo can be one of: `EuropeWest`, `SoutheastAsia`, `UsEast`, `UsWest`.\n\tGeo                        *string `json:\"geo,omitempty\"`\n\tClientIP                   *string `json:\"client_ip,omitempty\"`\n\tMachine                    *string `json:\"machine,omitempty\"`\n\tDevcontainerPath           *string `json:\"devcontainer_path,omitempty\"`\n\tMultiRepoPermissionsOptOut *bool   `json:\"multi_repo_permissions_opt_out,omitempty\"`\n\tWorkingDirectory           *string `json:\"working_directory,omitempty\"`\n\tIdleTimeoutMinutes         *int    `json:\"idle_timeout_minutes,omitempty\"`\n\tDisplayName                *string `json:\"display_name,omitempty\"`\n\t// RetentionPeriodMinutes represents the duration in minutes after codespace has gone idle in which it will be deleted.\n\t// Must be integer minutes between 0 and 43200 (30 days).\n\tRetentionPeriodMinutes *int `json:\"retention_period_minutes,omitempty\"`\n}\n```\nCreateCodespaceOptions represents options for the creation of a codespace in a repository.\n\n```go\nfunc (c *CreateCodespaceOptions) GetClientIP() string\n```\nGetClientIP returns the ClientIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetDevcontainerPath() string\n```\nGetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetGeo() string\n```\nGetGeo returns the Geo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetIdleTimeoutMinutes() int\n```\nGetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetMachine() string\n```\nGetMachine returns the Machine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetMultiRepoPermissionsOptOut() bool\n```\nGetMultiRepoPermissionsOptOut returns the MultiRepoPermissionsOptOut field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetRetentionPeriodMinutes() int\n```\nGetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceOptions) GetWorkingDirectory() string\n```\nGetWorkingDirectory returns the WorkingDirectory 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\tPusherType   *string `json:\"pusher_type,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```\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/developers/webhooks-and-events/github-event-types#createevent](https://docs.github.com/en/developers/webhooks-and-events/github-event-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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\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 CreateOrUpdateCustomRoleOptions struct {\n\tName        *string  `json:\"name,omitempty\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tBaseRole    *string  `json:\"base_role,omitempty\"`\n\tPermissions []string `json:\"permissions,omitempty\"`\n}\n```\nCreateOrUpdateCustomRoleOptions represents options required to create or update a custom repository role.\n\n```go\nfunc (c *CreateOrUpdateCustomRoleOptions) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrUpdateCustomRoleOptions) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrUpdateCustomRoleOptions) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\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,omitempty\"`\n\tTeamID []int64 `json:\"team_ids,omitempty\"`\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 CreateProtectedChanges struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nCreateProtectedChanges represents the changes made to the CreateProtected policy.\n\n```go\nfunc (c *CreateProtectedChanges) GetFrom() bool\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateRunnerGroupRequest struct {\n\tName       *string `json:\"name,omitempty\"`\n\tVisibility *string `json:\"visibility,omitempty\"`\n\t// List of repository IDs that can access the runner group.\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitempty\"`\n\t// Runners represent a list of runner IDs to add to the runner group.\n\tRunners []int64 `json:\"runners,omitempty\"`\n\t// If set to True, public repos can use this runner group\n\tAllowsPublicRepositories *bool `json:\"allows_public_repositories,omitempty\"`\n\t// If true, the runner group will be restricted to running only the workflows specified in the SelectedWorkflows slice.\n\tRestrictedToWorkflows *bool `json:\"restricted_to_workflows,omitempty\"`\n\t// List of workflows the runner group should be allowed to run. This setting will be ignored unless RestrictedToWorkflows is set to true.\n\tSelectedWorkflows []string `json:\"selected_workflows,omitempty\"`\n}\n```\nCreateRunnerGroupRequest represents a request to create a Runner group for an organization.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetAllowsPublicRepositories() bool\n```\nGetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetRestrictedToWorkflows() bool\n```\nGetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateUpdateEnvironment struct {\n\tWaitTimer              *int            `json:\"wait_timer\"`\n\tReviewers              []*EnvReviewers `json:\"reviewers\"`\n\tCanAdminsBypass        *bool           `json:\"can_admins_bypass\"`\n\tDeploymentBranchPolicy *BranchPolicy   `json:\"deployment_branch_policy\"`\n}\n```\nCreateUpdateEnvironment represents the fields required for the create/update operation following the Create/Update release example. See [https://github.com/google/go-github/issues/992](https://github.com/google/go-github/issues/992) for more information. Removed omitempty here as the API expects null values for reviewers and deployment\\_branch\\_policy to clear them.\n\n```go\nfunc (c *CreateUpdateEnvironment) GetCanAdminsBypass() bool\n```\nGetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateUpdateEnvironment) GetDeploymentBranchPolicy() *BranchPolicy\n```\nGetDeploymentBranchPolicy returns the DeploymentBranchPolicy field.\n\n```go\nfunc (c *CreateUpdateEnvironment) GetWaitTimer() int\n```\nGetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateUpdateEnvironment) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface. As the only way to clear a WaitTimer is to set it to 0, a missing WaitTimer object should default to 0, not null. As the default value for CanAdminsBypass is true, a nil value here marshals to true.\n\n```go\ntype CreateUpdateRequiredWorkflowOptions struct {\n\tWorkflowFilePath      *string          `json:\"workflow_file_path,omitempty\"`\n\tRepositoryID          *int64           `json:\"repository_id,omitempty\"`\n\tScope                 *string          `json:\"scope,omitempty\"`\n\tSelectedRepositoryIDs *SelectedRepoIDs `json:\"selected_repository_ids,omitempty\"`\n}\n```\nCreateUpdateRequiredWorkflowOptions represents the input object used to create or update required workflows.\n\n```go\nfunc (c *CreateUpdateRequiredWorkflowOptions) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateUpdateRequiredWorkflowOptions) GetScope() string\n```\nGetScope returns the Scope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateUpdateRequiredWorkflowOptions) GetSelectedRepositoryIDs() *SelectedRepoIDs\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs field.\n\n```go\nfunc (c *CreateUpdateRequiredWorkflowOptions) GetWorkflowFilePath() string\n```\nGetWorkflowFilePath returns the WorkflowFilePath 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 or a tag.\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 CreationInfo struct {\n\tCreated  *Timestamp `json:\"created,omitempty\"`\n\tCreators []string   `json:\"creators,omitempty\"`\n}\n```\nCreationInfo represents when the SBOM was created and who created it.\n\n```go\nfunc (c *CreationInfo) GetCreated() Timestamp\n```\nGetCreated returns the Created field if it's non-nil, zero value otherwise.\n\n```go\ntype CredentialAuthorization struct {\n\t// User login that owns the underlying credential.\n\tLogin *string `json:\"login,omitempty\"`\n\n\t// Unique identifier for the credential.\n\tCredentialID *int64 `json:\"credential_id,omitempty\"`\n\n\t// Human-readable description of the credential type.\n\tCredentialType *string `json:\"credential_type,omitempty\"`\n\n\t// Last eight characters of the credential.\n\t// Only included in responses with credential_type of personal access token.\n\tTokenLastEight *string `json:\"token_last_eight,omitempty\"`\n\n\t// Date when the credential was authorized for use.\n\tCredentialAuthorizedAt *Timestamp `json:\"credential_authorized_at,omitempty\"`\n\n\t// Date when the credential was last accessed.\n\t// May be null if it was never accessed.\n\tCredentialAccessedAt *Timestamp `json:\"credential_accessed_at,omitempty\"`\n\n\t// List of oauth scopes the token has been granted.\n\tScopes []string `json:\"scopes,omitempty\"`\n\n\t// Unique string to distinguish the credential.\n\t// Only included in responses with credential_type of SSH Key.\n\tFingerprint *string `json:\"fingerprint,omitempty\"`\n\n\tAuthorizedCredentialID *int64 `json:\"authorized_credential_id,omitempty\"`\n\n\t// The title given to the ssh key.\n\t// This will only be present when the credential is an ssh key.\n\tAuthorizedCredentialTitle *string `json:\"authorized_credential_title,omitempty\"`\n\n\t// The note given to the token.\n\t// This will only be present when the credential is a token.\n\tAuthorizedCredentialNote *string `json:\"authorized_credential_note,omitempty\"`\n\n\t// The expiry for the token.\n\t// This will only be present when the credential is a token.\n\tAuthorizedCredentialExpiresAt *Timestamp `json:\"authorized_credential_expires_at,omitempty\"`\n}\n```\nCredentialAuthorization represents a credential authorized through SAML SSO.\n\n```go\nfunc (c *CredentialAuthorization) GetAuthorizedCredentialExpiresAt() Timestamp\n```\nGetAuthorizedCredentialExpiresAt returns the AuthorizedCredentialExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetAuthorizedCredentialID() int64\n```\nGetAuthorizedCredentialID returns the AuthorizedCredentialID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetAuthorizedCredentialNote() string\n```\nGetAuthorizedCredentialNote returns the AuthorizedCredentialNote field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetAuthorizedCredentialTitle() string\n```\nGetAuthorizedCredentialTitle returns the AuthorizedCredentialTitle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetCredentialAccessedAt() Timestamp\n```\nGetCredentialAccessedAt returns the CredentialAccessedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetCredentialAuthorizedAt() Timestamp\n```\nGetCredentialAuthorizedAt returns the CredentialAuthorizedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetCredentialID() int64\n```\nGetCredentialID returns the CredentialID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetCredentialType() string\n```\nGetCredentialType returns the CredentialType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CredentialAuthorization) GetTokenLastEight() string\n```\nGetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomRepoRoles struct {\n\tID          *int64   `json:\"id,omitempty\"`\n\tName        *string  `json:\"name,omitempty\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tBaseRole    *string  `json:\"base_role,omitempty\"`\n\tPermissions []string `json:\"permissions,omitempty\"`\n}\n```\nCustomRepoRoles represents custom repository roles for an organization. See [https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) for more information.\n\n```go\nfunc (c *CustomRepoRoles) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomRepoRoles) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomRepoRoles) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomRepoRoles) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\ntype DefaultSetupConfiguration struct {\n\tState      *string    `json:\"state,omitempty\"`\n\tLanguages  []string   `json:\"languages,omitempty\"`\n\tQuerySuite *string    `json:\"query_suite,omitempty\"`\n\tUpdatedAt  *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nDefaultSetupConfiguration represents a code scanning default setup configuration.\n\n```go\nfunc (d *DefaultSetupConfiguration) GetQuerySuite() string\n```\nGetQuerySuite returns the QuerySuite field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DefaultSetupConfiguration) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DefaultSetupConfiguration) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/github-event-types#deleteevent](https://docs.github.com/en/developers/webhooks-and-events/github-event-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 DependabotAlert struct {\n\tNumber                *int                        `json:\"number,omitempty\"`\n\tState                 *string                     `json:\"state,omitempty\"`\n\tDependency            *Dependency                 `json:\"dependency,omitempty\"`\n\tSecurityAdvisory      *DependabotSecurityAdvisory `json:\"security_advisory,omitempty\"`\n\tSecurityVulnerability *AdvisoryVulnerability      `json:\"security_vulnerability,omitempty\"`\n\tURL                   *string                     `json:\"url,omitempty\"`\n\tHTMLURL               *string                     `json:\"html_url,omitempty\"`\n\tCreatedAt             *Timestamp                  `json:\"created_at,omitempty\"`\n\tUpdatedAt             *Timestamp                  `json:\"updated_at,omitempty\"`\n\tDismissedAt           *Timestamp                  `json:\"dismissed_at,omitempty\"`\n\tDismissedBy           *User                       `json:\"dismissed_by,omitempty\"`\n\tDismissedReason       *string                     `json:\"dismissed_reason,omitempty\"`\n\tDismissedComment      *string                     `json:\"dismissed_comment,omitempty\"`\n\tFixedAt               *Timestamp                  `json:\"fixed_at,omitempty\"`\n\tRepository            *Repository                 `json:\"repository,omitempty\"`\n}\n```\nDependabotAlert represents a Dependabot alert.\n\n```go\nfunc (d *DependabotAlert) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetDependency() *Dependency\n```\nGetDependency returns the Dependency field.\n\n```go\nfunc (d *DependabotAlert) GetDismissedAt() Timestamp\n```\nGetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetDismissedBy() *User\n```\nGetDismissedBy returns the DismissedBy field.\n\n```go\nfunc (d *DependabotAlert) GetDismissedComment() string\n```\nGetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetDismissedReason() string\n```\nGetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetFixedAt() Timestamp\n```\nGetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (d *DependabotAlert) GetSecurityAdvisory() *DependabotSecurityAdvisory\n```\nGetSecurityAdvisory returns the SecurityAdvisory field.\n\n```go\nfunc (d *DependabotAlert) GetSecurityVulnerability() *AdvisoryVulnerability\n```\nGetSecurityVulnerability returns the SecurityVulnerability field.\n\n```go\nfunc (d *DependabotAlert) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlert) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype DependabotEncryptedSecret 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 DependabotSecretsSelectedRepoIDs `json:\"selected_repository_ids,omitempty\"`\n}\n```\nDependabotEncryptedSecret represents a secret that is encrypted using a public key for Dependabot.\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 DependabotSecretsSelectedRepoIDs []int64\n```\nDependabotSecretsSelectedRepoIDs are the repository IDs that have access to the dependabot secrets.\n\n```go\ntype DependabotSecurityAdvisory struct {\n\tGHSAID          *string                  `json:\"ghsa_id,omitempty\"`\n\tCVEID           *string                  `json:\"cve_id,omitempty\"`\n\tSummary         *string                  `json:\"summary,omitempty\"`\n\tDescription     *string                  `json:\"description,omitempty\"`\n\tVulnerabilities []*AdvisoryVulnerability `json:\"vulnerabilities,omitempty\"`\n\tSeverity        *string                  `json:\"severity,omitempty\"`\n\tCVSs            *AdvisoryCVSs            `json:\"cvss,omitempty\"`\n\tCWEs            []*AdvisoryCWEs          `json:\"cwes,omitempty\"`\n\tIdentifiers     []*AdvisoryIdentifier    `json:\"identifiers,omitempty\"`\n\tReferences      []*AdvisoryReference     `json:\"references,omitempty\"`\n\tPublishedAt     *Timestamp               `json:\"published_at,omitempty\"`\n\tUpdatedAt       *Timestamp               `json:\"updated_at,omitempty\"`\n\tWithdrawnAt     *Timestamp               `json:\"withdrawn_at,omitempty\"`\n}\n```\nDependabotSecurityAdvisory represents the GitHub Security Advisory.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetCVEID() string\n```\nGetCVEID returns the CVEID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetCVSs() *AdvisoryCVSs\n```\nGetCVSs returns the CVSs field.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetGHSAID() string\n```\nGetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetPublishedAt() Timestamp\n```\nGetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetSeverity() string\n```\nGetSeverity returns the Severity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetSummary() string\n```\nGetSummary returns the Summary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetWithdrawnAt() Timestamp\n```\nGetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise.\n\n```go\ntype DependabotSecurityUpdates struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nDependabotSecurityUpdates specifies the state of Dependabot security updates on a repository.\n\nGitHub API docs: [https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates)\n\n```go\nfunc (d *DependabotSecurityUpdates) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d DependabotSecurityUpdates) String() string\n```\n\n```go\ntype DependabotService service\n```\nDependabotService handles communication with the Dependabot related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/](https://docs.github.com/en/rest/dependabot/)\n\n```go\nfunc (s *DependabotService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nAddSelectedRepoToOrgSecret adds a repository to an organization Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#add-selected-repository-to-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#add-selected-repository-to-an-organization-secret)\n\n```go\nfunc (s *DependabotService) CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *DependabotEncryptedSecret) (*Response, error)\n```\nCreateOrUpdateOrgSecret creates or updates an organization Dependabot secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#create-or-update-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#create-or-update-an-organization-secret)\n\n```go\nfunc (s *DependabotService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *DependabotEncryptedSecret) (*Response, error)\n```\nCreateOrUpdateRepoSecret creates or updates a repository Dependabot secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#create-or-update-a-repository-secret](https://docs.github.com/en/rest/dependabot/secrets#create-or-update-a-repository-secret)\n\n```go\nfunc (s *DependabotService) DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error)\n```\nDeleteOrgSecret deletes a Dependabot secret in an organization using the secret name.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#delete-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#delete-an-organization-secret)\n\n```go\nfunc (s *DependabotService) DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteRepoSecret deletes a Dependabot secret in a repository using the secret name.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#delete-a-repository-secret](https://docs.github.com/en/rest/dependabot/secrets#delete-a-repository-secret)\n\n```go\nfunc (s *DependabotService) GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error)\n```\nGetOrgPublicKey gets a public key that should be used for Dependabot secret encryption.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#get-an-organization-public-key](https://docs.github.com/en/rest/dependabot/secrets#get-an-organization-public-key)\n\n```go\nfunc (s *DependabotService) GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error)\n```\nGetOrgSecret gets a single organization Dependabot secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#get-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#get-an-organization-secret)\n\n```go\nfunc (s *DependabotService) GetRepoAlert(ctx context.Context, owner, repo string, number int) (*DependabotAlert, *Response, error)\n```\nGetRepoAlert gets a single repository Dependabot alert.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/alerts#get-a-dependabot-alert](https://docs.github.com/en/rest/dependabot/alerts#get-a-dependabot-alert)\n\n```go\nfunc (s *DependabotService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error)\n```\nGetRepoPublicKey gets a public key that should be used for Dependabot secret encryption.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#get-a-repository-public-key](https://docs.github.com/en/rest/dependabot/secrets#get-a-repository-public-key)\n\n```go\nfunc (s *DependabotService) GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error)\n```\nGetRepoSecret gets a single repository Dependabot secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#get-a-repository-secret](https://docs.github.com/en/rest/dependabot/secrets#get-a-repository-secret)\n\n```go\nfunc (s *DependabotService) ListOrgAlerts(ctx context.Context, org string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error)\n```\nListOrgAlerts lists all Dependabot alerts of an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization](https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization)\n\n```go\nfunc (s *DependabotService) ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListOrgSecrets lists all Dependabot secrets available in an organization without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#list-organization-secrets](https://docs.github.com/en/rest/dependabot/secrets#list-organization-secrets)\n\n```go\nfunc (s *DependabotService) ListRepoAlerts(ctx context.Context, owner, repo string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error)\n```\nListRepoAlerts lists all Dependabot alerts of a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository](https://docs.github.com/en/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository)\n\n```go\nfunc (s *DependabotService) ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListRepoSecrets lists all Dependabot secrets available in a repository without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#list-repository-secrets](https://docs.github.com/en/rest/dependabot/secrets#list-repository-secrets)\n\n```go\nfunc (s *DependabotService) ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgSecret lists all repositories that have access to a Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *DependabotService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)\n```\nRemoveSelectedRepoFromOrgSecret removes a repository from an organization Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret)\n\n```go\nfunc (s *DependabotService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids DependabotSecretsSelectedRepoIDs) (*Response, error)\n```\nSetSelectedReposForOrgSecret sets the repositories that have access to a Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret](https://docs.github.com/en/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret)\n\n```go\ntype Dependency struct {\n\tPackage      *VulnerabilityPackage `json:\"package,omitempty\"`\n\tManifestPath *string               `json:\"manifest_path,omitempty\"`\n\tScope        *string               `json:\"scope,omitempty\"`\n}\n```\nDependency reprensents the vulnerable dependency.\n\n```go\nfunc (d *Dependency) GetManifestPath() string\n```\nGetManifestPath returns the ManifestPath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Dependency) GetPackage() *VulnerabilityPackage\n```\nGetPackage returns the Package field.\n\n```go\nfunc (d *Dependency) GetScope() string\n```\nGetScope returns the Scope field if it's non-nil, zero value otherwise.\n\n```go\ntype DependencyGraphService service\n```\n\n```go\nfunc (s *DependencyGraphService) GetSBOM(ctx context.Context, owner, repo string) (*SBOM, *Response, error)\n```\nGetSBOM fetches the software bill of materials for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/dependency-graph/sboms](https://docs.github.com/en/rest/dependency-graph/sboms)\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\t// The Repository where the event occurred\n\tRepo *Repository `json:\"repository,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\t// The following fields are only populated by Webhook events.\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,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/developers/webhooks-and-events/webhook-events-and-payloads#deploy\\_key](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#deploy_key)\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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DeployKeyEvent) GetKey() *Key\n```\nGetKey returns the Key field.\n\n```go\nfunc (d *DeployKeyEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (d *DeployKeyEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DeployKeyEvent) GetSender() *User\n```\nGetSender returns the Sender 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 DeploymentBranchPolicy struct {\n\tName   *string `json:\"name,omitempty\"`\n\tID     *int64  `json:\"id,omitempty\"`\n\tNodeID *string `json:\"node_id,omitempty\"`\n}\n```\nDeploymentBranchPolicy represents a single deployment branch policy for an environment.\n\n```go\nfunc (d *DeploymentBranchPolicy) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentBranchPolicy) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentBranchPolicy) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\ntype DeploymentBranchPolicyRequest struct {\n\tName *string `json:\"name,omitempty\"`\n}\n```\nDeploymentBranchPolicyRequest represents a deployment branch policy request.\n\n```go\nfunc (d *DeploymentBranchPolicyRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\ntype DeploymentBranchPolicyResponse struct {\n\tTotalCount     *int                      `json:\"total_count,omitempty\"`\n\tBranchPolicies []*DeploymentBranchPolicy `json:\"branch_policies,omitempty\"`\n}\n```\nDeploymentBranchPolicyResponse represents the slightly different format of response that comes back when you list deployment branch policies.\n\n```go\nfunc (d *DeploymentBranchPolicyResponse) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount 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\tWorkflow    *Workflow    `json:\"workflow,omitempty\"`\n\tWorkflowRun *WorkflowRun `json:\"workflow_run,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/developers/webhooks-and-events/webhook-events-and-payloads#deployment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#deployment)\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\nfunc (d *DeploymentEvent) GetWorkflow() *Workflow\n```\nGetWorkflow returns the Workflow field.\n\n```go\nfunc (d *DeploymentEvent) GetWorkflowRun() *WorkflowRun\n```\nGetWorkflowRun returns the WorkflowRun field.\n\n```go\ntype DeploymentProtectionRuleEvent struct {\n\tAction      *string `json:\"action,omitempty\"`\n\tEnvironment *string `json:\"environment,omitempty\"`\n\tEvent       *string `json:\"event,omitempty\"`\n\n\t// The URL Github provides for a third-party to use in order to pass/fail a deployment gate\n\tDeploymentCallbackURL *string        `json:\"deployment_callback_url,omitempty\"`\n\tDeployment            *Deployment    `json:\"deployment,omitempty\"`\n\tRepo                  *Repository    `json:\"repository,omitempty\"`\n\tOrganization          *Organization  `json:\"organization,omitempty\"`\n\tPullRequests          []*PullRequest `json:\"pull_requests,omitempty\"`\n\tSender                *User          `json:\"sender,omitempty\"`\n\tInstallation          *Installation  `json:\"installation,omitempty\"`\n}\n```\nDeploymentProtectionRuleEvent represents a deployment protection rule event. The Webhook event name is \"deployment\\_protection\\_rule\".\n\nGitHub API docs: [https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment\\_protection\\_rule](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_protection_rule)\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetDeployment() *Deployment\n```\nGetDeployment returns the Deployment field.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetDeploymentCallbackURL() string\n```\nGetDeploymentCallbackURL returns the DeploymentCallbackURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) 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/developers/webhooks-and-events/webhook-events-and-payloads#deployment\\_status](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#deployment_status)\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 Discussion struct {\n\tRepositoryURL      *string             `json:\"repository_url,omitempty\"`\n\tDiscussionCategory *DiscussionCategory `json:\"category,omitempty\"`\n\tAnswerHTMLURL      *string             `json:\"answer_html_url,omitempty\"`\n\tAnswerChosenAt     *Timestamp          `json:\"answer_chosen_at,omitempty\"`\n\tAnswerChosenBy     *string             `json:\"answer_chosen_by,omitempty\"`\n\tHTMLURL            *string             `json:\"html_url,omitempty\"`\n\tID                 *int64              `json:\"id,omitempty\"`\n\tNodeID             *string             `json:\"node_id,omitempty\"`\n\tNumber             *int                `json:\"number,omitempty\"`\n\tTitle              *string             `json:\"title,omitempty\"`\n\tUser               *User               `json:\"user,omitempty\"`\n\tState              *string             `json:\"state,omitempty\"`\n\tLocked             *bool               `json:\"locked,omitempty\"`\n\tComments           *int                `json:\"comments,omitempty\"`\n\tCreatedAt          *Timestamp          `json:\"created_at,omitempty\"`\n\tUpdatedAt          *Timestamp          `json:\"updated_at,omitempty\"`\n\tAuthorAssociation  *string             `json:\"author_association,omitempty\"`\n\tActiveLockReason   *string             `json:\"active_lock_reason,omitempty\"`\n\tBody               *string             `json:\"body,omitempty\"`\n}\n```\nDiscussion represents a discussion in a GitHub DiscussionEvent.\n\n```go\nfunc (d *Discussion) GetActiveLockReason() string\n```\nGetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetAnswerChosenAt() Timestamp\n```\nGetAnswerChosenAt returns the AnswerChosenAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetAnswerChosenBy() string\n```\nGetAnswerChosenBy returns the AnswerChosenBy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetAnswerHTMLURL() string\n```\nGetAnswerHTMLURL returns the AnswerHTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetComments() int\n```\nGetComments returns the Comments field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetDiscussionCategory() *DiscussionCategory\n```\nGetDiscussionCategory returns the DiscussionCategory field.\n\n```go\nfunc (d *Discussion) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetLocked() bool\n```\nGetLocked returns the Locked field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *Discussion) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype DiscussionCategory struct {\n\tID           *int64     `json:\"id,omitempty\"`\n\tNodeID       *string    `json:\"node_id,omitempty\"`\n\tRepositoryID *int64     `json:\"repository_id,omitempty\"`\n\tEmoji        *string    `json:\"emoji,omitempty\"`\n\tName         *string    `json:\"name,omitempty\"`\n\tDescription  *string    `json:\"description,omitempty\"`\n\tCreatedAt    *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt    *Timestamp `json:\"updated_at,omitempty\"`\n\tSlug         *string    `json:\"slug,omitempty\"`\n\tIsAnswerable *bool      `json:\"is_answerable,omitempty\"`\n}\n```\nDiscussionCategory represents a discussion category in a GitHub DiscussionEvent.\n\n```go\nfunc (d *DiscussionCategory) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetEmoji() string\n```\nGetEmoji returns the Emoji field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetIsAnswerable() bool\n```\nGetIsAnswerable returns the IsAnswerable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCategory) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\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 DiscussionCommentEvent struct {\n\t// Action is the action that was performed on the comment.\n\t// Possible values are: \"created\", \"edited\", \"deleted\". ** check what all can be added\n\tAction       *string            `json:\"action,omitempty\"`\n\tDiscussion   *Discussion        `json:\"discussion,omitempty\"`\n\tComment      *CommentDiscussion `json:\"comment,omitempty\"`\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```\nDiscussionCommentEvent represents a webhook event for a comment on discussion. The Webhook event name is \"discussion\\_comment\".\n\nGitHub API docs: [https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion\\_comment](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion_comment)\n\n```go\nfunc (d *DiscussionCommentEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionCommentEvent) GetComment() *CommentDiscussion\n```\nGetComment returns the Comment field.\n\n```go\nfunc (d *DiscussionCommentEvent) GetDiscussion() *Discussion\n```\nGetDiscussion returns the Discussion field.\n\n```go\nfunc (d *DiscussionCommentEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DiscussionCommentEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (d *DiscussionCommentEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DiscussionCommentEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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 DiscussionEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// created, edited, deleted, pinned, unpinned, locked, unlocked,\n\t// transferred, category_changed, answered, or unanswered.\n\tAction       *string       `json:\"action,omitempty\"`\n\tDiscussion   *Discussion   `json:\"discussion,omitempty\"`\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```\nDiscussionEvent represents a webhook event for a discussion. The Webhook event name is \"discussion\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion)\n\n```go\nfunc (d *DiscussionEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DiscussionEvent) GetDiscussion() *Discussion\n```\nGetDiscussion returns the Discussion field.\n\n```go\nfunc (d *DiscussionEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DiscussionEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (d *DiscussionEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DiscussionEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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 DismissStaleReviewsOnPushChanges struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nDismissStaleReviewsOnPushChanges represents the changes made to the DismissStaleReviewsOnPushChanges policy.\n\n```go\nfunc (d *DismissStaleReviewsOnPushChanges) GetFrom() bool\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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\t// The list of apps which can dismiss pull request reviews.\n\tApps []*App `json:\"apps\"`\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\t// The list of app slugs which can dismiss pull request reviews. (Required; use nil to disable dismissal_restrictions or \u0026[]string{} otherwise.)\n\tApps *[]string `json:\"apps,omitempty\"`\n}\n```\nDismissalRestrictionsRequest represents the request to create/edit the restriction to allows only specific users, teams or apps 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) GetApps() []string\n```\nGetApps returns the Apps field if it's non-nil, zero value otherwise.\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 EditBase struct {\n\tRef *EditRef `json:\"ref,omitempty\"`\n\tSHA *EditSHA `json:\"sha,omitempty\"`\n}\n```\nEditBase represents the change of a pull-request base branch.\n\n```go\nfunc (e *EditBase) GetRef() *EditRef\n```\nGetRef returns the Ref field.\n\n```go\nfunc (e *EditBase) GetSHA() *EditSHA\n```\nGetSHA returns the SHA field.\n\n```go\ntype EditBody struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nEditBody represents a change of pull-request body.\n\n```go\nfunc (e *EditBody) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype EditChange struct {\n\tTitle *EditTitle `json:\"title,omitempty\"`\n\tBody  *EditBody  `json:\"body,omitempty\"`\n\tBase  *EditBase  `json:\"base,omitempty\"`\n\tRepo  *EditRepo  `json:\"repository,omitempty\"`\n\tOwner *EditOwner `json:\"owner,omitempty\"`\n}\n```\nEditChange represents the changes when an issue, pull request, comment, or repository has been edited.\n\n```go\nfunc (e *EditChange) GetBase() *EditBase\n```\nGetBase returns the Base field.\n\n```go\nfunc (e *EditChange) GetBody() *EditBody\n```\nGetBody returns the Body field.\n\n```go\nfunc (e *EditChange) GetOwner() *EditOwner\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (e *EditChange) GetRepo() *EditRepo\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (e *EditChange) GetTitle() *EditTitle\n```\nGetTitle returns the Title field.\n\n```go\ntype EditOwner struct {\n\tOwnerInfo *OwnerInfo `json:\"from,omitempty\"`\n}\n```\nEditOwner represents a change of repository ownership.\n\n```go\nfunc (e *EditOwner) GetOwnerInfo() *OwnerInfo\n```\nGetOwnerInfo returns the OwnerInfo field.\n\n```go\ntype EditRef struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nEditRef represents a ref change of a pull-request.\n\n```go\nfunc (e *EditRef) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype EditRepo struct {\n\tName *RepoName `json:\"name,omitempty\"`\n}\n```\nEditRepo represents a change of repository name.\n\n```go\nfunc (e *EditRepo) GetName() *RepoName\n```\nGetName returns the Name field.\n\n```go\ntype EditSHA struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nEditSHA represents a sha change of a pull-request.\n\n```go\nfunc (e *EditSHA) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype EditTitle struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nEditTitle represents a pull-request title change.\n\n```go\nfunc (e *EditTitle) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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 EnterpriseSecurityAnalysisSettings struct {\n\tAdvancedSecurityEnabledForNewRepositories             *bool   `json:\"advanced_security_enabled_for_new_repositories,omitempty\"`\n\tSecretScanningEnabledForNewRepositories               *bool   `json:\"secret_scanning_enabled_for_new_repositories,omitempty\"`\n\tSecretScanningPushProtectionEnabledForNewRepositories *bool   `json:\"secret_scanning_push_protection_enabled_for_new_repositories,omitempty\"`\n\tSecretScanningPushProtectionCustomLink                *string `json:\"secret_scanning_push_protection_custom_link,omitempty\"`\n}\n```\nEnterpriseSecurityAnalysisSettings represents security analysis settings for an enterprise.\n\n```go\nfunc (e *EnterpriseSecurityAnalysisSettings) GetAdvancedSecurityEnabledForNewRepositories() bool\n```\nGetAdvancedSecurityEnabledForNewRepositories returns the AdvancedSecurityEnabledForNewRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningEnabledForNewRepositories() bool\n```\nGetSecretScanningEnabledForNewRepositories returns the SecretScanningEnabledForNewRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionCustomLink() string\n```\nGetSecretScanningPushProtectionCustomLink returns the SecretScanningPushProtectionCustomLink field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionEnabledForNewRepositories() bool\n```\nGetSecretScanningPushProtectionEnabledForNewRepositories returns the SecretScanningPushProtectionEnabledForNewRepositories field if it's non-nil, zero value otherwise.\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/rest/enterprise-admin/](https://docs.github.com/en/rest/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/rest/actions/self-hosted-runners#create-a-registration-token-for-an-enterprise](https://docs.github.com/en/rest/actions/self-hosted-runners#create-a-registration-token-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) EnableDisableSecurityFeature(ctx context.Context, enterprise, securityProduct, enablement string) (*Response, error)\n```\nEnableDisableSecurityFeature enables or disables a security feature for all repositories in an enterprise.\n\nValid values for securityProduct: \"advanced\\_security\", \"secret\\_scanning\", \"secret\\_scanning\\_push\\_protection\". Valid values for enablement:  \"enable\\_all\", \"disable\\_all\".\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#enable-or-disable-a-security-feature](https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#enable-or-disable-a-security-feature)\n\n```go\nfunc (s *EnterpriseService) GetAuditLog(ctx context.Context, enterprise string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error)\n```\nGetAuditLog gets the audit-log entries for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/enterprise-admin/audit-log#get-the-audit-log-for-an-enterprise](https://docs.github.com/en/rest/enterprise-admin/audit-log#get-the-audit-log-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetCodeSecurityAndAnalysis(ctx context.Context, enterprise string) (*EnterpriseSecurityAnalysisSettings, *Response, error)\n```\nGetCodeSecurityAndAnalysis gets code security and analysis features for an enterprise.\n\nGitHub API docs: [https://docs.github.com/en/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#get-code-security-and-analysis-features-for-an-enterprise](https://docs.github.com/en/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#get-code-security-and-analysis-features-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRunnerApplicationDownloads(ctx context.Context, enterprise 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/rest/actions/self-hosted-runners#list-runner-applications-for-an-enterprise](https://docs.github.com/en/rest/actions/self-hosted-runners#list-runner-applications-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/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-enterprise](https://docs.github.com/en/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) RemoveRunner(ctx context.Context, enterprise string, runnerID int64) (*Response, error)\n```\nRemoveRunner forces the removal of a self-hosted runner from an enterprise using the runner id.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-enterprise](https://docs.github.com/en/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) UpdateCodeSecurityAndAnalysis(ctx context.Context, enterprise string, settings *EnterpriseSecurityAnalysisSettings) (*Response, error)\n```\nUpdateCodeSecurityAndAnalysis updates code security and analysis features for new repositories in an enterprise.\n\nGitHub API docs: [https://docs.github.com/en/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#update-code-security-and-analysis-features-for-an-enterprise](https://docs.github.com/en/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#update-code-security-and-analysis-features-for-an-enterprise)\n\n```go\ntype EnvResponse struct {\n\tTotalCount   *int           `json:\"total_count,omitempty\"`\n\tEnvironments []*Environment `json:\"environments,omitempty\"`\n}\n```\nEnvResponse represents the slightly different format of response that comes back when you list an environment.\n\n```go\nfunc (e *EnvResponse) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype EnvReviewers struct {\n\tType *string `json:\"type,omitempty\"`\n\tID   *int64  `json:\"id,omitempty\"`\n}\n```\nEnvReviewers represents a single environment reviewer entry.\n\n```go\nfunc (e *EnvReviewers) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnvReviewers) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype Environment struct {\n\tOwner                  *string         `json:\"owner,omitempty\"`\n\tRepo                   *string         `json:\"repo,omitempty\"`\n\tEnvironmentName        *string         `json:\"environment_name,omitempty\"`\n\tWaitTimer              *int            `json:\"wait_timer,omitempty\"`\n\tReviewers              []*EnvReviewers `json:\"reviewers,omitempty\"`\n\tDeploymentBranchPolicy *BranchPolicy   `json:\"deployment_branch_policy,omitempty\"`\n\t// Return/response only values\n\tID              *int64            `json:\"id,omitempty\"`\n\tNodeID          *string           `json:\"node_id,omitempty\"`\n\tName            *string           `json:\"name,omitempty\"`\n\tURL             *string           `json:\"url,omitempty\"`\n\tHTMLURL         *string           `json:\"html_url,omitempty\"`\n\tCreatedAt       *Timestamp        `json:\"created_at,omitempty\"`\n\tUpdatedAt       *Timestamp        `json:\"updated_at,omitempty\"`\n\tCanAdminsBypass *bool             `json:\"can_admins_bypass,omitempty\"`\n\tProtectionRules []*ProtectionRule `json:\"protection_rules,omitempty\"`\n}\n```\nEnvironment represents a single environment in a repository.\n\n```go\nfunc (e *Environment) GetCanAdminsBypass() bool\n```\nGetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetDeploymentBranchPolicy() *BranchPolicy\n```\nGetDeploymentBranchPolicy returns the DeploymentBranchPolicy field.\n\n```go\nfunc (e *Environment) GetEnvironmentName() string\n```\nGetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetOwner() string\n```\nGetOwner returns the Owner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetRepo() string\n```\nGetRepo returns the Repo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *Environment) GetWaitTimer() int\n```\nGetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise.\n\n```go\ntype EnvironmentListOptions struct {\n\tListOptions\n}\n```\nEnvironmentListOptions specifies the optional parameters to the RepositoriesService.ListEnvironments method.\n\n```go\ntype Error struct {\n\tResource string `json:\"resource\"` // resource on which the error occurred\n\tField    string `json:\"field\"`    // field on which the error occurred\n\tCode     string `json:\"code\"`     // validation error code\n\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/rest/#client-errors](https://docs.github.com/en/rest/#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 ErrorBlock struct {\n\tReason    string     `json:\"reason,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n}\n```\nErrorBlock contains a further explanation for the reason of an error. See [https://developer.github.com/changes/2016-03-17-the-451-status-code-is-now-supported/](https://developer.github.com/changes/2016-03-17-the-451-status-code-is-now-supported/) for more information.\n\n```go\nfunc (e *ErrorBlock) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ErrorResponse struct {\n\tResponse *http.Response `json:\"-\"`       // 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\tBlock *ErrorBlock `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/rest/#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/rest/#client-errors](https://docs.github.com/en/rest/#client-errors)\n\n```go\nfunc (r *ErrorResponse) Error() string\n```\n\n```go\nfunc (e *ErrorResponse) GetBlock() *ErrorBlock\n```\nGetBlock returns the Block field.\n\n```go\nfunc (r *ErrorResponse) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\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  *Timestamp       `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() Timestamp\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() (interface{}, 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 ExternalGroup struct {\n\tGroupID   *int64                 `json:\"group_id,omitempty\"`\n\tGroupName *string                `json:\"group_name,omitempty\"`\n\tUpdatedAt *Timestamp             `json:\"updated_at,omitempty\"`\n\tTeams     []*ExternalGroupTeam   `json:\"teams,omitempty\"`\n\tMembers   []*ExternalGroupMember `json:\"members,omitempty\"`\n}\n```\nExternalGroup represents an external group.\n\n```go\nfunc (e *ExternalGroup) GetGroupID() int64\n```\nGetGroupID returns the GroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *ExternalGroup) GetGroupName() string\n```\nGetGroupName returns the GroupName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *ExternalGroup) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ExternalGroupList struct {\n\tGroups []*ExternalGroup `json:\"groups\"`\n}\n```\nExternalGroupList represents a list of external groups.\n\n```go\ntype ExternalGroupMember struct {\n\tMemberID    *int64  `json:\"member_id,omitempty\"`\n\tMemberLogin *string `json:\"member_login,omitempty\"`\n\tMemberName  *string `json:\"member_name,omitempty\"`\n\tMemberEmail *string `json:\"member_email,omitempty\"`\n}\n```\nExternalGroupMember represents a member of an external group.\n\n```go\nfunc (e *ExternalGroupMember) GetMemberEmail() string\n```\nGetMemberEmail returns the MemberEmail field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *ExternalGroupMember) GetMemberID() int64\n```\nGetMemberID returns the MemberID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *ExternalGroupMember) GetMemberLogin() string\n```\nGetMemberLogin returns the MemberLogin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *ExternalGroupMember) GetMemberName() string\n```\nGetMemberName returns the MemberName field if it's non-nil, zero value otherwise.\n\n```go\ntype ExternalGroupTeam struct {\n\tTeamID   *int64  `json:\"team_id,omitempty\"`\n\tTeamName *string `json:\"team_name,omitempty\"`\n}\n```\nExternalGroupTeam represents a team connected to an external group.\n\n```go\nfunc (e *ExternalGroupTeam) GetTeamID() int64\n```\nGetTeamID returns the TeamID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *ExternalGroupTeam) GetTeamName() string\n```\nGetTeamName returns the TeamName field if it's non-nil, zero value otherwise.\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 FeedLinks struct {\n\tTimeline                 *FeedLink   `json:\"timeline,omitempty\"`\n\tUser                     *FeedLink   `json:\"user,omitempty\"`\n\tCurrentUserPublic        *FeedLink   `json:\"current_user_public,omitempty\"`\n\tCurrentUser              *FeedLink   `json:\"current_user,omitempty\"`\n\tCurrentUserActor         *FeedLink   `json:\"current_user_actor,omitempty\"`\n\tCurrentUserOrganization  *FeedLink   `json:\"current_user_organization,omitempty\"`\n\tCurrentUserOrganizations []*FeedLink `json:\"current_user_organizations,omitempty\"`\n}\n```\nFeedLinks represents the links in a Feed.\n\n```go\nfunc (f *FeedLinks) GetCurrentUser() *FeedLink\n```\nGetCurrentUser returns the CurrentUser field.\n\n```go\nfunc (f *FeedLinks) GetCurrentUserActor() *FeedLink\n```\nGetCurrentUserActor returns the CurrentUserActor field.\n\n```go\nfunc (f *FeedLinks) GetCurrentUserOrganization() *FeedLink\n```\nGetCurrentUserOrganization returns the CurrentUserOrganization field.\n\n```go\nfunc (f *FeedLinks) GetCurrentUserPublic() *FeedLink\n```\nGetCurrentUserPublic returns the CurrentUserPublic field.\n\n```go\nfunc (f *FeedLinks) GetTimeline() *FeedLink\n```\nGetTimeline returns the Timeline field.\n\n```go\nfunc (f *FeedLinks) GetUser() *FeedLink\n```\nGetUser returns the User field.\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                       *FeedLinks `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) GetLinks() *FeedLinks\n```\nGetLinks returns the Links field.\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 FirstPatchedVersion struct {\n\tIdentifier *string `json:\"identifier,omitempty\"`\n}\n```\nFirstPatchedVersion represents the identifier for the first patched version of that vulnerability.\n\n```go\nfunc (f *FirstPatchedVersion) GetIdentifier() string\n```\nGetIdentifier returns the Identifier 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/developers/webhooks-and-events/webhook-events-and-payloads#fork](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#fork)\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\tRawKey            *string     `json:\"raw_key,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         *Timestamp  `json:\"created_at,omitempty\"`\n\tExpiresAt         *Timestamp  `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() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GPGKey) GetExpiresAt() Timestamp\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 (g *GPGKey) GetRawKey() string\n```\nGetRawKey returns the RawKey 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 GenerateJITConfigRequest struct {\n\tName          string  `json:\"name\"`\n\tRunnerGroupID int64   `json:\"runner_group_id\"`\n\tWorkFolder    *string `json:\"work_folder,omitempty\"`\n\n\t// Labels represents the names of the custom labels to add to the runner.\n\t// Minimum items: 1. Maximum items: 100.\n\tLabels []string `json:\"labels\"`\n}\n```\nGenerateJITConfigRequest specifies body parameters to GenerateRepoJITConfig.\n\n```go\nfunc (g *GenerateJITConfigRequest) GetWorkFolder() string\n```\nGetWorkFolder returns the WorkFolder field if it's non-nil, zero value otherwise.\n\n```go\ntype GenerateNotesOptions struct {\n\tTagName         string  `json:\"tag_name\"`\n\tPreviousTagName *string `json:\"previous_tag_name,omitempty\"`\n\tTargetCommitish *string `json:\"target_commitish,omitempty\"`\n}\n```\nGenerateNotesOptions represents the options to generate release notes.\n\n```go\nfunc (g *GenerateNotesOptions) GetPreviousTagName() string\n```\nGetPreviousTagName returns the PreviousTagName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GenerateNotesOptions) GetTargetCommitish() string\n```\nGetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.\n\n```go\ntype GetAuditLogOptions struct {\n\tPhrase  *string `url:\"phrase,omitempty\"`  // A search phrase. (Optional.)\n\tInclude *string `url:\"include,omitempty\"` // Event type includes. Can be one of \"web\", \"git\", \"all\". Default: \"web\". (Optional.)\n\tOrder   *string `url:\"order,omitempty\"`   // The order of audit log events. Can be one of \"asc\" or \"desc\". Default: \"desc\". (Optional.)\n\n\tListCursorOptions\n}\n```\nGetAuditLogOptions sets up optional parameters to query audit-log endpoint.\n\n```go\nfunc (g *GetAuditLogOptions) GetInclude() string\n```\nGetInclude returns the Include field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GetAuditLogOptions) GetOrder() string\n```\nGetOrder returns the Order field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GetAuditLogOptions) GetPhrase() string\n```\nGetPhrase returns the Phrase field if it's non-nil, zero value otherwise.\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   *Timestamp                `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp                `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() Timestamp\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) GetFiles() map[GistFilename]GistFile\n```\nGetFiles returns the Files map if it's non-nil, an empty map 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() Timestamp\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 *Timestamp `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() Timestamp\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/rest/gists](https://docs.github.com/en/rest/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/rest/gists/gists#create-a-gist](https://docs.github.com/en/rest/gists/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/rest/gists/comments#create-a-gist-comment](https://docs.github.com/en/rest/gists/comments#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/rest/gists/gists#delete-a-gist](https://docs.github.com/en/rest/gists/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/rest/gists/comments#delete-a-gist-comment](https://docs.github.com/en/rest/gists/comments#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/rest/gists/gists#update-a-gist](https://docs.github.com/en/rest/gists/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/rest/gists/comments#update-a-gist-comment](https://docs.github.com/en/rest/gists/comments#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/rest/gists/gists#fork-a-gist](https://docs.github.com/en/rest/gists/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/rest/gists/gists#get-a-gist](https://docs.github.com/en/rest/gists/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/rest/gists/comments#get-a-gist-comment](https://docs.github.com/en/rest/gists/comments#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/rest/gists/gists#get-a-gist-revision](https://docs.github.com/en/rest/gists/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/rest/gists/gists#check-if-a-gist-is-starred](https://docs.github.com/en/rest/gists/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/rest/gists/gists#list-gists-for-the-authenticated-user](https://docs.github.com/en/rest/gists/gists#list-gists-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/gists/gists#list-gists-for-a-user](https://docs.github.com/en/rest/gists/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/rest/gists/gists#list-public-gists](https://docs.github.com/en/rest/gists/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/rest/gists/comments#list-gist-comments](https://docs.github.com/en/rest/gists/comments#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/rest/gists/gists#list-gist-commits](https://docs.github.com/en/rest/gists/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/rest/gists/gists#list-gist-forks](https://docs.github.com/en/rest/gists/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/rest/gists/gists#list-starred-gists](https://docs.github.com/en/rest/gists/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/rest/gists/gists#star-a-gist](https://docs.github.com/en/rest/gists/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/rest/gists/gists#unstar-a-gist](https://docs.github.com/en/rest/gists/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\tInstallation *Installation `json:\"installation,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/developers/webhooks-and-events/webhook-events-and-payloads#github\\_app\\_authorization](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#github_app_authorization)\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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\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/rest/git/](https://docs.github.com/en/rest/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/rest/git/blobs#create-a-blob](https://docs.github.com/en/rest/git/blobs#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/rest/git/commits#create-a-commit](https://docs.github.com/en/rest/git/commits#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/rest/git/refs#create-a-reference](https://docs.github.com/en/rest/git/refs#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/rest/git/tags#create-a-tag-object](https://docs.github.com/en/rest/git/tags#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/rest/git/trees#create-a-tree](https://docs.github.com/en/rest/git/trees#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/rest/git/refs#delete-a-reference](https://docs.github.com/en/rest/git/refs#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/rest/git/blobs#get-a-blob](https://docs.github.com/en/rest/git/blobs#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/rest/git/blobs#get-a-blob](https://docs.github.com/en/rest/git/blobs#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/rest/git/commits#get-a-commit](https://docs.github.com/en/rest/git/commits#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/rest/git/refs#get-a-reference](https://docs.github.com/en/rest/git/refs#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/rest/git/tags#get-a-tag](https://docs.github.com/en/rest/git/tags#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/rest/git/trees#get-a-tree](https://docs.github.com/en/rest/git/trees#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/rest/git/refs#list-matching-references](https://docs.github.com/en/rest/git/refs#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/rest/git/refs#update-a-reference](https://docs.github.com/en/rest/git/refs#update-a-reference)\n\n```go\ntype Gitignore struct {\n\tName   *string `json:\"name,omitempty\"`\n\tSource *string `json:\"source,omitempty\"`\n}\n```\nGitignore represents a .gitignore file as returned by the GitHub API.\n\n```go\nfunc (g *Gitignore) 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/rest/gitignore/](https://docs.github.com/en/rest/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/rest/gitignore#get-a-gitignore-template](https://docs.github.com/en/rest/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/rest/gitignore/#listing-available-templates](https://docs.github.com/en/rest/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/developers/webhooks-and-events/webhook-events-and-payloads#gollum](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#gollum)\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 (h HeadCommit) String() string\n```\n\n```go\ntype Hook struct {\n\tCreatedAt    *Timestamp             `json:\"created_at,omitempty\"`\n\tUpdatedAt    *Timestamp             `json:\"updated_at,omitempty\"`\n\tURL          *string                `json:\"url,omitempty\"`\n\tID           *int64                 `json:\"id,omitempty\"`\n\tType         *string                `json:\"type,omitempty\"`\n\tName         *string                `json:\"name,omitempty\"`\n\tTestURL      *string                `json:\"test_url,omitempty\"`\n\tPingURL      *string                `json:\"ping_url,omitempty\"`\n\tLastResponse map[string]interface{} `json:\"last_response,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() Timestamp\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) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetPingURL() string\n```\nGetPingURL returns the PingURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetTestURL() string\n```\nGetTestURL returns the TestURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *Hook) GetType() string\n```\nGetType returns the Type 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() Timestamp\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 HookConfig struct {\n\tContentType *string `json:\"content_type,omitempty\"`\n\tInsecureSSL *string `json:\"insecure_ssl,omitempty\"`\n\tURL         *string `json:\"url,omitempty\"`\n\n\t// Secret is returned obfuscated by GitHub, but it can be set for outgoing requests.\n\tSecret *string `json:\"secret,omitempty\"`\n}\n```\nHookConfig describes metadata about a webhook configuration.\n\n```go\nfunc (h *HookConfig) GetContentType() string\n```\nGetContentType returns the ContentType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookConfig) GetInsecureSSL() string\n```\nGetInsecureSSL returns the InsecureSSL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookConfig) GetSecret() string\n```\nGetSecret returns the Secret field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookConfig) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype HookDelivery struct {\n\tID             *int64     `json:\"id,omitempty\"`\n\tGUID           *string    `json:\"guid,omitempty\"`\n\tDeliveredAt    *Timestamp `json:\"delivered_at,omitempty\"`\n\tRedelivery     *bool      `json:\"redelivery,omitempty\"`\n\tDuration       *float64   `json:\"duration,omitempty\"`\n\tStatus         *string    `json:\"status,omitempty\"`\n\tStatusCode     *int       `json:\"status_code,omitempty\"`\n\tEvent          *string    `json:\"event,omitempty\"`\n\tAction         *string    `json:\"action,omitempty\"`\n\tInstallationID *int64     `json:\"installation_id,omitempty\"`\n\tRepositoryID   *int64     `json:\"repository_id,omitempty\"`\n\n\t// Request is populated by GetHookDelivery.\n\tRequest *HookRequest `json:\"request,omitempty\"`\n\t// Response is populated by GetHookDelivery.\n\tResponse *HookResponse `json:\"response,omitempty\"`\n}\n```\nHookDelivery represents the data that is received from GitHub's Webhook Delivery API\n\nGitHub API docs: - [https://docs.github.com/en/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook) - [https://docs.github.com/en/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook)\n\n```go\nfunc (h *HookDelivery) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetDeliveredAt() Timestamp\n```\nGetDeliveredAt returns the DeliveredAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetDuration() *float64\n```\nGetDuration returns the Duration field.\n\n```go\nfunc (h *HookDelivery) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetGUID() string\n```\nGetGUID returns the GUID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetInstallationID() int64\n```\nGetInstallationID returns the InstallationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetRedelivery() bool\n```\nGetRedelivery returns the Redelivery field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetRequest() *HookRequest\n```\nGetRequest returns the Request field.\n\n```go\nfunc (h *HookDelivery) GetResponse() *HookResponse\n```\nGetResponse returns the Response field.\n\n```go\nfunc (h *HookDelivery) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HookDelivery) GetStatusCode() int\n```\nGetStatusCode returns the StatusCode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *HookDelivery) ParseRequestPayload() (interface{}, error)\n```\nParseRequestPayload parses the request payload. For recognized event types, a value of the corresponding struct type will be returned.\n\n```go\nfunc (d HookDelivery) String() string\n```\n\n```go\ntype HookRequest struct {\n\tHeaders    map[string]string `json:\"headers,omitempty\"`\n\tRawPayload *json.RawMessage  `json:\"payload,omitempty\"`\n}\n```\nHookRequest is a part of HookDelivery that contains the HTTP headers and the JSON payload of the webhook request.\n\n```go\nfunc (h *HookRequest) GetHeaders() map[string]string\n```\nGetHeaders returns the Headers map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (h *HookRequest) GetRawPayload() json.RawMessage\n```\nGetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r HookRequest) String() string\n```\n\n```go\ntype HookResponse struct {\n\tHeaders    map[string]string `json:\"headers,omitempty\"`\n\tRawPayload *json.RawMessage  `json:\"payload,omitempty\"`\n}\n```\nHookResponse is a part of HookDelivery that contains the HTTP headers and the response body served by the webhook endpoint.\n\n```go\nfunc (h *HookResponse) GetHeaders() map[string]string\n```\nGetHeaders returns the Headers map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (h *HookResponse) GetRawPayload() json.RawMessage\n```\nGetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r HookResponse) 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\tAppSlug                *string                  `json:\"app_slug,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\tSingleFilePaths        []string                 `json:\"single_file_paths,omitempty\"`\n\tPermissions            *InstallationPermissions `json:\"permissions,omitempty\"`\n\tCreatedAt              *Timestamp               `json:\"created_at,omitempty\"`\n\tUpdatedAt              *Timestamp               `json:\"updated_at,omitempty\"`\n\tHasMultipleSingleFiles *bool                    `json:\"has_multiple_single_files,omitempty\"`\n\tSuspendedBy            *User                    `json:\"suspended_by,omitempty\"`\n\tSuspendedAt            *Timestamp               `json:\"suspended_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) GetAppSlug() string\n```\nGetAppSlug returns the AppSlug 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) GetHasMultipleSingleFiles() bool\n```\nGetHasMultipleSingleFiles returns the HasMultipleSingleFiles 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) GetSuspendedAt() Timestamp\n```\nGetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Installation) GetSuspendedBy() *User\n```\nGetSuspendedBy returns the SuspendedBy field.\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 InstallationChanges struct {\n\tLogin *InstallationLoginChange `json:\"login,omitempty\"`\n\tSlug  *InstallationSlugChange  `json:\"slug,omitempty\"`\n}\n```\nInstallationChanges represents a change in slug or login on an installation.\n\n```go\nfunc (i *InstallationChanges) GetLogin() *InstallationLoginChange\n```\nGetLogin returns the Login field.\n\n```go\nfunc (i *InstallationChanges) GetSlug() *InstallationSlugChange\n```\nGetSlug returns the Slug field.\n\n```go\ntype InstallationEvent struct {\n\t// The action that was performed. Can be either \"created\", \"deleted\", \"suspend\", \"unsuspend\" or \"new_permissions_accepted\".\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\tRequester    *User         `json:\"requester,omitempty\"`\n}\n```\nInstallationEvent is triggered when a GitHub App has been installed, uninstalled, suspend, unsuspended or new permissions have been accepted. The Webhook event name is \"installation\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#installation](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#installation)\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) GetRequester() *User\n```\nGetRequester returns the Requester field.\n\n```go\nfunc (i *InstallationEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype InstallationLoginChange struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nInstallationLoginChange represents a change in login on an installation.\n\n```go\nfunc (i *InstallationLoginChange) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype InstallationPermissions struct {\n\tActions                       *string `json:\"actions,omitempty\"`\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\tEnvironments                  *string `json:\"environments,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\tOrganizationCustomRoles       *string `json:\"organization_custom_roles,omitempty\"`\n\tOrganizationHooks             *string `json:\"organization_hooks,omitempty\"`\n\tOrganizationPackages          *string `json:\"organization_packages,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\tOrganizationSecrets           *string `json:\"organization_secrets,omitempty\"`\n\tOrganizationSelfHostedRunners *string `json:\"organization_self_hosted_runners,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\tSecrets                       *string `json:\"secrets,omitempty\"`\n\tSecretScanningAlerts          *string `json:\"secret_scanning_alerts,omitempty\"`\n\tSecurityEvents                *string `json:\"security_events,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\tWorkflows                     *string `json:\"workflows,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/enterprise-server@3.0/rest/apps#create-an-installation-access-token-for-an-app\n\thttps://docs.github.com/en/rest/apps#create-an-installation-access-token-for-an-app\n\n```go\nfunc (i *InstallationPermissions) GetActions() string\n```\nGetActions returns the Actions field if it's non-nil, zero value otherwise.\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) GetEnvironments() string\n```\nGetEnvironments returns the Environments 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) GetOrganizationCustomRoles() string\n```\nGetOrganizationCustomRoles returns the OrganizationCustomRoles 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) GetOrganizationPackages() string\n```\nGetOrganizationPackages returns the OrganizationPackages 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) GetOrganizationSecrets() string\n```\nGetOrganizationSecrets returns the OrganizationSecrets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationSelfHostedRunners() string\n```\nGetOrganizationSelfHostedRunners returns the OrganizationSelfHostedRunners 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) GetSecretScanningAlerts() string\n```\nGetSecretScanningAlerts returns the SecretScanningAlerts field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetSecrets() string\n```\nGetSecrets returns the Secrets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetSecurityEvents() string\n```\nGetSecurityEvents returns the SecurityEvents 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\nfunc (i *InstallationPermissions) GetWorkflows() string\n```\nGetWorkflows returns the Workflows 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/developers/webhooks-and-events/webhook-events-and-payloads#installation\\_repositories](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#installation_repositories)\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 InstallationSlugChange struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nInstallationSlugChange represents a change in slug on an installation.\n\n```go\nfunc (i *InstallationSlugChange) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype InstallationTargetEvent struct {\n\tAccount      *User                `json:\"account,omitempty\"`\n\tAction       *string              `json:\"action,omitempty\"`\n\tChanges      *InstallationChanges `json:\"changes,omitempty\"`\n\tEnterprise   *Enterprise          `json:\"enterprise,omitempty\"`\n\tInstallation *Installation        `json:\"installation,omitempty\"`\n\tOrganization *Organization        `json:\"organization,omitempty\"`\n\tRepository   *Repository          `json:\"repository,omitempty\"`\n\tSender       *User                `json:\"sender,omitempty\"`\n\tTargetType   *string              `json:\"target_type,omitempty\"`\n}\n```\nInstallationTargetEvent is triggered when there is activity on an installation from a user or organization account. The Webhook event name is \"installation\\_target\".\n\nGitHub API docs: [https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#installation\\_target](https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_target)\n\n```go\nfunc (i *InstallationTargetEvent) GetAccount() *User\n```\nGetAccount returns the Account field.\n\n```go\nfunc (i *InstallationTargetEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationTargetEvent) GetChanges() *InstallationChanges\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (i *InstallationTargetEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (i *InstallationTargetEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (i *InstallationTargetEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (i *InstallationTargetEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (i *InstallationTargetEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (i *InstallationTargetEvent) GetTargetType() string\n```\nGetTargetType returns the TargetType field if it's non-nil, zero value otherwise.\n\n```go\ntype InstallationToken struct {\n\tToken        *string                  `json:\"token,omitempty\"`\n\tExpiresAt    *Timestamp               `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() Timestamp\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 names of the repositories that the installation token can access.\n\t// Providing repository names restricts the access of an installation token to specific repositories.\n\tRepositories []string `json:\"repositories,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/rest/interactions/](https://docs.github.com/en/rest/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/rest/interactions/orgs#get-interaction-restrictions-for-an-organization](https://docs.github.com/en/rest/interactions/orgs#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/rest/interactions/repos#get-interaction-restrictions-for-a-repository](https://docs.github.com/en/rest/interactions/repos#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/rest/interactions/orgs#remove-interaction-restrictions-for-an-organization](https://docs.github.com/en/rest/interactions/orgs#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/rest/interactions/repos#remove-interaction-restrictions-for-a-repository](https://docs.github.com/en/rest/interactions/repos#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/rest/interactions/orgs#set-interaction-restrictions-for-an-organization](https://docs.github.com/en/rest/interactions/orgs#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/rest/interactions/repos#set-interaction-restrictions-for-a-repository](https://docs.github.com/en/rest/interactions/repos#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         *Timestamp `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\tFailedAt          *Timestamp `json:\"failed_at,omitempty\"`\n\tFailedReason      *string    `json:\"failed_reason,omitempty\"`\n}\n```\nInvitation represents a team member's invitation status.\n\n```go\nfunc (i *Invitation) GetCreatedAt() Timestamp\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) GetFailedAt() Timestamp\n```\nGetFailedAt returns the FailedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Invitation) GetFailedReason() string\n```\nGetFailedReason returns the FailedReason 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\t// StateReason can be one of: \"completed\", \"not_planned\", \"reopened\".\n\tStateReason       *string           `json:\"state_reason,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          *Timestamp        `json:\"closed_at,omitempty\"`\n\tCreatedAt         *Timestamp        `json:\"created_at,omitempty\"`\n\tUpdatedAt         *Timestamp        `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/rest/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() Timestamp\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() Timestamp\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) GetStateReason() string\n```\nGetStateReason returns the StateReason 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() Timestamp\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 *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `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() Timestamp\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() Timestamp\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\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```\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/developers/webhooks-and-events/webhook-events-and-payloads#issue\\_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment)\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) GetOrganization() *Organization\n```\nGetOrganization returns the Organization 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 *Timestamp `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() Timestamp\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 *Timestamp `json:\"created_at,omitempty\"`\n\tClosedAt  *Timestamp `json:\"closed_at,omitempty\"`\n\tUpdatedAt *Timestamp `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() Timestamp\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueImport) GetCreatedAt() Timestamp\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() Timestamp\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        *Timestamp          `json:\"created_at,omitempty\"`\n\tUpdatedAt        *Timestamp          `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() Timestamp\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() Timestamp\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 Timestamp) ([]*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// Sort specifies how to sort comments. Possible values are: created, updated.\n\tSort *string `url:\"sort,omitempty\"`\n\n\t// Direction in which to sort comments. Possible values are: asc, desc.\n\tDirection *string `url:\"direction,omitempty\"`\n\n\t// Since filters comments by time.\n\tSince *time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nIssueListCommentsOptions specifies the optional parameters to the IssuesService.ListComments method.\n\n```go\nfunc (i *IssueListCommentsOptions) GetDirection() string\n```\nGetDirection returns the Direction field if it's non-nil, zero value otherwise.\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\nfunc (i *IssueListCommentsOptions) GetSort() string\n```\nGetSort returns the Sort 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\t// StateReason can be 'completed' or 'not_planned'.\n\tStateReason *string   `json:\"state_reason,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) GetStateReason() string\n```\nGetStateReason returns the StateReason 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\tMilestone    *Milestone    `json:\"milestone,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/developers/webhooks-and-events/webhook-events-and-payloads#issues](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issues)\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) GetMilestone() *Milestone\n```\nGetMilestone returns the Milestone 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/rest/issues/](https://docs.github.com/en/rest/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/rest/issues/assignees#add-assignees-to-an-issue](https://docs.github.com/en/rest/issues/assignees#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/rest/issues/labels#add-labels-to-an-issue](https://docs.github.com/en/rest/issues/labels#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/rest/issues/issues#create-an-issue](https://docs.github.com/en/rest/issues/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/rest/issues/comments#create-an-issue-comment](https://docs.github.com/en/rest/issues/comments#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/rest/issues/labels#create-a-label](https://docs.github.com/en/rest/issues/labels#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/rest/issues/milestones#create-a-milestone](https://docs.github.com/en/rest/issues/milestones#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/rest/issues/comments#delete-an-issue-comment](https://docs.github.com/en/rest/issues/comments#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/rest/issues/labels#delete-a-label](https://docs.github.com/en/rest/issues/labels#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/rest/issues/milestones#delete-a-milestone](https://docs.github.com/en/rest/issues/milestones#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 (update) an issue.\n\nGitHub API docs: [https://docs.github.com/en/rest/issues/issues#update-an-issue](https://docs.github.com/en/rest/issues/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/rest/issues/comments#update-an-issue-comment](https://docs.github.com/en/rest/issues/comments#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/rest/issues/labels#update-a-label](https://docs.github.com/en/rest/issues/labels#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/rest/issues/milestones#update-a-milestone](https://docs.github.com/en/rest/issues/milestones#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/rest/issues/issues#get-an-issue](https://docs.github.com/en/rest/issues/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/rest/issues/comments#get-an-issue-comment](https://docs.github.com/en/rest/issues/comments#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/rest/issues/events#get-an-issue-event](https://docs.github.com/en/rest/issues/events#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/rest/issues/labels#get-a-label](https://docs.github.com/en/rest/issues/labels#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/rest/issues/milestones#get-a-milestone](https://docs.github.com/en/rest/issues/milestones#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/rest/issues/assignees#check-if-a-user-can-be-assigned](https://docs.github.com/en/rest/issues/assignees#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/rest/issues/issues#list-user-account-issues-assigned-to-the-authenticated-user](https://docs.github.com/en/rest/issues/issues#list-user-account-issues-assigned-to-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/issues/issues#list-issues-assigned-to-the-authenticated-user](https://docs.github.com/en/rest/issues/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/rest/issues/assignees#list-assignees](https://docs.github.com/en/rest/issues/assignees#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/rest/issues/issues#list-organization-issues-assigned-to-the-authenticated-user](https://docs.github.com/en/rest/issues/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/rest/issues/issues#list-repository-issues](https://docs.github.com/en/rest/issues/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/rest/issues/comments#list-issue-comments](https://docs.github.com/en/rest/issues/comments#list-issue-comments) GitHub API docs: [https://docs.github.com/en/rest/issues/comments#list-issue-comments-for-a-repository](https://docs.github.com/en/rest/issues/comments#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/rest/issues/events#list-issue-events](https://docs.github.com/en/rest/issues/events#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/rest/issues/timeline#list-timeline-events-for-an-issue](https://docs.github.com/en/rest/issues/timeline#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/rest/issues/labels#list-labels-for-a-repository](https://docs.github.com/en/rest/issues/labels#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/rest/issues/labels#list-labels-for-an-issue](https://docs.github.com/en/rest/issues/labels#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/rest/issues/labels#list-labels-for-issues-in-a-milestone](https://docs.github.com/en/rest/issues/labels#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/rest/issues/milestones#list-milestones](https://docs.github.com/en/rest/issues/milestones#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/rest/issues/events#list-issue-events-for-a-repository](https://docs.github.com/en/rest/issues/events#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/rest/issues/issues#lock-an-issue](https://docs.github.com/en/rest/issues/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/rest/issues/assignees#remove-assignees-from-an-issue](https://docs.github.com/en/rest/issues/assignees#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/rest/issues/labels#remove-a-label-from-an-issue](https://docs.github.com/en/rest/issues/labels#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/rest/issues/labels#remove-all-labels-from-an-issue](https://docs.github.com/en/rest/issues/labels#remove-all-labels-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveMilestone(ctx context.Context, owner, repo string, issueNumber int) (*Issue, *Response, error)\n```\nRemove a milestone from an issue.\n\nThis is a helper method to explicitly update an issue with a \\`null\\` milestone, thereby removing it.\n\nGitHub API docs: [https://docs.github.com/en/rest/issues/issues#update-an-issue](https://docs.github.com/en/rest/issues/issues#update-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/rest/issues/labels#set-labels-for-an-issue](https://docs.github.com/en/rest/issues/labels#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/rest/issues/issues#unlock-an-issue](https://docs.github.com/en/rest/issues/issues#unlock-an-issue)\n\n```go\ntype JITRunnerConfig struct {\n\tRunner           *Runner `json:\"runner,omitempty\"`\n\tEncodedJITConfig *string `json:\"encoded_jit_config,omitempty\"`\n}\n```\nJITRunnerConfig represents encoded JIT configuration that can be used to bootstrap a self-hosted runner.\n\n```go\nfunc (j *JITRunnerConfig) GetEncodedJITConfig() string\n```\nGetEncodedJITConfig returns the EncodedJITConfig field if it's non-nil, zero value otherwise.\n\n```go\nfunc (j *JITRunnerConfig) GetRunner() *Runner\n```\nGetRunner returns the Runner field.\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\tVerified  *bool      `json:\"verified,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tAddedBy   *string    `json:\"added_by,omitempty\"`\n\tLastUsed  *Timestamp `json:\"last_used,omitempty\"`\n}\n```\nKey represents a public SSH key used to authenticate a user or deploy script.\n\n```go\nfunc (k *Key) GetAddedBy() string\n```\nGetAddedBy returns the AddedBy field if it's non-nil, zero value otherwise.\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) GetLastUsed() Timestamp\n```\nGetLastUsed returns the LastUsed 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) GetVerified() bool\n```\nGetVerified returns the Verified 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\tChanges *EditChange `json:\"changes,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```\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/developers/webhooks-and-events/webhook-events-and-payloads#label](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#label)\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\nfunc (l *LabelEvent) GetSender() *User\n```\nGetSender returns the Sender 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/rest/migration/source\\_imports/#get-large-files](https://docs.github.com/en/rest/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/rest/licenses/](https://docs.github.com/en/rest/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/rest/licenses#get-a-license](https://docs.github.com/en/rest/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/rest/licenses/#list-all-licenses](https://docs.github.com/en/rest/licenses/#list-all-licenses)\n\n```go\ntype LinearHistoryRequirementEnforcementLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nLinearHistoryRequirementEnforcementLevelChanges represents the changes made to the LinearHistoryRequirementEnforcementLevel policy.\n\n```go\nfunc (l *LinearHistoryRequirementEnforcementLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype ListAlertsOptions struct {\n\tState     *string `url:\"state,omitempty\"`\n\tSeverity  *string `url:\"severity,omitempty\"`\n\tEcosystem *string `url:\"ecosystem,omitempty\"`\n\tPackage   *string `url:\"package,omitempty\"`\n\tScope     *string `url:\"scope,omitempty\"`\n\tSort      *string `url:\"sort,omitempty\"`\n\tDirection *string `url:\"direction,omitempty\"`\n\n\tListOptions\n\tListCursorOptions\n}\n```\nListAlertsOptions specifies the optional parameters to the DependabotService.ListRepoAlerts and DependabotService.ListOrgAlerts methods.\n\n```go\nfunc (l *ListAlertsOptions) GetDirection() string\n```\nGetDirection returns the Direction field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListAlertsOptions) GetEcosystem() string\n```\nGetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListAlertsOptions) GetPackage() string\n```\nGetPackage returns the Package field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListAlertsOptions) GetScope() string\n```\nGetScope returns the Scope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListAlertsOptions) GetSeverity() string\n```\nGetSeverity returns the Severity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListAlertsOptions) GetSort() string\n```\nGetSort returns the Sort field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListAlertsOptions) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\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\tAppID     *int64  `url:\"app_id,omitempty\"`     // Filters check runs by GitHub App ID.\n\n\tListOptions\n}\n```\nListCheckRunsOptions represents parameters to list check runs.\n\n```go\nfunc (l *ListCheckRunsOptions) GetAppID() int64\n```\nGetAppID returns the AppID field if it's non-nil, zero value otherwise.\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 ListCodespaces struct {\n\tTotalCount *int         `json:\"total_count,omitempty\"`\n\tCodespaces []*Codespace `json:\"codespaces\"`\n}\n```\nListCodespaces represents the response from the list codespaces endpoints.\n\n```go\nfunc (l *ListCodespaces) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCodespacesOptions struct {\n\tListOptions\n\tRepositoryID int64 `url:\"repository_id,omitempty\"`\n}\n```\nListOptions represents the options for listing codespaces for a user.\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\t// Permission specifies how collaborators should be filtered by the permissions they have on the repository.\n\t// Possible values are:\n\t// \"pull\", \"triage\", \"push\", \"maintain\", \"admin\"\n\t//\n\t// If not specified, all collaborators will be returned.\n\tPermission string `url:\"permission,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\t// For paginated result sets, the number of results per page (max 100), starting from the first matching result.\n\t// This parameter must not be used in combination with last.\n\tFirst int `url:\"first,omitempty\"`\n\n\t// For paginated result sets, the number of results per page (max 100), starting from the last matching result.\n\t// This parameter must not be used in combination with first.\n\tLast int `url:\"last,omitempty\"`\n\n\t// A cursor, as given in the Link header. If specified, the query only searches for events after this cursor.\n\tAfter string `url:\"after,omitempty\"`\n\n\t// A cursor, as given in the Link header. If specified, the query only searches for events before this cursor.\n\tBefore string `url:\"before,omitempty\"`\n\n\t// A cursor, as given in the Link header. If specified, the query continues the search using this cursor.\n\tCursor string `url:\"cursor,omitempty\"`\n}\n```\nListCursorOptions specifies the optional parameters to various List methods that support cursor pagination.\n\n```go\ntype ListExternalGroupsOptions struct {\n\tDisplayName *string `url:\"display_name,omitempty\"`\n\n\tListOptions\n}\n```\nListExternalGroupsOptions specifies the optional parameters to the TeamsService.ListExternalGroups method.\n\n```go\nfunc (l *ListExternalGroupsOptions) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\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 ListOrgRunnerGroupOptions struct {\n\tListOptions\n\n\t// Only return runner groups that are allowed to be used by this repository.\n\tVisibleToRepository string `url:\"visible_to_repository,omitempty\"`\n}\n```\nListOrgRunnerGroupOptions extend ListOptions to have the optional parameters VisibleToRepository.\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 ListRepositories struct {\n\tTotalCount   *int          `json:\"total_count,omitempty\"`\n\tRepositories []*Repository `json:\"repositories\"`\n}\n```\nListRepositories represents the response from the list repos endpoints.\n\n```go\nfunc (l *ListRepositories) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ListSCIMProvisionedIdentitiesOptions struct {\n\tStartIndex *int `url:\"startIndex,omitempty\"` // Used for pagination: the index of the first result to return. (Optional.)\n\tCount      *int `url:\"count,omitempty\"`      // Used for pagination: the number of results to return. (Optional.)\n\t// Filter results using the equals query parameter operator (eq).\n\t// You can filter results that are equal to id, userName, emails, and external_id.\n\t// For example, to search for an identity with the userName Octocat, you would use this query: ?filter=userName%20eq%20\\\"Octocat\\\".\n\t// To filter results for the identity with the email octocat@github.com, you would use this query: ?filter=emails%20eq%20\\\"octocat@github.com\\\".\n\t// (Optional.)\n\tFilter *string `url:\"filter,omitempty\"`\n}\n```\nListSCIMProvisionedIdentitiesOptions represents options for ListSCIMProvisionedIdentities.\n\nGithub API docs: [https://docs.github.com/en/rest/scim#list-scim-provisioned-identities--parameters](https://docs.github.com/en/rest/scim#list-scim-provisioned-identities--parameters)\n\n```go\nfunc (l *ListSCIMProvisionedIdentitiesOptions) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListSCIMProvisionedIdentitiesOptions) GetFilter() string\n```\nGetFilter returns the Filter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListSCIMProvisionedIdentitiesOptions) GetStartIndex() int\n```\nGetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise.\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\tCreated             string `url:\"created,omitempty\"`\n\tHeadSHA             string `url:\"head_sha,omitempty\"`\n\tExcludePullRequests bool   `url:\"exclude_pull_requests,omitempty\"`\n\tCheckSuiteID        int64  `url:\"check_suite_id,omitempty\"`\n\tListOptions\n}\n```\nListWorkflowRunsOptions specifies optional parameters to ListWorkflowRuns.\n\n```go\ntype Location 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}\n```\nLocation represents the exact location of the GitHub Code Scanning Alert in the scanned project.\n\n```go\nfunc (l *Location) GetEndColumn() int\n```\nGetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Location) GetEndLine() int\n```\nGetEndLine returns the EndLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Location) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Location) GetStartColumn() int\n```\nGetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *Location) GetStartLine() int\n```\nGetStartLine returns the StartLine field if it's non-nil, zero value otherwise.\n\n```go\ntype LockBranch struct {\n\tEnabled *bool `json:\"enabled,omitempty\"`\n}\n```\nLockBranch represents if the branch is marked as read-only. If this is true, users will not be able to push to the branch.\n\n```go\nfunc (l *LockBranch) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\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\tNumber              *int    `json:\"number,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) GetNumber() int\n```\nGetNumber returns the Number 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\tLogin                    *string                   `json:\"login,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) 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) 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\tAccount *MarketplacePurchaseAccount `json:\"account,omitempty\"`\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\tOnFreeTrial     *bool            `json:\"on_free_trial,omitempty\"`\n\tFreeTrialEndsOn *Timestamp       `json:\"free_trial_ends_on,omitempty\"`\n\tUpdatedAt       *Timestamp       `json:\"updated_at,omitempty\"`\n}\n```\nMarketplacePurchase represents a GitHub Apps Marketplace Purchase.\n\n```go\nfunc (m *MarketplacePurchase) GetAccount() *MarketplacePurchaseAccount\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\nfunc (m *MarketplacePurchase) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype MarketplacePurchaseAccount struct {\n\tURL                      *string `json:\"url,omitempty\"`\n\tType                     *string `json:\"type,omitempty\"`\n\tID                       *int64  `json:\"id,omitempty\"`\n\tLogin                    *string `json:\"login,omitempty\"`\n\tOrganizationBillingEmail *string `json:\"organization_billing_email,omitempty\"`\n\tEmail                    *string `json:\"email,omitempty\"`\n\tNodeID                   *string `json:\"node_id,omitempty\"`\n}\n```\nMarketplacePurchaseAccount represents a GitHub Account (user or organization) for a Purchase.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetOrganizationBillingEmail() string\n```\nGetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MarketplacePurchaseAccount) GetURL() string\n```\nGetURL returns the URL 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/developers/webhooks-and-events/webhook-events-and-payloads#marketplace\\_purchase](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#marketplace_purchase)\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/rest/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/rest/apps#marketplace](https://docs.github.com/en/rest/apps#marketplace)\n\n```go\nfunc (s *MarketplaceService) GetPlanAccountForAccount(ctx context.Context, accountID int64) (*MarketplacePlanAccount, *Response, error)\n```\nGetPlanAccountForAccount get GitHub account (user or organization) associated with an account.\n\nGitHub API docs: [https://docs.github.com/en/rest/apps#get-a-subscription-plan-for-an-account](https://docs.github.com/en/rest/apps#get-a-subscription-plan-for-an-account)\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/rest/apps/marketplace#list-subscriptions-for-the-authenticated-user-stubbed](https://docs.github.com/en/rest/apps/marketplace#list-subscriptions-for-the-authenticated-user-stubbed) GitHub API docs: [https://docs.github.com/en/rest/apps/marketplace#list-subscriptions-for-the-authenticated-user](https://docs.github.com/en/rest/apps/marketplace#list-subscriptions-for-the-authenticated-user)\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/rest/apps#list-accounts-for-a-plan](https://docs.github.com/en/rest/apps#list-accounts-for-a-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/rest/apps#list-plans](https://docs.github.com/en/rest/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/developers/webhooks-and-events/webhook-events-and-payloads#member](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#member)\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/developers/webhooks-and-events/webhook-events-and-payloads#membership](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#membership)\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 MergeGroup struct {\n\t// The SHA of the merge group.\n\tHeadSHA *string `json:\"head_sha,omitempty\"`\n\t// The full ref of the merge group.\n\tHeadRef *string `json:\"head_ref,omitempty\"`\n\t// The SHA of the merge group's parent commit.\n\tBaseSHA *string `json:\"base_sha,omitempty\"`\n\t// The full ref of the branch the merge group will be merged into.\n\tBaseRef *string `json:\"base_ref,omitempty\"`\n\t// An expanded representation of the head_sha commit.\n\tHeadCommit *Commit `json:\"head_commit,omitempty\"`\n}\n```\nMergeGroup represents the merge group in a merge queue.\n\n```go\nfunc (m *MergeGroup) GetBaseRef() string\n```\nGetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MergeGroup) GetBaseSHA() string\n```\nGetBaseSHA returns the BaseSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MergeGroup) GetHeadCommit() *Commit\n```\nGetHeadCommit returns the HeadCommit field.\n\n```go\nfunc (m *MergeGroup) GetHeadRef() string\n```\nGetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MergeGroup) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.\n\n```go\ntype MergeGroupEvent struct {\n\t// The action that was performed. Currently, can only be checks_requested.\n\tAction *string `json:\"action,omitempty\"`\n\t// The merge group.\n\tMergeGroup *MergeGroup `json:\"merge_group,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\tInstallation *Installation `json:\"installation,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n}\n```\nMergeGroupEvent represents activity related to merge groups in a merge queue. The type of activity is specified in the action property of the payload object.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#merge\\_group](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#merge_group)\n\n```go\nfunc (m *MergeGroupEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MergeGroupEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (m *MergeGroupEvent) GetMergeGroup() *MergeGroup\n```\nGetMergeGroup returns the MergeGroup field.\n\n```go\nfunc (m *MergeGroupEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (m *MergeGroupEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (m *MergeGroupEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype Message struct {\n\tText *string `json:\"text,omitempty\"`\n}\n```\nMessage is a part of MostRecentInstance struct which provides the appropriate message when any action is performed on the analysis object.\n\n```go\nfunc (m *Message) GetText() string\n```\nGetText returns the Text field if it's non-nil, zero value otherwise.\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\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```\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/developers/webhooks-and-events/webhook-events-and-payloads#meta](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#meta)\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\nfunc (m *MetaEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (m *MetaEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (m *MetaEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (m *MetaEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype Metric struct {\n\tName    *string `json:\"name\"`\n\tKey     *string `json:\"key\"`\n\tSPDXID  *string `json:\"spdx_id\"`\n\tURL     *string `json:\"url\"`\n\tHTMLURL *string `json:\"html_url\"`\n\tNodeID  *string `json:\"node_id\"`\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) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *Metric) GetSPDXID() string\n```\nGetSPDXID returns the SPDXID 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/rest/migration/](https://docs.github.com/en/rest/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/rest/migrations/source-imports#cancel-an-import](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/source-imports#get-commit-authors](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/orgs#delete-an-organization-migration-archive](https://docs.github.com/en/rest/migrations/orgs#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/rest/migrations/users#delete-a-user-migration-archive](https://docs.github.com/en/rest/migrations/users#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/rest/migrations/source-imports#get-an-import-status](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/source-imports#get-large-files](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/orgs#list-organization-migrations](https://docs.github.com/en/rest/migrations/orgs#list-organization-migrations)\n\n```go\nfunc (s *MigrationService) ListUserMigrations(ctx context.Context, opts *ListOptions) ([]*UserMigration, *Response, error)\n```\nListUserMigrations lists the most recent migrations.\n\nGitHub API docs: [https://docs.github.com/en/rest/migrations/users#list-user-migrations](https://docs.github.com/en/rest/migrations/users#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/rest/migrations/source-imports#map-a-commit-author](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/orgs#download-an-organization-migration-archive](https://docs.github.com/en/rest/migrations/orgs#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/rest/migrations/orgs#get-an-organization-migration-status](https://docs.github.com/en/rest/migrations/orgs#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/rest/migrations/source-imports#update-git-lfs-preference](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/source-imports#start-an-import](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/orgs#start-an-organization-migration](https://docs.github.com/en/rest/migrations/orgs#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/rest/migrations/users#start-a-user-migration](https://docs.github.com/en/rest/migrations/users#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/rest/migrations/orgs#unlock-an-organization-repository](https://docs.github.com/en/rest/migrations/orgs#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/rest/migrations/users#unlock-a-user-repository](https://docs.github.com/en/rest/migrations/users#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/rest/migrations/source-imports#update-an-import](https://docs.github.com/en/rest/migrations/source-imports#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/rest/migrations/users#download-a-user-migration-archive](https://docs.github.com/en/rest/migrations/users#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/rest/migrations/users#get-a-user-migration-status](https://docs.github.com/en/rest/migrations/users#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    *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt    *Timestamp `json:\"updated_at,omitempty\"`\n\tClosedAt     *Timestamp `json:\"closed_at,omitempty\"`\n\tDueOn        *Timestamp `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() Timestamp\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() Timestamp\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() Timestamp\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() Timestamp\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/developers/webhooks-and-events/webhook-events-and-payloads#milestone](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#milestone)\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 MinutesUsedBreakdown = map[string]int\n```\nMinutesUsedBreakdown counts the actions minutes used by machine type (e.g. UBUNTU, WINDOWS, MACOS).\n\n```go\ntype MostRecentInstance struct {\n\tRef             *string   `json:\"ref,omitempty\"`\n\tAnalysisKey     *string   `json:\"analysis_key,omitempty\"`\n\tEnvironment     *string   `json:\"environment,omitempty\"`\n\tState           *string   `json:\"state,omitempty\"`\n\tCommitSHA       *string   `json:\"commit_sha,omitempty\"`\n\tMessage         *Message  `json:\"message,omitempty\"`\n\tLocation        *Location `json:\"location,omitempty\"`\n\tClassifications []string  `json:\"classifications,omitempty\"`\n}\n```\nMostRecentInstance provides details of the most recent instance of this alert for the default branch or for the specified Git reference.\n\n```go\nfunc (m *MostRecentInstance) GetAnalysisKey() string\n```\nGetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MostRecentInstance) GetCommitSHA() string\n```\nGetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MostRecentInstance) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MostRecentInstance) GetLocation() *Location\n```\nGetLocation returns the Location field.\n\n```go\nfunc (m *MostRecentInstance) GetMessage() *Message\n```\nGetMessage returns the Message field.\n\n```go\nfunc (m *MostRecentInstance) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MostRecentInstance) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype NewPullRequest struct {\n\tTitle               *string `json:\"title,omitempty\"`\n\tHead                *string `json:\"head,omitempty\"`\n\tHeadRepo            *string `json:\"head_repo,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) GetHeadRepo() string\n```\nGetHeadRepo returns the HeadRepo 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/rest/activity#notification-reasons\n\tReason *string `json:\"reason,omitempty\"`\n\n\tUnread     *bool      `json:\"unread,omitempty\"`\n\tUpdatedAt  *Timestamp `json:\"updated_at,omitempty\"`\n\tLastReadAt *Timestamp `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() Timestamp\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() Timestamp\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 OIDCSubjectClaimCustomTemplate struct {\n\tUseDefault       *bool    `json:\"use_default,omitempty\"`\n\tIncludeClaimKeys []string `json:\"include_claim_keys,omitempty\"`\n}\n```\nOIDCSubjectClaimCustomTemplate represents an OIDC subject claim customization template.\n\n```go\nfunc (o *OIDCSubjectClaimCustomTemplate) GetUseDefault() bool\n```\nGetUseDefault returns the UseDefault field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#org\\_block](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#org_block)\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 OrgRequiredWorkflow struct {\n\tID                      *int64      `json:\"id,omitempty\"`\n\tName                    *string     `json:\"name,omitempty\"`\n\tPath                    *string     `json:\"path,omitempty\"`\n\tScope                   *string     `json:\"scope,omitempty\"`\n\tRef                     *string     `json:\"ref,omitempty\"`\n\tState                   *string     `json:\"state,omitempty\"`\n\tSelectedRepositoriesURL *string     `json:\"selected_repositories_url,omitempty\"`\n\tCreatedAt               *Timestamp  `json:\"created_at,omitempty\"`\n\tUpdatedAt               *Timestamp  `json:\"updated_at,omitempty\"`\n\tRepository              *Repository `json:\"repository,omitempty\"`\n}\n```\nOrgRequiredWorkflow represents a required workflow object at the org level.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetScope() string\n```\nGetScope returns the Scope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetSelectedRepositoriesURL() string\n```\nGetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *OrgRequiredWorkflow) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype OrgRequiredWorkflows struct {\n\tTotalCount        *int                   `json:\"total_count,omitempty\"`\n\tRequiredWorkflows []*OrgRequiredWorkflow `json:\"required_workflows,omitempty\"`\n}\n```\nOrgRequiredWorkflows represents the required workflows for the org.\n\n```go\nfunc (o *OrgRequiredWorkflows) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\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                   *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt                   *Timestamp `json:\"updated_at,omitempty\"`\n\tTotalPrivateRepos           *int64     `json:\"total_private_repos,omitempty\"`\n\tOwnedPrivateRepos           *int64     `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// MembersCanForkPrivateRepos toggles whether organization members can fork private organization repositories.\n\tMembersCanForkPrivateRepos *bool `json:\"members_can_fork_private_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// MembersCanCreatePages toggles whether organization members can create GitHub Pages sites.\n\tMembersCanCreatePages *bool `json:\"members_can_create_pages,omitempty\"`\n\t// MembersCanCreatePublicPages toggles whether organization members can create public GitHub Pages sites.\n\tMembersCanCreatePublicPages *bool `json:\"members_can_create_public_pages,omitempty\"`\n\t// MembersCanCreatePrivatePages toggles whether organization members can create private GitHub Pages sites.\n\tMembersCanCreatePrivatePages *bool `json:\"members_can_create_private_pages,omitempty\"`\n\t// WebCommitSignoffRequire toggles\n\tWebCommitSignoffRequired *bool `json:\"web_commit_signoff_required,omitempty\"`\n\t// AdvancedSecurityAuditLogEnabled toggles whether the advanced security audit log is enabled.\n\tAdvancedSecurityEnabledForNewRepos *bool `json:\"advanced_security_enabled_for_new_repositories,omitempty\"`\n\t// DependabotAlertsEnabled toggles whether dependabot alerts are enabled.\n\tDependabotAlertsEnabledForNewRepos *bool `json:\"dependabot_alerts_enabled_for_new_repositories,omitempty\"`\n\t// DependabotSecurityUpdatesEnabled toggles whether dependabot security updates are enabled.\n\tDependabotSecurityUpdatesEnabledForNewRepos *bool `json:\"dependabot_security_updates_enabled_for_new_repositories,omitempty\"`\n\t// DependabotGraphEnabledForNewRepos toggles whether dependabot graph is enabled on new repositories.\n\tDependencyGraphEnabledForNewRepos *bool `json:\"dependency_graph_enabled_for_new_repositories,omitempty\"`\n\t// SecretScanningEnabled toggles whether secret scanning is enabled on new repositories.\n\tSecretScanningEnabledForNewRepos *bool `json:\"secret_scanning_enabled_for_new_repositories,omitempty\"`\n\t// SecretScanningPushProtectionEnabledForNewRepos toggles whether secret scanning push protection is enabled on new repositories.\n\tSecretScanningPushProtectionEnabledForNewRepos *bool `json:\"secret_scanning_push_protection_enabled_for_new_repositories,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) GetAdvancedSecurityEnabledForNewRepos() bool\n```\nGetAdvancedSecurityEnabledForNewRepos returns the AdvancedSecurityEnabledForNewRepos field if it's non-nil, zero value otherwise.\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() Timestamp\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) GetDependabotAlertsEnabledForNewRepos() bool\n```\nGetDependabotAlertsEnabledForNewRepos returns the DependabotAlertsEnabledForNewRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetDependabotSecurityUpdatesEnabledForNewRepos() bool\n```\nGetDependabotSecurityUpdatesEnabledForNewRepos returns the DependabotSecurityUpdatesEnabledForNewRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetDependencyGraphEnabledForNewRepos() bool\n```\nGetDependencyGraphEnabledForNewRepos returns the DependencyGraphEnabledForNewRepos 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) GetMembersCanCreatePages() bool\n```\nGetMembersCanCreatePages returns the MembersCanCreatePages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanCreatePrivatePages() bool\n```\nGetMembersCanCreatePrivatePages returns the MembersCanCreatePrivatePages 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) GetMembersCanCreatePublicPages() bool\n```\nGetMembersCanCreatePublicPages returns the MembersCanCreatePublicPages 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) GetMembersCanForkPrivateRepos() bool\n```\nGetMembersCanForkPrivateRepos returns the MembersCanForkPrivateRepos 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() int64\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) GetSecretScanningEnabledForNewRepos() bool\n```\nGetSecretScanningEnabledForNewRepos returns the SecretScanningEnabledForNewRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetSecretScanningPushProtectionEnabledForNewRepos() bool\n```\nGetSecretScanningPushProtectionEnabledForNewRepos returns the SecretScanningPushProtectionEnabledForNewRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetTotalPrivateRepos() int64\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() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetWebCommitSignoffRequired() bool\n```\nGetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o Organization) String() string\n```\n\n```go\ntype OrganizationCustomRepoRoles struct {\n\tTotalCount      *int               `json:\"total_count,omitempty\"`\n\tCustomRepoRoles []*CustomRepoRoles `json:\"custom_roles,omitempty\"`\n}\n```\nOrganizationCustomRepoRoles represents custom repository roles available in specified organization.\n\n```go\nfunc (o *OrganizationCustomRepoRoles) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#organization](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#organization)\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/rest/orgs/](https://docs.github.com/en/rest/orgs/)\n\n```go\nfunc (s *OrganizationsService) AddSecurityManagerTeam(ctx context.Context, org, team string) (*Response, error)\n```\nAddSecurityManagerTeam adds a team to the list of security managers for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/security-managers#add-a-security-manager-team](https://docs.github.com/en/rest/orgs/security-managers#add-a-security-manager-team)\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/rest/orgs/blocking#block-a-user-from-an-organization](https://docs.github.com/en/rest/orgs/blocking#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/rest/orgs/members#remove-public-organization-membership-for-the-authenticated-user](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/outside-collaborators#convert-an-organization-member-to-outside-collaborator](https://docs.github.com/en/rest/orgs/outside-collaborators#convert-an-organization-member-to-outside-collaborator)\n\n```go\nfunc (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRoleOptions) (*CustomRepoRoles, *Response, error)\n```\nCreateCustomRepoRole creates a custom repository role in this organization. In order to create custom repository roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/custom-roles#create-a-custom-repository-role](https://docs.github.com/en/rest/orgs/custom-roles#create-a-custom-repository-role)\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/rest/orgs/webhooks#create-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#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/rest/orgs/members#create-an-organization-invitation](https://docs.github.com/en/rest/orgs/members#create-an-organization-invitation)\n\n```go\nfunc (s *OrganizationsService) CreateOrganizationRuleset(ctx context.Context, org string, rs *Ruleset) (*Ruleset, *Response, error)\n```\nCreateOrganizationRuleset creates a ruleset for the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/rules#create-an-organization-repository-ruleset](https://docs.github.com/en/rest/orgs/rules#create-an-organization-repository-ruleset)\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/rest/projects/projects#create-an-organization-project](https://docs.github.com/en/rest/projects/projects#create-an-organization-project)\n\n```go\nfunc (s *OrganizationsService) Delete(ctx context.Context, org string) (*Response, error)\n```\nDelete an organization by name.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/orgs#delete-an-organization](https://docs.github.com/en/rest/orgs/orgs#delete-an-organization)\n\n```go\nfunc (s *OrganizationsService) DeleteCustomRepoRole(ctx context.Context, org, roleID string) (*Response, error)\n```\nDeleteCustomRepoRole deletes an existing custom repository role in this organization. In order to delete custom repository roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/custom-roles#delete-a-custom-repository-role](https://docs.github.com/en/rest/orgs/custom-roles#delete-a-custom-repository-role)\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/rest/orgs/webhooks#delete-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#delete-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) DeleteOrganizationRuleset(ctx context.Context, org string, rulesetID int64) (*Response, error)\n```\nDeleteOrganizationRuleset deletes a ruleset from the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/rules#delete-an-organization-repository-ruleset](https://docs.github.com/en/rest/orgs/rules#delete-an-organization-repository-ruleset)\n\n```go\nfunc (s *OrganizationsService) DeletePackage(ctx context.Context, org, packageType, packageName string) (*Response, error)\n```\nDelete a package from an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#delete-a-package-for-an-organization](https://docs.github.com/en/rest/packages#delete-a-package-for-an-organization)\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/rest/orgs/orgs#update-an-organization](https://docs.github.com/en/rest/orgs/orgs#update-an-organization)\n\n```go\nfunc (s *OrganizationsService) EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error)\n```\nEditActionsAllowed sets the actions that are allowed in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-organization](https://docs.github.com/en/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error)\n```\nEditActionsPermissions sets the permissions policy for repositories and allowed actions in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-github-actions-permissions-for-an-organization](https://docs.github.com/en/rest/actions/permissions#set-github-actions-permissions-for-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/rest/orgs/webhooks#update-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#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/rest/orgs/members#update-an-organization-membership-for-the-authenticated-user](https://docs.github.com/en/rest/orgs/members#update-an-organization-membership-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/orgs/members#set-organization-membership-for-a-user](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/orgs#get-an-organization](https://docs.github.com/en/rest/orgs/orgs#get-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetActionsAllowed(ctx context.Context, org string) (*ActionsAllowed, *Response, error)\n```\nGetActionsAllowed gets the actions that are allowed in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-organization](https://docs.github.com/en/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetActionsPermissions(ctx context.Context, org string) (*ActionsPermissions, *Response, error)\n```\nGetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#get-github-actions-permissions-for-an-organization](https://docs.github.com/en/rest/actions/permissions#get-github-actions-permissions-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetAllOrganizationRulesets(ctx context.Context, org string) ([]*Ruleset, *Response, error)\n```\nGetAllOrganizationRulesets gets all the rulesets for the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/rules#get-all-organization-repository-rulesets](https://docs.github.com/en/rest/orgs/rules#get-all-organization-repository-rulesets)\n\n```go\nfunc (s *OrganizationsService) GetAuditLog(ctx context.Context, org string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error)\n```\nGetAuditLog gets the audit-log entries for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/orgs#get-the-audit-log-for-an-organization](https://docs.github.com/en/rest/orgs/orgs#get-the-audit-log-for-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/rest/orgs/webhooks#get-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#get-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) GetHookDelivery(ctx context.Context, owner string, hookID, deliveryID int64) (*HookDelivery, *Response, error)\n```\nGetHookDelivery returns a delivery for a webhook configured in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/webhooks#get-a-webhook-delivery-for-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#get-a-webhook-delivery-for-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/rest/orgs/members#get-an-organization-membership-for-the-authenticated-user](https://docs.github.com/en/rest/orgs/members#get-an-organization-membership-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/orgs/members#get-organization-membership-for-a-user](https://docs.github.com/en/rest/orgs/members#get-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) GetOrganizationRuleset(ctx context.Context, org string, rulesetID int64) (*Ruleset, *Response, error)\n```\nGetOrganizationRuleset gets a ruleset from the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/rules#get-an-organization-repository-ruleset](https://docs.github.com/en/rest/orgs/rules#get-an-organization-repository-ruleset)\n\n```go\nfunc (s *OrganizationsService) GetPackage(ctx context.Context, org, packageType, packageName string) (*Package, *Response, error)\n```\nGet a package by name from an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#get-a-package-for-an-organization](https://docs.github.com/en/rest/packages#get-a-package-for-an-organization)\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/rest/orgs/blocking#check-if-a-user-is-blocked-by-an-organization](https://docs.github.com/en/rest/orgs/blocking#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/rest/orgs/members#check-organization-membership-for-a-user](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/members#check-public-organization-membership-for-a-user](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/orgs#list-organizations-for-the-authenticated-user](https://docs.github.com/en/rest/orgs/orgs#list-organizations-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/orgs/orgs#list-organizations-for-a-user](https://docs.github.com/en/rest/orgs/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/rest/orgs/orgs#list-organizations](https://docs.github.com/en/rest/orgs/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/rest/orgs/blocking#list-users-blocked-by-an-organization](https://docs.github.com/en/rest/orgs/blocking#list-users-blocked-by-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListCredentialAuthorizations(ctx context.Context, org string, opts *ListOptions) ([]*CredentialAuthorization, *Response, error)\n```\nListCredentialAuthorizations lists credentials authorized through SAML SSO for a given organization. Only available with GitHub Enterprise Cloud.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#list-saml-sso-authorizations-for-an-organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#list-saml-sso-authorizations-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error)\n```\nListCustomRepoRoles lists the custom repository roles available in this organization. In order to see custom repository roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization](https://docs.github.com/en/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListFailedOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error)\n```\nListFailedOrgInvitations returns a list of failed inviatations.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/members#list-failed-organization-invitations](https://docs.github.com/en/rest/orgs/members#list-failed-organization-invitations)\n\n```go\nfunc (s *OrganizationsService) ListHookDeliveries(ctx context.Context, org string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error)\n```\nListHookDeliveries lists webhook deliveries for a webhook configured in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/webhooks#list-deliveries-for-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#list-deliveries-for-an-organization-webhook)\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/rest/orgs/webhooks#list-organization-webhooks](https://docs.github.com/en/rest/orgs/webhooks#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/rest/orgs/orgs#list-app-installations-for-an-organization](https://docs.github.com/en/rest/orgs/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/rest/orgs/members#list-organization-members](https://docs.github.com/en/rest/orgs/members#list-organization-members) GitHub API docs: [https://docs.github.com/en/rest/orgs/members#list-public-organization-members](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/members#list-organization-invitation-teams](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/members#list-organization-memberships-for-the-authenticated-user](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/outside-collaborators#list-outside-collaborators-for-an-organization](https://docs.github.com/en/rest/orgs/outside-collaborators#list-outside-collaborators-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListPackages(ctx context.Context, org string, opts *PackageListOptions) ([]*Package, *Response, error)\n```\nList the packages for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#list-packages-for-an-organization](https://docs.github.com/en/rest/packages#list-packages-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/rest/orgs/members#list-pending-organization-invitations](https://docs.github.com/en/rest/orgs/members#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/rest/projects/projects#list-organization-projects](https://docs.github.com/en/rest/projects/projects#list-organization-projects)\n\n```go\nfunc (s *OrganizationsService) ListSecurityManagerTeams(ctx context.Context, org string) ([]*Team, *Response, error)\n```\nListSecurityManagerTeams lists all security manager teams for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/security-managers#list-security-manager-teams](https://docs.github.com/en/rest/orgs/security-managers#list-security-manager-teams)\n\n```go\nfunc (s *OrganizationsService) PackageDeleteVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nDelete a package version from an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#delete-package-version-for-an-organization](https://docs.github.com/en/rest/packages#delete-package-version-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) PackageGetAllVersions(ctx context.Context, org, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error)\n```\nGet all versions of a package in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#list-package-versions-for-a-package-owned-by-an-organization](https://docs.github.com/en/rest/packages#list-package-versions-for-a-package-owned-by-an-organization)\n\n```go\nfunc (s *OrganizationsService) PackageGetVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error)\n```\nGet a specific version of a package in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#get-a-package-version-for-an-organization](https://docs.github.com/en/rest/packages#get-a-package-version-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) PackageRestoreVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nRestore a package version to an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#restore-package-version-for-an-organization](https://docs.github.com/en/rest/packages#restore-package-version-for-an-organization)\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/rest/orgs/webhooks#ping-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#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/rest/orgs/members#set-public-organization-membership-for-the-authenticated-user](https://docs.github.com/en/rest/orgs/members#set-public-organization-membership-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) RedeliverHookDelivery(ctx context.Context, owner string, hookID, deliveryID int64) (*HookDelivery, *Response, error)\n```\nRedeliverHookDelivery redelivers a delivery for a webhook configured in an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/webhooks#redeliver-a-delivery-for-an-organization-webhook](https://docs.github.com/en/rest/orgs/webhooks#redeliver-a-delivery-for-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) RemoveCredentialAuthorization(ctx context.Context, org string, credentialID int64) (*Response, error)\n```\nRemoveCredentialAuthorization revokes the SAML SSO authorization for a given credential within an organization. Only available with GitHub Enterprise Cloud.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#remove-a-saml-sso-authorization-for-an-organization](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#remove-a-saml-sso-authorization-for-an-organization)\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/rest/orgs/members#remove-an-organization-member](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/members#remove-organization-membership-for-a-user](https://docs.github.com/en/rest/orgs/members#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/rest/orgs/outside-collaborators#remove-outside-collaborator-from-an-organization](https://docs.github.com/en/rest/orgs/outside-collaborators#remove-outside-collaborator-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) RemoveSecurityManagerTeam(ctx context.Context, org, team string) (*Response, error)\n```\nRemoveSecurityManagerTeam removes a team from the list of security managers for an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/security-managers#remove-a-security-manager-team](https://docs.github.com/en/rest/orgs/security-managers#remove-a-security-manager-team)\n\n```go\nfunc (s *OrganizationsService) RestorePackage(ctx context.Context, org, packageType, packageName string) (*Response, error)\n```\nRestore a package to an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#restore-a-package-for-an-organization](https://docs.github.com/en/rest/packages#restore-a-package-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ReviewPersonalAccessTokenRequest(ctx context.Context, org string, requestID int64, opts ReviewPersonalAccessTokenRequestOptions) (*Response, error)\n```\nReviewPersonalAccessTokenRequest approves or denies a pending request to access organization resources via a fine-grained personal access token. Only GitHub Apps can call this API, using the \\`organization\\_personal\\_access\\_token\\_requests: write\\` permission. \\`action\\` can be one of \\`approve\\` or \\`deny\\`.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/personal-access-tokens?apiVersion=2022-11-28#review-a-request-to-access-organization-resources-with-a-fine-grained-personal-access-token](https://docs.github.com/en/rest/orgs/personal-access-tokens?apiVersion=2022-11-28#review-a-request-to-access-organization-resources-with-a-fine-grained-personal-access-token)\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/rest/orgs/blocking#unblock-a-user-from-an-organization](https://docs.github.com/en/rest/orgs/blocking#unblock-a-user-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org, roleID string, opts *CreateOrUpdateCustomRoleOptions) (*CustomRepoRoles, *Response, error)\n```\nUpdateCustomRepoRole updates a custom repository role in this organization. In order to update custom repository roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/custom-roles#update-a-custom-repository-role](https://docs.github.com/en/rest/orgs/custom-roles#update-a-custom-repository-role)\n\n```go\nfunc (s *OrganizationsService) UpdateOrganizationRuleset(ctx context.Context, org string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error)\n```\nUpdateOrganizationRuleset updates a ruleset from the specified organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/orgs/rules#update-an-organization-repository-ruleset](https://docs.github.com/en/rest/orgs/rules#update-an-organization-repository-ruleset)\n\n```go\ntype OwnerInfo struct {\n\tUser *User `json:\"user,omitempty\"`\n\tOrg  *User `json:\"organization,omitempty\"`\n}\n```\nOwnerInfo represents the account info of the owner of the repo (could be User or Organization but both are User structs).\n\n```go\nfunc (o *OwnerInfo) GetOrg() *User\n```\nGetOrg returns the Org field.\n\n```go\nfunc (o *OwnerInfo) GetUser() *User\n```\nGetUser returns the User field.\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\tURL            *string          `json:\"url,omitempty\"`\n\tVersionCount   *int64           `json:\"version_count,omitempty\"`\n\tVisibility     *string          `json:\"visibility,omitempty\"`\n\tRepository     *Repository      `json:\"repository,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) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (p *Package) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\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) GetVersionCount() int64\n```\nGetVersionCount returns the VersionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p Package) String() string\n```\n\n```go\ntype PackageBilling struct {\n\tTotalGigabytesBandwidthUsed     int     `json:\"total_gigabytes_bandwidth_used\"`\n\tTotalPaidGigabytesBandwidthUsed int     `json:\"total_paid_gigabytes_bandwidth_used\"`\n\tIncludedGigabytesBandwidth      float64 `json:\"included_gigabytes_bandwidth\"`\n}\n```\nPackageBilling represents a GitHub Package billing.\n\n```go\ntype PackageContainerMetadata struct {\n\tTags []string `json:\"tags,omitempty\"`\n}\n```\nPackageContainerMetadata represents container metadata for docker container packages.\n\n```go\nfunc (r PackageContainerMetadata) 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\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\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 PackageListOptions struct {\n\t// Visibility of packages \"public\", \"internal\" or \"private\".\n\tVisibility *string `url:\"visibility,omitempty\"`\n\n\t// PackageType represents the type of package.\n\t// It can be one of \"npm\", \"maven\", \"rubygems\", \"nuget\", \"docker\", or \"container\".\n\tPackageType *string `url:\"package_type,omitempty\"`\n\n\t// State of package either \"active\" or \"deleted\".\n\tState *string `url:\"state,omitempty\"`\n\n\tListOptions\n}\n```\nPackageListOptions represents the optional list options for a package.\n\n```go\nfunc (p *PackageListOptions) GetPackageType() string\n```\nGetPackageType returns the PackageType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageListOptions) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageListOptions) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\ntype PackageMetadata struct {\n\tPackageType *string                   `json:\"package_type,omitempty\"`\n\tContainer   *PackageContainerMetadata `json:\"container,omitempty\"`\n}\n```\nPackageMetadata represents metadata from a package.\n\n```go\nfunc (p *PackageMetadata) GetContainer() *PackageContainerMetadata\n```\nGetContainer returns the Container field.\n\n```go\nfunc (p *PackageMetadata) GetPackageType() string\n```\nGetPackageType returns the PackageType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r PackageMetadata) 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\tMetadata            *PackageMetadata `json:\"metadata,omitempty\"`\n\tPackageHTMLURL      *string          `json:\"package_html_url,omitempty\"`\n\tName                *string          `json:\"name,omitempty\"`\n\tURL                 *string          `json:\"url,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) GetMetadata() *PackageMetadata\n```\nGetMetadata returns the Metadata field.\n\n```go\nfunc (p *PackageVersion) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetPackageHTMLURL() string\n```\nGetPackageHTMLURL returns the PackageHTMLURL 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) GetURL() string\n```\nGetURL returns the URL 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/developers/webhooks-and-events/webhook-events-and-payloads#page\\_build](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#page_build)\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\tBuildType        *string                `json:\"build_type,omitempty\"`\n\tSource           *PagesSource           `json:\"source,omitempty\"`\n\tPublic           *bool                  `json:\"public,omitempty\"`\n\tHTTPSCertificate *PagesHTTPSCertificate `json:\"https_certificate,omitempty\"`\n\tHTTPSEnforced    *bool                  `json:\"https_enforced,omitempty\"`\n}\n```\nPages represents a GitHub Pages site configuration.\n\n```go\nfunc (p *Pages) GetBuildType() string\n```\nGetBuildType returns the BuildType field if it's non-nil, zero value otherwise.\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) GetHTTPSCertificate() *PagesHTTPSCertificate\n```\nGetHTTPSCertificate returns the HTTPSCertificate field.\n\n```go\nfunc (p *Pages) GetHTTPSEnforced() bool\n```\nGetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Pages) GetPublic() bool\n```\nGetPublic returns the Public 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 PagesDomain struct {\n\tHost                          *string `json:\"host,omitempty\"`\n\tURI                           *string `json:\"uri,omitempty\"`\n\tNameservers                   *string `json:\"nameservers,omitempty\"`\n\tDNSResolves                   *bool   `json:\"dns_resolves,omitempty\"`\n\tIsProxied                     *bool   `json:\"is_proxied,omitempty\"`\n\tIsCloudflareIP                *bool   `json:\"is_cloudflare_ip,omitempty\"`\n\tIsFastlyIP                    *bool   `json:\"is_fastly_ip,omitempty\"`\n\tIsOldIPAddress                *bool   `json:\"is_old_ip_address,omitempty\"`\n\tIsARecord                     *bool   `json:\"is_a_record,omitempty\"`\n\tHasCNAMERecord                *bool   `json:\"has_cname_record,omitempty\"`\n\tHasMXRecordsPresent           *bool   `json:\"has_mx_records_present,omitempty\"`\n\tIsValidDomain                 *bool   `json:\"is_valid_domain,omitempty\"`\n\tIsApexDomain                  *bool   `json:\"is_apex_domain,omitempty\"`\n\tShouldBeARecord               *bool   `json:\"should_be_a_record,omitempty\"`\n\tIsCNAMEToGithubUserDomain     *bool   `json:\"is_cname_to_github_user_domain,omitempty\"`\n\tIsCNAMEToPagesDotGithubDotCom *bool   `json:\"is_cname_to_pages_dot_github_dot_com,omitempty\"`\n\tIsCNAMEToFastly               *bool   `json:\"is_cname_to_fastly,omitempty\"`\n\tIsPointedToGithubPagesIP      *bool   `json:\"is_pointed_to_github_pages_ip,omitempty\"`\n\tIsNonGithubPagesIPPresent     *bool   `json:\"is_non_github_pages_ip_present,omitempty\"`\n\tIsPagesDomain                 *bool   `json:\"is_pages_domain,omitempty\"`\n\tIsServedByPages               *bool   `json:\"is_served_by_pages,omitempty\"`\n\tIsValid                       *bool   `json:\"is_valid,omitempty\"`\n\tReason                        *string `json:\"reason,omitempty\"`\n\tRespondsToHTTPS               *bool   `json:\"responds_to_https,omitempty\"`\n\tEnforcesHTTPS                 *bool   `json:\"enforces_https,omitempty\"`\n\tHTTPSError                    *string `json:\"https_error,omitempty\"`\n\tIsHTTPSEligible               *bool   `json:\"is_https_eligible,omitempty\"`\n\tCAAError                      *string `json:\"caa_error,omitempty\"`\n}\n```\nPagesDomain represents a domain associated with a GitHub Pages site.\n\n```go\nfunc (p *PagesDomain) GetCAAError() string\n```\nGetCAAError returns the CAAError field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetDNSResolves() bool\n```\nGetDNSResolves returns the DNSResolves field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetEnforcesHTTPS() bool\n```\nGetEnforcesHTTPS returns the EnforcesHTTPS field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetHTTPSError() string\n```\nGetHTTPSError returns the HTTPSError field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetHasCNAMERecord() bool\n```\nGetHasCNAMERecord returns the HasCNAMERecord field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetHasMXRecordsPresent() bool\n```\nGetHasMXRecordsPresent returns the HasMXRecordsPresent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetHost() string\n```\nGetHost returns the Host field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsARecord() bool\n```\nGetIsARecord returns the IsARecord field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsApexDomain() bool\n```\nGetIsApexDomain returns the IsApexDomain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsCNAMEToFastly() bool\n```\nGetIsCNAMEToFastly returns the IsCNAMEToFastly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsCNAMEToGithubUserDomain() bool\n```\nGetIsCNAMEToGithubUserDomain returns the IsCNAMEToGithubUserDomain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsCNAMEToPagesDotGithubDotCom() bool\n```\nGetIsCNAMEToPagesDotGithubDotCom returns the IsCNAMEToPagesDotGithubDotCom field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsCloudflareIP() bool\n```\nGetIsCloudflareIP returns the IsCloudflareIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsFastlyIP() bool\n```\nGetIsFastlyIP returns the IsFastlyIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsHTTPSEligible() bool\n```\nGetIsHTTPSEligible returns the IsHTTPSEligible field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsNonGithubPagesIPPresent() bool\n```\nGetIsNonGithubPagesIPPresent returns the IsNonGithubPagesIPPresent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsOldIPAddress() bool\n```\nGetIsOldIPAddress returns the IsOldIPAddress field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsPagesDomain() bool\n```\nGetIsPagesDomain returns the IsPagesDomain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsPointedToGithubPagesIP() bool\n```\nGetIsPointedToGithubPagesIP returns the IsPointedToGithubPagesIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsProxied() bool\n```\nGetIsProxied returns the IsProxied field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsServedByPages() bool\n```\nGetIsServedByPages returns the IsServedByPages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsValid() bool\n```\nGetIsValid returns the IsValid field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetIsValidDomain() bool\n```\nGetIsValidDomain returns the IsValidDomain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetNameservers() string\n```\nGetNameservers returns the Nameservers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetRespondsToHTTPS() bool\n```\nGetRespondsToHTTPS returns the RespondsToHTTPS field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetShouldBeARecord() bool\n```\nGetShouldBeARecord returns the ShouldBeARecord field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesDomain) GetURI() string\n```\nGetURI returns the URI 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 PagesHTTPSCertificate struct {\n\tState       *string  `json:\"state,omitempty\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tDomains     []string `json:\"domains,omitempty\"`\n\t// GitHub's API doesn't return a standard Timestamp, rather it returns a YYYY-MM-DD string.\n\tExpiresAt *string `json:\"expires_at,omitempty\"`\n}\n```\nPagesHTTPSCertificate represents the HTTPS Certificate information for a GitHub Pages site.\n\n```go\nfunc (p *PagesHTTPSCertificate) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesHTTPSCertificate) GetExpiresAt() string\n```\nGetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesHTTPSCertificate) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype PagesHealthCheckResponse struct {\n\tDomain    *PagesDomain `json:\"domain,omitempty\"`\n\tAltDomain *PagesDomain `json:\"alt_domain,omitempty\"`\n}\n```\nPagesHealthCheckResponse represents the response given for the health check of a GitHub Pages site.\n\n```go\nfunc (p *PagesHealthCheckResponse) GetAltDomain() *PagesDomain\n```\nGetAltDomain returns the AltDomain field.\n\n```go\nfunc (p *PagesHealthCheckResponse) GetDomain() *PagesDomain\n```\nGetDomain returns the Domain field.\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// BuildType is optional and can either be \"legacy\" or \"workflow\".\n\t// \"workflow\" - You are using a github workflow to build your pages.\n\t// \"legacy\"   - You are deploying from a branch.\n\tBuildType *string `json:\"build_type,omitempty\"`\n\t// Source must include the branch name, and may optionally specify the subdirectory \"/docs\".\n\t// Possible values for Source.Branch are usually \"gh-pages\", \"main\", and \"master\",\n\t// or any other existing branch name.\n\t// Possible values for Source.Path are: \"/\", and \"/docs\".\n\tSource *PagesSource `json:\"source,omitempty\"`\n\t// Public configures access controls for the site.\n\t// If \"true\", the site will be accessible to anyone on the internet. If \"false\",\n\t// the site will be accessible to anyone with read access to the repository that\n\t// published the site.\n\tPublic *bool `json:\"public,omitempty\"`\n\t// HTTPSEnforced specifies whether HTTPS should be enforced for the repository.\n\tHTTPSEnforced *bool `json:\"https_enforced,omitempty\"`\n}\n```\nPagesUpdate sets up parameters needed to update a GitHub Pages site.\n\n```go\nfunc (p *PagesUpdate) GetBuildType() string\n```\nGetBuildType returns the BuildType field if it's non-nil, zero value otherwise.\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) GetHTTPSEnforced() bool\n```\nGetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesUpdate) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesUpdate) GetSource() *PagesSource\n```\nGetSource returns the Source field.\n\n```go\ntype PendingDeploymentsRequest struct {\n\tEnvironmentIDs []int64 `json:\"environment_ids\"`\n\t// State can be one of: \"approved\", \"rejected\".\n\tState   string `json:\"state\"`\n\tComment string `json:\"comment\"`\n}\n```\nPendingDeploymentsRequest specifies body parameters to PendingDeployments.\n\n```go\ntype PersonalAccessTokenPermissions struct {\n\tOrg   map[string]string `json:\"organization,omitempty\"`\n\tRepo  map[string]string `json:\"repository,omitempty\"`\n\tOther map[string]string `json:\"other,omitempty\"`\n}\n```\nPersonalAccessTokenPermissions represents the original or newly requested scope of permissions for a fine-grained personal access token within a PersonalAccessTokenRequest.\n\n```go\nfunc (p *PersonalAccessTokenPermissions) GetOrg() map[string]string\n```\nGetOrg returns the Org map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PersonalAccessTokenPermissions) GetOther() map[string]string\n```\nGetOther returns the Other map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PersonalAccessTokenPermissions) GetRepo() map[string]string\n```\nGetRepo returns the Repo map if it's non-nil, an empty map otherwise.\n\n```go\ntype PersonalAccessTokenRequest struct {\n\t// Unique identifier of the request for access via fine-grained personal\n\t// access token. Used as the pat_request_id parameter in the list and review\n\t// API calls.\n\tID    *int64 `json:\"id,omitempty\"`\n\tOwner *User  `json:\"owner,omitempty\"`\n\n\t// New requested permissions, categorized by type of permission.\n\tPermissionsAdded *PersonalAccessTokenPermissions `json:\"permissions_added,omitempty\"`\n\n\t// Requested permissions that elevate access for a previously approved\n\t// request for access, categorized by type of permission.\n\tPermissionsUpgraded *PersonalAccessTokenPermissions `json:\"permissions_upgraded,omitempty\"`\n\n\t// Permissions requested, categorized by type of permission.\n\t// This field incorporates permissions_added and permissions_upgraded.\n\tPermissionsResult *PersonalAccessTokenPermissions `json:\"permissions_result,omitempty\"`\n\n\t// Type of repository selection requested. Possible values are:\n\t// \"none\", \"all\" or \"subset\"\n\tRepositorySelection *string `json:\"repository_selection,omitempty\"`\n\n\t// The number of repositories the token is requesting access to.\n\t// This field is only populated when repository_selection is subset.\n\tRepositoryCount *int64 `json:\"repository_count,omitempty\"`\n\n\t// An array of repository objects the token is requesting access to.\n\t// This field is only populated when repository_selection is subset.\n\tRepositories []*Repository `json:\"repositories,omitempty\"`\n\n\t// Date and time when the request for access was created.\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\n\t// Whether the associated fine-grained personal access token has expired.\n\tTokenExpired *bool `json:\"token_expired,omitempty\"`\n\n\t// Date and time when the associated fine-grained personal access token expires.\n\tTokenExpiresAt *Timestamp `json:\"token_expires_at,omitempty\"`\n\n\t// Date and time when the associated fine-grained personal access token was last used for authentication.\n\tTokenLastUsedAt *Timestamp `json:\"token_last_used_at,omitempty\"`\n}\n```\nPersonalAccessTokenRequest contains the details of a PersonalAccessTokenRequestEvent.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetPermissionsAdded() *PersonalAccessTokenPermissions\n```\nGetPermissionsAdded returns the PermissionsAdded field.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetPermissionsResult() *PersonalAccessTokenPermissions\n```\nGetPermissionsResult returns the PermissionsResult field.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetPermissionsUpgraded() *PersonalAccessTokenPermissions\n```\nGetPermissionsUpgraded returns the PermissionsUpgraded field.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetRepositoryCount() int64\n```\nGetRepositoryCount returns the RepositoryCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetTokenExpired() bool\n```\nGetTokenExpired returns the TokenExpired field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetTokenExpiresAt() Timestamp\n```\nGetTokenExpiresAt returns the TokenExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequest) GetTokenLastUsedAt() Timestamp\n```\nGetTokenLastUsedAt returns the TokenLastUsedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype PersonalAccessTokenRequestEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"approved\", \"cancelled\", \"created\" or \"denied\"\n\tAction                     *string                     `json:\"action,omitempty\"`\n\tPersonalAccessTokenRequest *PersonalAccessTokenRequest `json:\"personal_access_token_request,omitempty\"`\n\tOrg                        *Organization               `json:\"organization,omitempty\"`\n\tSender                     *User                       `json:\"sender,omitempty\"`\n\tInstallation               *Installation               `json:\"installation,omitempty\"`\n}\n```\nPersonalAccessTokenRequestEvent occurs when there is activity relating to a request for a fine-grained personal access token to access resources that belong to a resource owner that requires approval for token access. The webhook event name is \"personal\\_access\\_token\\_request\".\n\nGitHub API docs: [https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#personal\\_access\\_token\\_request](https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#personal_access_token_request)\n\n```go\nfunc (p *PersonalAccessTokenRequestEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessTokenRequestEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PersonalAccessTokenRequestEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *PersonalAccessTokenRequestEvent) GetPersonalAccessTokenRequest() *PersonalAccessTokenRequest\n```\nGetPersonalAccessTokenRequest returns the PersonalAccessTokenRequest field.\n\n```go\nfunc (p *PersonalAccessTokenRequestEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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\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```\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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *PingEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PingEvent) GetSender() *User\n```\nGetSender returns the Sender 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  *int64  `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() int64\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 PolicyOverrideReason struct {\n\tCode    *string `json:\"code,omitempty\"`\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nPolicyOverrideReason contains user-supplied information about why a policy was overridden.\n\n```go\nfunc (p *PolicyOverrideReason) GetCode() string\n```\nGetCode returns the Code field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PolicyOverrideReason) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\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\tOrganizationPermission *string    `json:\"organization_permission,omitempty\"`\n\tPrivate                *bool      `json:\"private,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) GetOrganizationPermission() string\n```\nGetOrganizationPermission returns the OrganizationPermission 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) GetPrivate() bool\n```\nGetPrivate returns the Private 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 ProjectBody struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nProjectBody represents a project body change.\n\n```go\nfunc (p *ProjectBody) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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/rest/projects/cards/#get-a-project-card](https://docs.github.com/en/rest/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 *ProjectCardNote `json:\"note,omitempty\"`\n}\n```\nProjectCardChange represents the changes when a project card has been edited.\n\n```go\nfunc (p *ProjectCardChange) GetNote() *ProjectCardNote\n```\nGetNote returns the Note field.\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/developers/webhooks-and-events/webhook-events-and-payloads#project\\_card](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#project_card)\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 ProjectCardNote struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nProjectCardNote represents a change of a note of a project card.\n\n```go\nfunc (p *ProjectCardNote) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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 *ProjectName `json:\"name,omitempty\"`\n\tBody *ProjectBody `json:\"body,omitempty\"`\n}\n```\nProjectChange represents the changes when a project has been edited.\n\n```go\nfunc (p *ProjectChange) GetBody() *ProjectBody\n```\nGetBody returns the Body field.\n\n```go\nfunc (p *ProjectChange) GetName() *ProjectName\n```\nGetName returns the Name field.\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/rest/repos/projects/](https://docs.github.com/en/rest/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 *ProjectColumnName `json:\"name,omitempty\"`\n}\n```\nProjectColumnChange represents the changes when a project column has been edited.\n\n```go\nfunc (p *ProjectColumnChange) GetName() *ProjectColumnName\n```\nGetName returns the Name field.\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/developers/webhooks-and-events/webhook-events-and-payloads#project\\_column](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#project_column)\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 ProjectColumnName struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nProjectColumnName represents a project column name change.\n\n```go\nfunc (p *ProjectColumnName) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#project](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#project)\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 ProjectName struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nProjectName represents a project name change.\n\n```go\nfunc (p *ProjectName) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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\tPrivate *bool `json:\"private,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) GetPrivate() bool\n```\nGetPrivate returns the Private 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 ProjectV2Event struct {\n\tAction     *string     `json:\"action,omitempty\"`\n\tProjectsV2 *ProjectsV2 `json:\"projects_v2,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n}\n```\nProjectV2Event is triggered when there is activity relating to an organization-level project. The Webhook event name is \"projects\\_v2\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects\\_v2](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2)\n\n```go\nfunc (p *ProjectV2Event) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Event) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *ProjectV2Event) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *ProjectV2Event) GetProjectsV2() *ProjectsV2\n```\nGetProjectsV2 returns the ProjectsV2 field.\n\n```go\nfunc (p *ProjectV2Event) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype ProjectV2Item struct {\n\tID            *int64     `json:\"id,omitempty\"`\n\tNodeID        *string    `json:\"node_id,omitempty\"`\n\tProjectNodeID *string    `json:\"project_node_id,omitempty\"`\n\tContentNodeID *string    `json:\"content_node_id,omitempty\"`\n\tContentType   *string    `json:\"content_type,omitempty\"`\n\tCreator       *User      `json:\"creator,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n\tArchivedAt    *Timestamp `json:\"archived_at,omitempty\"`\n}\n```\nProjectsV2 represents an item belonging to a project.\n\n```go\nfunc (p *ProjectV2Item) GetArchivedAt() Timestamp\n```\nGetArchivedAt returns the ArchivedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetContentNodeID() string\n```\nGetContentNodeID returns the ContentNodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetContentType() string\n```\nGetContentType returns the ContentType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *ProjectV2Item) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetProjectNodeID() string\n```\nGetProjectNodeID returns the ProjectNodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Item) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2ItemChange struct {\n\tArchivedAt *ArchivedAt `json:\"archived_at,omitempty\"`\n}\n```\nProjectV2ItemChange represents a project v2 item change.\n\n```go\nfunc (p *ProjectV2ItemChange) GetArchivedAt() *ArchivedAt\n```\nGetArchivedAt returns the ArchivedAt field.\n\n```go\ntype ProjectV2ItemEvent struct {\n\tAction        *string              `json:\"action,omitempty\"`\n\tChanges       *ProjectV2ItemChange `json:\"changes,omitempty\"`\n\tProjectV2Item *ProjectV2Item       `json:\"projects_v2_item,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n}\n```\nProjectV2ItemEvent is triggered when there is activity relating to an item on an organization-level project. The Webhook event name is \"projects\\_v2\\_item\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects\\_v2\\_item](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_item)\n\n```go\nfunc (p *ProjectV2ItemEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2ItemEvent) GetChanges() *ProjectV2ItemChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *ProjectV2ItemEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *ProjectV2ItemEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (p *ProjectV2ItemEvent) GetProjectV2Item() *ProjectV2Item\n```\nGetProjectV2Item returns the ProjectV2Item field.\n\n```go\nfunc (p *ProjectV2ItemEvent) GetSender() *User\n```\nGetSender returns the Sender 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/rest/projects](https://docs.github.com/en/rest/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/rest/projects/collaborators#add-project-collaborator](https://docs.github.com/en/rest/projects/collaborators#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/rest/projects/cards#create-a-project-card](https://docs.github.com/en/rest/projects/cards#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/rest/projects/columns#create-a-project-column](https://docs.github.com/en/rest/projects/columns#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/rest/projects/projects#delete-a-project](https://docs.github.com/en/rest/projects/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/rest/projects/cards#delete-a-project-card](https://docs.github.com/en/rest/projects/cards#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/rest/projects/columns#delete-a-project-column](https://docs.github.com/en/rest/projects/columns#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/rest/projects/projects#get-a-project](https://docs.github.com/en/rest/projects/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/rest/projects/cards#get-a-project-card](https://docs.github.com/en/rest/projects/cards#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/rest/projects/columns#get-a-project-column](https://docs.github.com/en/rest/projects/columns#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/rest/projects/cards#list-project-cards](https://docs.github.com/en/rest/projects/cards#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/rest/projects/collaborators#list-project-collaborators](https://docs.github.com/en/rest/projects/collaborators#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/rest/projects/columns#list-project-columns](https://docs.github.com/en/rest/projects/columns#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/rest/projects/cards#move-a-project-card](https://docs.github.com/en/rest/projects/cards#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/rest/projects/columns#move-a-project-column](https://docs.github.com/en/rest/projects/columns#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/rest/projects/collaborators#remove-user-as-a-collaborator](https://docs.github.com/en/rest/projects/collaborators#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/rest/projects/collaborators#get-project-permission-for-a-user](https://docs.github.com/en/rest/projects/collaborators#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/rest/projects/projects#update-a-project](https://docs.github.com/en/rest/projects/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/rest/projects/cards#update-an-existing-project-card](https://docs.github.com/en/rest/projects/cards#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/rest/projects/columns#update-an-existing-project-column](https://docs.github.com/en/rest/projects/columns#update-an-existing-project-column)\n\n```go\ntype ProjectsV2 struct {\n\tID               *int64     `json:\"id,omitempty\"`\n\tNodeID           *string    `json:\"node_id,omitempty\"`\n\tOwner            *User      `json:\"owner,omitempty\"`\n\tCreator          *User      `json:\"creator,omitempty\"`\n\tTitle            *string    `json:\"title,omitempty\"`\n\tDescription      *string    `json:\"description,omitempty\"`\n\tPublic           *bool      `json:\"public,omitempty\"`\n\tClosedAt         *Timestamp `json:\"closed_at,omitempty\"`\n\tCreatedAt        *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt        *Timestamp `json:\"updated_at,omitempty\"`\n\tDeletedAt        *Timestamp `json:\"deleted_at,omitempty\"`\n\tNumber           *int       `json:\"number,omitempty\"`\n\tShortDescription *string    `json:\"short_description,omitempty\"`\n\tDeletedBy        *User      `json:\"deleted_by,omitempty\"`\n}\n```\nProjectsV2 represents a projects v2 project.\n\n```go\nfunc (p *ProjectsV2) GetClosedAt() Timestamp\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *ProjectsV2) GetDeletedAt() Timestamp\n```\nGetDeletedAt returns the DeletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetDeletedBy() *User\n```\nGetDeletedBy returns the DeletedBy field.\n\n```go\nfunc (p *ProjectsV2) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (p *ProjectsV2) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetShortDescription() string\n```\nGetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectsV2) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\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\tRequiredConversationResolution *RequiredConversationResolution `json:\"required_conversation_resolution\"`\n\tBlockCreations                 *BlockCreations                 `json:\"block_creations,omitempty\"`\n\tLockBranch                     *LockBranch                     `json:\"lock_branch,omitempty\"`\n\tAllowForkSyncing               *AllowForkSyncing               `json:\"allow_fork_syncing,omitempty\"`\n\tRequiredSignatures             *SignaturesProtectedBranch      `json:\"required_signatures,omitempty\"`\n\tURL                            *string                         `json:\"url,omitempty\"`\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) GetAllowForkSyncing() *AllowForkSyncing\n```\nGetAllowForkSyncing returns the AllowForkSyncing field.\n\n```go\nfunc (p *Protection) GetBlockCreations() *BlockCreations\n```\nGetBlockCreations returns the BlockCreations field.\n\n```go\nfunc (p *Protection) GetEnforceAdmins() *AdminEnforcement\n```\nGetEnforceAdmins returns the EnforceAdmins field.\n\n```go\nfunc (p *Protection) GetLockBranch() *LockBranch\n```\nGetLockBranch returns the LockBranch field.\n\n```go\nfunc (p *Protection) GetRequireLinearHistory() *RequireLinearHistory\n```\nGetRequireLinearHistory returns the RequireLinearHistory field.\n\n```go\nfunc (p *Protection) GetRequiredConversationResolution() *RequiredConversationResolution\n```\nGetRequiredConversationResolution returns the RequiredConversationResolution field.\n\n```go\nfunc (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement\n```\nGetRequiredPullRequestReviews returns the RequiredPullRequestReviews field.\n\n```go\nfunc (p *Protection) GetRequiredSignatures() *SignaturesProtectedBranch\n```\nGetRequiredSignatures returns the RequiredSignatures 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\nfunc (p *Protection) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype ProtectionChanges struct {\n\tAdminEnforced                            *AdminEnforcedChanges                            `json:\"admin_enforced,omitempty\"`\n\tAllowDeletionsEnforcementLevel           *AllowDeletionsEnforcementLevelChanges           `json:\"allow_deletions_enforcement_level,omitempty\"`\n\tAuthorizedActorNames                     *AuthorizedActorNames                            `json:\"authorized_actor_names,omitempty\"`\n\tAuthorizedActorsOnly                     *AuthorizedActorsOnly                            `json:\"authorized_actors_only,omitempty\"`\n\tAuthorizedDismissalActorsOnly            *AuthorizedDismissalActorsOnlyChanges            `json:\"authorized_dismissal_actors_only,omitempty\"`\n\tCreateProtected                          *CreateProtectedChanges                          `json:\"create_protected,omitempty\"`\n\tDismissStaleReviewsOnPush                *DismissStaleReviewsOnPushChanges                `json:\"dismiss_stale_reviews_on_push,omitempty\"`\n\tLinearHistoryRequirementEnforcementLevel *LinearHistoryRequirementEnforcementLevelChanges `json:\"linear_history_requirement_enforcement_level,omitempty\"`\n\tPullRequestReviewsEnforcementLevel       *PullRequestReviewsEnforcementLevelChanges       `json:\"pull_request_reviews_enforcement_level,omitempty\"`\n\tRequireCodeOwnerReview                   *RequireCodeOwnerReviewChanges                   `json:\"require_code_owner_review,omitempty\"`\n\tRequiredConversationResolutionLevel      *RequiredConversationResolutionLevelChanges      `json:\"required_conversation_resolution_level,omitempty\"`\n\tRequiredDeploymentsEnforcementLevel      *RequiredDeploymentsEnforcementLevelChanges      `json:\"required_deployments_enforcement_level,omitempty\"`\n\tRequiredStatusChecks                     *RequiredStatusChecksChanges                     `json:\"required_status_checks,omitempty\"`\n\tRequiredStatusChecksEnforcementLevel     *RequiredStatusChecksEnforcementLevelChanges     `json:\"required_status_checks_enforcement_level,omitempty\"`\n\tSignatureRequirementEnforcementLevel     *SignatureRequirementEnforcementLevelChanges     `json:\"signature_requirement_enforcement_level,omitempty\"`\n}\n```\nProtectionChanges represents the changes to the rule if the BranchProtection was edited.\n\n```go\nfunc (p *ProtectionChanges) GetAdminEnforced() *AdminEnforcedChanges\n```\nGetAdminEnforced returns the AdminEnforced field.\n\n```go\nfunc (p *ProtectionChanges) GetAllowDeletionsEnforcementLevel() *AllowDeletionsEnforcementLevelChanges\n```\nGetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field.\n\n```go\nfunc (p *ProtectionChanges) GetAuthorizedActorNames() *AuthorizedActorNames\n```\nGetAuthorizedActorNames returns the AuthorizedActorNames field.\n\n```go\nfunc (p *ProtectionChanges) GetAuthorizedActorsOnly() *AuthorizedActorsOnly\n```\nGetAuthorizedActorsOnly returns the AuthorizedActorsOnly field.\n\n```go\nfunc (p *ProtectionChanges) GetAuthorizedDismissalActorsOnly() *AuthorizedDismissalActorsOnlyChanges\n```\nGetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field.\n\n```go\nfunc (p *ProtectionChanges) GetCreateProtected() *CreateProtectedChanges\n```\nGetCreateProtected returns the CreateProtected field.\n\n```go\nfunc (p *ProtectionChanges) GetDismissStaleReviewsOnPush() *DismissStaleReviewsOnPushChanges\n```\nGetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field.\n\n```go\nfunc (p *ProtectionChanges) GetLinearHistoryRequirementEnforcementLevel() *LinearHistoryRequirementEnforcementLevelChanges\n```\nGetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field.\n\n```go\nfunc (p *ProtectionChanges) GetPullRequestReviewsEnforcementLevel() *PullRequestReviewsEnforcementLevelChanges\n```\nGetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field.\n\n```go\nfunc (p *ProtectionChanges) GetRequireCodeOwnerReview() *RequireCodeOwnerReviewChanges\n```\nGetRequireCodeOwnerReview returns the RequireCodeOwnerReview field.\n\n```go\nfunc (p *ProtectionChanges) GetRequiredConversationResolutionLevel() *RequiredConversationResolutionLevelChanges\n```\nGetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field.\n\n```go\nfunc (p *ProtectionChanges) GetRequiredDeploymentsEnforcementLevel() *RequiredDeploymentsEnforcementLevelChanges\n```\nGetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field.\n\n```go\nfunc (p *ProtectionChanges) GetRequiredStatusChecks() *RequiredStatusChecksChanges\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks field.\n\n```go\nfunc (p *ProtectionChanges) GetRequiredStatusChecksEnforcementLevel() *RequiredStatusChecksEnforcementLevelChanges\n```\nGetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field.\n\n```go\nfunc (p *ProtectionChanges) GetSignatureRequirementEnforcementLevel() *SignatureRequirementEnforcementLevelChanges\n```\nGetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel 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\t// RequiredConversationResolution, if set to true, requires all comments\n\t// on the pull request to be resolved before it can be merged to a protected branch.\n\tRequiredConversationResolution *bool `json:\"required_conversation_resolution,omitempty\"`\n\t// BlockCreations, if set to true, will cause the restrictions setting to also block pushes\n\t// which create new branches, unless initiated by a user, team, app with the ability to push.\n\tBlockCreations *bool `json:\"block_creations,omitempty\"`\n\t// LockBranch, if set to true, will prevent users from pushing to the branch.\n\tLockBranch *bool `json:\"lock_branch,omitempty\"`\n\t// AllowForkSyncing, if set to true, will allow users to pull changes from upstream\n\t// when the branch is locked.\n\tAllowForkSyncing *bool `json:\"allow_fork_syncing,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) GetAllowForkSyncing() bool\n```\nGetAllowForkSyncing returns the AllowForkSyncing field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRequest) GetBlockCreations() bool\n```\nGetBlockCreations returns the BlockCreations field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRequest) GetLockBranch() bool\n```\nGetLockBranch returns the LockBranch 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) GetRequiredConversationResolution() bool\n```\nGetRequiredConversationResolution returns the RequiredConversationResolution 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 ProtectionRule struct {\n\tID        *int64              `json:\"id,omitempty\"`\n\tNodeID    *string             `json:\"node_id,omitempty\"`\n\tType      *string             `json:\"type,omitempty\"`\n\tWaitTimer *int                `json:\"wait_timer,omitempty\"`\n\tReviewers []*RequiredReviewer `json:\"reviewers,omitempty\"`\n}\n```\nProtectionRule represents a single protection rule applied to the environment.\n\n```go\nfunc (p *ProtectionRule) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRule) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRule) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRule) GetWaitTimer() int\n```\nGetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#public](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#public)\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\nfunc (p *PublicKey) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface. This ensures GitHub Enterprise versions which return a numeric key id do not error out when unmarshaling.\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           *Timestamp            `json:\"created_at,omitempty\"`\n\tUpdatedAt           *Timestamp            `json:\"updated_at,omitempty\"`\n\tClosedAt            *Timestamp            `json:\"closed_at,omitempty\"`\n\tMergedAt            *Timestamp            `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\tAutoMerge           *PullRequestAutoMerge `json:\"auto_merge,omitempty\"`\n\n\t// RequestedTeams is populated as part of the PullRequestEvent.\n\t// See, https://docs.github.com/en/developers/webhooks-and-events/github-event-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) GetAutoMerge() *PullRequestAutoMerge\n```\nGetAutoMerge returns the AutoMerge field.\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() Timestamp\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() Timestamp\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() Timestamp\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() Timestamp\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 PullRequestAutoMerge struct {\n\tEnabledBy     *User   `json:\"enabled_by,omitempty\"`\n\tMergeMethod   *string `json:\"merge_method,omitempty\"`\n\tCommitTitle   *string `json:\"commit_title,omitempty\"`\n\tCommitMessage *string `json:\"commit_message,omitempty\"`\n}\n```\nPullRequestAutoMerge represents the \"auto\\_merge\" response for a PullRequest.\n\n```go\nfunc (p *PullRequestAutoMerge) GetCommitMessage() string\n```\nGetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestAutoMerge) GetCommitTitle() string\n```\nGetCommitTitle returns the CommitTitle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestAutoMerge) GetEnabledBy() *User\n```\nGetEnabledBy returns the EnabledBy field.\n\n```go\nfunc (p *PullRequestAutoMerge) GetMergeMethod() string\n```\nGetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise.\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           *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt           *Timestamp `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\t// Can be one of: LINE, FILE from https://docs.github.com/en/rest/pulls/comments?apiVersion=2022-11-28#create-a-review-comment-for-a-pull-request\n\tSubjectType *string `json:\"subject_type,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() Timestamp\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) GetSubjectType() string\n```\nGetSubjectType returns the SubjectType 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() Timestamp\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/developers/webhooks-and-events/github-event-types#pullrequestevent](https://docs.github.com/en/developers/webhooks-and-events/github-event-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\t// If false, an empty string commit message will use the default commit message. If true, an empty string commit message will be used.\n\tDontDefaultIfBlank bool\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    *Timestamp `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() Timestamp\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/developers/webhooks-and-events/webhook-events-and-payloads#pull\\_request\\_review\\_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_comment)\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/developers/webhooks-and-events/webhook-events-and-payloads#pull\\_request\\_review](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review)\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 PullRequestReviewThreadEvent struct {\n\t// Action is the action that was performed on the comment.\n\t// Possible values are: \"resolved\", \"unresolved\".\n\tAction      *string            `json:\"action,omitempty\"`\n\tThread      *PullRequestThread `json:\"thread,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```\nPullRequestReviewThreadEvent is triggered when a comment made as part of a review of a pull request is marked resolved or unresolved. The Webhook event name is \"pull\\_request\\_review\\_thread\".\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull\\_request\\_review\\_thread](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_thread)\n\n```go\nfunc (p *PullRequestReviewThreadEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewThreadEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PullRequestReviewThreadEvent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestReviewThreadEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestReviewThreadEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (p *PullRequestReviewThreadEvent) GetThread() *PullRequestThread\n```\nGetThread returns the Thread field.\n\n```go\ntype PullRequestReviewsEnforcement struct {\n\t// Allow specific users, teams, or apps to bypass pull request requirements.\n\tBypassPullRequestAllowances *BypassPullRequestAllowances `json:\"bypass_pull_request_allowances,omitempty\"`\n\t// Specifies which users, teams and apps 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\t// RequireLastPushApproval specifies whether the last pusher to a pull request branch can approve it.\n\tRequireLastPushApproval bool `json:\"require_last_push_approval\"`\n}\n```\nPullRequestReviewsEnforcement represents the pull request reviews enforcement of a protected branch.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetBypassPullRequestAllowances() *BypassPullRequestAllowances\n```\nGetBypassPullRequestAllowances returns the BypassPullRequestAllowances field.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions\n```\nGetDismissalRestrictions returns the DismissalRestrictions field.\n\n```go\ntype PullRequestReviewsEnforcementLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nPullRequestReviewsEnforcementLevelChanges represents the changes made to the PullRequestReviewsEnforcementLevel policy.\n\n```go\nfunc (p *PullRequestReviewsEnforcementLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestReviewsEnforcementRequest struct {\n\t// Allow specific users, teams, or apps to bypass pull request requirements.\n\tBypassPullRequestAllowancesRequest *BypassPullRequestAllowancesRequest `json:\"bypass_pull_request_allowances,omitempty\"`\n\t// Specifies which users, teams and apps should be allowed to dismiss pull request reviews.\n\t// User, team and app 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\t// RequireLastPushApproval specifies whether the last pusher to a pull request branch can approve it.\n\tRequireLastPushApproval *bool `json:\"require_last_push_approval,omitempty\"`\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) GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest\n```\nGetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field.\n\n```go\nfunc (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest\n```\nGetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field.\n\n```go\nfunc (p *PullRequestReviewsEnforcementRequest) GetRequireLastPushApproval() bool\n```\nGetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestReviewsEnforcementUpdate struct {\n\t// Allow specific users, teams, or apps to bypass pull request requirements.\n\tBypassPullRequestAllowancesRequest *BypassPullRequestAllowancesRequest `json:\"bypass_pull_request_allowances,omitempty\"`\n\t// Specifies which users, teams and apps 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 merging pull requests is blocked until code owners have reviewed.\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 or 0 to not require reviewers.\n\tRequiredApprovingReviewCount int `json:\"required_approving_review_count\"`\n\t// RequireLastPushApproval specifies whether the last pusher to a pull request branch can approve it.\n\tRequireLastPushApproval *bool `json:\"require_last_push_approval,omitempty\"`\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) GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest\n```\nGetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field.\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\nfunc (p *PullRequestReviewsEnforcementUpdate) GetRequireCodeOwnerReviews() bool\n```\nGetRequireCodeOwnerReviews returns the RequireCodeOwnerReviews field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestReviewsEnforcementUpdate) GetRequireLastPushApproval() bool\n```\nGetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestRuleParameters struct {\n\tDismissStaleReviewsOnPush      bool `json:\"dismiss_stale_reviews_on_push\"`\n\tRequireCodeOwnerReview         bool `json:\"require_code_owner_review\"`\n\tRequireLastPushApproval        bool `json:\"require_last_push_approval\"`\n\tRequiredApprovingReviewCount   int  `json:\"required_approving_review_count\"`\n\tRequiredReviewThreadResolution bool `json:\"required_review_thread_resolution\"`\n}\n```\nPullRequestRuleParameters represents the pull\\_request rule parameters.\n\n```go\ntype PullRequestTargetEvent struct {\n\t// Action is the action that was performed. Possible values are:\n\t// \"assigned\", \"unassigned\", \"labeled\", \"unlabeled\", \"opened\", \"edited\", \"closed\", \"reopened\",\n\t// \"ready_for_review\", \"locked\", \"unlocked\", \"review_requested\" or \"review_request_removed\".\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```\nPullRequestTargetEvent 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\\_target\".\n\nGitHub API docs: [https://docs.github.com/en/actions/events-that-trigger-workflows#pull\\_request\\_target](https://docs.github.com/en/actions/events-that-trigger-workflows#pull_request_target)\n\n```go\nfunc (p *PullRequestTargetEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestTargetEvent) GetAfter() string\n```\nGetAfter returns the After field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestTargetEvent) GetAssignee() *User\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetBefore() string\n```\nGetBefore returns the Before field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestTargetEvent) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetLabel() *Label\n```\nGetLabel returns the Label field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestTargetEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetRequestedReviewer() *User\n```\nGetRequestedReviewer returns the RequestedReviewer field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetRequestedTeam() *Team\n```\nGetRequestedTeam returns the RequestedTeam field.\n\n```go\nfunc (p *PullRequestTargetEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype PullRequestThread struct {\n\tID       *int64                `json:\"id,omitempty\"`\n\tNodeID   *string               `json:\"node_id,omitempty\"`\n\tComments []*PullRequestComment `json:\"comments,omitempty\"`\n}\n```\nPullRequestThread represents a thread of comments on a pull request.\n\n```go\nfunc (p *PullRequestThread) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestThread) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p PullRequestThread) String() string\n```\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/rest/pulls/](https://docs.github.com/en/rest/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/rest/pulls/pulls#create-a-pull-request](https://docs.github.com/en/rest/pulls/pulls#create-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateComment(ctx context.Context, owner, 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/rest/pulls/comments#create-a-review-comment-for-a-pull-request](https://docs.github.com/en/rest/pulls/comments#create-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateCommentInReplyTo(ctx context.Context, owner, 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/rest/pulls/comments#create-a-review-comment-for-a-pull-request](https://docs.github.com/en/rest/pulls/comments#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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#create-a-review-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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, repo string, commentID int64) (*Response, error)\n```\nDeleteComment deletes a pull request comment.\n\nGitHub API docs: [https://docs.github.com/en/rest/pulls/comments#delete-a-review-comment-for-a-pull-request](https://docs.github.com/en/rest/pulls/comments#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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#delete-a-pending-review-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#dismiss-a-review-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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/rest/pulls/pulls#update-a-pull-request](https://docs.github.com/en/rest/pulls/pulls#update-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) EditComment(ctx context.Context, owner, 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/rest/pulls/comments#update-a-review-comment-for-a-pull-request](https://docs.github.com/en/rest/pulls/comments#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/rest/pulls/pulls#get-a-pull-request](https://docs.github.com/en/rest/pulls/pulls#get-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetComment(ctx context.Context, owner, repo string, commentID int64) (*PullRequestComment, *Response, error)\n```\nGetComment fetches the specified pull request comment.\n\nGitHub API docs: [https://docs.github.com/en/rest/pulls/comments#get-a-review-comment-for-a-pull-request](https://docs.github.com/en/rest/pulls/comments#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/rest/pulls/pulls#get-a-pull-request](https://docs.github.com/en/rest/pulls/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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#get-a-review-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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/rest/pulls/pulls#check-if-a-pull-request-has-been-merged](https://docs.github.com/en/rest/pulls/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/rest/pulls/pulls#list-pull-requests](https://docs.github.com/en/rest/pulls/pulls#list-pull-requests)\n\n```go\nfunc (s *PullRequestsService) ListComments(ctx context.Context, owner, 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/rest/pulls/comments#list-review-comments-on-a-pull-request](https://docs.github.com/en/rest/pulls/comments#list-review-comments-on-a-pull-request) GitHub API docs: [https://docs.github.com/en/rest/pulls/comments#list-review-comments-in-a-repository](https://docs.github.com/en/rest/pulls/comments#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/rest/pulls/pulls#list-commits-on-a-pull-request](https://docs.github.com/en/rest/pulls/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/rest/pulls/pulls#list-pull-requests-files](https://docs.github.com/en/rest/pulls/pulls#list-pull-requests-files)\n\n```go\nfunc (s *PullRequestsService) ListPullRequestsWithCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*PullRequest, *Response, error)\n```\nListPullRequestsWithCommit returns pull requests associated with a commit SHA.\n\nThe results may include open and closed pull requests. By default, the PullRequestListOptions State filters for \"open\".\n\nGitHub API docs: [https://docs.github.com/en/rest/commits/commits#list-pull-requests-associated-with-a-commit](https://docs.github.com/en/rest/commits/commits#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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#list-comments-for-a-pull-request-review](https://docs.github.com/en/rest/pulls/reviews#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/rest/pulls/review-requests#list-requested-reviewers-for-a-pull-request](https://docs.github.com/en/rest/pulls/review-requests#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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#list-reviews-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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/rest/pulls/pulls#merge-a-pull-request](https://docs.github.com/en/rest/pulls/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/rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request](https://docs.github.com/en/rest/pulls/review-requests#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/rest/pulls/review-requests#request-reviewers-for-a-pull-request](https://docs.github.com/en/rest/pulls/review-requests#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\nGitHub API docs: [https://docs.github.com/en/rest/pulls/reviews#submit-a-review-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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/rest/pulls/pulls#update-a-pull-request-branch](https://docs.github.com/en/rest/pulls/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/rest/pulls/reviews#update-a-review-for-a-pull-request](https://docs.github.com/en/rest/pulls/reviews#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\tAction       *string              `json:\"action,omitempty\"`\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\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```\nPushEvent represents a git push to a GitHub repository.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#push](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#push)\n\n```go\nfunc (p *PushEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\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) GetCommits() []*HeadCommit\n```\nGetCommits returns the Commits slice if it's non-nil, nil 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) GetOrganization() *Organization\n```\nGetOrganization returns the Organization 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\tTopics          []string   `json:\"topics,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\nfunc (r *RateLimitError) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\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/rest/overview/resources-in-the-rest-api#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/rest/search#rate-limit\n\tSearch *Rate `json:\"search\"`\n\n\t// GitHub API docs: https://docs.github.com/en/graphql/overview/resource-limitations#rate-limit\n\tGraphQL *Rate `json:\"graphql\"`\n\n\t// GitHub API dos: https://docs.github.com/en/rest/rate-limit\n\tIntegrationManifest *Rate `json:\"integration_manifest\"`\n\n\tSourceImport              *Rate `json:\"source_import\"`\n\tCodeScanningUpload        *Rate `json:\"code_scanning_upload\"`\n\tActionsRunnerRegistration *Rate `json:\"actions_runner_registration\"`\n\tSCIM                      *Rate `json:\"scim\"`\n}\n```\nRateLimits represents the rate limits for the current client.\n\n```go\nfunc (r *RateLimits) GetActionsRunnerRegistration() *Rate\n```\nGetActionsRunnerRegistration returns the ActionsRunnerRegistration field.\n\n```go\nfunc (r *RateLimits) GetCodeScanningUpload() *Rate\n```\nGetCodeScanningUpload returns the CodeScanningUpload field.\n\n```go\nfunc (r *RateLimits) GetCore() *Rate\n```\nGetCore returns the Core field.\n\n```go\nfunc (r *RateLimits) GetGraphQL() *Rate\n```\nGetGraphQL returns the GraphQL field.\n\n```go\nfunc (r *RateLimits) GetIntegrationManifest() *Rate\n```\nGetIntegrationManifest returns the IntegrationManifest field.\n\n```go\nfunc (r *RateLimits) GetSCIM() *Rate\n```\nGetSCIM returns the SCIM field.\n\n```go\nfunc (r *RateLimits) GetSearch() *Rate\n```\nGetSearch returns the Search field.\n\n```go\nfunc (r *RateLimits) GetSourceImport() *Rate\n```\nGetSourceImport returns the SourceImport 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/rest/reactions](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-a-commit-comment](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-an-issue-comment](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-an-issue](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-a-pull-request-review-comment](https://docs.github.com/en/rest/reactions#create-reaction-for-a-pull-request-review-comment)\n\n```go\nfunc (s *ReactionsService) CreateReleaseReaction(ctx context.Context, owner, repo string, releaseID int64, content string) (*Reaction, *Response, error)\n```\nCreate a reaction to a release. Note that a response with a Status: 200 OK means that you already added the reaction type to this release. 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/rest/reactions#create-reaction-for-a-release](https://docs.github.com/en/rest/reactions#create-reaction-for-a-release)\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/rest/reactions#create-reaction-for-a-team-discussion-comment-legacy](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-a-team-discussion-legacy](https://docs.github.com/en/rest/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/rest/reactions#delete-a-commit-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-a-commit-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-an-issue-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-an-issue-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-an-issue-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-an-issue-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-a-pull-request-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-a-pull-request-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#delete-team-discussion-comment-reaction](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-a-team-discussion-comment](https://docs.github.com/en/rest/reactions#create-reaction-for-a-team-discussion-comment)\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/rest/reactions#delete-team-discussion-reaction](https://docs.github.com/en/rest/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/rest/reactions#create-reaction-for-a-team-discussion](https://docs.github.com/en/rest/reactions#create-reaction-for-a-team-discussion)\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/rest/reactions#list-reactions-for-a-commit-comment](https://docs.github.com/en/rest/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/rest/reactions#list-reactions-for-an-issue-comment](https://docs.github.com/en/rest/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/rest/reactions#list-reactions-for-an-issue](https://docs.github.com/en/rest/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/rest/reactions#list-reactions-for-a-pull-request-review-comment](https://docs.github.com/en/rest/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/rest/reactions#list-reactions-for-a-team-discussion-comment-legacy](https://docs.github.com/en/rest/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/rest/reactions#list-reactions-for-a-team-discussion-legacy](https://docs.github.com/en/rest/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/developers/webhooks-and-events/webhook-events-and-payloads#release](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#release)\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 RepoDependencies struct {\n\tSPDXID *string `json:\"SPDXID,omitempty\"`\n\t// Package name\n\tName             *string `json:\"name,omitempty\"`\n\tVersionInfo      *string `json:\"versionInfo,omitempty\"`\n\tDownloadLocation *string `json:\"downloadLocation,omitempty\"`\n\tFilesAnalyzed    *bool   `json:\"filesAnalyzed,omitempty\"`\n\tLicenseConcluded *string `json:\"licenseConcluded,omitempty\"`\n\tLicenseDeclared  *string `json:\"licenseDeclared,omitempty\"`\n}\n```\nRepoDependencies represents the dependencies of a repo.\n\n```go\nfunc (r *RepoDependencies) GetDownloadLocation() string\n```\nGetDownloadLocation returns the DownloadLocation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoDependencies) GetFilesAnalyzed() bool\n```\nGetFilesAnalyzed returns the FilesAnalyzed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoDependencies) GetLicenseConcluded() string\n```\nGetLicenseConcluded returns the LicenseConcluded field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoDependencies) GetLicenseDeclared() string\n```\nGetLicenseDeclared returns the LicenseDeclared field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoDependencies) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoDependencies) GetSPDXID() string\n```\nGetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoDependencies) GetVersionInfo() string\n```\nGetVersionInfo returns the VersionInfo field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoMergeUpstreamRequest struct {\n\tBranch *string `json:\"branch,omitempty\"`\n}\n```\nRepoMergeUpstreamRequest represents a request to sync a branch of a forked repository to keep it up-to-date with the upstream repository.\n\n```go\nfunc (r *RepoMergeUpstreamRequest) GetBranch() string\n```\nGetBranch returns the Branch field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoMergeUpstreamResult struct {\n\tMessage    *string `json:\"message,omitempty\"`\n\tMergeType  *string `json:\"merge_type,omitempty\"`\n\tBaseBranch *string `json:\"base_branch,omitempty\"`\n}\n```\nRepoMergeUpstreamResult represents the result of syncing a branch of a forked repository with the upstream repository.\n\n```go\nfunc (r *RepoMergeUpstreamResult) GetBaseBranch() string\n```\nGetBaseBranch returns the BaseBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoMergeUpstreamResult) GetMergeType() string\n```\nGetMergeType returns the MergeType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoMergeUpstreamResult) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoName struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nRepoName represents a change of repository name.\n\n```go\nfunc (r *RepoName) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoRequiredWorkflow 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\tURL              *string     `json:\"url,omitempty\"`\n\tHTMLURL          *string     `json:\"html_url,omitempty\"`\n\tBadgeURL         *string     `json:\"badge_url,omitempty\"`\n\tCreatedAt        *Timestamp  `json:\"created_at,omitempty\"`\n\tUpdatedAt        *Timestamp  `json:\"updated_at,omitempty\"`\n\tSourceRepository *Repository `json:\"source_repository,omitempty\"`\n}\n```\nRepoRequiredWorkflow represents a required workflow object at the repo level.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetBadgeURL() string\n```\nGetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetSourceRepository() *Repository\n```\nGetSourceRepository returns the SourceRepository field.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoRequiredWorkflow) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoRequiredWorkflows struct {\n\tTotalCount        *int                    `json:\"total_count,omitempty\"`\n\tRequiredWorkflows []*RepoRequiredWorkflow `json:\"required_workflows,omitempty\"`\n}\n```\nRepoRequiredWorkflows represents the required workflows for a repo.\n\n```go\nfunc (r *RepoRequiredWorkflows) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount 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\t// AvatarURL is the URL of the avatar of this status.\n\tAvatarURL *string `json:\"avatar_url,omitempty\"`\n\n\tCreator   *User      `json:\"creator,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nRepoStatus represents the status of a repository at a particular reference.\n\n```go\nfunc (r *RepoStatus) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\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() Timestamp\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() Timestamp\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/rest/repos/](https://docs.github.com/en/rest/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/rest/branches/branch-protection#set-admin-branch-protection](https://docs.github.com/en/rest/branches/branch-protection#set-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) AddAppRestrictions(ctx context.Context, owner, repo, branch string, apps []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/rest/branches/branch-protection#add-app-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#add-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) AddAutolink(ctx context.Context, owner, repo string, opts *AutolinkOptions) (*Autolink, *Response, error)\n```\nAddAutolink creates an autolink reference for a repository. Users with admin access to the repository can create an autolink.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/autolinks#create-an-autolink-reference-for-a-repository](https://docs.github.com/en/rest/repos/autolinks#create-an-autolink-reference-for-a-repository)\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/rest/collaborators/collaborators#add-a-repository-collaborator](https://docs.github.com/en/rest/collaborators/collaborators#add-a-repository-collaborator)\n\n```go\nfunc (s *RepositoriesService) AddTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error)\n```\nAddTeamRestrictions grants the specified teams push access to a given protected branch. It requires the GitHub teams 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/rest/branches/branch-protection#add-team-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#add-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) AddUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error)\n```\nAddUserRestrictions grants the specified users push access to a given protected branch. It requires the GitHub users 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/rest/branches/branch-protection#add-team-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#add-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) CompareCommits(ctx context.Context, owner, repo string, base, head string, opts *ListOptions) (*CommitsComparison, *Response, error)\n```\nCompareCommits compares a range of commits with each other.\n\nGitHub API docs: [https://docs.github.com/en/rest/commits/commits#compare-two-commits](https://docs.github.com/en/rest/commits/commits#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/rest/commits/commits#compare-two-commits](https://docs.github.com/en/rest/commits/commits#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/rest/repos/repos#create-a-repository-for-the-authenticated-user](https://docs.github.com/en/rest/repos/repos#create-a-repository-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/repos/repos#create-an-organization-repository](https://docs.github.com/en/rest/repos/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/rest/commits/comments#create-a-commit-comment](https://docs.github.com/en/rest/commits/comments#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/rest/deployments/deployments#create-a-deployment](https://docs.github.com/en/rest/deployments/deployments#create-a-deployment)\n\n```go\nfunc (s *RepositoriesService) CreateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error)\n```\nCreateDeploymentBranchPolicy creates a deployment branch policy for an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/branch-policies#create-a-deployment-branch-policy](https://docs.github.com/en/rest/deployments/branch-policies#create-a-deployment-branch-policy)\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/rest/deployments/statuses#create-a-deployment-status](https://docs.github.com/en/rest/deployments/statuses#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/rest/repos/contents#create-or-update-file-contents](https://docs.github.com/en/rest/repos/contents#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/rest/repos/forks#create-a-fork](https://docs.github.com/en/rest/repos/forks#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/rest/repos/repos#create-a-repository-using-a-template](https://docs.github.com/en/rest/repos/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/rest/webhooks/repos#create-a-repository-webhook](https://docs.github.com/en/rest/webhooks/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/rest/deploy-keys#create-a-deploy-key](https://docs.github.com/en/rest/deploy-keys#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/rest/projects/projects#create-a-repository-project](https://docs.github.com/en/rest/projects/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/rest/releases/releases#create-a-release](https://docs.github.com/en/rest/releases/releases#create-a-release)\n\n```go\nfunc (s *RepositoriesService) CreateRuleset(ctx context.Context, owner, repo string, rs *Ruleset) (*Ruleset, *Response, error)\n```\nCreateRuleset creates a ruleset for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/rules#create-a-repository-ruleset](https://docs.github.com/en/rest/repos/rules#create-a-repository-ruleset)\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/rest/commits/statuses#create-a-commit-status](https://docs.github.com/en/rest/commits/statuses#create-a-commit-status)\n\n```go\nfunc (s *RepositoriesService) CreateTagProtection(ctx context.Context, owner, repo, pattern string) (*TagProtection, *Response, error)\n```\nCreateTagProtection creates the tag protection of the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/tags#create-a-tag-protection-state-for-a-repository](https://docs.github.com/en/rest/repos/tags#create-a-tag-protection-state-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) CreateUpdateEnvironment(ctx context.Context, owner, repo, name string, environment *CreateUpdateEnvironment) (*Environment, *Response, error)\n```\nCreateUpdateEnvironment create or update a new environment for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/environments#create-or-update-an-environment](https://docs.github.com/en/rest/deployments/environments#create-or-update-an-environment)\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/rest/repos/repos#delete-a-repository](https://docs.github.com/en/rest/repos/repos#delete-a-repository)\n\n```go\nfunc (s *RepositoriesService) DeleteAutolink(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeleteAutolink deletes a single autolink reference by ID that was configured for the given repository. Information about autolinks are only available to repository administrators.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/autolinks#delete-an-autolink-reference-from-a-repository](https://docs.github.com/en/rest/repos/autolinks#delete-an-autolink-reference-from-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/rest/commits/comments#delete-a-commit-comment](https://docs.github.com/en/rest/commits/comments#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/rest/deployments/deployments#delete-a-deployment](https://docs.github.com/en/rest/deployments/deployments#delete-a-deployment)\n\n```go\nfunc (s *RepositoriesService) DeleteDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64) (*Response, error)\n```\nDeleteDeploymentBranchPolicy deletes a deployment branch policy for an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/branch-policies#delete-a-deployment-branch-policy](https://docs.github.com/en/rest/deployments/branch-policies#delete-a-deployment-branch-policy)\n\n```go\nfunc (s *RepositoriesService) DeleteEnvironment(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteEnvironment delete an environment from a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/environments#delete-an-environment](https://docs.github.com/en/rest/deployments/environments#delete-an-environment)\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/rest/repos/contents#delete-a-file](https://docs.github.com/en/rest/repos/contents#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/rest/webhooks/repos#delete-a-repository-webhook](https://docs.github.com/en/rest/webhooks/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/rest/collaborators/invitations#delete-a-repository-invitation](https://docs.github.com/en/rest/collaborators/invitations#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/rest/deploy-keys#delete-a-deploy-key](https://docs.github.com/en/rest/deploy-keys#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/rest/releases/releases#delete-a-release](https://docs.github.com/en/rest/releases/releases#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/rest/releases/assets#delete-a-release-asset](https://docs.github.com/en/rest/releases/assets#delete-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) DeleteRuleset(ctx context.Context, owner, repo string, rulesetID int64) (*Response, error)\n```\nDeleteRuleset deletes a ruleset for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/rules#delete-a-repository-ruleset](https://docs.github.com/en/rest/repos/rules#delete-a-repository-ruleset)\n\n```go\nfunc (s *RepositoriesService) DeleteTagProtection(ctx context.Context, owner, repo string, tagProtectionID int64) (*Response, error)\n```\nDeleteTagProtection deletes a tag protection from the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/tags#delete-a-tag-protection-state-for-a-repository](https://docs.github.com/en/rest/repos/tags#delete-a-tag-protection-state-for-a-repository)\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/rest/repos/repos#disable-automated-security-fixes](https://docs.github.com/en/rest/repos/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/rest/branches/branch-protection#update-pull-request-review-protection](https://docs.github.com/en/rest/branches/branch-protection#update-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) DisableLFS(ctx context.Context, owner, repo string) (*Response, error)\n```\nDisableLFS turns the LFS (Large File Storage) feature OFF for the selected repo.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/lfs#disable-git-lfs-for-a-repository](https://docs.github.com/en/rest/repos/lfs#disable-git-lfs-for-a-repository)\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/rest/pages#delete-a-github-pages-site](https://docs.github.com/en/rest/pages#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/rest/repos/repos#disable-vulnerability-alerts](https://docs.github.com/en/rest/repos/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/rest/repos/repos#create-a-repository-dispatch-event](https://docs.github.com/en/rest/repos/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) DownloadContentsWithMeta(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *RepositoryContent, *Response, error)\n```\nDownloadContentsWithMeta is identical to DownloadContents but additionally returns the RepositoryContent of the requested file. This additional data is useful for future operations involving the requested file. For merely reading the content of a file, DownloadContents is perfectly adequate.\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/rest/releases/assets#get-a-release-asset](https://docs.github.com/en/rest/releases/assets#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/rest/repos/repos#update-a-repository](https://docs.github.com/en/rest/repos/repos#update-a-repository)\n\n```go\nfunc (s *RepositoriesService) EditActionsAccessLevel(ctx context.Context, owner, repo string, repositoryActionsAccessLevel RepositoryActionsAccessLevel) (*Response, error)\n```\nEditActionsAccessLevel sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository](https://docs.github.com/en/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository)\n\n```go\nfunc (s *RepositoriesService) EditActionsAllowed(ctx context.Context, org, repo string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error)\n```\nEditActionsAllowed sets the allowed actions and reusable workflows for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository](https://docs.github.com/en/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) EditActionsPermissions(ctx context.Context, owner, repo string, actionsPermissionsRepository ActionsPermissionsRepository) (*ActionsPermissionsRepository, *Response, error)\n```\nEditActionsPermissions sets the permissions policy for repositories and allowed actions in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-github-actions-permissions-for-a-repository](https://docs.github.com/en/rest/actions/permissions#set-github-actions-permissions-for-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/rest/webhooks/repos#update-a-repository-webhook](https://docs.github.com/en/rest/webhooks/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/rest/releases/releases#update-a-release](https://docs.github.com/en/rest/releases/releases#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/rest/releases/assets#update-a-release-asset](https://docs.github.com/en/rest/releases/assets#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/rest/repos/repos#enable-automated-security-fixes](https://docs.github.com/en/rest/repos/repos#enable-automated-security-fixes)\n\n```go\nfunc (s *RepositoriesService) EnableLFS(ctx context.Context, owner, repo string) (*Response, error)\n```\nEnableLFS turns the LFS (Large File Storage) feature ON for the selected repo.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/lfs#enable-git-lfs-for-a-repository](https://docs.github.com/en/rest/repos/lfs#enable-git-lfs-for-a-repository)\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/rest/pages#create-a-github-pages-site](https://docs.github.com/en/rest/pages#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/rest/repos/repos#enable-vulnerability-alerts](https://docs.github.com/en/rest/repos/repos#enable-vulnerability-alerts)\n\n```go\nfunc (s *RepositoriesService) GenerateReleaseNotes(ctx context.Context, owner, repo string, opts *GenerateNotesOptions) (*RepositoryReleaseNotes, *Response, error)\n```\nGenerateReleaseNotes generates the release notes for the given tag.\n\nGitHub API docs: [https://docs.github.com/en/rest/releases/releases#generate-release-notes-content-for-a-release](https://docs.github.com/en/rest/releases/releases#generate-release-notes-content-for-a-release)\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/rest/repos/repos#get-a-repository](https://docs.github.com/en/rest/repos/repos#get-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetActionsAccessLevel(ctx context.Context, owner, repo string) (*RepositoryActionsAccessLevel, *Response, error)\n```\nGetActionsAccessLevel gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository](https://docs.github.com/en/rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository)\n\n```go\nfunc (s *RepositoriesService) GetActionsAllowed(ctx context.Context, org, repo string) (*ActionsAllowed, *Response, error)\n```\nGetActionsAllowed gets the allowed actions and reusable workflows for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository](https://docs.github.com/en/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetActionsPermissions(ctx context.Context, owner, repo string) (*ActionsPermissionsRepository, *Response, error)\n```\nGetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#get-github-actions-permissions-for-a-repository](https://docs.github.com/en/rest/actions/permissions#get-github-actions-permissions-for-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/rest/branches/branch-protection#get-admin-branch-protection](https://docs.github.com/en/rest/branches/branch-protection#get-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) GetAllRulesets(ctx context.Context, owner, repo string, includesParents bool) ([]*Ruleset, *Response, error)\n```\nGetAllRulesets gets all the rules that apply to the specified repository. If includesParents is true, rulesets configured at the organization level that apply to the repository will be returned.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/rules#get-all-repository-rulesets](https://docs.github.com/en/rest/repos/rules#get-all-repository-rulesets)\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/rest/repos/contents/#get-archive-link](https://docs.github.com/en/rest/repos/contents/#get-archive-link)\n\n```go\nfunc (s *RepositoriesService) GetAutolink(ctx context.Context, owner, repo string, id int64) (*Autolink, *Response, error)\n```\nGetAutolink returns a single autolink reference by ID that was configured for the given repository. Information about autolinks are only available to repository administrators.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/autolinks#get-an-autolink-reference-of-a-repository](https://docs.github.com/en/rest/repos/autolinks#get-an-autolink-reference-of-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*AutomatedSecurityFixes, *Response, error)\n```\nGetAutomatedSecurityFixes checks if the automated security fixes for a repository are enabled.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#check-if-automated-security-fixes-are-enabled-for-a-repository](https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#check-if-automated-security-fixes-are-enabled-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetBranch(ctx context.Context, owner, repo, branch string, followRedirects bool) (*Branch, *Response, error)\n```\nGetBranch gets the specified branch for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/branches/branches#get-a-branch](https://docs.github.com/en/rest/branches/branches#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/rest/branches/branch-protection#get-branch-protection](https://docs.github.com/en/rest/branches/branch-protection#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. Note that [https://docs.github.com/en/rest/codes-of-conduct#about-the-codes-of-conduct-api](https://docs.github.com/en/rest/codes-of-conduct#about-the-codes-of-conduct-api) says to use the GET /repos/{owner}/{repo} endpoint.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/repos#update-a-repository](https://docs.github.com/en/rest/repos/repos#update-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetCodeownersErrors(ctx context.Context, owner, repo string) (*CodeownersErrors, *Response, error)\n```\nGetCodeownersErrors lists any syntax errors that are detected in the CODEOWNERS file.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/repos#list-codeowners-errors](https://docs.github.com/en/rest/repos/repos#list-codeowners-errors)\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/rest/commits/statuses#get-the-combined-status-for-a-specific-reference](https://docs.github.com/en/rest/commits/statuses#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/rest/commits/comments#get-a-commit-comment](https://docs.github.com/en/rest/commits/comments#get-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) GetCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) (*RepositoryCommit, *Response, error)\n```\nGetCommit fetches the specified commit, including all details about it.\n\nGitHub API docs: [https://docs.github.com/en/rest/commits/commits#get-a-single-commit](https://docs.github.com/en/rest/commits/commits#get-a-single-commit) GitHub API docs: [https://docs.github.com/en/rest/commits/commits#get-a-commit](https://docs.github.com/en/rest/commits/commits#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/rest/commits/commits#get-a-commit](https://docs.github.com/en/rest/commits/commits#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/rest/commits/commits#get-a-commit](https://docs.github.com/en/rest/commits/commits#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/rest/metrics/community#get-community-profile-metrics](https://docs.github.com/en/rest/metrics/community#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\nDue to an auth vulnerability issue in the GitHub v3 API, \"..\" is not allowed to appear anywhere in the \"path\" or this method will return an error.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/contents#get-repository-content](https://docs.github.com/en/rest/repos/contents#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/rest/deployments/deployments#get-a-deployment](https://docs.github.com/en/rest/deployments/deployments#get-a-deployment)\n\n```go\nfunc (s *RepositoriesService) GetDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64) (*DeploymentBranchPolicy, *Response, error)\n```\nGetDeploymentBranchPolicy gets a deployment branch policy for an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/branch-policies#get-a-deployment-branch-policy](https://docs.github.com/en/rest/deployments/branch-policies#get-a-deployment-branch-policy)\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/rest/deployments/statuses#get-a-deployment-status](https://docs.github.com/en/rest/deployments/statuses#get-a-deployment-status)\n\n```go\nfunc (s *RepositoriesService) GetEnvironment(ctx context.Context, owner, repo, name string) (*Environment, *Response, error)\n```\nGetEnvironment get a single environment for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/environments#get-an-environment](https://docs.github.com/en/rest/deployments/environments#get-an-environment)\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/rest/webhooks/repos#get-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repos#get-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) GetHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error)\n```\nGetHookDelivery returns a delivery for a webhook configured in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repo-deliveries#get-a-delivery-for-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/rest/deploy-keys#get-a-deploy-key](https://docs.github.com/en/rest/deploy-keys#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/rest/pages#get-latest-pages-build](https://docs.github.com/en/rest/pages#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/rest/releases/releases#get-the-latest-release](https://docs.github.com/en/rest/releases/releases#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/rest/pages#get-github-pages-build](https://docs.github.com/en/rest/pages#get-github-pages-build)\n\n```go\nfunc (s *RepositoriesService) GetPageHealthCheck(ctx context.Context, owner, repo string) (*PagesHealthCheckResponse, *Response, error)\n```\nGetPagesHealthCheck gets a DNS health check for the CNAME record configured for a repository's GitHub Pages.\n\nGitHub API docs: [https://docs.github.com/en/rest/pages#get-a-dns-health-check-for-github-pages](https://docs.github.com/en/rest/pages#get-a-dns-health-check-for-github-pages)\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/rest/pages#get-a-github-pages-site](https://docs.github.com/en/rest/pages#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.\n\nGitHub API docs: [https://docs.github.com/en/rest/collaborators/collaborators#get-repository-permissions-for-a-user](https://docs.github.com/en/rest/collaborators/collaborators#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/rest/branches/branch-protection#get-pull-request-review-protection](https://docs.github.com/en/rest/branches/branch-protection#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/rest/repos/contents#get-a-repository-readme](https://docs.github.com/en/rest/repos/contents#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/rest/releases/releases#get-a-release](https://docs.github.com/en/rest/releases/releases#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/rest/releases/assets#get-a-release-asset](https://docs.github.com/en/rest/releases/assets#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/rest/releases/releases#get-a-release-by-tag-name](https://docs.github.com/en/rest/releases/releases#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/rest/branches/branch-protection#get-status-checks-protection](https://docs.github.com/en/rest/branches/branch-protection#get-status-checks-protection)\n\n```go\nfunc (s *RepositoriesService) GetRulesForBranch(ctx context.Context, owner, repo, branch string) ([]*RepositoryRule, *Response, error)\n```\nGetRulesForBranch gets all the rules that apply to the specified branch.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/rules#get-rules-for-a-branch](https://docs.github.com/en/rest/repos/rules#get-rules-for-a-branch)\n\n```go\nfunc (s *RepositoriesService) GetRuleset(ctx context.Context, owner, repo string, rulesetID int64, includesParents bool) (*Ruleset, *Response, error)\n```\nGetRuleset gets a ruleset for the specified repository. If includesParents is true, rulesets configured at the organization level that apply to the repository will be returned.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/rules#get-a-repository-ruleset](https://docs.github.com/en/rest/repos/rules#get-a-repository-ruleset)\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/rest/branches/branch-protection#get-commit-signature-protection](https://docs.github.com/en/rest/branches/branch-protection#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/rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository](https://docs.github.com/en/rest/repos/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/rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator](https://docs.github.com/en/rest/collaborators/collaborators#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/rest/licenses#get-the-license-for-a-repository](https://docs.github.com/en/rest/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/rest/repos/repos#list-repositories-for-the-authenticated-user](https://docs.github.com/en/rest/repos/repos#list-repositories-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/repos/repos#list-repositories-for-a-user](https://docs.github.com/en/rest/repos/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/rest/repos/repos#list-public-repositories](https://docs.github.com/en/rest/repos/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/rest/repos/repos#get-all-repository-topics](https://docs.github.com/en/rest/repos/repos#get-all-repository-topics)\n\n```go\nfunc (s *RepositoriesService) ListAppRestrictions(ctx context.Context, owner, repo, branch string) ([]*App, *Response, error)\n```\nListAppRestrictions 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/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch](https://docs.github.com/en/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch)\n\nNote: This is a wrapper around ListApps so a naming convention with ListUserRestrictions and ListTeamRestrictions is preserved.\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/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch](https://docs.github.com/en/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch)\n\nDeprecated: Please use ListAppRestrictions instead.\n\n```go\nfunc (s *RepositoriesService) ListAutolinks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Autolink, *Response, error)\n```\nListAutolinks returns a list of autolinks configured for the given repository. Information about autolinks are only available to repository administrators.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/autolinks#list-all-autolinks-of-a-repository](https://docs.github.com/en/rest/repos/autolinks#list-all-autolinks-of-a-repository)\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/rest/branches/branches#list-branches](https://docs.github.com/en/rest/branches/branches#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/rest/commits/commits#list-branches-for-head-commit](https://docs.github.com/en/rest/commits/commits#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/rest/repos/repos#list-organization-repositories](https://docs.github.com/en/rest/repos/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/rest/metrics/statistics#get-the-weekly-commit-activity](https://docs.github.com/en/rest/metrics/statistics#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/rest/collaborators/collaborators#list-repository-collaborators](https://docs.github.com/en/rest/collaborators/collaborators#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/rest/commits/comments#list-commit-comments-for-a-repository](https://docs.github.com/en/rest/commits/comments#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/rest/metrics/statistics#get-the-last-year-of-commit-activity](https://docs.github.com/en/rest/metrics/statistics#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/rest/commits/comments#list-commit-comments](https://docs.github.com/en/rest/commits/comments#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/rest/commits/commits#list-commits](https://docs.github.com/en/rest/commits/commits#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/rest/repos/repos#list-repository-contributors](https://docs.github.com/en/rest/repos/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/rest/metrics/statistics#get-all-contributor-commit-activity](https://docs.github.com/en/rest/metrics/statistics#get-all-contributor-commit-activity)\n\n```go\nfunc (s *RepositoriesService) ListDeploymentBranchPolicies(ctx context.Context, owner, repo, environment string) (*DeploymentBranchPolicyResponse, *Response, error)\n```\nListDeploymentBranchPolicies lists the deployment branch policies for an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/branch-policies#list-deployment-branch-policies](https://docs.github.com/en/rest/deployments/branch-policies#list-deployment-branch-policies)\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/rest/deployments/statuses#list-deployment-statuses](https://docs.github.com/en/rest/deployments/statuses#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/rest/deployments/deployments#list-deployments](https://docs.github.com/en/rest/deployments/deployments#list-deployments)\n\n```go\nfunc (s *RepositoriesService) ListEnvironments(ctx context.Context, owner, repo string, opts *EnvironmentListOptions) (*EnvResponse, *Response, error)\n```\nListEnvironments lists all environments for a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/environments#get-all-environments](https://docs.github.com/en/rest/deployments/environments#get-all-environments)\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/rest/repos/forks#list-forks](https://docs.github.com/en/rest/repos/forks#list-forks)\n\n```go\nfunc (s *RepositoriesService) ListHookDeliveries(ctx context.Context, owner, repo string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error)\n```\nListHookDeliveries lists webhook deliveries for a webhook configured in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook)\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/rest/webhooks/repos#list-repository-webhooks](https://docs.github.com/en/rest/webhooks/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/rest/collaborators/invitations#list-repository-invitations](https://docs.github.com/en/rest/collaborators/invitations#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/rest/deploy-keys#list-deploy-keys](https://docs.github.com/en/rest/deploy-keys#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/rest/repos/repos#list-repository-languages](https://docs.github.com/en/rest/repos/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/rest/pages#list-github-pages-builds](https://docs.github.com/en/rest/pages#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/rest/metrics/statistics#get-the-weekly-commit-count](https://docs.github.com/en/rest/metrics/statistics#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/rest/projects/projects#list-repository-projects](https://docs.github.com/en/rest/projects/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/rest/metrics/statistics#get-the-hourly-commit-count-for-each-day](https://docs.github.com/en/rest/metrics/statistics#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/rest/releases/assets#list-release-assets](https://docs.github.com/en/rest/releases/assets#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/rest/releases/releases#list-releases](https://docs.github.com/en/rest/releases/releases#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/rest/branches/branch-protection#get-all-status-check-contexts](https://docs.github.com/en/rest/branches/branch-protection#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/rest/commits/statuses#list-commit-statuses-for-a-reference](https://docs.github.com/en/rest/commits/statuses#list-commit-statuses-for-a-reference)\n\n```go\nfunc (s *RepositoriesService) ListTagProtection(ctx context.Context, owner, repo string) ([]*TagProtection, *Response, error)\n```\nListTagProtection lists tag protection of the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/tags#list-tag-protection-states-for-a-repository](https://docs.github.com/en/rest/repos/tags#list-tag-protection-states-for-a-repository)\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/rest/repos/repos#list-repository-tags](https://docs.github.com/en/rest/repos/repos#list-repository-tags)\n\n```go\nfunc (s *RepositoriesService) ListTeamRestrictions(ctx context.Context, owner, repo, branch string) ([]*Team, *Response, error)\n```\nListTeamRestrictions lists the GitHub teams that have push access to a given protected branch. It requires the GitHub teams to have \\`write\\` access to the \\`content\\` permission.\n\nGitHub API docs: [https://docs.github.com/en/rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch](https://docs.github.com/en/rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch)\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/rest/repos/repos#list-repository-teams](https://docs.github.com/en/rest/repos/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/rest/metrics/traffic#get-repository-clones](https://docs.github.com/en/rest/metrics/traffic#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/rest/metrics/traffic#get-top-referral-paths](https://docs.github.com/en/rest/metrics/traffic#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/rest/metrics/traffic#get-top-referral-sources](https://docs.github.com/en/rest/metrics/traffic#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/rest/metrics/traffic#get-page-views](https://docs.github.com/en/rest/metrics/traffic#get-page-views)\n\n```go\nfunc (s *RepositoriesService) ListUserRestrictions(ctx context.Context, owner, repo, branch string) ([]*User, *Response, error)\n```\nListUserRestrictions lists the GitHub users that have push access to a given protected branch. It requires the GitHub users to have \\`write\\` access to the \\`content\\` permission.\n\nGitHub API docs: [https://docs.github.com/en/rest/branches/branch-protection#get-users-with-access-to-the-protected-branch](https://docs.github.com/en/rest/branches/branch-protection#get-users-with-access-to-the-protected-branch)\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/rest/branches/branches#merge-a-branch](https://docs.github.com/en/rest/branches/branches#merge-a-branch)\n\n```go\nfunc (s *RepositoriesService) MergeUpstream(ctx context.Context, owner, repo string, request *RepoMergeUpstreamRequest) (*RepoMergeUpstreamResult, *Response, error)\n```\nMergeUpstream syncs a branch of a forked repository to keep it up-to-date with the upstream repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository](https://docs.github.com/en/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository)\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/rest/branches/branch-protection#delete-commit-signature-protection](https://docs.github.com/en/rest/branches/branch-protection#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/rest/webhooks/repos#ping-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repos#ping-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) RedeliverHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error)\n```\nRedeliverHookDelivery redelivers a delivery for a webhook configured in a repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/webhooks/repo-deliveries#redeliver-a-delivery-for-a-repository-webhook](https://docs.github.com/en/rest/webhooks/repo-deliveries#redeliver-a-delivery-for-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/rest/branches/branch-protection#delete-admin-branch-protection](https://docs.github.com/en/rest/branches/branch-protection#delete-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) RemoveAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error)\n```\nRemoveAppRestrictions removes the restrictions of an app from pushing 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/rest/branches/branch-protection#remove-app-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#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/rest/branches/branch-protection#delete-branch-protection](https://docs.github.com/en/rest/branches/branch-protection#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/rest/collaborators/collaborators#remove-a-repository-collaborator](https://docs.github.com/en/rest/collaborators/collaborators#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/rest/branches/branch-protection#delete-pull-request-review-protection](https://docs.github.com/en/rest/branches/branch-protection#delete-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) RemoveRequiredStatusChecks(ctx context.Context, owner, repo, branch string) (*Response, error)\n```\nRemoveRequiredStatusChecks removes the required status checks for a given protected branch.\n\nGitHub API docs: [https://docs.github.com/en/rest/branches/branch-protection#remove-status-check-protection](https://docs.github.com/en/rest/branches/branch-protection#remove-status-check-protection)\n\n```go\nfunc (s *RepositoriesService) RemoveTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error)\n```\nRemoveTeamRestrictions removes the restrictions of a team from pushing to this branch. It requires the GitHub teams 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/rest/branches/branch-protection#remove-team-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#remove-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) RemoveUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error)\n```\nRemoveUserRestrictions removes the restrictions of a user from pushing to this branch. It requires the GitHub users 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/rest/branches/branch-protection#remove-team-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#remove-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) RenameBranch(ctx context.Context, owner, repo, branch, newName string) (*Branch, *Response, error)\n```\nRenameBranch renames a branch in a repository.\n\nTo rename a non-default branch: Users must have push access. GitHub Apps must have the \\`contents:write\\` repository permission. To rename the default branch: Users must have admin or owner permissions. GitHub Apps must have the \\`administration:write\\` repository permission.\n\nGitHub API docs: [https://docs.github.com/en/rest/branches/branches#rename-a-branch](https://docs.github.com/en/rest/branches/branches#rename-a-branch)\n\n```go\nfunc (s *RepositoriesService) ReplaceAllTopics(ctx context.Context, owner, repo string, topics []string) ([]string, *Response, error)\n```\nReplaceAllTopics replaces all repository topics.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/repos#replace-all-repository-topics](https://docs.github.com/en/rest/repos/repos#replace-all-repository-topics)\n\n```go\nfunc (s *RepositoriesService) ReplaceAppRestrictions(ctx context.Context, owner, repo, branch string, apps []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/rest/branches/branch-protection#set-app-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#set-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) ReplaceTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error)\n```\nReplaceTeamRestrictions replaces the team that have push access to a given protected branch. This removes all teams that previously had push access and grants push access to the new list of teams. It requires the GitHub teams 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/rest/branches/branch-protection#set-team-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#set-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) ReplaceUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error)\n```\nReplaceUserRestrictions replaces the user that have push access to a given protected branch. It removes all users that previously had push access and grants push access to the new list of users. It requires the GitHub users 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/rest/branches/branch-protection#set-team-access-restrictions](https://docs.github.com/en/rest/branches/branch-protection#set-team-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/rest/pages#request-a-github-pages-build](https://docs.github.com/en/rest/pages#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/rest/branches/branch-protection#create-commit-signature-protection](https://docs.github.com/en/rest/branches/branch-protection#create-commit-signature-protection)\n\n```go\nfunc (s *RepositoriesService) Subscribe(ctx context.Context, owner, repo, event, callback string, secret []byte) (*Response, error)\n```\nSubscribe lets servers register to receive updates when a topic is updated.\n\nGitHub API docs: [https://docs.github.com/en/rest/webhooks#pubsubhubbub](https://docs.github.com/en/rest/webhooks#pubsubhubbub)\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/rest/webhooks/repos#test-the-push-repository-webhook](https://docs.github.com/en/rest/webhooks/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/rest/repos/repos#transfer-a-repository](https://docs.github.com/en/rest/repos/repos#transfer-a-repository)\n\n```go\nfunc (s *RepositoriesService) Unsubscribe(ctx context.Context, owner, repo, event, callback string, secret []byte) (*Response, error)\n```\nUnsubscribe lets servers unregister to no longer receive updates when a topic is updated.\n\nGitHub API docs: [https://docs.github.com/en/rest/webhooks#pubsubhubbub](https://docs.github.com/en/rest/webhooks#pubsubhubbub)\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/rest/branches/branch-protection#update-branch-protection](https://docs.github.com/en/rest/branches/branch-protection#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/rest/commits/comments#update-a-commit-comment](https://docs.github.com/en/rest/commits/comments#update-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) UpdateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error)\n```\nUpdateDeploymentBranchPolicy updates a deployment branch policy for an environment.\n\nGitHub API docs: [https://docs.github.com/en/rest/deployments/branch-policies#update-a-deployment-branch-policy](https://docs.github.com/en/rest/deployments/branch-policies#update-a-deployment-branch-policy)\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/rest/repos/contents#create-or-update-file-contents](https://docs.github.com/en/rest/repos/contents#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/rest/collaborators/invitations#update-a-repository-invitation](https://docs.github.com/en/rest/collaborators/invitations#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/rest/pages#update-information-about-a-github-pages-site](https://docs.github.com/en/rest/pages#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/rest/branches/branch-protection#update-pull-request-review-protection](https://docs.github.com/en/rest/branches/branch-protection#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/rest/branches/branch-protection#update-status-check-protection](https://docs.github.com/en/rest/branches/branch-protection#update-status-check-protection)\n\n```go\nfunc (s *RepositoriesService) UpdateRuleset(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error)\n```\nUpdateRuleset updates a ruleset for the specified repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/repos/rules#update-a-repository-ruleset](https://docs.github.com/en/rest/repos/rules#update-a-repository-ruleset)\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/rest/releases/assets#upload-a-release-asset](https://docs.github.com/en/rest/releases/assets#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\tOpenIssues                *int            `json:\"open_issues,omitempty\"` // Deprecated: Replaced by OpenIssuesCount. For backward compatibility OpenIssues is still populated.\n\tStargazersCount           *int            `json:\"stargazers_count,omitempty\"`\n\tSubscribersCount          *int            `json:\"subscribers_count,omitempty\"`\n\tWatchersCount             *int            `json:\"watchers_count,omitempty\"` // Deprecated: Replaced by StargazersCount. For backward compatibility WatchersCount is still populated.\n\tWatchers                  *int            `json:\"watchers,omitempty\"`       // Deprecated: Replaced by StargazersCount. For backward compatibility Watchers is still populated.\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\tAllowUpdateBranch         *bool           `json:\"allow_update_branch,omitempty\"`\n\tAllowSquashMerge          *bool           `json:\"allow_squash_merge,omitempty\"`\n\tAllowMergeCommit          *bool           `json:\"allow_merge_commit,omitempty\"`\n\tAllowAutoMerge            *bool           `json:\"allow_auto_merge,omitempty\"`\n\tAllowForking              *bool           `json:\"allow_forking,omitempty\"`\n\tWebCommitSignoffRequired  *bool           `json:\"web_commit_signoff_required,omitempty\"`\n\tDeleteBranchOnMerge       *bool           `json:\"delete_branch_on_merge,omitempty\"`\n\tUseSquashPRTitleAsDefault *bool           `json:\"use_squash_pr_title_as_default,omitempty\"`\n\tSquashMergeCommitTitle    *string         `json:\"squash_merge_commit_title,omitempty\"`   // Can be one of: \"PR_TITLE\", \"COMMIT_OR_PR_TITLE\"\n\tSquashMergeCommitMessage  *string         `json:\"squash_merge_commit_message,omitempty\"` // Can be one of: \"PR_BODY\", \"COMMIT_MESSAGES\", \"BLANK\"\n\tMergeCommitTitle          *string         `json:\"merge_commit_title,omitempty\"`          // Can be one of: \"PR_TITLE\", \"MERGE_MESSAGE\"\n\tMergeCommitMessage        *string         `json:\"merge_commit_message,omitempty\"`        // Can be one of: \"PR_BODY\", \"PR_TITLE\", \"BLANK\"\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\tHasDiscussions    *bool   `json:\"has_discussions,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// Options for configuring Advanced Security and Secret Scanning\n\tSecurityAndAnalysis *SecurityAndAnalysis `json:\"security_and_analysis,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/rest/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\t// RoleName is only returned by the API 'check team permissions for a repository'.\n\t// See: teams.go (IsTeamRepoByID) https://docs.github.com/en/rest/teams/teams#check-team-permissions-for-a-repository\n\tRoleName *string `json:\"role_name,omitempty\"`\n}\n```\nRepository represents a GitHub repository.\n\n```go\nfunc (r *Repository) GetAllowAutoMerge() bool\n```\nGetAllowAutoMerge returns the AllowAutoMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetAllowForking() bool\n```\nGetAllowForking returns the AllowForking field if it's non-nil, zero value otherwise.\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) GetAllowUpdateBranch() bool\n```\nGetAllowUpdateBranch returns the AllowUpdateBranch 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) GetHasDiscussions() bool\n```\nGetHasDiscussions returns the HasDiscussions 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) GetMergeCommitMessage() string\n```\nGetMergeCommitMessage returns the MergeCommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetMergeCommitTitle() string\n```\nGetMergeCommitTitle returns the MergeCommitTitle 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) GetOpenIssues() int\n```\nGetOpenIssues returns the OpenIssues 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 map if it's non-nil, an empty map 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) GetRoleName() string\n```\nGetRoleName returns the RoleName 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) GetSecurityAndAnalysis() *SecurityAndAnalysis\n```\nGetSecurityAndAnalysis returns the SecurityAndAnalysis field.\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) GetSquashMergeCommitMessage() string\n```\nGetSquashMergeCommitMessage returns the SquashMergeCommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Repository) GetSquashMergeCommitTitle() string\n```\nGetSquashMergeCommitTitle returns the SquashMergeCommitTitle field if it's non-nil, zero value otherwise.\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) GetUseSquashPRTitleAsDefault() bool\n```\nGetUseSquashPRTitleAsDefault returns the UseSquashPRTitleAsDefault 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) GetWatchers() int\n```\nGetWatchers returns the Watchers 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) GetWebCommitSignoffRequired() bool\n```\nGetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r Repository) String() string\n```\n\n```go\ntype RepositoryActionsAccessLevel struct {\n\t// AccessLevel specifies the level of access that workflows outside of the repository have\n\t// to actions and reusable workflows within the repository.\n\t// Possible values are: \"none\", \"organization\" \"enterprise\".\n\tAccessLevel *string `json:\"access_level,omitempty\"`\n}\n```\nRepositoryActionsAccessLevel represents the repository actions access level.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository](https://docs.github.com/en/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository)\n\n```go\nfunc (r *RepositoryActionsAccessLevel) GetAccessLevel() string\n```\nGetAccessLevel returns the AccessLevel field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryActiveCommitters struct {\n\tName                                *string                                `json:\"name,omitempty\"`\n\tAdvancedSecurityCommitters          *int                                   `json:\"advanced_security_committers,omitempty\"`\n\tAdvancedSecurityCommittersBreakdown []*AdvancedSecurityCommittersBreakdown `json:\"advanced_security_committers_breakdown,omitempty\"`\n}\n```\nRepositoryActiveCommitters represents active committers on each repository.\n\n```go\nfunc (r *RepositoryActiveCommitters) GetAdvancedSecurityCommitters() int\n```\nGetAdvancedSecurityCommitters returns the AdvancedSecurityCommitters field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActiveCommitters) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\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 *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `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() Timestamp\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() Timestamp\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\tSubmoduleGitURL *string `json:\"submodule_git_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) GetSubmoduleGitURL() string\n```\nGetSubmoduleGitURL returns the SubmoduleGitURL 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\"` // 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 `json:\"organization,omitempty\"`\n\tName              string `json:\"name,omitempty\"`\n\tDefaultBranchOnly bool   `json:\"default_branch_only,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/developers/webhooks-and-events/webhook-events-and-payloads#repository\\_dispatch](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#repository_dispatch)\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\tChanges      *EditChange   `json:\"changes,omitempty\"`\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/developers/webhooks-and-events/webhook-events-and-payloads#repository](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#repository)\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) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\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 RepositoryImportEvent struct {\n\t// Status represents the final state of the import. This can be one of \"success\", \"cancelled\", or \"failure\".\n\tStatus *string       `json:\"status,omitempty\"`\n\tRepo   *Repository   `json:\"repository,omitempty\"`\n\tOrg    *Organization `json:\"organization,omitempty\"`\n\tSender *User         `json:\"sender,omitempty\"`\n}\n```\nRepositoryImportEvent represents the activity related to a repository being imported to GitHub.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository\\_import](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_import)\n\n```go\nfunc (r *RepositoryImportEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (r *RepositoryImportEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (r *RepositoryImportEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (r *RepositoryImportEvent) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\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\t// MakeLatest can be one of: \"true\", \"false\", or \"legacy\".\n\tMakeLatest             *string `json:\"make_latest,omitempty\"`\n\tDiscussionCategoryName *string `json:\"discussion_category_name,omitempty\"`\n\n\t// The following fields are not used in EditRelease:\n\tGenerateReleaseNotes *bool `json:\"generate_release_notes,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) GetDiscussionCategoryName() string\n```\nGetDiscussionCategoryName returns the DiscussionCategoryName 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) GetGenerateReleaseNotes() bool\n```\nGetGenerateReleaseNotes returns the GenerateReleaseNotes 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) GetMakeLatest() string\n```\nGetMakeLatest returns the MakeLatest 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 RepositoryReleaseNotes struct {\n\tName string `json:\"name\"`\n\tBody string `json:\"body\"`\n}\n```\nRepositoryReleaseNotes represents a GitHub-generated release notes.\n\n```go\ntype RepositoryRule struct {\n\tType       string           `json:\"type\"`\n\tParameters *json.RawMessage `json:\"parameters,omitempty\"`\n}\n```\nRepositoryRule represents a GitHub Rule.\n\n```go\nfunc NewBranchNamePatternRule(params *RulePatternParameters) (rule *RepositoryRule)\n```\nNewBranchNamePatternRule creates a rule to restrict branch patterns from being merged into matching branches.\n\n```go\nfunc NewCommitAuthorEmailPatternRule(params *RulePatternParameters) (rule *RepositoryRule)\n```\nNewCommitAuthorEmailPatternRule creates a rule to restrict commits with author email patterns being merged into matching branches.\n\n```go\nfunc NewCommitMessagePatternRule(params *RulePatternParameters) (rule *RepositoryRule)\n```\nNewCommitMessagePatternRule creates a rule to restrict commit message patterns being pushed to matching branches.\n\n```go\nfunc NewCommitterEmailPatternRule(params *RulePatternParameters) (rule *RepositoryRule)\n```\nNewCommitterEmailPatternRule creates a rule to restrict commits with committer email patterns being merged into matching branches.\n\n```go\nfunc NewCreationRule() (rule *RepositoryRule)\n```\nNewCreationRule creates a rule to only allow users with bypass permission to create matching refs.\n\n```go\nfunc NewDeletionRule() (rule *RepositoryRule)\n```\nNewDeletionRule creates a rule to only allow users with bypass permissions to delete matching refs.\n\n```go\nfunc NewNonFastForwardRule() (rule *RepositoryRule)\n```\nNewNonFastForwardRule creates a rule as part to prevent users with push access from force pushing to matching branches.\n\n```go\nfunc NewPullRequestRule(params *PullRequestRuleParameters) (rule *RepositoryRule)\n```\nNewPullRequestRule creates a rule to require all commits be made to a non-target branch and submitted via a pull request before they can be merged.\n\n```go\nfunc NewRequiredDeploymentsRule(params *RequiredDeploymentEnvironmentsRuleParameters) (rule *RepositoryRule)\n```\nNewRequiredDeploymentsRule creates a rule to require environments to be successfully deployed before they can be merged into the matching branches.\n\n```go\nfunc NewRequiredLinearHistoryRule() (rule *RepositoryRule)\n```\nNewRequiredLinearHistoryRule creates a rule to prevent merge commits from being pushed to matching branches.\n\n```go\nfunc NewRequiredSignaturesRule() (rule *RepositoryRule)\n```\nNewRequiredSignaturesRule creates a rule a to require commits pushed to matching branches to have verified signatures.\n\n```go\nfunc NewRequiredStatusChecksRule(params *RequiredStatusChecksRuleParameters) (rule *RepositoryRule)\n```\nNewRequiredStatusChecksRule creates a rule to require which status checks must pass before branches can be merged into a branch rule.\n\n```go\nfunc NewTagNamePatternRule(params *RulePatternParameters) (rule *RepositoryRule)\n```\nNewTagNamePatternRule creates a rule to restrict tag patterns contained in non-target branches from being merged into matching branches.\n\n```go\nfunc NewUpdateRule(params *UpdateAllowsFetchAndMergeRuleParameters) (rule *RepositoryRule)\n```\nNewUpdateRule creates a rule to only allow users with bypass permission to update matching refs.\n\n```go\nfunc (r *RepositoryRule) GetParameters() json.RawMessage\n```\nGetParameters returns the Parameters field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRule) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface. This helps us handle the fact that RepositoryRule parameter field can be of numerous types.\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 RepositoryVulnerabilityAlert struct {\n\tID                       *int64     `json:\"id,omitempty\"`\n\tAffectedRange            *string    `json:\"affected_range,omitempty\"`\n\tAffectedPackageName      *string    `json:\"affected_package_name,omitempty\"`\n\tExternalReference        *string    `json:\"external_reference,omitempty\"`\n\tExternalIdentifier       *string    `json:\"external_identifier,omitempty\"`\n\tGitHubSecurityAdvisoryID *string    `json:\"ghsa_id,omitempty\"`\n\tSeverity                 *string    `json:\"severity,omitempty\"`\n\tCreatedAt                *Timestamp `json:\"created_at,omitempty\"`\n\tFixedIn                  *string    `json:\"fixed_in,omitempty\"`\n\tDismisser                *User      `json:\"dismisser,omitempty\"`\n\tDismissReason            *string    `json:\"dismiss_reason,omitempty\"`\n\tDismissedAt              *Timestamp `json:\"dismissed_at,omitempty\"`\n}\n```\nRepositoryVulnerabilityAlert represents a repository security alert.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetAffectedPackageName() string\n```\nGetAffectedPackageName returns the AffectedPackageName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetAffectedRange() string\n```\nGetAffectedRange returns the AffectedRange field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetDismissReason() string\n```\nGetDismissReason returns the DismissReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetDismissedAt() Timestamp\n```\nGetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetDismisser() *User\n```\nGetDismisser returns the Dismisser field.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetExternalIdentifier() string\n```\nGetExternalIdentifier returns the ExternalIdentifier field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetExternalReference() string\n```\nGetExternalReference returns the ExternalReference field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetFixedIn() string\n```\nGetFixedIn returns the FixedIn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetGitHubSecurityAdvisoryID() string\n```\nGetGitHubSecurityAdvisoryID returns the GitHubSecurityAdvisoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryVulnerabilityAlert) GetSeverity() string\n```\nGetSeverity returns the Severity 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 *RepositoryVulnerabilityAlert `json:\"alert,omitempty\"`\n\n\t// The repository of the vulnerable dependency.\n\tRepository *Repository `json:\"repository,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\n\t// The user that triggered the event.\n\tSender *User `json:\"sender,omitempty\"`\n}\n```\nRepositoryVulnerabilityAlertEvent is triggered when a security alert is created, dismissed, or resolved.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#repository\\_vulnerability\\_alert](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#repository_vulnerability_alert)\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) GetAlert() *RepositoryVulnerabilityAlert\n```\nGetAlert returns the Alert field.\n\n```go\nfunc (r *RepositoryVulnerabilityAlertEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (r *RepositoryVulnerabilityAlertEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype RequestOption func(req *http.Request)\n```\nRequestOption represents an option that can modify an http.Request.\n\n```go\nfunc WithVersion(version string) RequestOption\n```\nWithVersion overrides the GitHub v3 API version for this individual request. For more information, see: [https://github.blog/2022-11-28-to-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning/](https://github.blog/2022-11-28-to-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning/)\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 RequireCodeOwnerReviewChanges struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nRequireCodeOwnerReviewChanges represents the changes made to the RequireCodeOwnerReview policy.\n\n```go\nfunc (r *RequireCodeOwnerReviewChanges) GetFrom() bool\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype RequireLinearHistory struct {\n\tEnabled bool `json:\"enabled\"`\n}\n```\nRequireLinearHistory represents the configuration to enforce branches with no merge commit.\n\n```go\ntype RequiredConversationResolution struct {\n\tEnabled bool `json:\"enabled\"`\n}\n```\nRequiredConversationResolution, if enabled, requires all comments on the pull request to be resolved before it can be merged to a protected branch.\n\n```go\ntype RequiredConversationResolutionLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nRequiredConversationResolutionLevelChanges represents the changes made to the RequiredConversationResolutionLevel policy.\n\n```go\nfunc (r *RequiredConversationResolutionLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype RequiredDeploymentEnvironmentsRuleParameters struct {\n\tRequiredDeploymentEnvironments []string `json:\"required_deployment_environments\"`\n}\n```\nRequiredDeploymentEnvironmentsRuleParameters represents the required\\_deployments rule parameters.\n\n```go\ntype RequiredDeploymentsEnforcementLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nRequiredDeploymentsEnforcementLevelChanges represents the changes made to the RequiredDeploymentsEnforcementLevel policy.\n\n```go\nfunc (r *RequiredDeploymentsEnforcementLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype RequiredReviewer struct {\n\tType     *string     `json:\"type,omitempty\"`\n\tReviewer interface{} `json:\"reviewer,omitempty\"`\n}\n```\nRequiredReviewer represents a required reviewer.\n\n```go\nfunc (r *RequiredReviewer) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RequiredReviewer) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface. This helps us handle the fact that RequiredReviewer can have either a User or Team type reviewer field.\n\n```go\ntype RequiredStatusCheck struct {\n\t// The name of the required check.\n\tContext string `json:\"context\"`\n\t// The ID of the GitHub App that must provide this check.\n\t// Omit this field to automatically select the GitHub App\n\t// that has recently provided this check,\n\t// or any app if it was not set by a GitHub App.\n\t// Pass -1 to explicitly allow any app to set the status.\n\tAppID *int64 `json:\"app_id,omitempty\"`\n}\n```\nRequiredStatusCheck represents a status check of a protected branch.\n\n```go\nfunc (r *RequiredStatusCheck) GetAppID() int64\n```\nGetAppID returns the AppID field if it's non-nil, zero value otherwise.\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. (Deprecated. Note: only one of Contexts/Checks can be populated,\n\t// but at least one must be populated).\n\tContexts []string `json:\"contexts,omitempty\"`\n\t// The list of status checks to require in order to merge into this\n\t// branch.\n\tChecks      []*RequiredStatusCheck `json:\"checks\"`\n\tContextsURL *string                `json:\"contexts_url,omitempty\"`\n\tURL         *string                `json:\"url,omitempty\"`\n}\n```\nRequiredStatusChecks represents the protection status of a individual branch.\n\n```go\nfunc (r *RequiredStatusChecks) GetContextsURL() string\n```\nGetContextsURL returns the ContextsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RequiredStatusChecks) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype RequiredStatusChecksChanges struct {\n\tFrom []string `json:\"from,omitempty\"`\n}\n```\nRequiredStatusChecksChanges represents the changes made to the RequiredStatusChecks policy.\n\n```go\ntype RequiredStatusChecksEnforcementLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nRequiredStatusChecksEnforcementLevelChanges represents the changes made to the RequiredStatusChecksEnforcementLevel policy.\n\n```go\nfunc (r *RequiredStatusChecksEnforcementLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype RequiredStatusChecksRequest struct {\n\tStrict *bool `json:\"strict,omitempty\"`\n\t// Note: if both Contexts and Checks are populated,\n\t// the GitHub API will only use Checks.\n\tContexts []string               `json:\"contexts,omitempty\"`\n\tChecks   []*RequiredStatusCheck `json:\"checks,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 RequiredStatusChecksRuleParameters struct {\n\tRequiredStatusChecks             []RuleRequiredStatusChecks `json:\"required_status_checks\"`\n\tStrictRequiredStatusChecksPolicy bool                       `json:\"strict_required_status_checks_policy\"`\n}\n```\nRequiredStatusChecksRuleParameters represents the required\\_status\\_checks rule parameters.\n\n```go\ntype RequiredWorkflowSelectedRepos struct {\n\tTotalCount   *int          `json:\"total_count,omitempty\"`\n\tRepositories []*Repository `json:\"repositories,omitempty\"`\n}\n```\nRequiredWorkflowSelectedRepos represents the repos that a required workflow is applied to.\n\n```go\nfunc (r *RequiredWorkflowSelectedRepos) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount 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// For APIs that support cursor pagination, such as RepositoriesService.ListHookDeliveries,\n\t// the following field will be populated to point to the next page.\n\t// Set ListCursorOptions.Cursor to this value when calling the endpoint again.\n\tCursor string\n\n\t// For APIs that support before/after pagination, such as OrganizationsService.AuditLog.\n\tBefore string\n\tAfter  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\t// token's expiration date. Timestamp is 0001-01-01 when token doesn't expire.\n\t// So it is valid for TokenExpiration.Equal(Timestamp{}) or TokenExpiration.Time.After(time.Now())\n\tTokenExpiration Timestamp\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 ReviewPersonalAccessTokenRequestOptions struct {\n\tAction string  `json:\"action\"`\n\tReason *string `json:\"reason,omitempty\"`\n}\n```\nReviewPersonalAccessTokenRequestOptions specifies the parameters to the ReviewPersonalAccessTokenRequest method.\n\n```go\nfunc (r *ReviewPersonalAccessTokenRequestOptions) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\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 Rule struct {\n\tID                    *string  `json:\"id,omitempty\"`\n\tSeverity              *string  `json:\"severity,omitempty\"`\n\tDescription           *string  `json:\"description,omitempty\"`\n\tName                  *string  `json:\"name,omitempty\"`\n\tSecuritySeverityLevel *string  `json:\"security_severity_level,omitempty\"`\n\tFullDescription       *string  `json:\"full_description,omitempty\"`\n\tTags                  []string `json:\"tags,omitempty\"`\n\tHelp                  *string  `json:\"help,omitempty\"`\n}\n```\nRule represents the complete details of GitHub Code Scanning alert type.\n\n```go\nfunc (r *Rule) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rule) GetFullDescription() string\n```\nGetFullDescription returns the FullDescription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rule) GetHelp() string\n```\nGetHelp returns the Help field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rule) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rule) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rule) GetSecuritySeverityLevel() string\n```\nGetSecuritySeverityLevel returns the SecuritySeverityLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Rule) GetSeverity() string\n```\nGetSeverity returns the Severity field if it's non-nil, zero value otherwise.\n\n```go\ntype RulePatternParameters struct {\n\tName *string `json:\"name,omitempty\"`\n\t// If Negate is true, the rule will fail if the pattern matches.\n\tNegate *bool `json:\"negate,omitempty\"`\n\t// Possible values for Operator are: starts_with, ends_with, contains, regex\n\tOperator string `json:\"operator\"`\n\tPattern  string `json:\"pattern\"`\n}\n```\nRulePatternParameters represents the rule pattern parameters.\n\n```go\nfunc (r *RulePatternParameters) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RulePatternParameters) GetNegate() bool\n```\nGetNegate returns the Negate field if it's non-nil, zero value otherwise.\n\n```go\ntype RuleRequiredStatusChecks struct {\n\tContext       string `json:\"context\"`\n\tIntegrationID *int64 `json:\"integration_id,omitempty\"`\n}\n```\nRuleRequiredStatusChecks represents the RequiredStatusChecks for the RequiredStatusChecksRuleParameters object.\n\n```go\nfunc (r *RuleRequiredStatusChecks) GetIntegrationID() int64\n```\nGetIntegrationID returns the IntegrationID field if it's non-nil, zero value otherwise.\n\n```go\ntype Ruleset struct {\n\tID   *int64 `json:\"id,omitempty\"`\n\tName string `json:\"name\"`\n\t// Possible values for Target are branch, tag\n\tTarget *string `json:\"target,omitempty\"`\n\t// Possible values for SourceType are: Repository, Organization\n\tSourceType *string `json:\"source_type,omitempty\"`\n\tSource     string  `json:\"source\"`\n\t// Possible values for Enforcement are: disabled, active, evaluate\n\tEnforcement  string             `json:\"enforcement\"`\n\tBypassActors []*BypassActor     `json:\"bypass_actors,omitempty\"`\n\tNodeID       *string            `json:\"node_id,omitempty\"`\n\tLinks        *RulesetLinks      `json:\"_links,omitempty\"`\n\tConditions   *RulesetConditions `json:\"conditions,omitempty\"`\n\tRules        []*RepositoryRule  `json:\"rules,omitempty\"`\n}\n```\nRuleset represents a GitHub ruleset object.\n\n```go\nfunc (r *Ruleset) GetConditions() *RulesetConditions\n```\nGetConditions returns the Conditions field.\n\n```go\nfunc (r *Ruleset) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Ruleset) GetLinks() *RulesetLinks\n```\nGetLinks returns the Links field.\n\n```go\nfunc (r *Ruleset) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Ruleset) GetSourceType() string\n```\nGetSourceType returns the SourceType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *Ruleset) GetTarget() string\n```\nGetTarget returns the Target field if it's non-nil, zero value otherwise.\n\n```go\ntype RulesetConditions struct {\n\tRefName        *RulesetRefConditionParameters             `json:\"ref_name,omitempty\"`\n\tRepositoryName *RulesetRepositoryNamesConditionParameters `json:\"repository_name,omitempty\"`\n\tRepositoryID   *RulesetRepositoryIDsConditionParameters   `json:\"repository_id,omitempty\"`\n}\n```\nRulesetCondition represents the conditions object in a ruleset. Set either RepositoryName or RepositoryID, not both.\n\n```go\nfunc (r *RulesetConditions) GetRefName() *RulesetRefConditionParameters\n```\nGetRefName returns the RefName field.\n\n```go\nfunc (r *RulesetConditions) GetRepositoryID() *RulesetRepositoryIDsConditionParameters\n```\nGetRepositoryID returns the RepositoryID field.\n\n```go\nfunc (r *RulesetConditions) GetRepositoryName() *RulesetRepositoryNamesConditionParameters\n```\nGetRepositoryName returns the RepositoryName field.\n\n```go\ntype RulesetLink struct {\n\tHRef *string `json:\"href,omitempty\"`\n}\n```\nRulesetLink represents a single link object from GitHub ruleset request \\_links.\n\n```go\nfunc (r *RulesetLink) GetHRef() string\n```\nGetHRef returns the HRef field if it's non-nil, zero value otherwise.\n\n```go\ntype RulesetLinks struct {\n\tSelf *RulesetLink `json:\"self,omitempty\"`\n}\n```\nRulesetLinks represents the \"\\_links\" object in a Ruleset.\n\n```go\nfunc (r *RulesetLinks) GetSelf() *RulesetLink\n```\nGetSelf returns the Self field.\n\n```go\ntype RulesetRefConditionParameters struct {\n\tInclude []string `json:\"include\"`\n\tExclude []string `json:\"exclude\"`\n}\n```\nRulesetRefConditionParameters represents the conditions object for ref\\_names.\n\n```go\ntype RulesetRepositoryIDsConditionParameters struct {\n\tRepositoryIDs []int64 `json:\"repository_ids,omitempty\"`\n}\n```\nRulesetRepositoryIDsConditionParameters represents the conditions object for repository\\_ids.\n\n```go\ntype RulesetRepositoryNamesConditionParameters struct {\n\tInclude   []string `json:\"include,omitempty\"`\n\tExclude   []string `json:\"exclude,omitempty\"`\n\tProtected *bool    `json:\"protected,omitempty\"`\n}\n```\nRulesetRepositoryNamesConditionParameters represents the conditions object for repository\\_names.\n\n```go\nfunc (r *RulesetRepositoryNamesConditionParameters) GetProtected() bool\n```\nGetProtected returns the Protected 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\tTempDownloadToken *string `json:\"temp_download_token,omitempty\"`\n\tSHA256Checksum    *string `json:\"sha256_checksum,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\nfunc (r *RunnerApplicationDownload) GetSHA256Checksum() string\n```\nGetSHA256Checksum returns the SHA256Checksum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerApplicationDownload) GetTempDownloadToken() string\n```\nGetTempDownloadToken returns the TempDownloadToken field if it's non-nil, zero value otherwise.\n\n```go\ntype RunnerGroup struct {\n\tID                           *int64   `json:\"id,omitempty\"`\n\tName                         *string  `json:\"name,omitempty\"`\n\tVisibility                   *string  `json:\"visibility,omitempty\"`\n\tDefault                      *bool    `json:\"default,omitempty\"`\n\tSelectedRepositoriesURL      *string  `json:\"selected_repositories_url,omitempty\"`\n\tRunnersURL                   *string  `json:\"runners_url,omitempty\"`\n\tInherited                    *bool    `json:\"inherited,omitempty\"`\n\tAllowsPublicRepositories     *bool    `json:\"allows_public_repositories,omitempty\"`\n\tRestrictedToWorkflows        *bool    `json:\"restricted_to_workflows,omitempty\"`\n\tSelectedWorkflows            []string `json:\"selected_workflows,omitempty\"`\n\tWorkflowRestrictionsReadOnly *bool    `json:\"workflow_restrictions_read_only,omitempty\"`\n}\n```\nRunnerGroup represents a self-hosted runner group configured in an organization.\n\n```go\nfunc (r *RunnerGroup) GetAllowsPublicRepositories() bool\n```\nGetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetDefault() bool\n```\nGetDefault returns the Default field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetInherited() bool\n```\nGetInherited returns the Inherited field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetRestrictedToWorkflows() bool\n```\nGetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetRunnersURL() string\n```\nGetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetSelectedRepositoriesURL() string\n```\nGetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RunnerGroup) GetWorkflowRestrictionsReadOnly() bool\n```\nGetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise.\n\n```go\ntype RunnerGroups struct {\n\tTotalCount   int            `json:\"total_count\"`\n\tRunnerGroups []*RunnerGroup `json:\"runner_groups\"`\n}\n```\nRunnerGroups represents a collection of self-hosted runner groups configured for an organization.\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 SBOM struct {\n\tSBOM *SBOMInfo `json:\"sbom,omitempty\"`\n}\n```\nSBOM represents a software bill of materials, which describes the packages/libraries that a repository depends on.\n\n```go\nfunc (s *SBOM) GetSBOM() *SBOMInfo\n```\nGetSBOM returns the SBOM field.\n\n```go\nfunc (s SBOM) String() string\n```\n\n```go\ntype SBOMInfo struct {\n\tSPDXID       *string       `json:\"SPDXID,omitempty\"`\n\tSPDXVersion  *string       `json:\"spdxVersion,omitempty\"`\n\tCreationInfo *CreationInfo `json:\"creationInfo,omitempty\"`\n\n\t// Repo name\n\tName              *string  `json:\"name,omitempty\"`\n\tDataLicense       *string  `json:\"dataLicense,omitempty\"`\n\tDocumentDescribes []string `json:\"documentDescribes,omitempty\"`\n\tDocumentNamespace *string  `json:\"documentNamespace,omitempty\"`\n\n\t// List of packages dependencies\n\tPackages []*RepoDependencies `json:\"packages,omitempty\"`\n}\n```\nSBOMInfo represents a software bill of materials (SBOM) using SPDX. SPDX is an open standard for SBOMs that identifies and catalogs components, licenses, copyrights, security references, and other metadata relating to software.\n\n```go\nfunc (s *SBOMInfo) GetCreationInfo() *CreationInfo\n```\nGetCreationInfo returns the CreationInfo field.\n\n```go\nfunc (s *SBOMInfo) GetDataLicense() string\n```\nGetDataLicense returns the DataLicense field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SBOMInfo) GetDocumentNamespace() string\n```\nGetDocumentNamespace returns the DocumentNamespace field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SBOMInfo) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SBOMInfo) GetSPDXID() string\n```\nGetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SBOMInfo) GetSPDXVersion() string\n```\nGetSPDXVersion returns the SPDXVersion field if it's non-nil, zero value otherwise.\n\n```go\ntype SCIMMeta struct {\n\tResourceType *string    `json:\"resourceType,omitempty\"`\n\tCreated      *Timestamp `json:\"created,omitempty\"`\n\tLastModified *Timestamp `json:\"lastModified,omitempty\"`\n\tLocation     *string    `json:\"location,omitempty\"`\n}\n```\nSCIMMeta represents metadata about the SCIM resource.\n\n```go\nfunc (s *SCIMMeta) GetCreated() Timestamp\n```\nGetCreated returns the Created field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMMeta) GetLastModified() Timestamp\n```\nGetLastModified returns the LastModified field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMMeta) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMMeta) GetResourceType() string\n```\nGetResourceType returns the ResourceType field if it's non-nil, zero value otherwise.\n\n```go\ntype SCIMProvisionedIdentities struct {\n\tSchemas      []string              `json:\"schemas,omitempty\"`\n\tTotalResults *int                  `json:\"totalResults,omitempty\"`\n\tItemsPerPage *int                  `json:\"itemsPerPage,omitempty\"`\n\tStartIndex   *int                  `json:\"startIndex,omitempty\"`\n\tResources    []*SCIMUserAttributes `json:\"Resources,omitempty\"`\n}\n```\nSCIMProvisionedIdentities represents the result of calling ListSCIMProvisionedIdentities.\n\n```go\nfunc (s *SCIMProvisionedIdentities) GetItemsPerPage() int\n```\nGetItemsPerPage returns the ItemsPerPage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMProvisionedIdentities) GetStartIndex() int\n```\nGetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMProvisionedIdentities) GetTotalResults() int\n```\nGetTotalResults returns the TotalResults field if it's non-nil, zero value otherwise.\n\n```go\ntype SCIMService service\n```\nSCIMService provides access to SCIM related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim](https://docs.github.com/en/rest/scim)\n\n```go\nfunc (s *SCIMService) DeleteSCIMUserFromOrg(ctx context.Context, org, scimUserID string) (*Response, error)\n```\nDeleteSCIMUserFromOrg deletes SCIM user from an organization.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#delete-a-scim-user-from-an-organization](https://docs.github.com/en/rest/scim#delete-a-scim-user-from-an-organization)\n\n```go\nfunc (s *SCIMService) GetSCIMProvisioningInfoForUser(ctx context.Context, org, scimUserID string) (*SCIMUserAttributes, *Response, error)\n```\nGetSCIMProvisioningInfoForUser returns SCIM provisioning information for a user.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#supported-scim-user-attributes](https://docs.github.com/en/rest/scim#supported-scim-user-attributes)\n\n```go\nfunc (s *SCIMService) ListSCIMProvisionedIdentities(ctx context.Context, org string, opts *ListSCIMProvisionedIdentitiesOptions) (*SCIMProvisionedIdentities, *Response, error)\n```\nListSCIMProvisionedIdentities lists SCIM provisioned identities.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#list-scim-provisioned-identities](https://docs.github.com/en/rest/scim#list-scim-provisioned-identities)\n\n```go\nfunc (s *SCIMService) ProvisionAndInviteSCIMUser(ctx context.Context, org string, opts *SCIMUserAttributes) (*Response, error)\n```\nProvisionAndInviteSCIMUser provisions organization membership for a user, and sends an activation email to the email address.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#provision-and-invite-a-scim-user](https://docs.github.com/en/rest/scim#provision-and-invite-a-scim-user)\n\n```go\nfunc (s *SCIMService) UpdateAttributeForSCIMUser(ctx context.Context, org, scimUserID string, opts *UpdateAttributeForSCIMUserOptions) (*Response, error)\n```\nUpdateAttributeForSCIMUser updates an attribute for an SCIM user.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#update-an-attribute-for-a-scim-user](https://docs.github.com/en/rest/scim#update-an-attribute-for-a-scim-user)\n\n```go\nfunc (s *SCIMService) UpdateProvisionedOrgMembership(ctx context.Context, org, scimUserID string, opts *SCIMUserAttributes) (*Response, error)\n```\nUpdateProvisionedOrgMembership updates a provisioned organization membership.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#update-a-provisioned-organization-membership](https://docs.github.com/en/rest/scim#update-a-provisioned-organization-membership)\n\n```go\ntype SCIMUserAttributes struct {\n\tUserName    string           `json:\"userName\"`              // Configured by the admin. Could be an email, login, or username. (Required.)\n\tName        SCIMUserName     `json:\"name\"`                  // (Required.)\n\tDisplayName *string          `json:\"displayName,omitempty\"` // The name of the user, suitable for display to end-users. (Optional.)\n\tEmails      []*SCIMUserEmail `json:\"emails\"`                // User emails. (Required.)\n\tSchemas     []string         `json:\"schemas,omitempty\"`     // (Optional.)\n\tExternalID  *string          `json:\"externalId,omitempty\"`  // (Optional.)\n\tGroups      []string         `json:\"groups,omitempty\"`      // (Optional.)\n\tActive      *bool            `json:\"active,omitempty\"`      // (Optional.)\n\t// Only populated as a result of calling ListSCIMProvisionedIdentitiesOptions or GetSCIMProvisioningInfoForUser:\n\tID   *string   `json:\"id,omitempty\"`\n\tMeta *SCIMMeta `json:\"meta,omitempty\"`\n}\n```\nSCIMUserAttributes represents supported SCIM User attributes.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#supported-scim-user-attributes](https://docs.github.com/en/rest/scim#supported-scim-user-attributes)\n\n```go\nfunc (s *SCIMUserAttributes) GetActive() bool\n```\nGetActive returns the Active field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserAttributes) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserAttributes) GetExternalID() string\n```\nGetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserAttributes) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserAttributes) GetMeta() *SCIMMeta\n```\nGetMeta returns the Meta field.\n\n```go\ntype SCIMUserEmail struct {\n\tValue   string  `json:\"value\"`             // (Required.)\n\tPrimary *bool   `json:\"primary,omitempty\"` // (Optional.)\n\tType    *string `json:\"type,omitempty\"`    // (Optional.)\n}\n```\nSCIMUserEmail represents SCIM user email.\n\n```go\nfunc (s *SCIMUserEmail) GetPrimary() bool\n```\nGetPrimary returns the Primary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserEmail) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype SCIMUserName struct {\n\tGivenName  string  `json:\"givenName\"`           // The first name of the user. (Required.)\n\tFamilyName string  `json:\"familyName\"`          // The family name of the user. (Required.)\n\tFormatted  *string `json:\"formatted,omitempty\"` // (Optional.)\n}\n```\nSCIMUserName represents SCIM user information.\n\n```go\nfunc (s *SCIMUserName) GetFormatted() string\n```\nGetFormatted returns the Formatted field if it's non-nil, zero value otherwise.\n\n```go\ntype SSHSigningKey struct {\n\tID        *int64     `json:\"id,omitempty\"`\n\tKey       *string    `json:\"key,omitempty\"`\n\tTitle     *string    `json:\"title,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n}\n```\nSSHSigningKey represents a public SSH key used to sign git commits.\n\n```go\nfunc (s *SSHSigningKey) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SSHSigningKey) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SSHSigningKey) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SSHSigningKey) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (k SSHSigningKey) String() string\n```\n\n```go\ntype SarifAnalysis struct {\n\tCommitSHA   *string    `json:\"commit_sha,omitempty\"`\n\tRef         *string    `json:\"ref,omitempty\"`\n\tSarif       *string    `json:\"sarif,omitempty\"`\n\tCheckoutURI *string    `json:\"checkout_uri,omitempty\"`\n\tStartedAt   *Timestamp `json:\"started_at,omitempty\"`\n\tToolName    *string    `json:\"tool_name,omitempty\"`\n}\n```\nSarifAnalysis specifies the results of a code scanning job.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning](https://docs.github.com/en/rest/code-scanning)\n\n```go\nfunc (s *SarifAnalysis) GetCheckoutURI() string\n```\nGetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SarifAnalysis) GetCommitSHA() string\n```\nGetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SarifAnalysis) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SarifAnalysis) GetSarif() string\n```\nGetSarif returns the Sarif field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SarifAnalysis) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SarifAnalysis) GetToolName() string\n```\nGetToolName returns the ToolName field if it's non-nil, zero value otherwise.\n\n```go\ntype SarifID struct {\n\tID  *string `json:\"id,omitempty\"`\n\tURL *string `json:\"url,omitempty\"`\n}\n```\nSarifID identifies a sarif analysis upload.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning](https://docs.github.com/en/rest/code-scanning)\n\n```go\nfunc (s *SarifID) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SarifID) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype ScanningAnalysis struct {\n\tID           *int64     `json:\"id,omitempty\"`\n\tRef          *string    `json:\"ref,omitempty\"`\n\tCommitSHA    *string    `json:\"commit_sha,omitempty\"`\n\tAnalysisKey  *string    `json:\"analysis_key,omitempty\"`\n\tEnvironment  *string    `json:\"environment,omitempty\"`\n\tError        *string    `json:\"error,omitempty\"`\n\tCategory     *string    `json:\"category,omitempty\"`\n\tCreatedAt    *Timestamp `json:\"created_at,omitempty\"`\n\tResultsCount *int       `json:\"results_count,omitempty\"`\n\tRulesCount   *int       `json:\"rules_count,omitempty\"`\n\tURL          *string    `json:\"url,omitempty\"`\n\tSarifID      *string    `json:\"sarif_id,omitempty\"`\n\tTool         *Tool      `json:\"tool,omitempty\"`\n\tDeletable    *bool      `json:\"deletable,omitempty\"`\n\tWarning      *string    `json:\"warning,omitempty\"`\n}\n```\nScanningAnalysis represents an individual GitHub Code Scanning ScanningAnalysis on a single repository.\n\nGitHub API docs: [https://docs.github.com/en/rest/code-scanning](https://docs.github.com/en/rest/code-scanning)\n\n```go\nfunc (s *ScanningAnalysis) GetAnalysisKey() string\n```\nGetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetCategory() string\n```\nGetCategory returns the Category field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetCommitSHA() string\n```\nGetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetDeletable() bool\n```\nGetDeletable returns the Deletable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetError() string\n```\nGetError returns the Error field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetResultsCount() int\n```\nGetResultsCount returns the ResultsCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetRulesCount() int\n```\nGetRulesCount returns the RulesCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetSarifID() string\n```\nGetSarifID returns the SarifID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetTool() *Tool\n```\nGetTool returns the Tool field.\n\n```go\nfunc (s *ScanningAnalysis) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *ScanningAnalysis) GetWarning() string\n```\nGetWarning returns the Warning field if it's non-nil, zero value otherwise.\n\n```go\ntype Scope string\n```\nScope models a GitHub authorization scope.\n\nGitHub API docs: [https://docs.github.com/en/rest/oauth/#scopes](https://docs.github.com/en/rest/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/rest/search/](https://docs.github.com/en/rest/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/rest/search#search-code](https://docs.github.com/en/rest/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/rest/search#search-commits](https://docs.github.com/en/rest/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/rest/search#search-issues-and-pull-requests](https://docs.github.com/en/rest/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/rest/search#search-labels](https://docs.github.com/en/rest/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/rest/search#search-repositories](https://docs.github.com/en/rest/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/rest/search#search-topics](https://docs.github.com/en/rest/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/rest/search#search-users](https://docs.github.com/en/rest/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 SecretScanning struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nSecretScanning specifies the state of secret scanning on a repository.\n\nGitHub API docs: [https://docs.github.com/en/code-security/secret-security/about-secret-scanning](https://docs.github.com/en/code-security/secret-security/about-secret-scanning)\n\n```go\nfunc (s *SecretScanning) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s SecretScanning) String() string\n```\n\n```go\ntype SecretScanningAlert struct {\n\tNumber                *int        `json:\"number,omitempty\"`\n\tCreatedAt             *Timestamp  `json:\"created_at,omitempty\"`\n\tURL                   *string     `json:\"url,omitempty\"`\n\tHTMLURL               *string     `json:\"html_url,omitempty\"`\n\tLocationsURL          *string     `json:\"locations_url,omitempty\"`\n\tState                 *string     `json:\"state,omitempty\"`\n\tResolution            *string     `json:\"resolution,omitempty\"`\n\tResolvedAt            *Timestamp  `json:\"resolved_at,omitempty\"`\n\tResolvedBy            *User       `json:\"resolved_by,omitempty\"`\n\tSecretType            *string     `json:\"secret_type,omitempty\"`\n\tSecretTypeDisplayName *string     `json:\"secret_type_display_name,omitempty\"`\n\tSecret                *string     `json:\"secret,omitempty\"`\n\tRepository            *Repository `json:\"repository,omitempty\"`\n}\n```\nSecretScanningAlert represents a GitHub secret scanning alert.\n\n```go\nfunc (s *SecretScanningAlert) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetLocationsURL() string\n```\nGetLocationsURL returns the LocationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (s *SecretScanningAlert) GetResolution() string\n```\nGetResolution returns the Resolution field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetResolvedAt() Timestamp\n```\nGetResolvedAt returns the ResolvedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetResolvedBy() *User\n```\nGetResolvedBy returns the ResolvedBy field.\n\n```go\nfunc (s *SecretScanningAlert) GetSecret() string\n```\nGetSecret returns the Secret field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetSecretType() string\n```\nGetSecretType returns the SecretType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetSecretTypeDisplayName() string\n```\nGetSecretTypeDisplayName returns the SecretTypeDisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningAlertEvent struct {\n\t// Action is the action that was performed. Possible values are: \"created\", \"resolved\", or \"reopened\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// Alert is the secret scanning alert involved in the event.\n\tAlert *SecretScanningAlert `json:\"alert,omitempty\"`\n\n\t// Only populated by the \"resolved\" and \"reopen\" actions\n\tSender *User `json:\"sender,omitempty\"`\n\t// The following fields are only populated by Webhook events.\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\tEnterprise   *Enterprise   `json:\"enterprise,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nSecretScanningAlertEvent is triggered when a secret scanning alert occurs in a repository. The Webhook name is secret\\_scanning\\_alert.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret\\_scanning\\_alert](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert)\n\n```go\nfunc (s *SecretScanningAlertEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertEvent) GetAlert() *SecretScanningAlert\n```\nGetAlert returns the Alert field.\n\n```go\nfunc (s *SecretScanningAlertEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (s *SecretScanningAlertEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *SecretScanningAlertEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (s *SecretScanningAlertEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (s *SecretScanningAlertEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype SecretScanningAlertListOptions struct {\n\t// State of the secret scanning alerts to list. Set to open or resolved to only list secret scanning alerts in a specific state.\n\tState string `url:\"state,omitempty\"`\n\n\t// A comma-separated list of secret types to return. By default all secret types are returned.\n\tSecretType string `url:\"secret_type,omitempty\"`\n\n\t// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed.\n\t// Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.\n\tResolution string `url:\"resolution,omitempty\"`\n\n\tListCursorOptions\n\n\t// List options can vary on the Enterprise type.\n\t// On Enterprise Cloud, Secret Scan alerts support requesting by page number\n\t// along with providing a cursor for an \"after\" param.\n\t// See: https://docs.github.com/en/enterprise-cloud@latest/rest/secret-scanning#list-secret-scanning-alerts-for-an-organization\n\t// Whereas on Enterprise Server, pagination is by index.\n\t// See: https://docs.github.com/en/enterprise-server@3.6/rest/secret-scanning#list-secret-scanning-alerts-for-an-organization\n\tListOptions\n}\n```\nSecretScanningAlertListOptions specifies optional parameters to the SecretScanningService.ListAlertsForEnterprise method.\n\n```go\ntype SecretScanningAlertLocation struct {\n\tType    *string                             `json:\"type,omitempty\"`\n\tDetails *SecretScanningAlertLocationDetails `json:\"details,omitempty\"`\n}\n```\nSecretScanningAlertLocation represents the location for a secret scanning alert.\n\n```go\nfunc (s *SecretScanningAlertLocation) GetDetails() *SecretScanningAlertLocationDetails\n```\nGetDetails returns the Details field.\n\n```go\nfunc (s *SecretScanningAlertLocation) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningAlertLocationDetails 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\tBlobSHA     *string `json:\"blob_sha,omitempty\"`\n\tBlobURL     *string `json:\"blob_url,omitempty\"`\n\tCommitSHA   *string `json:\"commit_sha,omitempty\"`\n\tCommitURL   *string `json:\"commit_url,omitempty\"`\n}\n```\nSecretScanningAlertLocationDetails represents the location details for a secret scanning alert.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetBlobSHA() string\n```\nGetBlobSHA returns the BlobSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetBlobURL() string\n```\nGetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetCommitSHA() string\n```\nGetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetCommitURL() string\n```\nGetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetEndColumn() int\n```\nGetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetEndLine() int\n```\nGetEndLine returns the EndLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetStartColumn() int\n```\nGetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationDetails) GetStartline() int\n```\nGetStartline returns the Startline field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningAlertUpdateOptions struct {\n\t// Required. Sets the state of the secret scanning alert. Can be either open or resolved.\n\t// You must provide resolution when you set the state to resolved.\n\tState *string `url:\"state,omitempty\"`\n\n\t// A comma-separated list of secret types to return. By default all secret types are returned.\n\tSecretType *string `url:\"secret_type,omitempty\"`\n\n\t// Required when the state is resolved. The reason for resolving the alert. Can be one of false_positive,\n\t// wont_fix, revoked, or used_in_tests.\n\tResolution *string `url:\"resolution,omitempty\"`\n}\n```\nSecretScanningAlertUpdateOptions specifies optional parameters to the SecretScanningService.UpdateAlert method.\n\n```go\nfunc (s *SecretScanningAlertUpdateOptions) GetResolution() string\n```\nGetResolution returns the Resolution field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertUpdateOptions) GetSecretType() string\n```\nGetSecretType returns the SecretType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertUpdateOptions) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningPushProtection struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nSecretScanningPushProtection specifies the state of secret scanning push protection on a repository.\n\nGitHub API docs: [https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-partner-patterns](https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-partner-patterns)\n\n```go\nfunc (s *SecretScanningPushProtection) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s SecretScanningPushProtection) String() string\n```\n\n```go\ntype SecretScanningService service\n```\nSecretScanningService handles communication with the secret scanning related methods of the GitHub API.\n\n```go\nfunc (s *SecretScanningService) GetAlert(ctx context.Context, owner, repo string, number int64) (*SecretScanningAlert, *Response, error)\n```\nGets a single secret scanning alert detected in a private repository.\n\nTo use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo scope or security\\_events scope.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#get-a-secret-scanning-alert](https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#get-a-secret-scanning-alert)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForEnterprise(ctx context.Context, enterprise string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)\n```\nLists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest.\n\nTo use this endpoint, you must be a member of the enterprise, and you must use an access token with the repo scope or security\\_events scope. Alerts are only returned for organizations in the enterprise for which you are an organization owner or a security manager.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-secret-scanning-alerts-for-an-enterprise](https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-secret-scanning-alerts-for-an-enterprise)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForOrg(ctx context.Context, org string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)\n```\nLists secret scanning alerts for eligible repositories in an organization, from newest to oldest.\n\nTo use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo scope or security\\_events scope.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-secret-scanning-alerts-for-an-organization](https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-secret-scanning-alerts-for-an-organization)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForRepo(ctx context.Context, owner, repo string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)\n```\nLists secret scanning alerts for a private repository, from newest to oldest.\n\nTo use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo scope or security\\_events scope.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-secret-scanning-alerts-for-a-repository](https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-secret-scanning-alerts-for-a-repository)\n\n```go\nfunc (s *SecretScanningService) ListLocationsForAlert(ctx context.Context, owner, repo string, number int64, opts *ListOptions) ([]*SecretScanningAlertLocation, *Response, error)\n```\nLists all locations for a given secret scanning alert for a private repository.\n\nTo use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo scope or security\\_events scope.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-locations-for-a-secret-scanning-alert](https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#list-locations-for-a-secret-scanning-alert)\n\n```go\nfunc (s *SecretScanningService) UpdateAlert(ctx context.Context, owner, repo string, number int64, opts *SecretScanningAlertUpdateOptions) (*SecretScanningAlert, *Response, error)\n```\nUpdates the status of a secret scanning alert in a private repository.\n\nTo use this endpoint, you must be an administrator for the repository or organization, and you must use an access token with the repo scope or security\\_events scope.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#update-a-secret-scanning-alert](https://docs.github.com/en/enterprise-server@3.5/rest/secret-scanning#update-a-secret-scanning-alert)\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 SecurityAdvisoriesService service\n```\n\n```go\nfunc (s *SecurityAdvisoriesService) RequestCVE(ctx context.Context, owner, repo, ghsaID string) (*Response, error)\n```\nRequestCVE requests a Common Vulnerabilities and Exposures (CVE) for a repository security advisory. The ghsaID is the GitHub Security Advisory identifier of the advisory.\n\nGitHub API docs: [https://docs.github.com/en/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory](https://docs.github.com/en/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory)\n\n```go\ntype SecurityAdvisory struct {\n\tGHSAID          *string                  `json:\"ghsa_id,omitempty\"`\n\tSummary         *string                  `json:\"summary,omitempty\"`\n\tDescription     *string                  `json:\"description,omitempty\"`\n\tSeverity        *string                  `json:\"severity,omitempty\"`\n\tIdentifiers     []*AdvisoryIdentifier    `json:\"identifiers,omitempty\"`\n\tReferences      []*AdvisoryReference     `json:\"references,omitempty\"`\n\tPublishedAt     *Timestamp               `json:\"published_at,omitempty\"`\n\tUpdatedAt       *Timestamp               `json:\"updated_at,omitempty\"`\n\tWithdrawnAt     *Timestamp               `json:\"withdrawn_at,omitempty\"`\n\tVulnerabilities []*AdvisoryVulnerability `json:\"vulnerabilities,omitempty\"`\n}\n```\nSecurityAdvisory represents the advisory object in SecurityAdvisoryEvent payload.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security\\_advisory](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory)\n\n```go\nfunc (s *SecurityAdvisory) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetGHSAID() string\n```\nGetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetPublishedAt() Timestamp\n```\nGetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetSeverity() string\n```\nGetSeverity returns the Severity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetSummary() string\n```\nGetSummary returns the Summary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetWithdrawnAt() Timestamp\n```\nGetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise.\n\n```go\ntype SecurityAdvisoryEvent struct {\n\tAction           *string           `json:\"action,omitempty\"`\n\tSecurityAdvisory *SecurityAdvisory `json:\"security_advisory,omitempty\"`\n}\n```\nSecurityAdvisoryEvent is triggered when a security-related vulnerability is found in software on GitHub.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security\\_advisory](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory)\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetSecurityAdvisory() *SecurityAdvisory\n```\nGetSecurityAdvisory returns the SecurityAdvisory field.\n\n```go\ntype SecurityAndAnalysis struct {\n\tAdvancedSecurity             *AdvancedSecurity             `json:\"advanced_security,omitempty\"`\n\tSecretScanning               *SecretScanning               `json:\"secret_scanning,omitempty\"`\n\tSecretScanningPushProtection *SecretScanningPushProtection `json:\"secret_scanning_push_protection,omitempty\"`\n\tDependabotSecurityUpdates    *DependabotSecurityUpdates    `json:\"dependabot_security_updates,omitempty\"`\n}\n```\nSecurityAndAnalysis specifies the optional advanced security features that are enabled on a given repository.\n\n```go\nfunc (s *SecurityAndAnalysis) GetAdvancedSecurity() *AdvancedSecurity\n```\nGetAdvancedSecurity returns the AdvancedSecurity field.\n\n```go\nfunc (s *SecurityAndAnalysis) GetDependabotSecurityUpdates() *DependabotSecurityUpdates\n```\nGetDependabotSecurityUpdates returns the DependabotSecurityUpdates field.\n\n```go\nfunc (s *SecurityAndAnalysis) GetSecretScanning() *SecretScanning\n```\nGetSecretScanning returns the SecretScanning field.\n\n```go\nfunc (s *SecurityAndAnalysis) GetSecretScanningPushProtection() *SecretScanningPushProtection\n```\nGetSecretScanningPushProtection returns the SecretScanningPushProtection field.\n\n```go\nfunc (s SecurityAndAnalysis) String() string\n```\n\n```go\ntype SecurityAndAnalysisChange struct {\n\tFrom *SecurityAndAnalysisChangeFrom `json:\"from,omitempty\"`\n}\n```\nSecurityAndAnalysisChange represents the changes when security and analysis features are enabled or disabled for a repository.\n\n```go\nfunc (s *SecurityAndAnalysisChange) GetFrom() *SecurityAndAnalysisChangeFrom\n```\nGetFrom returns the From field.\n\n```go\ntype SecurityAndAnalysisChangeFrom struct {\n\tSecurityAndAnalysis *SecurityAndAnalysis `json:\"security_and_analysis,omitempty\"`\n}\n```\nSecurityAndAnalysisChangeFrom represents which change was made when security and analysis features are enabled or disabled for a repository.\n\n```go\nfunc (s *SecurityAndAnalysisChangeFrom) GetSecurityAndAnalysis() *SecurityAndAnalysis\n```\nGetSecurityAndAnalysis returns the SecurityAndAnalysis field.\n\n```go\ntype SecurityAndAnalysisEvent struct {\n\tChanges      *SecurityAndAnalysisChange `json:\"changes,omitempty\"`\n\tEnterprise   *Enterprise                `json:\"enterprise,omitempty\"`\n\tInstallation *Installation              `json:\"installation,omitempty\"`\n\tOrganization *Organization              `json:\"organization,omitempty\"`\n\tRepository   *Repository                `json:\"repository,omitempty\"`\n\tSender       *User                      `json:\"sender,omitempty\"`\n}\n```\nSecurityAndAnalysisEvent is triggered when code security and analysis features are enabled or disabled for a repository.\n\nGitHub API docs: [https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#security\\_and\\_analysis](https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#security_and_analysis)\n\n```go\nfunc (s *SecurityAndAnalysisEvent) GetChanges() *SecurityAndAnalysisChange\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (s *SecurityAndAnalysisEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (s *SecurityAndAnalysisEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *SecurityAndAnalysisEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (s *SecurityAndAnalysisEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (s *SecurityAndAnalysisEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype SelectedRepoIDs []int64\n```\nSelectedRepoIDs are the repository IDs that have access to the actions secrets.\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 SetRepoAccessRunnerGroupRequest struct {\n\t// Updated list of repository IDs that should be given access to the runner group.\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids\"`\n}\n```\nSetRepoAccessRunnerGroupRequest represents a request to replace the list of repositories that can access a self-hosted runner group configured in an organization.\n\n```go\ntype SetRunnerGroupRunnersRequest struct {\n\t// Updated list of runner IDs that should be given access to the runner group.\n\tRunners []int64 `json:\"runners\"`\n}\n```\nSetRunnerGroupRunnersRequest represents a request to replace the list of self-hosted runners that are part of an organization runner group.\n\n```go\ntype SignatureRequirementEnforcementLevelChanges struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nSignatureRequirementEnforcementLevelChanges represents the changes made to the SignatureRequirementEnforcementLevel policy.\n\n```go\nfunc (s *SignatureRequirementEnforcementLevelChanges) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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/rest/migration/source\\_imports/#get-commit-authors](https://docs.github.com/en/rest/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\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\tInstallation *Installation `json:\"installation,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/developers/webhooks-and-events/webhook-events-and-payloads#star](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#star)\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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *StarEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (s *StarEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (s *StarEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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/developers/webhooks-and-events/webhook-events-and-payloads#status](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#status)\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 StorageBilling struct {\n\tDaysLeftInBillingCycle       int     `json:\"days_left_in_billing_cycle\"`\n\tEstimatedPaidStorageForMonth float64 `json:\"estimated_paid_storage_for_month\"`\n\tEstimatedStorageForMonth     float64 `json:\"estimated_storage_for_month\"`\n}\n```\nStorageBilling represents a GitHub Storage billing.\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 TagProtection struct {\n\tID      *int64  `json:\"id\"`\n\tPattern *string `json:\"pattern\"`\n}\n```\nTagProtection represents a repository tag protection.\n\n```go\nfunc (t *TagProtection) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TagProtection) GetPattern() string\n```\nGetPattern returns the Pattern field if it's non-nil, zero value otherwise.\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// Permissions identifies the permissions that a team has on a given\n\t// repository. This is only populated when calling Repositories.ListTeams.\n\tPermissions map[string]bool `json:\"permissions,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\tHTMLURL         *string       `json:\"html_url,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) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL 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) GetPermissions() map[string]bool\n```\nGetPermissions returns the Permissions map if it's non-nil, an empty map 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/developers/webhooks-and-events/webhook-events-and-payloads#team\\_add](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#team_add)\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.AddTeamRepoByID and TeamsService.AddTeamRepoBySlug methods.\n\n```go\ntype TeamChange struct {\n\tDescription *TeamDescription `json:\"description,omitempty\"`\n\tName        *TeamName        `json:\"name,omitempty\"`\n\tPrivacy     *TeamPrivacy     `json:\"privacy,omitempty\"`\n\tRepository  *TeamRepository  `json:\"repository,omitempty\"`\n}\n```\nTeamChange represents the changes when a team has been edited.\n\n```go\nfunc (t *TeamChange) GetDescription() *TeamDescription\n```\nGetDescription returns the Description field.\n\n```go\nfunc (t *TeamChange) GetName() *TeamName\n```\nGetName returns the Name field.\n\n```go\nfunc (t *TeamChange) GetPrivacy() *TeamPrivacy\n```\nGetPrivacy returns the Privacy field.\n\n```go\nfunc (t *TeamChange) GetRepository() *TeamRepository\n```\nGetRepository returns the Repository field.\n\n```go\ntype TeamDescription struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nTeamDescription represents a team description change.\n\n```go\nfunc (t *TeamDescription) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#team](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#team)\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 TeamName struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nTeamName represents a team name change.\n\n```go\nfunc (t *TeamName) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype TeamPermissions struct {\n\tFrom *TeamPermissionsFrom `json:\"from,omitempty\"`\n}\n```\nTeamPermissions represents a team permission change.\n\n```go\nfunc (t *TeamPermissions) GetFrom() *TeamPermissionsFrom\n```\nGetFrom returns the From field.\n\n```go\ntype TeamPermissionsFrom struct {\n\tAdmin *bool `json:\"admin,omitempty\"`\n\tPull  *bool `json:\"pull,omitempty\"`\n\tPush  *bool `json:\"push,omitempty\"`\n}\n```\nTeamPermissionsFrom represents a team permission change.\n\n```go\nfunc (t *TeamPermissionsFrom) GetAdmin() bool\n```\nGetAdmin returns the Admin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamPermissionsFrom) GetPull() bool\n```\nGetPull returns the Pull field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *TeamPermissionsFrom) GetPush() bool\n```\nGetPush returns the Push field if it's non-nil, zero value otherwise.\n\n```go\ntype TeamPrivacy struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nTeamPrivacy represents a team privacy change.\n\n```go\nfunc (t *TeamPrivacy) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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 TeamRepository struct {\n\tPermissions *TeamPermissions `json:\"permissions,omitempty\"`\n}\n```\nTeamRepository represents a team repository permission change.\n\n```go\nfunc (t *TeamRepository) GetPermissions() *TeamPermissions\n```\nGetPermissions returns the Permissions field.\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/rest/teams/](https://docs.github.com/en/rest/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/rest/teams/members#add-or-update-team-membership-for-a-user](https://docs.github.com/en/rest/teams/members#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/rest/teams/members#add-or-update-team-membership-for-a-user](https://docs.github.com/en/rest/teams/members#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/rest/teams/teams#add-or-update-team-project-permissions](https://docs.github.com/en/rest/teams/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/rest/teams/teams#add-or-update-team-project-permissions](https://docs.github.com/en/rest/teams/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/rest/teams/teams#add-or-update-team-repository-permissions](https://docs.github.com/en/rest/teams/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/rest/teams/teams#add-or-update-team-repository-permissions](https://docs.github.com/en/rest/teams/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/rest/teams/discussion-comments#create-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussion-comments#create-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussions#create-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/discussions#create-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/team-sync#create-or-update-idp-group-connections](https://docs.github.com/en/rest/teams/team-sync#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/rest/teams/team-sync#create-or-update-idp-group-connections](https://docs.github.com/en/rest/teams/team-sync#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/rest/teams/teams#create-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/discussion-comments#delete-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussion-comments#delete-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussions#delete-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/discussions#delete-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/teams#delete-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/teams#delete-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/discussion-comments#update-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussion-comments#update-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussions#update-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/discussions#update-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/teams#update-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/teams#update-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/discussion-comments#get-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussion-comments#get-a-discussion-comment](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussions#get-a-discussion](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/discussions#get-a-discussion](https://docs.github.com/en/rest/teams/discussions#get-a-discussion)\n\n```go\nfunc (s *TeamsService) GetExternalGroup(ctx context.Context, org string, groupID int64) (*ExternalGroup, *Response, error)\n```\nGetExternalGroup fetches an external group.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#get-an-external-group](https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#get-an-external-group)\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/rest/teams/teams#get-a-team-by-name](https://docs.github.com/en/rest/teams/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/rest/teams/teams#get-a-team-by-name](https://docs.github.com/en/rest/teams/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/rest/teams/members#list-team-members](https://docs.github.com/en/rest/teams/members#list-team-members)\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/rest/teams/members#get-team-membership-for-a-user](https://docs.github.com/en/rest/teams/members#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/rest/teams/teams#check-team-permissions-for-a-repository](https://docs.github.com/en/rest/teams/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/rest/teams/teams#check-team-permissions-for-a-repository](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-child-teams](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-child-teams](https://docs.github.com/en/rest/teams/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/rest/teams/discussion-comments#list-discussion-comments](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussion-comments#list-discussion-comments](https://docs.github.com/en/rest/teams/discussion-comments#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/rest/teams/discussions#list-discussions](https://docs.github.com/en/rest/teams/discussions#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/rest/teams/discussions#list-discussions](https://docs.github.com/en/rest/teams/discussions#list-discussions)\n\n```go\nfunc (s *TeamsService) ListExternalGroups(ctx context.Context, org string, opts *ListExternalGroupsOptions) (*ExternalGroupList, *Response, error)\n```\nListExternalGroups lists external groups in an organization on GitHub.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#list-external-groups-in-an-organization](https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#list-external-groups-in-an-organization)\n\n```go\nfunc (s *TeamsService) ListExternalGroupsForTeamBySlug(ctx context.Context, org, slug string) (*ExternalGroupList, *Response, error)\n```\nListExternalGroupsForTeamBySlug lists external groups connected to a team on GitHub.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team](https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team)\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/rest/teams/team-sync#list-idp-groups-for-a-team](https://docs.github.com/en/rest/teams/team-sync#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/rest/teams/team-sync#list-idp-groups-for-a-team](https://docs.github.com/en/rest/teams/team-sync#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/rest/teams/team-sync#list-idp-groups-for-an-organization](https://docs.github.com/en/rest/teams/team-sync#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/rest/teams/members#list-pending-team-invitations](https://docs.github.com/en/rest/teams/members#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/rest/teams/members#list-pending-team-invitations](https://docs.github.com/en/rest/teams/members#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/rest/teams/members#list-team-members](https://docs.github.com/en/rest/teams/members#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/rest/teams/members#list-team-members](https://docs.github.com/en/rest/teams/members#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/rest/teams/teams#list-team-projects](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-team-projects](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-team-repositories](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-team-repositories](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-teams](https://docs.github.com/en/rest/teams/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/rest/teams/teams#list-teams-for-the-authenticated-user](https://docs.github.com/en/rest/teams/teams#list-teams-for-the-authenticated-user)\n\n```go\nfunc (s *TeamsService) RemoveConnectedExternalGroup(ctx context.Context, org, slug string) (*Response, error)\n```\nRemoveConnectedExternalGroup removes the connection between an external group and a team.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team](https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team)\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/rest/teams/members#remove-team-membership-for-a-user](https://docs.github.com/en/rest/teams/members#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/rest/teams/members#remove-team-membership-for-a-user](https://docs.github.com/en/rest/teams/members#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/rest/teams/teams#remove-a-project-from-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/teams#remove-a-project-from-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/teams#remove-a-repository-from-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/teams#remove-a-repository-from-a-team](https://docs.github.com/en/rest/teams/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/rest/teams/teams#check-team-permissions-for-a-project](https://docs.github.com/en/rest/teams/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/rest/teams/teams#check-team-permissions-for-a-project](https://docs.github.com/en/rest/teams/teams#check-team-permissions-for-a-project)\n\n```go\nfunc (s *TeamsService) UpdateConnectedExternalGroup(ctx context.Context, org, slug string, eg *ExternalGroup) (*ExternalGroup, *Response, error)\n```\nUpdateConnectedExternalGroup updates the connection between an external group and a team.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team](https://docs.github.com/en/enterprise-cloud@latest/rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team)\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\tIncludeAllBranches *bool `json:\"include_all_branches,omitempty\"`\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) GetIncludeAllBranches() bool\n```\nGetIncludeAllBranches returns the IncludeAllBranches 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// The person who commented on the issue.\n\tUser *User `json:\"user,omitempty\"`\n\n\t// The person who authored the commit.\n\tAuthor *CommitAuthor `json:\"author,omitempty\"`\n\t// The person who committed the commit on behalf of the author.\n\tCommitter *CommitAuthor `json:\"committer,omitempty\"`\n\t// The SHA of the commit in the pull request.\n\tSHA *string `json:\"sha,omitempty\"`\n\t// The commit message.\n\tMessage *string `json:\"message,omitempty\"`\n\t// A list of parent commits.\n\tParents []*Commit `json:\"parents,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//     reviewed\n\t//       The pull request was reviewed.\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 *Timestamp `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\tAssigner *User `json:\"assigner,omitempty\"`\n\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\t// The state of a submitted review. Can be one of: 'commented',\n\t// 'changes_requested' or 'approved'.\n\t// Only provided for 'reviewed' events.\n\tState *string `json:\"state,omitempty\"`\n\n\t// The person requested to review the pull request.\n\tReviewer *User `json:\"requested_reviewer,omitempty\"`\n\t// RequestedTeam contains the team requested to review the pull request.\n\tRequestedTeam *Team `json:\"requested_team,omitempty\"`\n\t// The person who requested a review.\n\tRequester *User `json:\"review_requester,omitempty\"`\n\n\t// The review summary text.\n\tBody        *string    `json:\"body,omitempty\"`\n\tSubmittedAt *Timestamp `json:\"submitted_at,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/developers/webhooks-and-events/events/issue-event-types](https://docs.github.com/en/developers/webhooks-and-events/events/issue-event-types)\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) GetAssigner() *User\n```\nGetAssigner returns the Assigner field.\n\n```go\nfunc (t *Timeline) GetAuthor() *CommitAuthor\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (t *Timeline) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\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) GetCommitter() *CommitAuthor\n```\nGetCommitter returns the Committer field.\n\n```go\nfunc (t *Timeline) GetCreatedAt() Timestamp\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) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\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) GetRequestedTeam() *Team\n```\nGetRequestedTeam returns the RequestedTeam field.\n\n```go\nfunc (t *Timeline) GetRequester() *User\n```\nGetRequester returns the Requester field.\n\n```go\nfunc (t *Timeline) GetReviewer() *User\n```\nGetReviewer returns the Reviewer field.\n\n```go\nfunc (t *Timeline) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetSource() *Source\n```\nGetSource returns the Source field.\n\n```go\nfunc (t *Timeline) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Timeline) GetSubmittedAt() Timestamp\n```\nGetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise.\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\nfunc (t *Timeline) GetUser() *User\n```\nGetUser returns the User field.\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) GetTime() *time.Time\n```\nGetTime returns std time.Time.\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 Tool struct {\n\tName    *string `json:\"name,omitempty\"`\n\tGUID    *string `json:\"guid,omitempty\"`\n\tVersion *string `json:\"version,omitempty\"`\n}\n```\nTool represents the tool used to generate a GitHub Code Scanning Alert.\n\n```go\nfunc (t *Tool) GetGUID() string\n```\nGetGUID returns the GUID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tool) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Tool) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\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 TotalCacheUsage struct {\n\tTotalActiveCachesUsageSizeInBytes int64 `json:\"total_active_caches_size_in_bytes\"`\n\tTotalActiveCachesCount            int   `json:\"total_active_caches_count\"`\n}\n```\nTotalCacheUsage represents total GitHub actions cache usage of an organization or enterprise.\n\nGitHub API docs: [https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise](https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise)\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\tNewName  *string `json:\"new_name,omitempty\"`\n\tTeamID   []int64 `json:\"team_ids,omitempty\"`\n}\n```\nTransferRequest represents a request to transfer a repository.\n\n```go\nfunc (t *TransferRequest) GetNewName() string\n```\nGetNewName returns the NewName field if it's non-nil, zero value otherwise.\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/rest/#unauthenticated-rate-limited-requests](https://docs.github.com/en/rest/#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 UpdateAllowsFetchAndMergeRuleParameters struct {\n\tUpdateAllowsFetchAndMerge bool `json:\"update_allows_fetch_and_merge\"`\n}\n```\nUpdateAllowsFetchAndMergeRuleParameters represents the update rule parameters.\n\n```go\ntype UpdateAttributeForSCIMUserOperations struct {\n\tOp    string          `json:\"op\"`              // (Required.)\n\tPath  *string         `json:\"path,omitempty\"`  // (Optional.)\n\tValue json.RawMessage `json:\"value,omitempty\"` // (Optional.)\n}\n```\nUpdateAttributeForSCIMUserOperations represents operations for UpdateAttributeForSCIMUser.\n\n```go\nfunc (u *UpdateAttributeForSCIMUserOperations) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateAttributeForSCIMUserOptions struct {\n\tSchemas    []string                             `json:\"schemas,omitempty\"` // (Optional.)\n\tOperations UpdateAttributeForSCIMUserOperations `json:\"operations\"`        // Set of operations to be performed. (Required.)\n}\n```\nUpdateAttributeForSCIMUserOptions represents options for UpdateAttributeForSCIMUser.\n\nGitHub API docs: [https://docs.github.com/en/rest/scim#update-an-attribute-for-a-scim-user--parameters](https://docs.github.com/en/rest/scim#update-an-attribute-for-a-scim-user--parameters)\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 UpdateDefaultSetupConfigurationOptions struct {\n\tState      string   `json:\"state\"`\n\tQuerySuite *string  `json:\"query_suite,omitempty\"`\n\tLanguages  []string `json:\"languages,omitempty\"`\n}\n```\nUpdateDefaultSetupConfigurationOptions specifies parameters to the CodeScanningService.UpdateDefaultSetupConfiguration method.\n\n```go\nfunc (u *UpdateDefaultSetupConfigurationOptions) GetQuerySuite() string\n```\nGetQuerySuite returns the QuerySuite field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateDefaultSetupConfigurationResponse struct {\n\tRunID  *int64  `json:\"run_id,omitempty\"`\n\tRunURL *string `json:\"run_url,omitempty\"`\n}\n```\nUpdateDefaultSetupConfigurationResponse represents a response from updating a code scanning default setup configuration.\n\n```go\nfunc (u *UpdateDefaultSetupConfigurationResponse) GetRunID() int64\n```\nGetRunID returns the RunID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateDefaultSetupConfigurationResponse) GetRunURL() string\n```\nGetRunURL returns the RunURL field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateRunnerGroupRequest struct {\n\tName                     *string  `json:\"name,omitempty\"`\n\tVisibility               *string  `json:\"visibility,omitempty\"`\n\tAllowsPublicRepositories *bool    `json:\"allows_public_repositories,omitempty\"`\n\tRestrictedToWorkflows    *bool    `json:\"restricted_to_workflows,omitempty\"`\n\tSelectedWorkflows        []string `json:\"selected_workflows,omitempty\"`\n}\n```\nUpdateRunnerGroupRequest represents a request to update a Runner group for an organization.\n\n```go\nfunc (u *UpdateRunnerGroupRequest) GetAllowsPublicRepositories() bool\n```\nGetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateRunnerGroupRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateRunnerGroupRequest) GetRestrictedToWorkflows() bool\n```\nGetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateRunnerGroupRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility 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       *int64     `json:\"total_private_repos,omitempty\"`\n\tOwnedPrivateRepos       *int64     `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/rest/search/#text-match-metadata\n\tTextMatches []*TextMatch `json:\"text_matches,omitempty\"`\n\n\t// Permissions and RoleName identify the permissions and role that a user has on a given\n\t// repository. These are only populated when calling Repositories.ListCollaborators.\n\tPermissions map[string]bool `json:\"permissions,omitempty\"`\n\tRoleName    *string         `json:\"role_name,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() int64\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 map if it's non-nil, an empty map 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) GetRoleName() string\n```\nGetRoleName returns the RoleName 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() int64\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\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation 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/rest/users/](https://docs.github.com/en/rest/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/rest/collaborators/invitations#accept-a-repository-invitation](https://docs.github.com/en/rest/collaborators/invitations#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/rest/users/emails#add-an-email-address-for-the-authenticated-user](https://docs.github.com/en/rest/users/emails#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/rest/users/blocking#block-a-user](https://docs.github.com/en/rest/users/blocking#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/rest/users/gpg-keys#create-a-gpg-key](https://docs.github.com/en/rest/users/gpg-keys#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/rest/users/keys#create-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/keys#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/rest/projects/projects#create-a-user-project](https://docs.github.com/en/rest/projects/projects#create-a-user-project)\n\n```go\nfunc (s *UsersService) CreateSSHSigningKey(ctx context.Context, key *Key) (*SSHSigningKey, *Response, error)\n```\nCreateSSHSigningKey adds a SSH signing key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/users/ssh-signing-keys#create-a-ssh-signing-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/ssh-signing-keys#create-a-ssh-signing-key-for-the-authenticated-user)\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/rest/collaborators/invitations#decline-a-repository-invitation](https://docs.github.com/en/rest/collaborators/invitations#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/rest/users/emails#delete-an-email-address-for-the-authenticated-user](https://docs.github.com/en/rest/users/emails#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/rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/gpg-keys#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/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) DeletePackage(ctx context.Context, user, packageType, packageName string) (*Response, error)\n```\nDelete a package from a user. Passing the empty string for \"user\" will delete the package for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#delete-a-package-for-the-authenticated-user](https://docs.github.com/en/rest/packages#delete-a-package-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#delete-a-package-for-a-user](https://docs.github.com/en/rest/packages#delete-a-package-for-a-user)\n\n```go\nfunc (s *UsersService) DeleteSSHSigningKey(ctx context.Context, id int64) (*Response, error)\n```\nDeleteKey deletes a SSH signing key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/ssh-signing-keys#delete-an-ssh-signing-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/rest/users/users#update-the-authenticated-user](https://docs.github.com/en/rest/users/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/rest/users/followers#follow-a-user](https://docs.github.com/en/rest/users/followers#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/rest/users/users#get-the-authenticated-user](https://docs.github.com/en/rest/users/users#get-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/users/users#get-a-user](https://docs.github.com/en/rest/users/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/rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/gpg-keys#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/rest/users/users#get-contextual-information-for-a-user](https://docs.github.com/en/rest/users/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/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) GetPackage(ctx context.Context, user, packageType, packageName string) (*Package, *Response, error)\n```\nGet a package by name for a user. Passing the empty string for \"user\" will get the package for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#get-a-package-for-the-authenticated-user](https://docs.github.com/en/rest/packages#get-a-package-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#get-a-package-for-a-user](https://docs.github.com/en/rest/packages#get-a-package-for-a-user)\n\n```go\nfunc (s *UsersService) GetSSHSigningKey(ctx context.Context, id int64) (*SSHSigningKey, *Response, error)\n```\nGetSSHSigningKey fetches a single SSH signing key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user](https://docs.github.com/en/rest/users/ssh-signing-keys#get-an-ssh-signing-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/rest/users/blocking#check-if-a-user-is-blocked-by-the-authenticated-user](https://docs.github.com/en/rest/users/blocking#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/rest/users/followers#check-if-a-person-is-followed-by-the-authenticated-user](https://docs.github.com/en/rest/users/followers#check-if-a-person-is-followed-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/users/followers#check-if-a-user-follows-another-user](https://docs.github.com/en/rest/users/followers#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/rest/users/users#list-users](https://docs.github.com/en/rest/users/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/rest/users/blocking#list-users-blocked-by-the-authenticated-user](https://docs.github.com/en/rest/users/blocking#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/rest/users/emails#list-email-addresses-for-the-authenticated-user](https://docs.github.com/en/rest/users/emails#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/rest/users/followers#list-followers-of-the-authenticated-user](https://docs.github.com/en/rest/users/followers#list-followers-of-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/users/followers#list-followers-of-a-user](https://docs.github.com/en/rest/users/followers#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/rest/users/followers#list-the-people-the-authenticated-user-follows](https://docs.github.com/en/rest/users/followers#list-the-people-the-authenticated-user-follows) GitHub API docs: [https://docs.github.com/en/rest/users/followers#list-the-people-a-user-follows](https://docs.github.com/en/rest/users/followers#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/rest/users/gpg-keys#list-gpg-keys-for-the-authenticated-user](https://docs.github.com/en/rest/users/gpg-keys#list-gpg-keys-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/users/gpg-keys#list-gpg-keys-for-a-user](https://docs.github.com/en/rest/users/gpg-keys#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/rest/collaborators/invitations#list-repository-invitations-for-the-authenticated-user](https://docs.github.com/en/rest/collaborators/invitations#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/rest/users/keys#list-public-ssh-keys-for-the-authenticated-user](https://docs.github.com/en/rest/users/keys#list-public-ssh-keys-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/users/keys#list-public-keys-for-a-user](https://docs.github.com/en/rest/users/keys#list-public-keys-for-a-user)\n\n```go\nfunc (s *UsersService) ListPackages(ctx context.Context, user string, opts *PackageListOptions) ([]*Package, *Response, error)\n```\nList the packages for a user. Passing the empty string for \"user\" will list packages for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#list-packages-for-the-authenticated-users-namespace](https://docs.github.com/en/rest/packages#list-packages-for-the-authenticated-users-namespace) GitHub API docs: [https://docs.github.com/en/rest/packages#list-packages-for-a-user](https://docs.github.com/en/rest/packages#list-packages-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/rest/projects/projects#list-user-projects](https://docs.github.com/en/rest/projects/projects#list-user-projects)\n\n```go\nfunc (s *UsersService) ListSSHSigningKeys(ctx context.Context, user string, opts *ListOptions) ([]*SSHSigningKey, *Response, error)\n```\nListSSHSigningKeys lists the SSH signing keys for a user. Passing an empty username string will fetch SSH signing keys for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-the-authenticated-user](https://docs.github.com/en/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-a-user](https://docs.github.com/en/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-a-user)\n\n```go\nfunc (s *UsersService) PackageDeleteVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nDelete a package version for a user. Passing the empty string for \"user\" will delete the version for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#delete-a-package-version-for-the-authenticated-user](https://docs.github.com/en/rest/packages#delete-a-package-version-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#delete-package-version-for-a-user](https://docs.github.com/en/rest/packages#delete-package-version-for-a-user)\n\n```go\nfunc (s *UsersService) PackageGetAllVersions(ctx context.Context, user, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error)\n```\nGet all versions of a package for a user. Passing the empty string for \"user\" will get versions for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#get-all-package-versions-for-a-package-owned-by-the-authenticated-user](https://docs.github.com/en/rest/packages#get-all-package-versions-for-a-package-owned-by-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#get-all-package-versions-for-a-package-owned-by-a-user](https://docs.github.com/en/rest/packages#get-all-package-versions-for-a-package-owned-by-a-user)\n\n```go\nfunc (s *UsersService) PackageGetVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error)\n```\nGet a specific version of a package for a user. Passing the empty string for \"user\" will get the version for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#get-a-package-version-for-the-authenticated-user](https://docs.github.com/en/rest/packages#get-a-package-version-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#get-a-package-version-for-a-user](https://docs.github.com/en/rest/packages#get-a-package-version-for-a-user)\n\n```go\nfunc (s *UsersService) PackageRestoreVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nRestore a package version to a user. Passing the empty string for \"user\" will restore the version for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#restore-a-package-version-for-the-authenticated-user](https://docs.github.com/en/rest/packages#restore-a-package-version-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#restore-package-version-for-a-user](https://docs.github.com/en/rest/packages#restore-package-version-for-a-user)\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) RestorePackage(ctx context.Context, user, packageType, packageName string) (*Response, error)\n```\nRestore a package to a user. Passing the empty string for \"user\" will restore the package for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/en/rest/packages#restore-a-package-for-the-authenticated-user](https://docs.github.com/en/rest/packages#restore-a-package-for-the-authenticated-user) GitHub API docs: [https://docs.github.com/en/rest/packages#restore-a-package-for-a-user](https://docs.github.com/en/rest/packages#restore-a-package-for-a-user)\n\n```go\nfunc (s *UsersService) SetEmailVisibility(ctx context.Context, visibility string) ([]*UserEmail, *Response, error)\n```\nSetEmailVisibility sets the visibility for the primary email address of the authenticated user. \\`visibility\\` can be \"private\" or \"public\".\n\nGitHub API docs: [https://docs.github.com/en/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user](https://docs.github.com/en/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user)\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/rest/users/blocking#unblock-a-user](https://docs.github.com/en/rest/users/blocking#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/rest/users/followers#unfollow-a-user](https://docs.github.com/en/rest/users/followers#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 VulnerabilityPackage struct {\n\tEcosystem *string `json:\"ecosystem,omitempty\"`\n\tName      *string `json:\"name,omitempty\"`\n}\n```\nVulnerabilityPackage represents the package object for an Advisory Vulnerability.\n\n```go\nfunc (v *VulnerabilityPackage) GetEcosystem() string\n```\nGetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise.\n\n```go\nfunc (v *VulnerabilityPackage) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#watch](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#watch)\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 = CommitAuthor\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\nDeprecated: Please use CommitAuthor instead. NOTE Breaking API change: the \\`Username\\` field is now called \\`Login\\`.\n\n```go\ntype WebHookCommit = HeadCommit\n```\nWebHookCommit represents the commit variant we receive from GitHub in a WebHookPayload.\n\nDeprecated: Please use HeadCommit instead.\n\n```go\ntype WebHookPayload = PushEvent\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\nDeprecated: Please use PushEvent instead.\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 WorkflowBillMap map[string]*WorkflowBill\n```\nWorkflowBillMap represents different runner environments available for a workflow. Its key is the name of its environment, e.g. \"UBUNTU\", \"MACOS\", \"WINDOWS\", etc.\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\tInstallation *Installation `json:\"installation,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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\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 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\tHeadBranch  *string     `json:\"head_branch,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\tCreatedAt   *Timestamp  `json:\"created_at,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\t// Labels represents runner labels from the `runs-on:` key from a GitHub Actions workflow.\n\tLabels          []string `json:\"labels,omitempty\"`\n\tRunnerID        *int64   `json:\"runner_id,omitempty\"`\n\tRunnerName      *string  `json:\"runner_name,omitempty\"`\n\tRunnerGroupID   *int64   `json:\"runner_group_id,omitempty\"`\n\tRunnerGroupName *string  `json:\"runner_group_name,omitempty\"`\n\tRunAttempt      *int64   `json:\"run_attempt,omitempty\"`\n\tWorkflowName    *string  `json:\"workflow_name,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) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt 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) GetHeadBranch() string\n```\nGetHeadBranch returns the HeadBranch 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) GetRunAttempt() int64\n```\nGetRunAttempt returns the RunAttempt 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) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetRunnerGroupName() string\n```\nGetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetRunnerID() int64\n```\nGetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJob) GetRunnerName() string\n```\nGetRunnerName returns the RunnerName 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\nfunc (w *WorkflowJob) GetWorkflowName() string\n```\nGetWorkflowName returns the WorkflowName field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowJobEvent struct {\n\tWorkflowJob *WorkflowJob `json:\"workflow_job,omitempty\"`\n\n\tAction *string `json:\"action,omitempty\"`\n\n\t// Org is not nil when the webhook is configured for an organization or the event\n\t// occurs from activity in a repository owned by an organization.\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nWorkflowJobEvent is triggered when a job is queued, started or completed.\n\nGitHub API docs: [https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow\\_job](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job)\n\n```go\nfunc (w *WorkflowJobEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (w *WorkflowJobEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (w *WorkflowJobEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (w *WorkflowJobEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (w *WorkflowJobEvent) GetWorkflowJob() *WorkflowJob\n```\nGetWorkflowJob returns the WorkflowJob field.\n\n```go\ntype WorkflowRun struct {\n\tID                 *int64         `json:\"id,omitempty\"`\n\tName               *string        `json:\"name,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\tRunAttempt         *int           `json:\"run_attempt,omitempty\"`\n\tEvent              *string        `json:\"event,omitempty\"`\n\tDisplayTitle       *string        `json:\"display_title,omitempty\"`\n\tStatus             *string        `json:\"status,omitempty\"`\n\tConclusion         *string        `json:\"conclusion,omitempty\"`\n\tWorkflowID         *int64         `json:\"workflow_id,omitempty\"`\n\tCheckSuiteID       *int64         `json:\"check_suite_id,omitempty\"`\n\tCheckSuiteNodeID   *string        `json:\"check_suite_node_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\tRunStartedAt       *Timestamp     `json:\"run_started_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\tPreviousAttemptURL *string        `json:\"previous_attempt_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\tActor              *User          `json:\"actor,omitempty\"`\n\tTriggeringActor    *User          `json:\"triggering_actor,omitempty\"`\n}\n```\nWorkflowRun represents a repository action workflow run.\n\n```go\nfunc (w *WorkflowRun) GetActor() *User\n```\nGetActor returns the Actor field.\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) GetCheckSuiteID() int64\n```\nGetCheckSuiteID returns the CheckSuiteID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRun) GetCheckSuiteNodeID() string\n```\nGetCheckSuiteNodeID returns the CheckSuiteNodeID 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) GetDisplayTitle() string\n```\nGetDisplayTitle returns the DisplayTitle 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) GetName() string\n```\nGetName returns the Name 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) GetPreviousAttemptURL() string\n```\nGetPreviousAttemptURL returns the PreviousAttemptURL 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) GetRunAttempt() int\n```\nGetRunAttempt returns the RunAttempt 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) GetRunStartedAt() Timestamp\n```\nGetRunStartedAt returns the RunStartedAt 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) GetTriggeringActor() *User\n```\nGetTriggeringActor returns the TriggeringActor field.\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 WorkflowRunAttemptOptions struct {\n\tExcludePullRequests *bool `url:\"exclude_pull_requests,omitempty\"`\n}\n```\nWorkflowRunAttemptOptions specifies optional parameters to GetWorkflowRunAttempt.\n\n```go\nfunc (w *WorkflowRunAttemptOptions) GetExcludePullRequests() bool\n```\nGetExcludePullRequests returns the ExcludePullRequests 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\tJobRuns []*WorkflowRunJobRun `json:\"job_runs,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 WorkflowRunBillMap map[string]*WorkflowRunBill\n```\nWorkflowRunBillMap represents different runner environments available for a workflow run. Its key is the name of its environment, e.g. \"UBUNTU\", \"MACOS\", \"WINDOWS\", etc.\n\n```go\ntype WorkflowRunEvent struct {\n\tAction      *string      `json:\"action,omitempty\"`\n\tWorkflow    *Workflow    `json:\"workflow,omitempty\"`\n\tWorkflowRun *WorkflowRun `json:\"workflow_run,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\tInstallation *Installation `json:\"installation,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) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\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\nfunc (w *WorkflowRunEvent) GetWorkflow() *Workflow\n```\nGetWorkflow returns the Workflow field.\n\n```go\nfunc (w *WorkflowRunEvent) GetWorkflowRun() *WorkflowRun\n```\nGetWorkflowRun returns the WorkflowRun field.\n\n```go\ntype WorkflowRunJobRun struct {\n\tJobID      *int   `json:\"job_id,omitempty\"`\n\tDurationMS *int64 `json:\"duration_ms,omitempty\"`\n}\n```\nWorkflowRunJobRun represents a usage of individual jobs of a specific workflow run.\n\n```go\nfunc (w *WorkflowRunJobRun) GetDurationMS() int64\n```\nGetDurationMS returns the DurationMS field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowRunJobRun) GetJobID() int\n```\nGetJobID returns the JobID field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowRunUsage struct {\n\tBillable      *WorkflowRunBillMap `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() *WorkflowRunBillMap\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 *WorkflowBillMap `json:\"billable,omitempty\"`\n}\n```\nWorkflowUsage represents a usage of a specific workflow.\n\n```go\nfunc (w *WorkflowUsage) GetBillable() *WorkflowBillMap\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/v54/github","name":"github","synopsis":"Package github provides a client for using the GitHub API.","isRedistributable":true}
