{"modulePath":"github.com/google/go-github/v93","version":"v93.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/v93/github\"\n\nConstruct a new GitHub client using [NewClient](#NewClient), then use the various services on the client to access different parts of the GitHub API. For example:\n\n\tclient, err := github.NewClient()\n\tif err != nil {\n\t\t// Handle error.\n\t}\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, err := github.NewClient()\n\tif err != nil {\n\t\t// Handle error.\n\t}\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/rest?apiVersion=2022-11-28](https://docs.github.com/rest?apiVersion=2022-11-28).\n\nNOTE: Using the [context](/context) package, one can easily pass cancellation signals and deadlines to various services of the client for handling a request. In case there is no context available, then [context.Background](/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\nUse [WithAuthToken](#WithAuthToken) to configure your client to authenticate using an OAuth token (for example, a personal access token). This is what is needed for a majority of use cases aside from GitHub Apps.\n\n\tclient, err := github.NewClient(github.WithAuthToken(\"... your access token ...\"))\n\tif err != nil {\n\t\t// Handle error.\n\t}\n\nNote that when using an authenticated [Client](#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\nFor API methods that require HTTP Basic Authentication, use the [BasicAuthTransport](#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. Use the [WithTransport](#WithTransport) option to configure your client to use the appropriate transport.\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, err := github.NewClient(github.WithTransport(itr))\n\t\tif err != nil {\n\t\t\t// Handle error.\n\t\t}\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, err := github.NewClient(github.WithTransport(atr))\n\t\tif err != nil {\n\t\t\t// Handle error.\n\t\t}\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](#UnauthenticatedRateLimitedTransport).\n\nThe returned [Response](#Response).[Rate](#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 \\*[RateLimitError](#RateLimitError). For secondary rate limits, you can check if its type is \\*[AbuseRateLimitError](#AbuseRateLimitError):\n\n\trepos, _, err := client.Repositories.List(ctx, \"\", nil)\n\tif errors.As(err, new(*github.RateLimitError)) {\n\t\tlog.Println(\"hit rate limit\")\n\t}\n\tif errors.As(err, new(*github.AbuseRateLimitError)) {\n\t\tlog.Println(\"hit secondary rate limit\")\n\t}\n\nLearn more about GitHub rate limiting at [https://docs.github.com/rest/rate-limit?apiVersion=2022-11-28](https://docs.github.com/rest/rate-limit?apiVersion=2022-11-28).\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 \\*[AcceptedError](#AcceptedError):\n\n\tstats, _, err := client.Repositories.ListContributorsStats(ctx, org, repo)\n\tif errors.As(err, new(*github.AcceptedError)) {\n\t\tlog.Println(\"scheduled on GitHub side\")\n\t}\n\n### Conditional Requests {#hdr-Conditional_Requests}\n\nThe GitHub REST API has good support for conditional HTTP requests via the ETag header 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](/net/http#Transport).\n\nTypically, an RFC 9111 compliant HTTP cache such as [https://github.com/bartventer/httpcache](https://github.com/bartventer/httpcache) is recommended. Alternatively, the [https://github.com/bored-engineer/github-conditional-http-transport](https://github.com/bored-engineer/github-conditional-http-transport) package relies on (undocumented) GitHub specific cache logic and is recommended when making requests using short-lived credentials such as a GitHub App installation token.\n\nLearn more about GitHub conditional requests at [https://docs.github.com/rest/using-the-rest-api/best-practices-for-using-the-rest-api?apiVersion=2022-11-28#use-conditional-requests-if-appropriate](https://docs.github.com/rest/using-the-rest-api/best-practices-for-using-the-rest-api?apiVersion=2022-11-28#use-conditional-requests-if-appropriate).\n\n### Creating and Updating Resources {#hdr-Creating_and_Updating_Resources}\n\nMany resource and request structs use pointers for optional scalar fields. This allows distinguishing between unset fields and those set to a zero-value. Required fields such as [CreateRepositoryRequest.Name](#CreateRepositoryRequest.Name) use value types. Use the new builtin 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 := github.CreateRepositoryRequest{\n\t\tName:    \"foo\",\n\t\tPrivate: new(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 [ListOptions](#ListOptions) struct and passed to the list methods directly or as an embedded type of a more specific list options struct (for example [PullRequestListOptions](#PullRequestListOptions)). Pages information is available via the [Response](#Response) struct.\n\n\tclient, err := github.NewClient()\n\tif err != nil {\n\t\t// Handle error.\n\t}\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\tBudgetScopeEnterprise   = \"enterprise\"\n\tBudgetScopeOrganization = \"organization\"\n\tBudgetScopeRepository   = \"repository\"\n\tBudgetScopeCostCenter   = \"cost_center\"\n)\n```\nBudgetScope constants represent the scope of the budget.\n\n```go\nconst (\n\tBudgetTypeProductPricing = \"ProductPricing\"\n\tBudgetTypeSkuPricing     = \"SkuPricing\"\n)\n```\nBudgetType constants represent the type of pricing for the budget.\n\n```go\nconst (\n\tVersion = \"v93.0.0\"\n\n\tHeaderRateLimit     = \"X-Ratelimit-Limit\"\n\tHeaderRateRemaining = \"X-Ratelimit-Remaining\"\n\tHeaderRateReset     = \"X-Ratelimit-Reset\"\n\tHeaderRateResource  = \"X-Ratelimit-Resource\"\n\tHeaderRateUsed      = \"X-Ratelimit-Used\"\n\tHeaderRequestID     = \"X-Github-Request-Id\"\n)\n```\n\n```go\nconst (\n\t// BypassRateLimitCheck prevents a pre-emptive check for exceeded primary rate limits\n\t// Specify this by providing a context with this key, e.g.\n\t//   context.WithValue(context.Background(), github.BypassRateLimitCheck, true)\n\tBypassRateLimitCheck requestContext = iota\n\n\tSleepUntilPrimaryRateLimitResetWhenRateLimited\n)\n```\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 SCIMSchemasURINamespacesGroups = \"urn:ietf:params:scim:schemas:core:2.0:Group\"\n```\nSCIMSchemasURINamespacesGroups is the SCIM schema URI namespace for group resources. This constant represents the standard SCIM core schema for group objects as defined by RFC 7643.\n\n```go\nconst SCIMSchemasURINamespacesListResponse = \"urn:ietf:params:scim:api:messages:2.0:ListResponse\"\n```\nSCIMSchemasURINamespacesListResponse is the SCIM schema URI namespace for list response resources. This constant represents the standard SCIM namespace for list responses used in paginated queries, as defined by RFC 7644.\n\n```go\nconst SCIMSchemasURINamespacesPatchOp = \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n```\nSCIMSchemasURINamespacesPatchOp is the SCIM schema URI namespace for patch operations. This constant represents the standard SCIM namespace for patch operations as defined by RFC 7644.\n\n```go\nconst SCIMSchemasURINamespacesUser = \"urn:ietf:params:scim:schemas:core:2.0:User\"\n```\nSCIMSchemasURINamespacesUser is the SCIM schema URI namespace for user resources. This constant represents the standard SCIM core schema for user objects as defined by RFC 7643.\n\n## Variables\n\n```go\nvar ErrBranchNotProtected = errors.New(\"branch is not protected\")\n```\n\n```go\nvar ErrContentsDirectory = errors.New(\"contents not available for directory\")\n```\nErrContentsDirectory indicates that the contents are not available for a directory.\n\n```go\nvar ErrContentsNoDownloadURL = errors.New(\"contents download url is empty\")\n```\nErrContentsNoDownloadURL indicates that the contents download URL is empty, which may occur when file size \u003e 100 MB.\n\n```go\nvar ErrContentsSubmodule = errors.New(\"contents not available for submodule\")\n```\nErrContentsSubmodule indicates that the contents are not available for a submodule.\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```\nErrPathForbidden is returned when a URL path contains \"..\" as a path segment, which could allow path traversal attacks.\n\n```go\nvar ErrUnsupportedAPIVersion = errors.New(\"unsupported api version\")\n```\nErrUnsupportedAPIVersion is returned when the API version specified in the request is not supported by the client.\n\n```go\nvar ErrUntrustedDestination = errors.New(\"refusing to send a request body to a destination the client is not configured for\")\n```\nErrUntrustedDestination is returned by [Client.NewUploadRequest](#Client.NewUploadRequest) and [Client.NewFormRequest](#Client.NewFormRequest) when a request they build would send its body to an origin this client was not configured for.\n\nThe URL for such a request is routinely read out of an API response — a release's UploadURL is the usual case — so the host in one is chosen by whoever answered the request rather than by the caller. A response naming a foreign host must not be able to take the caller's bytes, and an error is the only safe answer: sending the payload unauthenticated, the way a credential is withheld, would report success for a request that never reached GitHub.\n\nConfigure the destination with [WithURLs](#WithURLs) or [WithEnterpriseURLs](#WithEnterpriseURLs) if a request legitimately belongs on a host other than BaseURL or UploadURL.\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\nDeprecated: use Ptr instead.\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](#ErrorResponse).\n\nOn error responses other than 202 Accepted, CheckResponse consumes r.Body and replaces it with an in-memory copy so that the error body can be re-read. Closing r.Body after CheckResponse returns therefore closes only the copy: to release the original body and its underlying connection, capture r.Body before the call and close the captured body instead.\n\nThe error type will be \\*[RateLimitError](#RateLimitError) for rate limit exceeded errors, \\*[AcceptedError](#AcceptedError) for 202 Accepted status codes, \\*[TwoFactorAuthError](#TwoFactorAuthError) for two-factor authentication errors, and \\*[RedirectionError](#RedirectionError) for redirect status codes (only happens when ignoring redirections).\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/developers/webhooks-and-events/events/github-event-types](https://docs.github.com/developers/webhooks-and-events/events/github-event-types)\n\n```go\nfunc EventForType(messageType string) any\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\nDeprecated: use Ptr instead.\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\nDeprecated: use Ptr instead.\n\n```go\nfunc MessageTypes() []string\n```\nMessageTypes 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) (any, 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](#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\tpayload, err := github.ValidatePayload(r, s.webhookSecretKey)\n\t\tif err != nil { ... }\n\t\tevent, err := github.ParseWebHook(github.WebHookType(r), payload)\n\t\tif err != nil { ... }\n\t\tswitch event := event.(type) {\n\t\tcase *github.CommitCommentEvent:\n\t\t\tprocessCommitCommentEvent(event)\n\t\tcase *github.CreateEvent:\n\t\t\tprocessCreateEvent(event)\n\t\t...\n\t\t}\n\t}\n\n```go\nfunc Ptr[T any](v T) *T\n```\nPtr is a helper routine that allocates a new T value to store v and returns a pointer to it.\n\nDeprecated: use the new builtin instead.\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\nDeprecated: use Ptr instead.\n\n```go\nfunc Stringify(message any) 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\tpayload, err := github.ValidatePayload(r, s.webhookSecretKey)\n\t\tif err != nil { ... }\n\t\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\t// read signature from request\n\t\tsignature := \"\"\n\t\tpayload, err := github.ValidatePayloadFromBody(r.Header.Get(\"Content-Type\"), r.Body, signature, s.webhookSecretKey)\n\t\tif err != nil { ... }\n\t\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/developers/webhooks-and-events/events/github-event-types](https://docs.github.com/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 Packages.\n\tPackages []string `json:\"packages,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 specifying the addresses that source imports\n\t// will originate from on GitHub Enterprise Cloud.\n\tGithubEnterpriseImporter []string `json:\"github_enterprise_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// GitHub Action macOS runner will originate from.\n\tActionsMacos []string `json:\"actions_macos,omitempty\"`\n\n\t// An array of IP addresses in CIDR format specifying the IP addresses\n\t// GitHub Codespaces will originate from.\n\tCodespaces []string `json:\"codespaces,omitempty\"`\n\n\t// An array of IP addresses in CIDR format specifying the IP addresses\n\t// GitHub Copilot will originate from.\n\tCopilot []string `json:\"copilot,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\t// GitHub services and their associated domains. Note that many of these domains\n\t// are represented as wildcards (e.g. \"*.github.com\").\n\tDomains *APIMetaDomains `json:\"domains,omitempty\"`\n}\n```\nAPIMeta represents metadata about the GitHub API.\n\n```go\nfunc (a *APIMeta) GetAPI() []string\n```\nGetAPI returns the API slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetActions() []string\n```\nGetActions returns the Actions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetActionsMacos() []string\n```\nGetActionsMacos returns the ActionsMacos slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetCodespaces() []string\n```\nGetCodespaces returns the Codespaces slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetCopilot() []string\n```\nGetCopilot returns the Copilot slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetDependabot() []string\n```\nGetDependabot returns the Dependabot slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetDomains() *APIMetaDomains\n```\nGetDomains returns the Domains field.\n\n```go\nfunc (a *APIMeta) GetGit() []string\n```\nGetGit returns the Git slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetGithubEnterpriseImporter() []string\n```\nGetGithubEnterpriseImporter returns the GithubEnterpriseImporter slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetHooks() []string\n```\nGetHooks returns the Hooks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetImporter() []string\n```\nGetImporter returns the Importer slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetPackages() []string\n```\nGetPackages returns the Packages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMeta) GetPages() []string\n```\nGetPages returns the Pages slice if it's non-nil, nil otherwise.\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) GetSSHKeys() []string\n```\nGetSSHKeys returns the SSHKeys slice if it's non-nil, nil 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\nfunc (a *APIMeta) GetWeb() []string\n```\nGetWeb returns the Web slice if it's non-nil, nil otherwise.\n\n```go\ntype APIMetaArtifactAttestations struct {\n\tTrustDomain string   `json:\"trust_domain,omitempty\"`\n\tServices    []string `json:\"services,omitempty\"`\n}\n```\nAPIMetaArtifactAttestations represents the artifact attestation services domains.\n\n```go\nfunc (a *APIMetaArtifactAttestations) GetServices() []string\n```\nGetServices returns the Services slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMetaArtifactAttestations) GetTrustDomain() string\n```\nGetTrustDomain returns the TrustDomain field.\n\n```go\ntype APIMetaDomains struct {\n\tWebsite              []string                     `json:\"website,omitempty\"`\n\tCodespaces           []string                     `json:\"codespaces,omitempty\"`\n\tCopilot              []string                     `json:\"copilot,omitempty\"`\n\tPackages             []string                     `json:\"packages,omitempty\"`\n\tActions              []string                     `json:\"actions,omitempty\"`\n\tActionsInbound       *ActionsInboundDomains       `json:\"actions_inbound,omitempty\"`\n\tArtifactAttestations *APIMetaArtifactAttestations `json:\"artifact_attestations,omitempty\"`\n}\n```\nAPIMetaDomains represents the domains associated with GitHub services.\n\n```go\nfunc (a *APIMetaDomains) GetActions() []string\n```\nGetActions returns the Actions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMetaDomains) GetActionsInbound() *ActionsInboundDomains\n```\nGetActionsInbound returns the ActionsInbound field.\n\n```go\nfunc (a *APIMetaDomains) GetArtifactAttestations() *APIMetaArtifactAttestations\n```\nGetArtifactAttestations returns the ArtifactAttestations field.\n\n```go\nfunc (a *APIMetaDomains) GetCodespaces() []string\n```\nGetCodespaces returns the Codespaces slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMetaDomains) GetCopilot() []string\n```\nGetCopilot returns the Copilot slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMetaDomains) GetPackages() []string\n```\nGetPackages returns the Packages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *APIMetaDomains) GetWebsite() []string\n```\nGetWebsite returns the Website slice if it's non-nil, nil 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/rest/overview/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits)\".\n\n```go\nfunc (r *AbuseRateLimitError) Error() string\n```\n\n```go\nfunc (a *AbuseRateLimitError) GetMessage() string\n```\nGetMessage returns the Message field.\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 AcceptedAssignment struct {\n\tID          *int64               `json:\"id,omitempty\"`\n\tSubmitted   *bool                `json:\"submitted,omitempty\"`\n\tPassing     *bool                `json:\"passing,omitempty\"`\n\tCommitCount *int                 `json:\"commit_count,omitempty\"`\n\tGrade       *string              `json:\"grade,omitempty\"`\n\tStudents    []*ClassroomUser     `json:\"students,omitempty\"`\n\tRepository  *Repository          `json:\"repository,omitempty\"`\n\tAssignment  *ClassroomAssignment `json:\"assignment,omitempty\"`\n}\n```\nAcceptedAssignment represents a GitHub Classroom accepted assignment.\n\n```go\nfunc (a *AcceptedAssignment) GetAssignment() *ClassroomAssignment\n```\nGetAssignment returns the Assignment field.\n\n```go\nfunc (a *AcceptedAssignment) GetCommitCount() int\n```\nGetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AcceptedAssignment) GetGrade() string\n```\nGetGrade returns the Grade field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AcceptedAssignment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AcceptedAssignment) GetPassing() bool\n```\nGetPassing returns the Passing field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AcceptedAssignment) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (a *AcceptedAssignment) GetStudents() []*ClassroomUser\n```\nGetStudents returns the Students slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *AcceptedAssignment) GetSubmitted() bool\n```\nGetSubmitted returns the Submitted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a AcceptedAssignment) String() string\n```\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 (a *AcceptedError) GetRaw() []byte\n```\nGetRaw returns the Raw slice if it's non-nil, nil otherwise.\n\n```go\nfunc (ae *AcceptedError) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\n\n```go\ntype AccessibleRepository struct {\n\tID       int64  `json:\"id\"`\n\tName     string `json:\"name\"`\n\tFullName string `json:\"full_name\"`\n}\n```\nAccessibleRepository represents a repository that can be made accessible to a GitHub app.\n\n```go\nfunc (a *AccessibleRepository) GetFullName() string\n```\nGetFullName returns the FullName field.\n\n```go\nfunc (a *AccessibleRepository) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (a *AccessibleRepository) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype ActionsAllowed struct {\n\tGithubOwnedAllowed *bool `json:\"github_owned_allowed,omitempty\"`\n\tVerifiedAllowed    *bool `json:\"verified_allowed,omitempty\"`\n\t// PatternsAllowed uses `omitzero` to allow an empty array to be sent in the request body in order to\n\t// configure the organization to allow no 3rd-party actions. It needs to still omit a `nil` value so\n\t// that it's possible to patch the other values without changing the allowed actions.\n\tPatternsAllowed []string `json:\"patterns_allowed,omitzero\"`\n}\n```\nActionsAllowed represents selected actions that are allowed.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28)\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) GetPatternsAllowed() []string\n```\nGetPatternsAllowed returns the PatternsAllowed slice if it's non-nil, nil 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/rest/actions/cache?apiVersion=2022-11-28#about-the-cache-api](https://docs.github.com/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/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository)\n\n```go\nfunc (a *ActionsCacheList) GetActionsCaches() []*ActionsCache\n```\nGetActionsCaches returns the ActionsCaches slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsCacheList) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\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/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository](https://docs.github.com/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 ActionsCacheRetentionLimit struct {\n\t// MaxCacheRetentionDays is the maximum duration, in days, for which caches\n\t// in a repository may be retained.\n\tMaxCacheRetentionDays *int `json:\"max_cache_retention_days,omitempty\"`\n}\n```\nActionsCacheRetentionLimit represents the GitHub Actions cache retention limit for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-retention-limit-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-retention-limit-for-an-organization)\n\n```go\nfunc (a *ActionsCacheRetentionLimit) GetMaxCacheRetentionDays() int\n```\nGetMaxCacheRetentionDays returns the MaxCacheRetentionDays field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsCacheStorageLimit struct {\n\t// MaxCacheSizeGB is the maximum size limit for the sum of all caches in a\n\t// repository, in gigabytes.\n\tMaxCacheSizeGB *int `json:\"max_cache_size_gb,omitempty\"`\n}\n```\nActionsCacheStorageLimit represents the GitHub Actions cache storage limit for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-storage-limit-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-storage-limit-for-an-organization)\n\n```go\nfunc (a *ActionsCacheStorageLimit) GetMaxCacheSizeGB() int\n```\nGetMaxCacheSizeGB returns the MaxCacheSizeGB 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/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository)\n\n```go\nfunc (a *ActionsCacheUsage) GetActiveCachesCount() int\n```\nGetActiveCachesCount returns the ActiveCachesCount field.\n\n```go\nfunc (a *ActionsCacheUsage) GetActiveCachesSizeInBytes() int64\n```\nGetActiveCachesSizeInBytes returns the ActiveCachesSizeInBytes field.\n\n```go\nfunc (a *ActionsCacheUsage) GetFullName() string\n```\nGetFullName returns the FullName field.\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/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository)\n\n```go\nfunc (a *ActionsCacheUsageList) GetRepoCacheUsage() []*ActionsCacheUsage\n```\nGetRepoCacheUsage returns the RepoCacheUsage slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsCacheUsageList) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype ActionsCreateOrgVariableRequest struct {\n\tName                  string  `json:\"name\"`\n\tValue                 string  `json:\"value\"`\n\tVisibility            string  `json:\"visibility\"`\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitzero\"`\n}\n```\nActionsCreateOrgVariableRequest represents a request to create an organization variable.\n\n```go\nfunc (a *ActionsCreateOrgVariableRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (a *ActionsCreateOrgVariableRequest) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsCreateOrgVariableRequest) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\nfunc (a *ActionsCreateOrgVariableRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype ActionsCreateVariableRequest struct {\n\tName  string `json:\"name\"`\n\tValue string `json:\"value\"`\n}\n```\nActionsCreateVariableRequest represents a request to create a variable for a repository or repository environment variable.\n\n```go\nfunc (a *ActionsCreateVariableRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (a *ActionsCreateVariableRequest) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\ntype ActionsEnabledOnEnterpriseRepos struct {\n\tTotalCount    int             `json:\"total_count\"`\n\tOrganizations []*Organization `json:\"organizations\"`\n}\n```\nActionsEnabledOnEnterpriseRepos represents all the repositories in an enterprise for which Actions is enabled.\n\n```go\nfunc (a *ActionsEnabledOnEnterpriseRepos) GetOrganizations() []*Organization\n```\nGetOrganizations returns the Organizations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsEnabledOnEnterpriseRepos) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\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\nfunc (a *ActionsEnabledOnOrgRepos) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsEnabledOnOrgRepos) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype ActionsInboundDomains struct {\n\tFullDomains     []string `json:\"full_domains,omitempty\"`\n\tWildcardDomains []string `json:\"wildcard_domains,omitempty\"`\n}\n```\nActionsInboundDomains represents the domains associated with GitHub Actions inbound traffic.\n\n```go\nfunc (a *ActionsInboundDomains) GetFullDomains() []string\n```\nGetFullDomains returns the FullDomains slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsInboundDomains) GetWildcardDomains() []string\n```\nGetWildcardDomains returns the WildcardDomains slice if it's non-nil, nil otherwise.\n\n```go\ntype ActionsPermissions struct {\n\tEnabledRepositories string  `json:\"enabled_repositories\"`\n\tAllowedActions      *string `json:\"allowed_actions,omitempty\"`\n\tSelectedActionsURL  *string `json:\"selected_actions_url,omitempty\"`\n\tSHAPinningRequired  *bool   `json:\"sha_pinning_required,omitempty\"`\n}\n```\nActionsPermissions represents a policy for repositories and allowed actions in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28)\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.\n\n```go\nfunc (a *ActionsPermissions) GetSHAPinningRequired() bool\n```\nGetSHAPinningRequired returns the SHAPinningRequired 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 ActionsPermissionsEnterprise struct {\n\tEnabledOrganizations string  `json:\"enabled_organizations\"`\n\tAllowedActions       *string `json:\"allowed_actions,omitempty\"`\n\tSelectedActionsURL   *string `json:\"selected_actions_url,omitempty\"`\n}\n```\nActionsPermissionsEnterprise represents a policy for allowed actions in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28)\n\n```go\nfunc (a *ActionsPermissionsEnterprise) GetAllowedActions() string\n```\nGetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPermissionsEnterprise) GetEnabledOrganizations() string\n```\nGetEnabledOrganizations returns the EnabledOrganizations field.\n\n```go\nfunc (a *ActionsPermissionsEnterprise) GetSelectedActionsURL() string\n```\nGetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a ActionsPermissionsEnterprise) String() string\n```\n\n```go\ntype ActionsPermissionsRepository struct {\n\tEnabled            bool    `json:\"enabled\"`\n\tAllowedActions     *string `json:\"allowed_actions,omitempty\"`\n\tSelectedActionsURL *string `json:\"selected_actions_url,omitempty\"`\n\tSHAPinningRequired *bool   `json:\"sha_pinning_required,omitempty\"`\n}\n```\nActionsPermissionsRepository represents a policy for repositories and allowed actions in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28)\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.\n\n```go\nfunc (a *ActionsPermissionsRepository) GetSHAPinningRequired() bool\n```\nGetSHAPinningRequired returns the SHAPinningRequired 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 ActionsPolicy struct {\n\tID          int64                    `json:\"id\"`\n\tName        string                   `json:\"name\"`\n\tTarget      ActionsPolicyTarget      `json:\"target\"`\n\tSourceType  RulesetSourceType        `json:\"source_type\"`\n\tSource      string                   `json:\"source\"`\n\tEnforcement RulesetEnforcement       `json:\"enforcement\"`\n\tConditions  *ActionsPolicyConditions `json:\"conditions,omitempty\"`\n\tRules       []*ActionsPolicyRule     `json:\"rules,omitzero\"`\n\tNodeID      *string                  `json:\"node_id,omitempty\"`\n\tLinks       *RepositoryRulesetLinks  `json:\"_links,omitempty\"`\n\tCreatedAt   *Timestamp               `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp               `json:\"updated_at,omitempty\"`\n}\n```\nActionsPolicy represents a GitHub Actions policy.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10)\n\n```go\nfunc (a *ActionsPolicy) GetConditions() *ActionsPolicyConditions\n```\nGetConditions returns the Conditions field.\n\n```go\nfunc (a *ActionsPolicy) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPolicy) GetEnforcement() RulesetEnforcement\n```\nGetEnforcement returns the Enforcement field.\n\n```go\nfunc (a *ActionsPolicy) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (a *ActionsPolicy) GetLinks() *RepositoryRulesetLinks\n```\nGetLinks returns the Links field.\n\n```go\nfunc (a *ActionsPolicy) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (a *ActionsPolicy) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsPolicy) GetRules() []*ActionsPolicyRule\n```\nGetRules returns the Rules slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsPolicy) GetSource() string\n```\nGetSource returns the Source field.\n\n```go\nfunc (a *ActionsPolicy) GetSourceType() RulesetSourceType\n```\nGetSourceType returns the SourceType field.\n\n```go\nfunc (a *ActionsPolicy) GetTarget() ActionsPolicyTarget\n```\nGetTarget returns the Target field.\n\n```go\nfunc (a *ActionsPolicy) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsPolicyActor struct {\n\tID   int64                  `json:\"id\"`\n\tType ActionsPolicyActorType `json:\"type\"`\n}\n```\nActionsPolicyActor represents an actor authorized to trigger Actions workflows.\n\n```go\nfunc (a *ActionsPolicyActor) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (a *ActionsPolicyActor) GetType() ActionsPolicyActorType\n```\nGetType returns the Type field.\n\n```go\ntype ActionsPolicyActorType string\n```\nActionsPolicyActorType represents the type of an actor allowed to trigger Actions workflows.\n\n```go\nconst (\n\tActionsPolicyActorTypeUser                    ActionsPolicyActorType = \"User\"\n\tActionsPolicyActorTypeBot                     ActionsPolicyActorType = \"Bot\"\n\tActionsPolicyActorTypeTeam                    ActionsPolicyActorType = \"Team\"\n\tActionsPolicyActorTypeBusinessTeam            ActionsPolicyActorType = \"BusinessTeam\"\n\tActionsPolicyActorTypeEnterpriseTeam          ActionsPolicyActorType = \"EnterpriseTeam\"\n\tActionsPolicyActorTypeIntegrationInstallation ActionsPolicyActorType = \"IntegrationInstallation\"\n\tActionsPolicyActorTypeApp                     ActionsPolicyActorType = \"App\"\n\tActionsPolicyActorTypeRepositoryRole          ActionsPolicyActorType = \"RepositoryRole\"\n)\n```\nGitHub Actions policy actor types.\n\n```go\ntype ActionsPolicyConditions struct {\n\tRepositoryID         *RepositoryRulesetRepositoryIDsConditionParameters        `json:\"repository_id,omitempty\"`\n\tRepositoryName       *RepositoryRulesetRepositoryNamesConditionParameters      `json:\"repository_name,omitempty\"`\n\tRepositoryProperty   *RepositoryRulesetRepositoryPropertyConditionParameters   `json:\"repository_property,omitempty\"`\n\tOrganizationID       *RepositoryRulesetOrganizationIDsConditionParameters      `json:\"organization_id,omitempty\"`\n\tOrganizationName     *RepositoryRulesetOrganizationNamesConditionParameters    `json:\"organization_name,omitempty\"`\n\tOrganizationProperty *RepositoryRulesetOrganizationPropertyConditionParameters `json:\"organization_property,omitempty\"`\n\tWorkflowPath         *ActionsPolicyWorkflowPathConditionParameters             `json:\"workflow_path,omitempty\"`\n}\n```\nActionsPolicyConditions represents the conditions object in an Actions policy. Organization policies may use one repository selector and an optional workflow path selector. Policies inherited from higher levels can also contain organization selectors.\n\n```go\nfunc (a *ActionsPolicyConditions) GetOrganizationID() *RepositoryRulesetOrganizationIDsConditionParameters\n```\nGetOrganizationID returns the OrganizationID field.\n\n```go\nfunc (a *ActionsPolicyConditions) GetOrganizationName() *RepositoryRulesetOrganizationNamesConditionParameters\n```\nGetOrganizationName returns the OrganizationName field.\n\n```go\nfunc (a *ActionsPolicyConditions) GetOrganizationProperty() *RepositoryRulesetOrganizationPropertyConditionParameters\n```\nGetOrganizationProperty returns the OrganizationProperty field.\n\n```go\nfunc (a *ActionsPolicyConditions) GetRepositoryID() *RepositoryRulesetRepositoryIDsConditionParameters\n```\nGetRepositoryID returns the RepositoryID field.\n\n```go\nfunc (a *ActionsPolicyConditions) GetRepositoryName() *RepositoryRulesetRepositoryNamesConditionParameters\n```\nGetRepositoryName returns the RepositoryName field.\n\n```go\nfunc (a *ActionsPolicyConditions) GetRepositoryProperty() *RepositoryRulesetRepositoryPropertyConditionParameters\n```\nGetRepositoryProperty returns the RepositoryProperty field.\n\n```go\nfunc (a *ActionsPolicyConditions) GetWorkflowPath() *ActionsPolicyWorkflowPathConditionParameters\n```\nGetWorkflowPath returns the WorkflowPath field.\n\n```go\ntype ActionsPolicyList struct {\n\tTotalCount int              `json:\"total_count\"`\n\tPolicies   []*ActionsPolicy `json:\"policies\"`\n}\n```\nActionsPolicyList represents a list of GitHub Actions policies.\n\n```go\nfunc (a *ActionsPolicyList) GetPolicies() []*ActionsPolicy\n```\nGetPolicies returns the Policies slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsPolicyList) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype ActionsPolicyListOptions struct {\n\t// HasParents controls whether policies configured at higher levels are included.\n\tHasParents *bool `url:\"has_parents,omitempty\"`\n\tListOptions\n}\n```\nActionsPolicyListOptions specifies optional parameters for listing Actions policies.\n\n```go\nfunc (a *ActionsPolicyListOptions) GetHasParents() bool\n```\nGetHasParents returns the HasParents field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsPolicyRule struct {\n\tType       ActionsPolicyRuleType        `json:\"type\"`\n\tParameters *ActionsPolicyRuleParameters `json:\"parameters,omitempty\"`\n}\n```\nActionsPolicyRule represents a rule in an Actions policy.\n\n```go\nfunc (a *ActionsPolicyRule) GetParameters() *ActionsPolicyRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\nfunc (a *ActionsPolicyRule) GetType() ActionsPolicyRuleType\n```\nGetType returns the Type field.\n\n```go\ntype ActionsPolicyRuleParameters struct {\n\tAllowedActors []*ActionsPolicyActor `json:\"allowed_actors,omitzero\"`\n\tAllowedEvents []string              `json:\"allowed_events,omitzero\"`\n}\n```\nActionsPolicyRuleParameters represents the parameters for an Actions policy rule. AllowedActors is used by restrict\\_actions\\_actors; AllowedEvents is used by restrict\\_action\\_events.\n\n```go\nfunc (a *ActionsPolicyRuleParameters) GetAllowedActors() []*ActionsPolicyActor\n```\nGetAllowedActors returns the AllowedActors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsPolicyRuleParameters) GetAllowedEvents() []string\n```\nGetAllowedEvents returns the AllowedEvents slice if it's non-nil, nil otherwise.\n\n```go\ntype ActionsPolicyRuleType string\n```\nActionsPolicyRuleType represents a GitHub Actions policy rule type.\n\n```go\nconst (\n\tActionsPolicyRuleTypeRestrictActionsActors ActionsPolicyRuleType = \"restrict_actions_actors\"\n\tActionsPolicyRuleTypeRestrictActionEvents  ActionsPolicyRuleType = \"restrict_action_events\"\n)\n```\nGitHub Actions policy rule types.\n\n```go\ntype ActionsPolicyTarget string\n```\nActionsPolicyTarget represents a GitHub Actions policy target.\n\n```go\nconst ActionsPolicyTargetActions ActionsPolicyTarget = \"actions\"\n```\nActionsPolicyTargetActions is the target used by GitHub Actions policies.\n\n```go\ntype ActionsPolicyWorkflowPathConditionParameters struct {\n\tInclude []string `json:\"include\"`\n\tExclude []string `json:\"exclude\"`\n}\n```\nActionsPolicyWorkflowPathConditionParameters represents a workflow\\_path condition in an Actions policy.\n\n```go\nfunc (a *ActionsPolicyWorkflowPathConditionParameters) GetExclude() []string\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsPolicyWorkflowPathConditionParameters) GetInclude() []string\n```\nGetInclude returns the Include slice if it's non-nil, nil otherwise.\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/rest/actions?apiVersion=2022-11-28](https://docs.github.com/rest/actions?apiVersion=2022-11-28)\n\n```go\nfunc (s *ActionsService) AddEnabledOrgInEnterprise(ctx context.Context, owner string, organizationID int64) (*Response, error)\n```\nAddEnabledOrgInEnterprise adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#enable-a-selected-organization-for-github-actions-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#enable-a-selected-organization-for-github-actions-in-an-enterprise)\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/rest/actions/permissions?apiVersion=2022-11-28#enable-a-selected-repository-for-github-actions-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#enable-a-selected-repository-for-github-actions-in-an-organization)\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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-repository-access-to-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-repository-access-to-a-self-hosted-runner-group-in-an-organization)\n\n```go\nfunc (s *ActionsService) AddRepositorySelfHostedRunnersAllowedInOrganization(ctx context.Context, org string, repositoryID int64) (*Response, error)\n```\nAddRepositorySelfHostedRunnersAllowedInOrganization adds a repository to the list of repositories that are allowed to use self-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#add-a-repository-to-the-list-of-repositories-allowed-to-use-self-hosted-runners-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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-a-self-hosted-runner-to-a-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-a-self-hosted-runner-to-a-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nAddSelectedRepoToOrgSecret adds a repository to an organization secret.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#add-selected-repository-to-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/variables?apiVersion=2022-11-28#add-selected-repository-to-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#cancel-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#cancel-a-workflow-run)\n\n```go\nfunc (s *ActionsService) CreateEnvVariable(ctx context.Context, owner, repo, env string, body ActionsCreateVariableRequest) (*Response, error)\n```\nCreateEnvVariable creates an environment variable.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-an-environment-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-an-environment-variable)\n\n```go\nfunc (s *ActionsService) CreateHostedRunner(ctx context.Context, org string, body CreateHostedRunnerRequest) (*HostedRunner, *Response, error)\n```\nCreateHostedRunner creates a GitHub-hosted runner for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#create-a-github-hosted-runner-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#create-a-github-hosted-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) CreateOrUpdateEnvSecret(ctx context.Context, owner, repo, env, name string, body SecretRequest) (*Response, error)\n```\nCreateOrUpdateEnvSecret creates or updates a single environment secret with an encrypted value.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-environment-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-environment-secret)\n\n```go\nfunc (s *ActionsService) CreateOrUpdateOrgSecret(ctx context.Context, org, name string, body SecretOrgRequest) (*Response, error)\n```\nCreateOrUpdateOrgSecret creates or updates an organization secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret)\n\n```go\nfunc (s *ActionsService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo, name string, body SecretRequest) (*Response, error)\n```\nCreateOrUpdateRepoSecret creates or updates a repository secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret)\n\n```go\nfunc (s *ActionsService) CreateOrgJITConfig(ctx context.Context, org string, body CreateJITConfigRequest) (*JITRunnerConfig, *Response, error)\n```\nCreateOrgJITConfig creates a just-in-time configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-an-organization](https://docs.github.com/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) CreateOrgVariable(ctx context.Context, org string, body ActionsCreateOrgVariableRequest) (*Response, error)\n```\nCreateOrgVariable creates an organization variable.\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-an-organization-variable)\n\n```go\nfunc (s *ActionsService) CreateOrganizationPolicy(ctx context.Context, org string, body CreateActionsPolicyRequest) (*ActionsPolicy, *Response, error)\n```\nCreateOrganizationPolicy creates an Actions policy for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#create-an-organization-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#create-an-organization-actions-policy)\n\n```go\nfunc (s *ActionsService) CreateOrganizationRegistrationToken(ctx context.Context, org 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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization)\n\n```go\nfunc (s *ActionsService) CreateOrganizationRemoveToken(ctx context.Context, org 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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-remove-token-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-remove-token-for-an-organization)\n\n```go\nfunc (s *ActionsService) CreateOrganizationRunnerGroup(ctx context.Context, org string, body CreateRunnerGroupRequest) (*RunnerGroup, *Response, error)\n```\nCreateOrganizationRunnerGroup creates a new self-hosted runner group for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#create-a-self-hosted-runner-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-a-repository](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-remove-token-for-a-repository](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-remove-token-for-a-repository)\n\n```go\nfunc (s *ActionsService) CreateRepoJITConfig(ctx context.Context, owner, repo string, body CreateJITConfigRequest) (*JITRunnerConfig, *Response, error)\n```\nCreateRepoJITConfig creates a just-in-time configuration for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-a-repository](https://docs.github.com/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) CreateRepoVariable(ctx context.Context, owner, repo string, body ActionsCreateVariableRequest) (*Response, error)\n```\nCreateRepoVariable creates a repository variable.\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-a-repository-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#create-a-repository-variable)\n\n```go\nfunc (s *ActionsService) CreateRepositoryPolicy(ctx context.Context, owner, repo string, body CreateActionsPolicyRequest) (*ActionsPolicy, *Response, error)\n```\nCreateRepositoryPolicy creates an Actions policy for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#create-a-repository-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#create-a-repository-actions-policy)\n\n```go\nfunc (s *ActionsService) CreateWorkflowDispatchEventByFileName(ctx context.Context, owner, repo, workflowFileName string, body CreateWorkflowDispatchEventRequest) (*WorkflowDispatchRunDetails, *Response, error)\n```\nCreateWorkflowDispatchEventByFileName manually triggers a GitHub Actions workflow run.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event)\n\n```go\nfunc (s *ActionsService) CreateWorkflowDispatchEventByID(ctx context.Context, owner, repo string, workflowID int64, body CreateWorkflowDispatchEventRequest) (*WorkflowDispatchRunDetails, *Response, error)\n```\nCreateWorkflowDispatchEventByID manually triggers a GitHub Actions workflow run.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#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/rest/actions/artifacts?apiVersion=2022-11-28#delete-an-artifact](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#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/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id](https://docs.github.com/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/rest/actions/cache?apiVersion=2022-11-28#delete-github-actions-caches-for-a-repository-using-a-cache-key](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#delete-github-actions-caches-for-a-repository-using-a-cache-key)\n\n```go\nfunc (s *ActionsService) DeleteEnterpriseOIDCCustomPropertyClaim(ctx context.Context, enterprise, customProperty string) (*Response, error)\n```\nDeleteEnterpriseOIDCCustomPropertyClaim deletes a custom property claim in oidc for enterprise actions.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#delete-an-oidc-custom-property-inclusion-for-an-enterprise](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#delete-an-oidc-custom-property-inclusion-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) DeleteEnvSecret(ctx context.Context, owner, repo, env, secretName string) (*Response, error)\n```\nDeleteEnvSecret deletes a secret in an environment using the secret name.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#delete-an-environment-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#delete-an-environment-secret)\n\n```go\nfunc (s *ActionsService) DeleteEnvVariable(ctx context.Context, owner, repo, env, variableName string) (*Response, error)\n```\nDeleteEnvVariable deletes a variable in an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#delete-an-environment-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#delete-an-environment-variable)\n\n```go\nfunc (s *ActionsService) DeleteHostedRunner(ctx context.Context, org string, runnerID int64) (*HostedRunner, *Response, error)\n```\nDeleteHostedRunner deletes GitHub-hosted runner from an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-github-hosted-runner-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-github-hosted-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) DeleteHostedRunnerCustomImage(ctx context.Context, org string, imageDefinitionID int64) (*Response, error)\n```\nDeleteHostedRunnerCustomImage deletes a custom image from the organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-custom-image-from-the-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-custom-image-from-the-organization)\n\n```go\nfunc (s *ActionsService) DeleteHostedRunnerCustomImageVersion(ctx context.Context, org string, imageDefinitionID int64, version string) (*Response, error)\n```\nDeleteHostedRunnerCustomImageVersion deletes an image version of a custom image from the organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-an-image-version-of-custom-image-from-the-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-an-image-version-of-custom-image-from-the-organization)\n\n```go\nfunc (s *ActionsService) DeleteOrgOIDCCustomPropertyClaim(ctx context.Context, enterprise, customProperty string) (*Response, error)\n```\nDeleteOrgOIDCCustomPropertyClaim deletes a custom property claim in oidc for organization actions.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#delete-an-oidc-custom-property-inclusion-for-an-organization](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#delete-an-oidc-custom-property-inclusion-for-an-organization)\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/rest/actions/secrets?apiVersion=2022-11-28#delete-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/variables?apiVersion=2022-11-28#delete-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#delete-an-organization-variable)\n\n```go\nfunc (s *ActionsService) DeleteOrganizationPolicy(ctx context.Context, org string, policyID int64) (*Response, error)\n```\nDeleteOrganizationPolicy deletes an Actions policy for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#delete-an-organization-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#delete-an-organization-actions-policy)\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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#delete-a-self-hosted-runner-group-from-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#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/rest/actions/secrets?apiVersion=2022-11-28#delete-a-repository-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/variables?apiVersion=2022-11-28#delete-a-repository-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#delete-a-repository-variable)\n\n```go\nfunc (s *ActionsService) DeleteRepositoryPolicy(ctx context.Context, owner, repo string, policyID int64) (*Response, error)\n```\nDeleteRepositoryPolicy deletes an Actions policy for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#delete-a-repository-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#delete-a-repository-actions-policy)\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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#delete-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#delete-workflow-run-logs](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#disable-a-workflow](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#disable-a-workflow](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#disable-a-workflow)\n\n```go\nfunc (s *ActionsService) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, maxRedirects int) (*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/rest/actions/artifacts?apiVersion=2022-11-28#download-an-artifact](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow)\n\n```go\nfunc (s *ActionsService) 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/rest/actions/permissions?apiVersion=2022-11-28#get-allowed-actions-and-reusable-workflows-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-allowed-actions-and-reusable-workflows-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetActionsAllowedInEnterprise(ctx context.Context, enterprise string) (*ActionsAllowed, *Response, error)\n```\nGetActionsAllowedInEnterprise gets the actions that are allowed in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-allowed-actions-and-reusable-workflows-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-allowed-actions-and-reusable-workflows-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) 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/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetActionsPermissionsInEnterprise(ctx context.Context, enterprise string) (*ActionsPermissionsEnterprise, *Response, error)\n```\nGetActionsPermissionsInEnterprise gets the GitHub Actions permissions policy for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-an-enterprise)\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/rest/actions/artifacts?apiVersion=2022-11-28#get-an-artifact](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#get-an-artifact)\n\n```go\nfunc (s *ActionsService) GetArtifactAndLogRetentionPeriodInEnterprise(ctx context.Context, enterprise string) (*ArtifactPeriod, *Response, error)\n```\nGetArtifactAndLogRetentionPeriodInEnterprise gets the artifact and log retention period for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-artifact-and-log-retention-settings-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-artifact-and-log-retention-settings-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) GetArtifactAndLogRetentionPeriodInOrganization(ctx context.Context, org string) (*ArtifactPeriod, *Response, error)\n```\nGetArtifactAndLogRetentionPeriodInOrganization gets the artifact and log retention period for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-artifact-and-log-retention-settings-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-artifact-and-log-retention-settings-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetCacheRetentionLimitForOrg(ctx context.Context, org string) (*ActionsCacheRetentionLimit, *Response, error)\n```\nGetCacheRetentionLimitForOrg gets the GitHub Actions cache retention limit for an organization. Repositories in the organization may not set a higher cache retention limit.\n\nPermissions: OAuth tokens and personal access tokens (classic) need the admin:organization scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-retention-limit-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-retention-limit-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetCacheStorageLimitForOrg(ctx context.Context, org string) (*ActionsCacheStorageLimit, *Response, error)\n```\nGetCacheStorageLimitForOrg gets the GitHub Actions cache storage limit for an organization. Repositories in the organization may not set a higher cache storage limit.\n\nPermissions: OAuth tokens and personal access tokens (classic) need the admin:organization scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-storage-limit-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-storage-limit-for-an-organization)\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/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-a-repository)\n\n```go\nfunc (s *ActionsService) GetDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string) (*DefaultWorkflowPermissionEnterprise, *Response, error)\n```\nGetDefaultWorkflowPermissionsInEnterprise gets the GitHub Actions default workflow permissions for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-default-workflow-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-default-workflow-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) GetDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string) (*DefaultWorkflowPermissionOrganization, *Response, error)\n```\nGetDefaultWorkflowPermissionsInOrganization gets the GitHub Actions default workflow permissions for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-default-workflow-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-default-workflow-permissions-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetEnterpriseForkPRContributorApprovalPermissions(ctx context.Context, enterprise string) (*ContributorApprovalPermissions, *Response, error)\n```\nGetEnterpriseForkPRContributorApprovalPermissions gets the fork PR contributor approval policy for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-fork-pr-contributor-approval-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-fork-pr-contributor-approval-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) GetEnvPublicKey(ctx context.Context, owner, repo, env string) (*PublicKey, *Response, error)\n```\nGetEnvPublicKey gets a public key that should be used for secret encryption.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#get-an-environment-public-key](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#get-an-environment-public-key)\n\n```go\nfunc (s *ActionsService) GetEnvSecret(ctx context.Context, owner, repo, env, secretName string) (*Secret, *Response, error)\n```\nGetEnvSecret gets a single environment secret without revealing its encrypted value.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#get-an-environment-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#get-an-environment-secret)\n\n```go\nfunc (s *ActionsService) GetEnvVariable(ctx context.Context, owner, repo, env, variableName string) (*ActionsVariable, *Response, error)\n```\nGetEnvVariable gets a single environment variable.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#get-an-environment-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#get-an-environment-variable)\n\n```go\nfunc (s *ActionsService) GetForkPRContributorApprovalPermissions(ctx context.Context, owner, repo string) (*ContributorApprovalPermissions, *Response, error)\n```\nGetForkPRContributorApprovalPermissions gets the fork PR contributor approval policy for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-fork-pr-contributor-approval-permissions-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-fork-pr-contributor-approval-permissions-for-a-repository)\n\n```go\nfunc (s *ActionsService) GetHostedRunner(ctx context.Context, org string, runnerID int64) (*HostedRunner, *Response, error)\n```\nGetHostedRunner gets a GitHub-hosted runner in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-a-github-hosted-runner-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-a-github-hosted-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerCustomImage(ctx context.Context, org string, imageDefinitionID int64) (*HostedRunnerCustomImage, *Response, error)\n```\nGetHostedRunnerCustomImage gets a custom image definition for GitHub-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-a-custom-image-definition-for-github-actions-hosted-runners](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-a-custom-image-definition-for-github-actions-hosted-runners)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerCustomImageVersion(ctx context.Context, org string, imageDefinitionID int64, version string) (*HostedRunnerCustomImageVersion, *Response, error)\n```\nGetHostedRunnerCustomImageVersion gets an image version of a custom image for GitHub-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-an-image-version-of-a-custom-image-for-github-actions-hosted-runners](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-an-image-version-of-a-custom-image-for-github-actions-hosted-runners)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerGitHubOwnedImages(ctx context.Context, org string) (*HostedRunnerImages, *Response, error)\n```\nGetHostedRunnerGitHubOwnedImages gets the list of GitHub-owned images available for GitHub-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-owned-images-for-github-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-owned-images-for-github-hosted-runners-in-an-organization)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerLimits(ctx context.Context, org string) (*HostedRunnerPublicIPLimits, *Response, error)\n```\nGetHostedRunnerLimits gets the GitHub-hosted runners Static public IP Limits for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-limits-on-github-hosted-runners-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-limits-on-github-hosted-runners-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerMachineSpecs(ctx context.Context, org string) (*HostedRunnerMachineSpecs, *Response, error)\n```\nGetHostedRunnerMachineSpecs gets the list of machine specs available for GitHub-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-hosted-runners-machine-specs-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-hosted-runners-machine-specs-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerPartnerImages(ctx context.Context, org string) (*HostedRunnerImages, *Response, error)\n```\nGetHostedRunnerPartnerImages gets the list of partner images available for GitHub-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-partner-images-for-github-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-partner-images-for-github-hosted-runners-in-an-organization)\n\n```go\nfunc (s *ActionsService) GetHostedRunnerPlatforms(ctx context.Context, org string) (*HostedRunnerPlatforms, *Response, error)\n```\nGetHostedRunnerPlatforms gets list of platforms available for GitHub-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-platforms-for-github-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#get-platforms-for-github-hosted-runners-in-an-organization)\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/rest/actions/oidc?apiVersion=2022-11-28#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#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/rest/actions/secrets?apiVersion=2022-11-28#get-an-organization-public-key](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/secrets?apiVersion=2022-11-28#get-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/variables?apiVersion=2022-11-28#get-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#get-an-organization-variable)\n\n```go\nfunc (s *ActionsService) GetOrganizationForkPRContributorApprovalPermissions(ctx context.Context, org string) (*ContributorApprovalPermissions, *Response, error)\n```\nGetOrganizationForkPRContributorApprovalPermissions gets the fork PR contributor approval policy for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-fork-pr-contributor-approval-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-fork-pr-contributor-approval-permissions-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetOrganizationPolicy(ctx context.Context, org string, policyID int64) (*ActionsPolicy, *Response, error)\n```\nGetOrganizationPolicy gets a specific Actions policy for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#get-an-organization-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#get-an-organization-actions-policy)\n\n```go\nfunc (s *ActionsService) GetOrganizationRunner(ctx context.Context, org 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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#get-a-self-hosted-runner-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#get-a-self-hosted-runner-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#get-a-self-hosted-runner-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) GetPendingDeployments(ctx context.Context, owner, repo string, runID int64) ([]*PendingDeployment, *Response, error)\n```\nGetPendingDeployments get all deployment environments for a workflow run that are waiting for protection rules to pass. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-pending-deployments-for-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-pending-deployments-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetPrivateRepoForkPRWorkflowSettingsInEnterprise(ctx context.Context, enterprise string) (*WorkflowsPermissions, *Response, error)\n```\nGetPrivateRepoForkPRWorkflowSettingsInEnterprise gets the settings for whether workflows from fork pull requests can run on private repositories in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-private-repo-fork-pr-workflow-settings-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-private-repo-fork-pr-workflow-settings-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) GetPrivateRepoForkPRWorkflowSettingsInOrganization(ctx context.Context, org string) (*WorkflowsPermissions, *Response, error)\n```\nGetPrivateRepoForkPRWorkflowSettingsInOrganization gets the settings for whether workflows from fork pull requests can run on private repositories in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-private-repo-fork-pr-workflow-settings-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-private-repo-fork-pr-workflow-settings-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/rest/actions/oidc?apiVersion=2022-11-28#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#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/rest/actions/secrets?apiVersion=2022-11-28#get-a-repository-public-key](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/secrets?apiVersion=2022-11-28#get-a-repository-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/variables?apiVersion=2022-11-28#get-a-repository-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#get-a-repository-variable)\n\n```go\nfunc (s *ActionsService) GetRepositoryPolicy(ctx context.Context, owner, repo string, policyID int64) (*ActionsPolicy, *Response, error)\n```\nGetRepositoryPolicy gets a specific Actions policy for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#get-a-repository-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#get-a-repository-actions-policy)\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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#get-a-self-hosted-runner-for-a-repository](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#get-a-self-hosted-runner-for-a-repository)\n\n```go\nfunc (s *ActionsService) GetSelfHostedRunnerPermissionsInEnterprise(ctx context.Context, enterprise string) (*SelfHostRunnerPermissionsEnterprise, *Response, error)\n```\nGetSelfHostedRunnerPermissionsInEnterprise gets the self-hosted runner permissions for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-self-hosted-runners-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-self-hosted-runners-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) GetSelfHostedRunnersSettingsInOrganization(ctx context.Context, org string) (*SelfHostedRunnersSettingsOrganization, *Response, error)\n```\nGetSelfHostedRunnersSettingsInOrganization gets the self-hosted runners permissions settings for repositories in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-self-hosted-runners-settings-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-self-hosted-runners-settings-for-an-organization)\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/enterprise-cloud@latest/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/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\\_administration:read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-organization](https://docs.github.com/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/rest/actions/workflows?apiVersion=2022-11-28#get-a-workflow](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#get-a-workflow](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#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/rest/actions/workflow-jobs?apiVersion=2022-11-28#get-a-job-for-a-workflow-run](https://docs.github.com/rest/actions/workflow-jobs?apiVersion=2022-11-28#get-a-job-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetWorkflowJobLogs(ctx context.Context, owner, repo string, jobID int64, maxRedirects int) (*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/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run](https://docs.github.com/rest/actions/workflow-jobs?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run-attempt](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run-attempt)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunAttemptLogs(ctx context.Context, owner, repo string, runID int64, attemptNumber, maxRedirects int) (*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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve a workflow run ID from the DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#download-workflow-run-attempt-logs](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run)\n\n```go\nfunc (s *ActionsService) GetWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64, maxRedirects int) (*url.URL, *Response, error)\n```\nGetWorkflowRunLogs gets a redirect URL to download a plain text file of logs for a workflow run. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#download-workflow-run-logs](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#get-workflow-run-usage](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#get-workflow-usage](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#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/rest/actions/workflows?apiVersion=2022-11-28#get-workflow-usage](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#get-workflow-usage)\n\n```go\nfunc (s *ActionsService) ListArtifacts(ctx context.Context, owner, repo string, opts *ListArtifactsOptions) (*ArtifactList, *Response, error)\n```\nListArtifacts lists all artifacts that belong to a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#list-artifacts-for-a-repository](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#list-artifacts-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListArtifactsIter(ctx context.Context, owner string, repo string, opts *ListArtifactsOptions) iter.Seq2[*Artifact, error]\n```\nListArtifactsIter returns an iterator that paginates through all results of ListArtifacts.\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\\_administration:read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#list-repositories-with-github-actions-cache-usage-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#list-repositories-with-github-actions-cache-usage-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListCacheUsageByRepoForOrgIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*ActionsCacheUsage, error]\n```\nListCacheUsageByRepoForOrgIter returns an iterator that paginates through all results of ListCacheUsageByRepoForOrg.\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/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#list-github-actions-caches-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListCachesIter(ctx context.Context, owner string, repo string, opts *ActionsCacheListOptions) iter.Seq2[*ActionsCache, error]\n```\nListCachesIter returns an iterator that paginates through all results of ListCaches.\n\n```go\nfunc (s *ActionsService) ListEnabledOrgsInEnterprise(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnEnterpriseRepos, *Response, error)\n```\nListEnabledOrgsInEnterprise lists the selected organizations that are enabled for GitHub Actions in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#list-selected-organizations-enabled-for-github-actions-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#list-selected-organizations-enabled-for-github-actions-in-an-enterprise)\n\n```go\nfunc (s *ActionsService) ListEnabledOrgsInEnterpriseIter(ctx context.Context, owner string, opts *ListOptions) iter.Seq2[*Organization, error]\n```\nListEnabledOrgsInEnterpriseIter returns an iterator that paginates through all results of ListEnabledOrgsInEnterprise.\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/rest/actions/permissions?apiVersion=2022-11-28#list-selected-repositories-enabled-for-github-actions-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#list-selected-repositories-enabled-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) ListEnabledReposInOrgIter(ctx context.Context, owner string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListEnabledReposInOrgIter returns an iterator that paginates through all results of ListEnabledReposInOrg.\n\n```go\nfunc (s *ActionsService) ListEnterpriseOIDCCustomPropertyClaims(ctx context.Context, enterprise string) ([]*OIDCCustomPropertyClaimResponse, *Response, error)\n```\nListEnterpriseOIDCCustomPropertyClaims lists the custom property claims in oidc for enterprise actions.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#list-oidc-custom-property-inclusions-for-an-enterprise](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#list-oidc-custom-property-inclusions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) ListEnvSecrets(ctx context.Context, owner, repo, env string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListEnvSecrets lists all secrets available in an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-environment-secrets](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-environment-secrets)\n\n```go\nfunc (s *ActionsService) ListEnvSecretsIter(ctx context.Context, owner string, repo string, env string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListEnvSecretsIter returns an iterator that paginates through all results of ListEnvSecrets.\n\n```go\nfunc (s *ActionsService) ListEnvVariables(ctx context.Context, owner, repo, env string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListEnvVariables lists all variables available in an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-environment-variables](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-environment-variables)\n\n```go\nfunc (s *ActionsService) ListEnvVariablesIter(ctx context.Context, owner string, repo string, env string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListEnvVariablesIter returns an iterator that paginates through all results of ListEnvVariables.\n\n```go\nfunc (s *ActionsService) ListHostedRunnerCustomImageVersions(ctx context.Context, org string, imageDefinitionID int64) (*HostedRunnerCustomImageVersions, *Response, error)\n```\nListHostedRunnerCustomImageVersions lists image versions of a custom image for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#list-image-versions-of-a-custom-image-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#list-image-versions-of-a-custom-image-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListHostedRunnerCustomImages(ctx context.Context, org string) (*HostedRunnerCustomImages, *Response, error)\n```\nListHostedRunnerCustomImages lists custom images for GitHub-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#list-custom-images-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#list-custom-images-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListHostedRunners(ctx context.Context, org string, opts *ListOptions) (*HostedRunners, *Response, error)\n```\nListHostedRunners lists all the GitHub-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#list-github-hosted-runners-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#list-github-hosted-runners-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListHostedRunnersIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*HostedRunner, error]\n```\nListHostedRunnersIter returns an iterator that paginates through all results of ListHostedRunners.\n\n```go\nfunc (s *ActionsService) ListOrgOIDCCustomPropertyClaims(ctx context.Context, org string) ([]*OIDCCustomPropertyClaimResponse, *Response, error)\n```\nListOrgOIDCCustomPropertyClaims lists the custom property claims in oidc for organization actions.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#list-oidc-custom-property-inclusions-for-an-organization](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#list-oidc-custom-property-inclusions-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListOrgSecrets lists all secrets available in an organization without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-organization-secrets](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-organization-secrets)\n\n```go\nfunc (s *ActionsService) ListOrgSecretsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListOrgSecretsIter returns an iterator that paginates through all results of ListOrgSecrets.\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/rest/actions/variables?apiVersion=2022-11-28#list-organization-variables](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-organization-variables)\n\n```go\nfunc (s *ActionsService) ListOrgVariablesIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListOrgVariablesIter returns an iterator that paginates through all results of ListOrgVariables.\n\n```go\nfunc (s *ActionsService) ListOrganizationPolicies(ctx context.Context, org string, opts *ActionsPolicyListOptions) (*ActionsPolicyList, *Response, error)\n```\nListOrganizationPolicies lists all Actions policies for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#list-organization-actions-policies](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#list-organization-actions-policies)\n\n```go\nfunc (s *ActionsService) ListOrganizationPoliciesIter(ctx context.Context, org string, opts *ActionsPolicyListOptions) iter.Seq2[*ActionsPolicy, error]\n```\nListOrganizationPoliciesIter returns an iterator that paginates through all results of ListOrganizationPolicies.\n\n```go\nfunc (s *ActionsService) ListOrganizationRunnerApplicationDownloads(ctx context.Context, org 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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runner-groups-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runner-groups-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListOrganizationRunnerGroupsIter(ctx context.Context, org string, opts *ListOrgRunnerGroupOptions) iter.Seq2[*RunnerGroup, error]\n```\nListOrganizationRunnerGroupsIter returns an iterator that paginates through all results of ListOrganizationRunnerGroups.\n\n```go\nfunc (s *ActionsService) ListOrganizationRunners(ctx context.Context, org string, opts *ListRunnersOptions) (*Runners, *Response, error)\n```\nListOrganizationRunners lists all the self-hosted runners for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListOrganizationRunnersIter(ctx context.Context, org string, opts *ListRunnersOptions) iter.Seq2[*Runner, error]\n```\nListOrganizationRunnersIter returns an iterator that paginates through all results of ListOrganizationRunners.\n\n```go\nfunc (s *ActionsService) ListRepoOrgSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListRepoOrgSecrets lists all organization secrets available in a repository without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-repository-organization-secrets](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-repository-organization-secrets)\n\n```go\nfunc (s *ActionsService) ListRepoOrgSecretsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListRepoOrgSecretsIter returns an iterator that paginates through all results of ListRepoOrgSecrets.\n\n```go\nfunc (s *ActionsService) ListRepoOrgVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListRepoOrgVariables lists all organization variables available in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-repository-organization-variables](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-repository-organization-variables)\n\n```go\nfunc (s *ActionsService) ListRepoOrgVariablesIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListRepoOrgVariablesIter returns an iterator that paginates through all results of ListRepoOrgVariables.\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/rest/actions/secrets?apiVersion=2022-11-28#list-repository-secrets](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-repository-secrets)\n\n```go\nfunc (s *ActionsService) ListRepoSecretsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListRepoSecretsIter returns an iterator that paginates through all results of ListRepoSecrets.\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/rest/actions/variables?apiVersion=2022-11-28#list-repository-variables](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-repository-variables)\n\n```go\nfunc (s *ActionsService) ListRepoVariablesIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListRepoVariablesIter returns an iterator that paginates through all results of ListRepoVariables.\n\n```go\nfunc (s *ActionsService) ListRepositoriesSelfHostedRunnersAllowedInOrganization(ctx context.Context, org string, opts *ListOptions) (*SelfHostedRunnersAllowedRepos, *Response, error)\n```\nListRepositoriesSelfHostedRunnersAllowedInOrganization lists the repositories that are allowed to use self-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#list-repositories-allowed-to-use-self-hosted-runners-in-an-organization)\n\n```go\nfunc (s *ActionsService) ListRepositoriesSelfHostedRunnersAllowedInOrganizationIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListRepositoriesSelfHostedRunnersAllowedInOrganizationIter returns an iterator that paginates through all results of ListRepositoriesSelfHostedRunnersAllowedInOrganization.\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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-repository-access-to-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-repository-access-to-a-self-hosted-runner-group-in-an-organization)\n\n```go\nfunc (s *ActionsService) ListRepositoryAccessRunnerGroupIter(ctx context.Context, org string, groupID int64, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListRepositoryAccessRunnerGroupIter returns an iterator that paginates through all results of ListRepositoryAccessRunnerGroup.\n\n```go\nfunc (s *ActionsService) ListRepositoryPolicies(ctx context.Context, owner, repo string, opts *ActionsPolicyListOptions) (*ActionsPolicyList, *Response, error)\n```\nListRepositoryPolicies lists all Actions policies for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#list-repository-actions-policies](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#list-repository-actions-policies)\n\n```go\nfunc (s *ActionsService) ListRepositoryPoliciesIter(ctx context.Context, owner string, repo string, opts *ActionsPolicyListOptions) iter.Seq2[*ActionsPolicy, error]\n```\nListRepositoryPoliciesIter returns an iterator that paginates through all results of ListRepositoryPolicies.\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/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRepositoryWorkflowRunsIter(ctx context.Context, owner string, repo string, opts *ListWorkflowRunsOptions) iter.Seq2[*WorkflowRun, error]\n```\nListRepositoryWorkflowRunsIter returns an iterator that paginates through all results of ListRepositoryWorkflowRuns.\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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-a-repository](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRunnerGroupHostedRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*HostedRunners, *Response, error)\n```\nListRunnerGroupHostedRunners lists the GitHub-hosted runners in an organization runner group.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-github-hosted-runners-in-a-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-github-hosted-runners-in-a-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListRunnerGroupHostedRunnersIter(ctx context.Context, org string, groupID int64, opts *ListOptions) iter.Seq2[*HostedRunner, error]\n```\nListRunnerGroupHostedRunnersIter returns an iterator that paginates through all results of ListRunnerGroupHostedRunners.\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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runners-in-a-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runners-in-a-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) ListRunnerGroupRunnersIter(ctx context.Context, org string, groupID int64, opts *ListOptions) iter.Seq2[*Runner, error]\n```\nListRunnerGroupRunnersIter returns an iterator that paginates through all results of ListRunnerGroupRunners.\n\n```go\nfunc (s *ActionsService) ListRunners(ctx context.Context, owner, repo string, opts *ListRunnersOptions) (*Runners, *Response, error)\n```\nListRunners lists all the self-hosted runners for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-a-repository)\n\n```go\nfunc (s *ActionsService) ListRunnersIter(ctx context.Context, owner string, repo string, opts *ListRunnersOptions) iter.Seq2[*Runner, error]\n```\nListRunnersIter returns an iterator that paginates through all results of ListRunners.\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/rest/actions/secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *ActionsService) ListSelectedReposForOrgSecretIter(ctx context.Context, org string, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForOrgSecretIter returns an iterator that paginates through all results of ListSelectedReposForOrgSecret.\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/rest/actions/variables?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-variable)\n\n```go\nfunc (s *ActionsService) ListSelectedReposForOrgVariableIter(ctx context.Context, org string, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForOrgVariableIter returns an iterator that paginates through all results of ListSelectedReposForOrgVariable.\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/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run](https://docs.github.com/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) ListWorkflowJobsAttempt(ctx context.Context, owner, repo string, runID, attemptNumber int64, opts *ListOptions) (*Jobs, *Response, error)\n```\nListWorkflowJobsAttempt lists jobs for a workflow run Attempt.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run-attempt](https://docs.github.com/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run-attempt)\n\n```go\nfunc (s *ActionsService) ListWorkflowJobsAttemptIter(ctx context.Context, owner string, repo string, runID int64, attemptNumber int64, opts *ListOptions) iter.Seq2[*WorkflowJob, error]\n```\nListWorkflowJobsAttemptIter returns an iterator that paginates through all results of ListWorkflowJobsAttempt.\n\n```go\nfunc (s *ActionsService) ListWorkflowJobsIter(ctx context.Context, owner string, repo string, runID int64, opts *ListWorkflowJobsOptions) iter.Seq2[*WorkflowJob, error]\n```\nListWorkflowJobsIter returns an iterator that paginates through all results of ListWorkflowJobs.\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/rest/actions/artifacts?apiVersion=2022-11-28#list-workflow-run-artifacts](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#list-workflow-run-artifacts)\n\n```go\nfunc (s *ActionsService) ListWorkflowRunArtifactsIter(ctx context.Context, owner string, repo string, runID int64, opts *ListOptions) iter.Seq2[*Artifact, error]\n```\nListWorkflowRunArtifactsIter returns an iterator that paginates through all results of ListWorkflowRunArtifacts.\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/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow)\n\n```go\nfunc (s *ActionsService) ListWorkflowRunsByFileNameIter(ctx context.Context, owner string, repo string, workflowFileName string, opts *ListWorkflowRunsOptions) iter.Seq2[*WorkflowRun, error]\n```\nListWorkflowRunsByFileNameIter returns an iterator that paginates through all results of ListWorkflowRunsByFileName.\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/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow)\n\n```go\nfunc (s *ActionsService) ListWorkflowRunsByIDIter(ctx context.Context, owner string, repo string, workflowID int64, opts *ListWorkflowRunsOptions) iter.Seq2[*WorkflowRun, error]\n```\nListWorkflowRunsByIDIter returns an iterator that paginates through all results of ListWorkflowRunsByID.\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/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows](https://docs.github.com/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows)\n\n```go\nfunc (s *ActionsService) ListWorkflowsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Workflow, error]\n```\nListWorkflowsIter returns an iterator that paginates through all results of ListWorkflows.\n\n```go\nfunc (s *ActionsService) PendingDeployments(ctx context.Context, owner, repo string, runID int64, body PendingDeploymentsRequest) ([]*Deployment, *Response, error)\n```\nPendingDeployments approve or reject pending deployments that are waiting on approval by a required reviewer. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#review-pending-deployments-for-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#review-pending-deployments-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) RemoveEnabledOrgInEnterprise(ctx context.Context, owner string, organizationID int64) (*Response, error)\n```\nRemoveEnabledOrgInEnterprise removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#disable-a-selected-organization-for-github-actions-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#disable-a-selected-organization-for-github-actions-in-an-enterprise)\n\n```go\nfunc (s *ActionsService) RemoveEnabledReposInOrg(ctx context.Context, owner string, repositoryID int64) (*Response, error)\n```\nRemoveEnabledReposInOrg removes a single repository from the list of enabled repos for GitHub Actions in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#disable-a-selected-repository-for-github-actions-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#disable-a-selected-repository-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) RemoveOrganizationRunner(ctx context.Context, org 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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-organization](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-organization)\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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization)\n\n```go\nfunc (s *ActionsService) RemoveRepositorySelfHostedRunnersAllowedInOrganization(ctx context.Context, org string, repositoryID int64) (*Response, error)\n```\nRemoveRepositorySelfHostedRunnersAllowedInOrganization removes a repository from the list of repositories that are allowed to use self-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#remove-a-repository-from-the-list-of-repositories-allowed-to-use-self-hosted-runners-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/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-a-repository](https://docs.github.com/rest/actions/self-hosted-runners?apiVersion=2022-11-28#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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-a-self-hosted-runner-from-a-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-a-self-hosted-runner-from-a-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nRemoveSelectedRepoFromOrgSecret removes a repository from an organization secret.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#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/rest/actions/variables?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-failed-jobs-from-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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\nYou can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-a-job-from-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#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. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID of a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-a-workflow](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-a-workflow)\n\n```go\nfunc (s *ActionsService) ReviewCustomDeploymentProtectionRule(ctx context.Context, owner, repo string, runID int64, body ReviewCustomDeploymentProtectionRuleRequest) (*Response, error)\n```\nReviewCustomDeploymentProtectionRule approves or rejects custom deployment protection rules provided by a GitHub App for a workflow run. You can use the helper function \\*DeploymentProtectionRuleEvent.GetRunID() to easily retrieve the workflow run ID from a DeploymentProtectionRuleEvent.\n\nGitHub API docs: [https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#review-custom-deployment-protection-rules-for-a-workflow-run](https://docs.github.com/rest/actions/workflow-runs?apiVersion=2022-11-28#review-custom-deployment-protection-rules-for-a-workflow-run)\n\n```go\nfunc (s *ActionsService) SetCacheRetentionLimitForOrg(ctx context.Context, org string, body ActionsCacheRetentionLimit) (*Response, error)\n```\nSetCacheRetentionLimitForOrg sets the GitHub Actions cache retention limit for an organization. Repositories in the organization may not set a higher cache retention limit.\n\nPermissions: OAuth tokens and personal access tokens (classic) need the admin:organization scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#set-github-actions-cache-retention-limit-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#set-github-actions-cache-retention-limit-for-an-organization)\n\n```go\nfunc (s *ActionsService) SetCacheStorageLimitForOrg(ctx context.Context, org string, body ActionsCacheStorageLimit) (*Response, error)\n```\nSetCacheStorageLimitForOrg sets the GitHub Actions cache storage limit for an organization. Repositories in the organization may not set a higher cache storage limit.\n\nPermissions: OAuth tokens and personal access tokens (classic) need the admin:organization scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#set-github-actions-cache-storage-limit-for-an-organization](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#set-github-actions-cache-storage-limit-for-an-organization)\n\n```go\nfunc (s *ActionsService) SetEnabledOrgsInEnterprise(ctx context.Context, owner string, organizationIDs []int64) (*Response, error)\n```\nSetEnabledOrgsInEnterprise replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-selected-organizations-enabled-for-github-actions-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-selected-organizations-enabled-for-github-actions-in-an-enterprise)\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/rest/actions/permissions?apiVersion=2022-11-28#set-selected-repositories-enabled-for-github-actions-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-selected-repositories-enabled-for-github-actions-in-an-organization)\n\n```go\nfunc (s *ActionsService) SetEnterpriseOIDCCustomPropertyClaim(ctx context.Context, enterprise string, body OIDCCustomPropertyClaim) (*OIDCCustomPropertyClaim, *Response, error)\n```\nSetEnterpriseOIDCCustomPropertyClaim sets a new custom property claim in oidc for enterprise actions.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#create-an-oidc-custom-property-inclusion-for-an-enterprise](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#create-an-oidc-custom-property-inclusion-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) SetOrgOIDCCustomPropertyClaim(ctx context.Context, org string, body OIDCCustomPropertyClaim) (*OIDCCustomPropertyClaim, *Response, error)\n```\nSetOrgOIDCCustomPropertyClaim sets a new custom property claim in oidc for organization actions.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#create-an-oidc-custom-property-inclusion-for-an-organization](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#create-an-oidc-custom-property-inclusion-for-an-organization)\n\n```go\nfunc (s *ActionsService) SetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string, body OIDCSubjectClaimCustomTemplate) (*Response, error)\n```\nSetOrgOIDCSubjectClaimCustomTemplate sets the subject claim customization for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#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, body OIDCSubjectClaimCustomTemplate) (*Response, error)\n```\nSetRepoOIDCSubjectClaimCustomTemplate sets the subject claim customization for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository](https://docs.github.com/rest/actions/oidc?apiVersion=2022-11-28#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository)\n\n```go\nfunc (s *ActionsService) SetRepositoriesSelfHostedRunnersAllowedInOrganization(ctx context.Context, org string, repositoryIDs []int64) (*Response, error)\n```\nSetRepositoriesSelfHostedRunnersAllowedInOrganization allows the list of repositories to use self-hosted runners in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-repositories-allowed-to-use-self-hosted-runners-in-an-organization)\n\n```go\nfunc (s *ActionsService) SetRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, body 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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-repository-access-for-a-self-hosted-runner-group-in-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-repository-access-for-a-self-hosted-runner-group-in-an-organization)\n\n```go\nfunc (s *ActionsService) SetRunnerGroupRunners(ctx context.Context, org string, groupID int64, body 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/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-self-hosted-runners-in-a-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-self-hosted-runners-in-a-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids []int64) (*Response, error)\n```\nSetSelectedReposForOrgSecret sets the repositories that have access to a secret.\n\nGitHub API docs: [https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/actions/secrets?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *ActionsService) SetSelectedReposForOrgVariable(ctx context.Context, org, name string, ids []int64) (*Response, error)\n```\nSetSelectedReposForOrgVariable sets the repositories that have access to a variable.\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-variable)\n\n```go\nfunc (s *ActionsService) UpdateActionsAllowed(ctx context.Context, org string, body ActionsAllowed) (*ActionsAllowed, *Response, error)\n```\nUpdateActionsAllowed sets the actions that are allowed in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateActionsAllowedInEnterprise(ctx context.Context, enterprise string, body ActionsAllowed) (*ActionsAllowed, *Response, error)\n```\nUpdateActionsAllowedInEnterprise sets the actions that are allowed in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdateActionsPermissions(ctx context.Context, org string, body ActionsPermissions) (*ActionsPermissions, *Response, error)\n```\nUpdateActionsPermissions sets the permissions policy for repositories and allowed actions in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateActionsPermissionsInEnterprise(ctx context.Context, enterprise string, body ActionsPermissionsEnterprise) (*ActionsPermissionsEnterprise, *Response, error)\n```\nUpdateActionsPermissionsInEnterprise sets the permissions policy in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdateArtifactAndLogRetentionPeriodInEnterprise(ctx context.Context, enterprise string, body ArtifactPeriodOpt) (*Response, error)\n```\nUpdateArtifactAndLogRetentionPeriodInEnterprise sets the artifact and log retention period for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdateArtifactAndLogRetentionPeriodInOrganization(ctx context.Context, org string, body ArtifactPeriodOpt) (*Response, error)\n```\nUpdateArtifactAndLogRetentionPeriodInOrganization sets the artifact and log retention period for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string, body DefaultWorkflowPermissionEnterprise) (*DefaultWorkflowPermissionEnterprise, *Response, error)\n```\nUpdateDefaultWorkflowPermissionsInEnterprise sets the GitHub Actions default workflow permissions for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdateDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string, body DefaultWorkflowPermissionOrganization) (*DefaultWorkflowPermissionOrganization, *Response, error)\n```\nUpdateDefaultWorkflowPermissionsInOrganization sets the GitHub Actions default workflow permissions for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateEnterpriseForkPRContributorApprovalPermissions(ctx context.Context, enterprise string, body ContributorApprovalPermissions) (*Response, error)\n```\nUpdateEnterpriseForkPRContributorApprovalPermissions sets the fork PR contributor approval policy for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdateEnvVariable(ctx context.Context, owner, repo, env, name string, body ActionsUpdateVariableRequest) (*Response, error)\n```\nUpdateEnvVariable updates an environment variable.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-an-environment-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-an-environment-variable)\n\n```go\nfunc (s *ActionsService) UpdateForkPRContributorApprovalPermissions(ctx context.Context, owner, repo string, body ContributorApprovalPermissions) (*Response, error)\n```\nUpdateForkPRContributorApprovalPermissions sets the fork PR contributor approval policy for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-a-repository)\n\n```go\nfunc (s *ActionsService) UpdateHostedRunner(ctx context.Context, org string, runnerID int64, body UpdateHostedRunnerRequest) (*HostedRunner, *Response, error)\n```\nUpdateHostedRunner updates a GitHub-hosted runner for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#update-a-github-hosted-runner-for-an-organization](https://docs.github.com/rest/actions/hosted-runners?apiVersion=2022-11-28#update-a-github-hosted-runner-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateOrgVariable(ctx context.Context, org, name string, body ActionsUpdateOrgVariableRequest) (*Response, error)\n```\nUpdateOrgVariable updates an organization variable.\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-an-organization-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-an-organization-variable)\n\n```go\nfunc (s *ActionsService) UpdateOrganizationForkPRContributorApprovalPermissions(ctx context.Context, org string, body ContributorApprovalPermissions) (*Response, error)\n```\nUpdateOrganizationForkPRContributorApprovalPermissions sets the fork PR contributor approval policy for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateOrganizationPolicy(ctx context.Context, org string, policyID int64, body UpdateActionsPolicyRequest) (*ActionsPolicy, *Response, error)\n```\nUpdateOrganizationPolicy updates an Actions policy for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#update-an-organization-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#update-an-organization-actions-policy)\n\n```go\nfunc (s *ActionsService) UpdateOrganizationRunnerGroup(ctx context.Context, org string, groupID int64, body UpdateRunnerGroupRequest) (*RunnerGroup, *Response, error)\n```\nUpdateOrganizationRunnerGroup updates a self-hosted runner group for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#update-a-self-hosted-runner-group-for-an-organization](https://docs.github.com/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#update-a-self-hosted-runner-group-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdatePrivateRepoForkPRWorkflowSettingsInEnterprise(ctx context.Context, enterprise string, body *WorkflowsPermissionsOpt) (*Response, error)\n```\nUpdatePrivateRepoForkPRWorkflowSettingsInEnterprise sets the settings for whether workflows from fork pull requests can run on private repositories in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdatePrivateRepoForkPRWorkflowSettingsInOrganization(ctx context.Context, org string, body *WorkflowsPermissionsOpt) (*Response, error)\n```\nUpdatePrivateRepoForkPRWorkflowSettingsInOrganization sets the settings for whether workflows from fork pull requests can run on private repositories in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-an-organization)\n\n```go\nfunc (s *ActionsService) UpdateRepoVariable(ctx context.Context, owner, repo, name string, body ActionsUpdateVariableRequest) (*Response, error)\n```\nUpdateRepoVariable updates a repository variable.\n\nGitHub API docs: [https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-a-repository-variable](https://docs.github.com/rest/actions/variables?apiVersion=2022-11-28#update-a-repository-variable)\n\n```go\nfunc (s *ActionsService) UpdateRepositoryPolicy(ctx context.Context, owner, repo string, policyID int64, body UpdateActionsPolicyRequest) (*ActionsPolicy, *Response, error)\n```\nUpdateRepositoryPolicy updates an Actions policy for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#update-a-repository-actions-policy](https://docs.github.com/rest/actions/policies?apiVersion=2026-03-10#update-a-repository-actions-policy)\n\n```go\nfunc (s *ActionsService) UpdateSelfHostedRunnerPermissionsInEnterprise(ctx context.Context, enterprise string, body SelfHostRunnerPermissionsEnterprise) (*Response, error)\n```\nUpdateSelfHostedRunnerPermissionsInEnterprise sets the self-hosted runner permissions for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-self-hosted-runners-permissions-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-self-hosted-runners-permissions-for-an-enterprise)\n\n```go\nfunc (s *ActionsService) UpdateSelfHostedRunnersSettingsInOrganization(ctx context.Context, org string, body SelfHostedRunnersSettingsOrganizationOpt) (*Response, error)\n```\nUpdateSelfHostedRunnersSettingsInOrganization sets the self-hosted runners permissions settings for repositories in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-self-hosted-runners-settings-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-self-hosted-runners-settings-for-an-organization)\n\n```go\ntype ActionsUpdateOrgVariableRequest struct {\n\tName                  *string `json:\"name,omitempty\"`\n\tValue                 *string `json:\"value,omitempty\"`\n\tVisibility            *string `json:\"visibility,omitempty\"`\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitzero\"`\n}\n```\nActionsUpdateOrgVariableRequest represents a request to update an organization variable.\n\n```go\nfunc (a *ActionsUpdateOrgVariableRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsUpdateOrgVariableRequest) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActionsUpdateOrgVariableRequest) GetValue() string\n```\nGetValue returns the Value field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsUpdateOrgVariableRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\ntype ActionsUpdateVariableRequest struct {\n\tName  *string `json:\"name,omitempty\"`\n\tValue *string `json:\"value,omitempty\"`\n}\n```\nActionsUpdateVariableRequest represents a request to update a variable for a repository or repository environment variable.\n\n```go\nfunc (a *ActionsUpdateVariableRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsUpdateVariableRequest) GetValue() string\n```\nGetValue returns the Value field if it's non-nil, zero value otherwise.\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\n\t// Used by ListOrgVariables and GetOrgVariables\n\tVisibility              *string `json:\"visibility,omitempty\"`\n\tSelectedRepositoriesURL *string `json:\"selected_repositories_url,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) GetName() string\n```\nGetName returns the Name field.\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) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActionsVariable) GetValue() string\n```\nGetValue returns the Value field.\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\nfunc (a *ActionsVariables) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\nfunc (a *ActionsVariables) GetVariables() []*ActionsVariable\n```\nGetVariables returns the Variables slice if it's non-nil, nil otherwise.\n\n```go\ntype ActiveCommitters struct {\n\tTotalAdvancedSecurityCommitters     *int                          `json:\"total_advanced_security_committers,omitempty\"`\n\tTotalCount                          *int                          `json:\"total_count,omitempty\"`\n\tMaximumAdvancedSecurityCommitters   *int                          `json:\"maximum_advanced_security_committers,omitempty\"`\n\tPurchasedAdvancedSecurityCommitters *int                          `json:\"purchased_advanced_security_committers,omitempty\"`\n\tRepositories                        []*RepositoryActiveCommitters `json:\"repositories\"`\n}\n```\nActiveCommitters represents the total active committers across all repositories in an Organization.\n\n```go\nfunc (a *ActiveCommitters) GetMaximumAdvancedSecurityCommitters() int\n```\nGetMaximumAdvancedSecurityCommitters returns the MaximumAdvancedSecurityCommitters field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActiveCommitters) GetPurchasedAdvancedSecurityCommitters() int\n```\nGetPurchasedAdvancedSecurityCommitters returns the PurchasedAdvancedSecurityCommitters field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActiveCommitters) GetRepositories() []*RepositoryActiveCommitters\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ActiveCommitters) GetTotalAdvancedSecurityCommitters() int\n```\nGetTotalAdvancedSecurityCommitters returns the TotalAdvancedSecurityCommitters field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ActiveCommitters) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ActiveCommittersListOptions struct {\n\t// The security product to get GitHub Advanced Security active committers for. For standalone\n\t// Code Scanning or Secret Protection products, this parameter is required to specify which\n\t// product you want committer information for. For other plans this parameter cannot be used.\n\t//\n\t// Can be one of: \"code_security\", \"secret_protection\".\n\tAdvancedSecurityProduct *string `url:\"advanced_security_product,omitempty\"`\n\n\tListOptions\n}\n```\nActiveCommittersListOptions specifies optional parameters to the BillingService.GetAdvancedSecurityActiveCommittersOrg method.\n\n```go\nfunc (a *ActiveCommittersListOptions) GetAdvancedSecurityProduct() string\n```\nGetAdvancedSecurityProduct returns the AdvancedSecurityProduct field if it's non-nil, zero value otherwise.\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\nfunc (a *ActivityListStarredOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (a *ActivityListStarredOptions) GetSort() string\n```\nGetSort returns the Sort field.\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/rest/activity?apiVersion=2022-11-28](https://docs.github.com/rest/activity?apiVersion=2022-11-28)\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/rest/activity/watching?apiVersion=2022-11-28#delete-a-repository-subscription](https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#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/rest/activity/notifications?apiVersion=2022-11-28#delete-a-thread-subscription](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#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/rest/activity/watching?apiVersion=2022-11-28#get-a-repository-subscription](https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#get-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) GetStargazerCount(ctx context.Context, owner, repo string) (*StargazerCount, *Response, error)\n```\nGetStargazerCount gets the number of people who have starred the specified repo.\n\nGitHub API docs: [https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#get-stargazer-count](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#get-stargazer-count)\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/rest/activity/notifications?apiVersion=2022-11-28#get-a-thread](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#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/rest/activity/notifications?apiVersion=2022-11-28#get-a-thread-subscription-for-the-authenticated-user](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#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/rest/activity/starring?apiVersion=2022-11-28#check-if-a-repository-is-starred-by-the-authenticated-user](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#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/rest/activity/events?apiVersion=2022-11-28#list-public-events](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#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/rest/activity/events?apiVersion=2022-11-28#list-public-organization-events](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-public-organization-events)\n\n```go\nfunc (s *ActivityService) ListEventsForOrganizationIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListEventsForOrganizationIter returns an iterator that paginates through all results of ListEventsForOrganization.\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/rest/activity/events?apiVersion=2022-11-28#list-public-events-for-a-network-of-repositories](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-public-events-for-a-network-of-repositories)\n\n```go\nfunc (s *ActivityService) ListEventsForRepoNetworkIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListEventsForRepoNetworkIter returns an iterator that paginates through all results of ListEventsForRepoNetwork.\n\n```go\nfunc (s *ActivityService) ListEventsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListEventsIter returns an iterator that paginates through all results of ListEvents.\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/rest/activity/events?apiVersion=2022-11-28#list-events-for-the-authenticated-user](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-events-for-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-public-events-for-a-user](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-public-events-for-a-user)\n\n```go\nfunc (s *ActivityService) ListEventsPerformedByUserIter(ctx context.Context, user string, publicOnly bool, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListEventsPerformedByUserIter returns an iterator that paginates through all results of ListEventsPerformedByUser.\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/rest/activity/events?apiVersion=2022-11-28#list-events-received-by-the-authenticated-user](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-events-received-by-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-public-events-received-by-a-user](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-public-events-received-by-a-user)\n\n```go\nfunc (s *ActivityService) ListEventsReceivedByUserIter(ctx context.Context, user string, publicOnly bool, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListEventsReceivedByUserIter returns an iterator that paginates through all results of ListEventsReceivedByUser.\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\nGitHub API docs: [https://docs.github.com/rest/activity/feeds?apiVersion=2022-11-28#get-feeds](https://docs.github.com/rest/activity/feeds?apiVersion=2022-11-28#get-feeds)\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/rest/issues/events?apiVersion=2022-11-28#list-issue-events-for-a-repository](https://docs.github.com/rest/issues/events?apiVersion=2022-11-28#list-issue-events-for-a-repository)\n\n```go\nfunc (s *ActivityService) ListIssueEventsForRepositoryIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*IssueEvent, error]\n```\nListIssueEventsForRepositoryIter returns an iterator that paginates through all results of ListIssueEventsForRepository.\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/rest/activity/notifications?apiVersion=2022-11-28#list-notifications-for-the-authenticated-user](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#list-notifications-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListNotificationsIter(ctx context.Context, opts *NotificationListOptions) iter.Seq2[*Notification, error]\n```\nListNotificationsIter returns an iterator that paginates through all results of ListNotifications.\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/rest/activity/events?apiVersion=2022-11-28#list-repository-events](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-repository-events)\n\n```go\nfunc (s *ActivityService) ListRepositoryEventsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListRepositoryEventsIter returns an iterator that paginates through all results of ListRepositoryEvents.\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/rest/activity/notifications?apiVersion=2022-11-28#list-repository-notifications-for-the-authenticated-user](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#list-repository-notifications-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListRepositoryNotificationsIter(ctx context.Context, owner string, repo string, opts *NotificationListOptions) iter.Seq2[*Notification, error]\n```\nListRepositoryNotificationsIter returns an iterator that paginates through all results of ListRepositoryNotifications.\n\n```go\nfunc (s *ActivityService) ListStargazerHistory(ctx context.Context, owner, repo string, opts *ListOptions) ([]*StargazerHistory, *Response, error)\n```\nListStargazerHistory lists the stars of the specified repo grouped by week.\n\nGitHub API docs: [https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#get-repository-star-history](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#get-repository-star-history)\n\n```go\nfunc (s *ActivityService) ListStargazerHistoryIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*StargazerHistory, error]\n```\nListStargazerHistoryIter returns an iterator that paginates through all results of ListStargazerHistory.\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/rest/activity/starring?apiVersion=2022-11-28#list-stargazers](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#list-stargazers)\n\n```go\nfunc (s *ActivityService) ListStargazersIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Stargazer, error]\n```\nListStargazersIter returns an iterator that paginates through all results of ListStargazers.\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/rest/activity/starring?apiVersion=2022-11-28#list-repositories-starred-by-a-user](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#list-repositories-starred-by-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#list-repositories-starred-by-the-authenticated-user](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#list-repositories-starred-by-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListStarredIter(ctx context.Context, user string, opts *ActivityListStarredOptions) iter.Seq2[*StarredRepository, error]\n```\nListStarredIter returns an iterator that paginates through all results of ListStarred.\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/rest/activity/events?apiVersion=2022-11-28#list-organization-events-for-the-authenticated-user](https://docs.github.com/rest/activity/events?apiVersion=2022-11-28#list-organization-events-for-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListUserEventsForOrganizationIter(ctx context.Context, org string, user string, opts *ListOptions) iter.Seq2[*Event, error]\n```\nListUserEventsForOrganizationIter returns an iterator that paginates through all results of ListUserEventsForOrganization.\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/rest/activity/watching?apiVersion=2022-11-28#list-repositories-watched-by-a-user](https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#list-repositories-watched-by-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#list-repositories-watched-by-the-authenticated-user](https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#list-repositories-watched-by-the-authenticated-user)\n\n```go\nfunc (s *ActivityService) ListWatchedIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListWatchedIter returns an iterator that paginates through all results of ListWatched.\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/rest/activity/watching?apiVersion=2022-11-28#list-watchers](https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#list-watchers)\n\n```go\nfunc (s *ActivityService) ListWatchersIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*User, error]\n```\nListWatchersIter returns an iterator that paginates through all results of ListWatchers.\n\n```go\nfunc (s *ActivityService) MarkNotificationsRead(ctx context.Context, lastRead Timestamp) (*Response, error)\n```\nMarkNotificationsRead marks all notifications up to lastRead as read. If lastRead is the zero value, all notifications in the repository are marked as read.\n\nGitHub API docs: [https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-notifications-as-read](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-notifications-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. If lastRead is the zero value, all notifications in the repository are marked as read.\n\nGitHub API docs: [https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-repository-notifications-as-read](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-repository-notifications-as-read)\n\n```go\nfunc (s *ActivityService) MarkThreadDone(ctx context.Context, id string) (*Response, error)\n```\nMarkThreadDone marks the specified thread as done. Marking a thread as \"done\" is equivalent to marking a notification in your notification inbox on GitHub as done.\n\nGitHub API docs: [https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-a-thread-as-done](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-a-thread-as-done)\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/rest/activity/notifications?apiVersion=2022-11-28#mark-a-thread-as-read](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#mark-a-thread-as-read)\n\n```go\nfunc (s *ActivityService) SetRepositorySubscription(ctx context.Context, owner, repo string, body *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/rest/activity/watching?apiVersion=2022-11-28#set-a-repository-subscription](https://docs.github.com/rest/activity/watching?apiVersion=2022-11-28#set-a-repository-subscription)\n\n```go\nfunc (s *ActivityService) SetThreadSubscription(ctx context.Context, id string, body *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/rest/activity/notifications?apiVersion=2022-11-28#set-a-thread-subscription](https://docs.github.com/rest/activity/notifications?apiVersion=2022-11-28#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/rest/activity/starring?apiVersion=2022-11-28#star-a-repository-for-the-authenticated-user](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#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/rest/activity/starring?apiVersion=2022-11-28#unstar-a-repository-for-the-authenticated-user](https://docs.github.com/rest/activity/starring?apiVersion=2022-11-28#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 AddCollaboratorRequest 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 push and pull, 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```\nAddCollaboratorRequest represents a request to add a collaborator to a repository.\n\n```go\nfunc (a *AddCollaboratorRequest) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\ntype AddProjectItemRequest struct {\n\tType   ProjectV2ItemContentType `json:\"type\"`\n\tID     *int64                   `json:\"id,omitempty\"`\n\tOwner  *string                  `json:\"owner,omitempty\"`\n\tRepo   *string                  `json:\"repo,omitempty\"`\n\tNumber *int                     `json:\"number,omitempty\"`\n}\n```\nAddProjectItemRequest represents the payload to add an item (issue or pull request) to a project. The Type must be either \"Issue\" or \"PullRequest\" (as per API docs). The item is identified either by ID, the numerical ID of that issue or pull request, or by Owner, Repo, and Number.\n\n```go\nfunc (a *AddProjectItemRequest) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectItemRequest) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectItemRequest) GetOwner() string\n```\nGetOwner returns the Owner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectItemRequest) GetRepo() string\n```\nGetRepo returns the Repo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectItemRequest) GetType() ProjectV2ItemContentType\n```\nGetType returns the Type field.\n\n```go\ntype AddProjectV2FieldRequest struct {\n\t// Name is the name of the field.\n\tName *string `json:\"name,omitempty\"`\n\t// DataType is the field's data type.\n\t// One of: text, number, date, single_select, iteration.\n\tDataType *string `json:\"data_type,omitempty\"`\n\t// SingleSelectOptions holds the options for a single_select field. (Required for single_select.)\n\tSingleSelectOptions []*ProjectV2FieldSingleSelectOption `json:\"single_select_options,omitempty\"`\n\t// IterationConfiguration holds the configuration for an iteration field. (Required for iteration.)\n\tIterationConfiguration *ProjectV2FieldIterationConfiguration `json:\"iteration_configuration,omitempty\"`\n\t// IssueFieldID links an existing built-in issue field to the project. (Organization owned projects only.)\n\tIssueFieldID *int64 `json:\"issue_field_id,omitempty\"`\n}\n```\nAddProjectV2FieldRequest specifies the parameters to add a field to a project.\n\nThe GitHub API models the body as a one-of: set IssueFieldID to link a built-in issue field, or set Name and DataType to create a new field. When DataType is \"single\\_select\", SingleSelectOptions is required; when DataType is \"iteration\", IterationConfiguration is required.\n\n```go\nfunc (a *AddProjectV2FieldRequest) GetDataType() string\n```\nGetDataType returns the DataType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectV2FieldRequest) GetIssueFieldID() int64\n```\nGetIssueFieldID returns the IssueFieldID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectV2FieldRequest) GetIterationConfiguration() *ProjectV2FieldIterationConfiguration\n```\nGetIterationConfiguration returns the IterationConfiguration field.\n\n```go\nfunc (a *AddProjectV2FieldRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddProjectV2FieldRequest) GetSingleSelectOptions() []*ProjectV2FieldSingleSelectOption\n```\nGetSingleSelectOptions returns the SingleSelectOptions slice if it's non-nil, nil otherwise.\n\n```go\ntype AddResourcesToCostCenterResponse struct {\n\tMessage             *string               `json:\"message,omitempty\"`\n\tReassignedResources []*ReassignedResource `json:\"reassigned_resources,omitempty\"`\n}\n```\nAddResourcesToCostCenterResponse represents a response from adding resources to a cost center.\n\n```go\nfunc (a *AddResourcesToCostCenterResponse) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AddResourcesToCostCenterResponse) GetReassignedResources() []*ReassignedResource\n```\nGetReassignedResources returns the ReassignedResources slice if it's non-nil, nil otherwise.\n\n```go\ntype AddTeamMembershipRequest 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```\nAddTeamMembershipRequest represents a request to add or update a user's membership in a team.\n\n```go\nfunc (a *AddTeamMembershipRequest) GetRole() string\n```\nGetRole returns the Role field if it's non-nil, zero value otherwise.\n\n```go\ntype AddTeamProjectRequest 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```\nAddTeamProjectRequest represents a request to add or update a team's permissions on a project.\n\n```go\nfunc (a *AddTeamProjectRequest) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\ntype AddTeamRepoRequest 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 push and pull, 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```\nAddTeamRepoRequest represents a request to add or update a team's permissions on a repository.\n\n```go\nfunc (a *AddTeamRepoRequest) GetPermission() string\n```\nGetPermission returns the Permission 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) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\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/rest/enterprise-admin?apiVersion=2022-11-28](https://docs.github.com/rest/enterprise-admin?apiVersion=2022-11-28)\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 API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/orgs#create-an-organization](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/orgs#create-an-organization)\n\n```go\nfunc (s *AdminService) CreateUser(ctx context.Context, body CreateUserRequest) (*User, *Response, error)\n```\nCreateUser creates a new user in GitHub Enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#create-a-user](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#create-a-user)\n\n```go\nfunc (s *AdminService) CreateUserImpersonation(ctx context.Context, username string, body CreateUserImpersonationRequest) (*UserAuthorization, *Response, error)\n```\nCreateUserImpersonation creates an impersonation OAuth token.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#create-an-impersonation-oauth-token](https://docs.github.com/enterprise-server@3.22/rest/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 API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#delete-a-user](https://docs.github.com/enterprise-server@3.22/rest/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 API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#delete-an-impersonation-oauth-token](https://docs.github.com/enterprise-server@3.22/rest/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/enterprise-server@3.22/rest/enterprise-admin/admin-stats#get-all-statistics](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/admin-stats#get-all-statistics)\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 API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/orgs#update-an-organization-name](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/orgs#update-an-organization-name)\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 API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/orgs#update-an-organization-name](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/orgs#update-an-organization-name)\n\n```go\nfunc (s *AdminService) UpdateTeamLDAPMapping(ctx context.Context, teamID int64, body UpdateTeamLDAPMappingRequest) (*TeamLDAPMapping, *Response, error)\n```\nUpdateTeamLDAPMapping updates the mapping between a GitHub team and an LDAP group.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team)\n\n```go\nfunc (s *AdminService) UpdateUserLDAPMapping(ctx context.Context, user string, body UpdateUserLDAPMappingRequest) (*UserLDAPMapping, *Response, error)\n```\nUpdateUserLDAPMapping updates the mapping between a GitHub user and an LDAP user.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user](https://docs.github.com/enterprise-server@3.22/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/github/getting-started-with-github/learning-about-github/about-github-advanced-security](https://docs.github.com/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\"`\n\tLastPushedDate  string `json:\"last_pushed_date\"`\n\tLastPushedEmail string `json:\"last_pushed_email\"`\n}\n```\nAdvancedSecurityCommittersBreakdown represents the user activity breakdown for ActiveCommitters.\n\n```go\nfunc (a *AdvancedSecurityCommittersBreakdown) GetLastPushedDate() string\n```\nGetLastPushedDate returns the LastPushedDate field.\n\n```go\nfunc (a *AdvancedSecurityCommittersBreakdown) GetLastPushedEmail() string\n```\nGetLastPushedEmail returns the LastPushedEmail field.\n\n```go\nfunc (a *AdvancedSecurityCommittersBreakdown) GetUserLogin() string\n```\nGetUserLogin returns the UserLogin field.\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 if it's non-nil, zero value otherwise.\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 AdvisoryCVSSSeverities struct {\n\tCVSSV3 *AdvisoryCVSS `json:\"cvss_v3,omitempty\"`\n\tCVSSV4 *AdvisoryCVSS `json:\"cvss_v4,omitempty\"`\n}\n```\nAdvisoryCVSSSeverities represents the advisory pertaining to the Common Vulnerability Scoring System for each supported CVSS version.\n\n```go\nfunc (a *AdvisoryCVSSSeverities) GetCVSSV3() *AdvisoryCVSS\n```\nGetCVSSV3 returns the CVSSV3 field.\n\n```go\nfunc (a *AdvisoryCVSSSeverities) GetCVSSV4() *AdvisoryCVSS\n```\nGetCVSSV4 returns the CVSSV4 field.\n\n```go\ntype AdvisoryCWEs struct {\n\tCWEID *string `json:\"cwe_id,omitempty\"`\n\tName  *string `json:\"name,omitempty\"`\n}\n```\nAdvisoryCWEs represent 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 AdvisoryEPSS struct {\n\tPercentage float64 `json:\"percentage\"`\n\tPercentile float64 `json:\"percentile\"`\n}\n```\nAdvisoryEPSS represents the advisory pertaining to the Exploit Prediction Scoring System.\n\nFor more information, see: [https://github.blog/changelog/2024-10-10-epss-scores-in-the-github-advisory-database/](https://github.blog/changelog/2024-10-10-epss-scores-in-the-github-advisory-database/)\n\n```go\nfunc (a *AdvisoryEPSS) GetPercentage() float64\n```\nGetPercentage returns the Percentage field.\n\n```go\nfunc (a *AdvisoryEPSS) GetPercentile() float64\n```\nGetPercentile returns the Percentile field.\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\t// PatchedVersions and VulnerableFunctions are used in the following APIs:\n\t// - https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories-for-an-organization\n\t// - https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories\n\tPatchedVersions     *string  `json:\"patched_versions,omitempty\"`\n\tVulnerableFunctions []string `json:\"vulnerable_functions,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) GetPatchedVersions() string\n```\nGetPatchedVersions returns the PatchedVersions field if it's non-nil, zero value otherwise.\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) GetVulnerableFunctions() []string\n```\nGetVulnerableFunctions returns the VulnerableFunctions slice if it's non-nil, nil 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 AgentTask struct {\n\tID          string            `json:\"id\"`\n\tURL         *string           `json:\"url,omitempty\"`\n\tHTMLURL     *string           `json:\"html_url,omitempty\"`\n\tName        *string           `json:\"name,omitempty\"`\n\tCreator     *AgentTaskCreator `json:\"creator,omitempty\"`\n\tCreatorType *string           `json:\"creator_type,omitempty\"`\n\t// UserCollaborators are the user objects of collaborators on this task.\n\t//\n\t// Deprecated: This field is deprecated by the GitHub API.\n\tUserCollaborators []*User              `json:\"user_collaborators,omitempty\"`\n\tOwner             *AgentTaskOwner      `json:\"owner,omitempty\"`\n\tRepository        *AgentTaskRepository `json:\"repository,omitempty\"`\n\tState             string               `json:\"state\"`\n\tSessionCount      *int                 `json:\"session_count,omitempty\"`\n\tArtifacts         []*AgentTaskArtifact `json:\"artifacts,omitempty\"`\n\tArchivedAt        *Timestamp           `json:\"archived_at,omitempty\"`\n\tCreatedAt         Timestamp            `json:\"created_at\"`\n\tUpdatedAt         *Timestamp           `json:\"updated_at,omitempty\"`\n\tSessions          []*AgentTaskSession  `json:\"sessions,omitempty\"`\n}\n```\nAgentTask represents a Copilot cloud agent task.\n\n```go\nfunc (a *AgentTask) GetArchivedAt() Timestamp\n```\nGetArchivedAt returns the ArchivedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetArtifacts() []*AgentTaskArtifact\n```\nGetArtifacts returns the Artifacts slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *AgentTask) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (a *AgentTask) GetCreator() *AgentTaskCreator\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (a *AgentTask) GetCreatorType() string\n```\nGetCreatorType returns the CreatorType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (a *AgentTask) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetOwner() *AgentTaskOwner\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (a *AgentTask) GetRepository() *AgentTaskRepository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (a *AgentTask) GetSessionCount() int\n```\nGetSessionCount returns the SessionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetSessions() []*AgentTaskSession\n```\nGetSessions returns the Sessions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *AgentTask) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (a *AgentTask) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTask) GetUserCollaborators() []*User\n```\nGetUserCollaborators returns the UserCollaborators slice if it's non-nil, nil otherwise.\n\n```go\ntype AgentTaskArtifact struct {\n\tProvider string                 `json:\"provider\"`\n\tType     string                 `json:\"type\"`\n\tData     *AgentTaskArtifactData `json:\"data,omitempty\"`\n}\n```\nAgentTaskArtifact represents an artifact produced by an agent task.\n\n```go\nfunc (a *AgentTaskArtifact) GetData() *AgentTaskArtifactData\n```\nGetData returns the Data field.\n\n```go\nfunc (a *AgentTaskArtifact) GetProvider() string\n```\nGetProvider returns the Provider field.\n\n```go\nfunc (a *AgentTaskArtifact) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype AgentTaskArtifactData struct {\n\tID       *int64  `json:\"id,omitempty\"`\n\tGlobalID *string `json:\"global_id,omitempty\"`\n\tHeadRef  *string `json:\"head_ref,omitempty\"`\n\tBaseRef  *string `json:\"base_ref,omitempty\"`\n}\n```\nAgentTaskArtifactData represents data associated with an agent task artifact.\n\n```go\nfunc (a *AgentTaskArtifactData) GetBaseRef() string\n```\nGetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskArtifactData) GetGlobalID() string\n```\nGetGlobalID returns the GlobalID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskArtifactData) GetHeadRef() string\n```\nGetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskArtifactData) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\ntype AgentTaskCreator struct {\n\tID *int64 `json:\"id,omitempty\"`\n}\n```\nAgentTaskCreator represents an agent task creator.\n\n```go\nfunc (a *AgentTaskCreator) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\ntype AgentTaskList struct {\n\tTasks              []*AgentTask `json:\"tasks\"`\n\tTotalActiveCount   *int         `json:\"total_active_count,omitempty\"`\n\tTotalArchivedCount *int         `json:\"total_archived_count,omitempty\"`\n}\n```\nAgentTaskList represents a list of agent tasks.\n\n```go\nfunc (a *AgentTaskList) GetTasks() []*AgentTask\n```\nGetTasks returns the Tasks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *AgentTaskList) GetTotalActiveCount() int\n```\nGetTotalActiveCount returns the TotalActiveCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskList) GetTotalArchivedCount() int\n```\nGetTotalArchivedCount returns the TotalArchivedCount field if it's non-nil, zero value otherwise.\n\n```go\ntype AgentTaskListByRepoOptions struct {\n\tAgentTaskListOptions\n\n\t// CreatorID filters tasks by creator user IDs.\n\tCreatorID []int64 `url:\"creator_id,omitempty\"`\n}\n```\nAgentTaskListByRepoOptions specifies optional parameters to AgentTasksService.ListByRepo.\n\n```go\nfunc (a *AgentTaskListByRepoOptions) GetCreatorID() []int64\n```\nGetCreatorID returns the CreatorID slice if it's non-nil, nil otherwise.\n\n```go\ntype AgentTaskListOptions struct {\n\t// Sort specifies the field to sort results by. Possible values are: updated_at, created_at.\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction specifies the direction to sort results by. Possible values are: asc, desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// State is a comma-separated list of task states to filter by.\n\t// Possible values are: queued, in_progress, completed, failed, idle,\n\t// waiting_for_user, timed_out, cancelled.\n\tState string `url:\"state,omitempty\"`\n\n\t// IsArchived filters tasks by archived status.\n\tIsArchived bool `url:\"is_archived,omitempty\"`\n\n\t// Since filters tasks updated at or after this time.\n\tSince *time.Time `url:\"since,omitempty\"`\n\n\tListOptions\n}\n```\nAgentTaskListOptions specifies optional parameters to AgentTasksService.List.\n\n```go\nfunc (a *AgentTaskListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (a *AgentTaskListOptions) GetIsArchived() bool\n```\nGetIsArchived returns the IsArchived field.\n\n```go\nfunc (a *AgentTaskListOptions) GetSince() time.Time\n```\nGetSince returns the Since field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (a *AgentTaskListOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype AgentTaskOwner struct {\n\tID *int64 `json:\"id,omitempty\"`\n}\n```\nAgentTaskOwner represents an agent task owner.\n\n```go\nfunc (a *AgentTaskOwner) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\ntype AgentTaskRepository struct {\n\tID *int64 `json:\"id,omitempty\"`\n}\n```\nAgentTaskRepository represents an agent task repository.\n\n```go\nfunc (a *AgentTaskRepository) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\ntype AgentTaskSession struct {\n\tID          string                 `json:\"id\"`\n\tName        *string                `json:\"name,omitempty\"`\n\tUser        *User                  `json:\"user,omitempty\"`\n\tOwner       *AgentTaskOwner        `json:\"owner,omitempty\"`\n\tRepository  *AgentTaskRepository   `json:\"repository,omitempty\"`\n\tTaskID      *string                `json:\"task_id,omitempty\"`\n\tState       string                 `json:\"state\"`\n\tCreatedAt   Timestamp              `json:\"created_at\"`\n\tUpdatedAt   *Timestamp             `json:\"updated_at,omitempty\"`\n\tCompletedAt *Timestamp             `json:\"completed_at,omitempty\"`\n\tPrompt      *string                `json:\"prompt,omitempty\"`\n\tHeadRef     *string                `json:\"head_ref,omitempty\"`\n\tBaseRef     *string                `json:\"base_ref,omitempty\"`\n\tModel       *string                `json:\"model,omitempty\"`\n\tError       *AgentTaskSessionError `json:\"error,omitempty\"`\n}\n```\nAgentTaskSession represents a session associated with an agent task.\n\n```go\nfunc (a *AgentTaskSession) GetBaseRef() string\n```\nGetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (a *AgentTaskSession) GetError() *AgentTaskSessionError\n```\nGetError returns the Error field.\n\n```go\nfunc (a *AgentTaskSession) GetHeadRef() string\n```\nGetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (a *AgentTaskSession) GetModel() string\n```\nGetModel returns the Model field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetOwner() *AgentTaskOwner\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (a *AgentTaskSession) GetPrompt() string\n```\nGetPrompt returns the Prompt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetRepository() *AgentTaskRepository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (a *AgentTaskSession) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (a *AgentTaskSession) GetTaskID() string\n```\nGetTaskID returns the TaskID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AgentTaskSession) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype AgentTaskSessionError struct {\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nAgentTaskSessionError represents error details for a failed agent task session.\n\n```go\nfunc (a *AgentTaskSessionError) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\ntype AgentTasksService service\n```\nAgentTasksService handles communication with the agent tasks methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28](https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28)\n\n```go\nfunc (s *AgentTasksService) Create(ctx context.Context, owner, repo string, body CreateAgentTaskRequest) (*AgentTask, *Response, error)\n```\nCreate starts a new Copilot cloud agent task for a repository.\n\nNote: This endpoint is in public preview and is subject to change.\n\nGitHub API docs: [https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#start-a-task](https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#start-a-task)\n\n```go\nfunc (s *AgentTasksService) Get(ctx context.Context, taskID string) (*AgentTask, *Response, error)\n```\nGet gets a task by ID for the authenticated user.\n\nNote: This endpoint is in public preview and is subject to change.\n\nGitHub API docs: [https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#get-a-task-by-id](https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#get-a-task-by-id)\n\n```go\nfunc (s *AgentTasksService) GetByRepoAndID(ctx context.Context, owner, repo, taskID string) (*AgentTask, *Response, error)\n```\nGetByRepoAndID gets a repository task by ID.\n\nNote: This endpoint is in public preview and is subject to change.\n\nGitHub API docs: [https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#get-a-task-by-repo](https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#get-a-task-by-repo)\n\n```go\nfunc (s *AgentTasksService) List(ctx context.Context, opts *AgentTaskListOptions) (*AgentTaskList, *Response, error)\n```\nList lists tasks for the authenticated user.\n\nNote: This endpoint is in public preview and is subject to change.\n\nGitHub API docs: [https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#list-tasks](https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#list-tasks)\n\n```go\nfunc (s *AgentTasksService) ListByRepo(ctx context.Context, owner, repo string, opts *AgentTaskListByRepoOptions) (*AgentTaskList, *Response, error)\n```\nListByRepo lists tasks for a repository.\n\nNote: This endpoint is in public preview and is subject to change.\n\nGitHub API docs: [https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#list-tasks-for-repository](https://docs.github.com/rest/agent-tasks/agent-tasks?apiVersion=2022-11-28#list-tasks-for-repository)\n\n```go\nfunc (s *AgentTasksService) ListByRepoIter(ctx context.Context, owner string, repo string, opts *AgentTaskListByRepoOptions) iter.Seq2[*AgentTask, error]\n```\nListByRepoIter returns an iterator that paginates through all results of ListByRepo.\n\n```go\nfunc (s *AgentTasksService) ListIter(ctx context.Context, opts *AgentTaskListOptions) iter.Seq2[*AgentTask, error]\n```\nListIter returns an iterator that paginates through all results of List.\n\n```go\ntype AgentsService service\n```\nAgentsService handles communication with the Agents related methods of the GitHub API.\n\nThe Agents endpoints are only served by the 2026-03-10 API version, so these methods send that version explicitly instead of the client's default.\n\nGitHub API docs: [https://docs.github.com/rest/agents?apiVersion=2026-03-10](https://docs.github.com/rest/agents?apiVersion=2026-03-10)\n\n```go\nfunc (s *AgentsService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nAddSelectedRepoToOrgSecret adds a repository to an organization Agents secret.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#add-selected-repository-to-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#add-selected-repository-to-an-organization-secret)\n\n```go\nfunc (s *AgentsService) AddSelectedRepoToOrgVariable(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nAddSelectedRepoToOrgVariable adds a repository to an organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#add-selected-repository-to-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#add-selected-repository-to-an-organization-variable)\n\n```go\nfunc (s *AgentsService) CreateOrUpdateOrgSecret(ctx context.Context, org, name string, body SecretOrgRequest) (*Response, error)\n```\nCreateOrUpdateOrgSecret creates or updates an organization Agents secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#create-or-update-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#create-or-update-an-organization-secret)\n\n```go\nfunc (s *AgentsService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo, name string, body SecretRequest) (*Response, error)\n```\nCreateOrUpdateRepoSecret creates or updates a repository Agents secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#create-or-update-a-repository-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#create-or-update-a-repository-secret)\n\n```go\nfunc (s *AgentsService) CreateOrgVariable(ctx context.Context, org string, body ActionsCreateOrgVariableRequest) (*Response, error)\n```\nCreateOrgVariable creates an organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#create-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#create-an-organization-variable)\n\n```go\nfunc (s *AgentsService) CreateRepoVariable(ctx context.Context, owner, repo string, body ActionsCreateVariableRequest) (*Response, error)\n```\nCreateRepoVariable creates a repository Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#create-a-repository-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#create-a-repository-variable)\n\n```go\nfunc (s *AgentsService) DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error)\n```\nDeleteOrgSecret deletes an Agents secret in an organization using the secret name.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#delete-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#delete-an-organization-secret)\n\n```go\nfunc (s *AgentsService) DeleteOrgVariable(ctx context.Context, org, name string) (*Response, error)\n```\nDeleteOrgVariable deletes an organization Agents variable using the variable name.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#delete-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#delete-an-organization-variable)\n\n```go\nfunc (s *AgentsService) DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteRepoSecret deletes an Agents secret in a repository using the secret name.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#delete-a-repository-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#delete-a-repository-secret)\n\n```go\nfunc (s *AgentsService) DeleteRepoVariable(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteRepoVariable deletes a repository Agents variable using the variable name.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#delete-a-repository-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#delete-a-repository-variable)\n\n```go\nfunc (s *AgentsService) GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error)\n```\nGetOrgPublicKey gets a public key that should be used for Agents secret encryption.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-an-organization-public-key](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-an-organization-public-key)\n\n```go\nfunc (s *AgentsService) GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error)\n```\nGetOrgSecret gets a single organization Agents secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-an-organization-secret)\n\n```go\nfunc (s *AgentsService) GetOrgVariable(ctx context.Context, org, name string) (*ActionsVariable, *Response, error)\n```\nGetOrgVariable gets a single organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#get-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#get-an-organization-variable)\n\n```go\nfunc (s *AgentsService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error)\n```\nGetRepoPublicKey gets a public key that should be used for Agents secret encryption.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-a-repository-public-key](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-a-repository-public-key)\n\n```go\nfunc (s *AgentsService) GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error)\n```\nGetRepoSecret gets a single repository Agents secret without revealing its encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-a-repository-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#get-a-repository-secret)\n\n```go\nfunc (s *AgentsService) GetRepoVariable(ctx context.Context, owner, repo, name string) (*ActionsVariable, *Response, error)\n```\nGetRepoVariable gets a single repository Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#get-a-repository-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#get-a-repository-variable)\n\n```go\nfunc (s *AgentsService) ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListOrgSecrets lists all Agents secrets available in an organization without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-organization-secrets](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-organization-secrets)\n\n```go\nfunc (s *AgentsService) ListOrgSecretsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListOrgSecretsIter returns an iterator that paginates through all results of ListOrgSecrets.\n\n```go\nfunc (s *AgentsService) ListOrgVariables(ctx context.Context, org string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListOrgVariables lists all Agents variables available in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-organization-variables](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-organization-variables)\n\n```go\nfunc (s *AgentsService) ListOrgVariablesIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListOrgVariablesIter returns an iterator that paginates through all results of ListOrgVariables.\n\n```go\nfunc (s *AgentsService) ListRepoOrgSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListRepoOrgSecrets lists all organization Agents secrets available in a repository without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-repository-organization-secrets](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-repository-organization-secrets)\n\n```go\nfunc (s *AgentsService) ListRepoOrgSecretsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListRepoOrgSecretsIter returns an iterator that paginates through all results of ListRepoOrgSecrets.\n\n```go\nfunc (s *AgentsService) ListRepoOrgVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListRepoOrgVariables lists all organization Agents variables available in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-repository-organization-variables](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-repository-organization-variables)\n\n```go\nfunc (s *AgentsService) ListRepoOrgVariablesIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListRepoOrgVariablesIter returns an iterator that paginates through all results of ListRepoOrgVariables.\n\n```go\nfunc (s *AgentsService) ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)\n```\nListRepoSecrets lists all Agents secrets available in a repository without revealing their encrypted values.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-repository-secrets](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-repository-secrets)\n\n```go\nfunc (s *AgentsService) ListRepoSecretsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListRepoSecretsIter returns an iterator that paginates through all results of ListRepoSecrets.\n\n```go\nfunc (s *AgentsService) ListRepoVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error)\n```\nListRepoVariables lists all Agents variables available in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-repository-variables](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-repository-variables)\n\n```go\nfunc (s *AgentsService) ListRepoVariablesIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*ActionsVariable, error]\n```\nListRepoVariablesIter returns an iterator that paginates through all results of ListRepoVariables.\n\n```go\nfunc (s *AgentsService) ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgSecret lists all repositories that have access to an Agents secret.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *AgentsService) ListSelectedReposForOrgSecretIter(ctx context.Context, org string, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForOrgSecretIter returns an iterator that paginates through all results of ListSelectedReposForOrgSecret.\n\n```go\nfunc (s *AgentsService) ListSelectedReposForOrgVariable(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)\n```\nListSelectedReposForOrgVariable lists all repositories that have access to an organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-selected-repositories-for-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#list-selected-repositories-for-an-organization-variable)\n\n```go\nfunc (s *AgentsService) ListSelectedReposForOrgVariableIter(ctx context.Context, org string, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForOrgVariableIter returns an iterator that paginates through all results of ListSelectedReposForOrgVariable.\n\n```go\nfunc (s *AgentsService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nRemoveSelectedRepoFromOrgSecret removes a repository from an organization Agents secret.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#remove-selected-repository-from-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#remove-selected-repository-from-an-organization-secret)\n\n```go\nfunc (s *AgentsService) RemoveSelectedRepoFromOrgVariable(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nRemoveSelectedRepoFromOrgVariable removes a repository from an organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#remove-selected-repository-from-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#remove-selected-repository-from-an-organization-variable)\n\n```go\nfunc (s *AgentsService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids []int64) (*Response, error)\n```\nSetSelectedReposForOrgSecret sets the repositories that have access to an Agents secret.\n\nGitHub API docs: [https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#set-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/agents/secrets?apiVersion=2026-03-10#set-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *AgentsService) SetSelectedReposForOrgVariable(ctx context.Context, org, name string, ids []int64) (*Response, error)\n```\nSetSelectedReposForOrgVariable sets the repositories that have access to an organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#set-selected-repositories-for-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#set-selected-repositories-for-an-organization-variable)\n\n```go\nfunc (s *AgentsService) UpdateOrgVariable(ctx context.Context, org, name string, body ActionsUpdateOrgVariableRequest) (*Response, error)\n```\nUpdateOrgVariable updates an organization Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#update-an-organization-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#update-an-organization-variable)\n\n```go\nfunc (s *AgentsService) UpdateRepoVariable(ctx context.Context, owner, repo, name string, body ActionsUpdateVariableRequest) (*Response, error)\n```\nUpdateRepoVariable updates a repository Agents variable.\n\nGitHub API docs: [https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#update-a-repository-variable](https://docs.github.com/rest/agents/variables?apiVersion=2026-03-10#update-a-repository-variable)\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/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\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) GetInstances() []*MostRecentInstance\n```\nGetInstances returns the Instances slice if it's non-nil, nil 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 AlertInstancesListOptions struct {\n\t// Return code scanning alert instances for a specific branch reference.\n\t// The ref can be formatted as refs/heads/\u003cbranch name\u003e or simply \u003cbranch name\u003e. To reference a pull request use refs/pull/\u003cnumber\u003e/merge\n\tRef string `url:\"ref,omitempty\"`\n\n\tListOptions\n}\n```\nAlertInstancesListOptions specifies optional parameters to the CodeScanningService.ListAlertInstances method.\n\n```go\nfunc (a *AlertInstancesListOptions) GetRef() string\n```\nGetRef returns the Ref field.\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.\n\t// The ref can be formatted as refs/heads/\u003cbranch name\u003e or simply \u003cbranch name\u003e. To reference a pull request use refs/pull/\u003cnumber\u003e/merge\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\t// The GUID of a code scanning tool. Only results by this tool will be listed.\n\tToolGUID string `url:\"tool_guid,omitempty\"`\n\n\t// The direction to sort the results by. Possible values are: asc, desc. Default: desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// The property by which to sort the results. Possible values are: created, updated. Default: created.\n\tSort string `url:\"sort,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\nfunc (a *AlertListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (a *AlertListOptions) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (a *AlertListOptions) GetSeverity() string\n```\nGetSeverity returns the Severity field.\n\n```go\nfunc (a *AlertListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (a *AlertListOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (a *AlertListOptions) GetToolGUID() string\n```\nGetToolGUID returns the ToolGUID field.\n\n```go\nfunc (a *AlertListOptions) GetToolName() string\n```\nGetToolName returns the ToolName field.\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\nfunc (a *AllowDeletions) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\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\nfunc (a *AllowForcePushes) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\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 AmazonS3AccessKeysConfig struct {\n\tBucket               string `json:\"bucket\"`\n\tRegion               string `json:\"region\"`\n\tKeyID                string `json:\"key_id\"`\n\tAuthenticationType   string `json:\"authentication_type\"` // Value: \"access_keys\"\n\tEncryptedSecretKey   string `json:\"encrypted_secret_key\"`\n\tEncryptedAccessKeyID string `json:\"encrypted_access_key_id\"`\n}\n```\nAmazonS3AccessKeysConfig represents vendor-specific config for Amazon S3 with access key authentication.\n\n```go\nfunc (a *AmazonS3AccessKeysConfig) GetAuthenticationType() string\n```\nGetAuthenticationType returns the AuthenticationType field.\n\n```go\nfunc (a *AmazonS3AccessKeysConfig) GetBucket() string\n```\nGetBucket returns the Bucket field.\n\n```go\nfunc (a *AmazonS3AccessKeysConfig) GetEncryptedAccessKeyID() string\n```\nGetEncryptedAccessKeyID returns the EncryptedAccessKeyID field.\n\n```go\nfunc (a *AmazonS3AccessKeysConfig) GetEncryptedSecretKey() string\n```\nGetEncryptedSecretKey returns the EncryptedSecretKey field.\n\n```go\nfunc (a *AmazonS3AccessKeysConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (a *AmazonS3AccessKeysConfig) GetRegion() string\n```\nGetRegion returns the Region field.\n\n```go\ntype AmazonS3OIDCConfig struct {\n\tBucket             string `json:\"bucket\"`\n\tRegion             string `json:\"region\"`\n\tKeyID              string `json:\"key_id\"`\n\tAuthenticationType string `json:\"authentication_type\"` // Value: \"oidc\"\n\tArnRole            string `json:\"arn_role\"`\n}\n```\nAmazonS3OIDCConfig represents vendor-specific config for Amazon S3 with OIDC authentication.\n\n```go\nfunc (a *AmazonS3OIDCConfig) GetArnRole() string\n```\nGetArnRole returns the ArnRole field.\n\n```go\nfunc (a *AmazonS3OIDCConfig) GetAuthenticationType() string\n```\nGetAuthenticationType returns the AuthenticationType field.\n\n```go\nfunc (a *AmazonS3OIDCConfig) GetBucket() string\n```\nGetBucket returns the Bucket field.\n\n```go\nfunc (a *AmazonS3OIDCConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (a *AmazonS3OIDCConfig) GetRegion() string\n```\nGetRegion returns the Region field.\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.\n\t// The ref can be formatted as refs/heads/\u003cbranch name\u003e or simply \u003cbranch name\u003e. To reference a pull request use refs/pull/\u003cnumber\u003e/merge\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\tClientID           *string                  `json:\"client_id,omitempty\"`\n\tNodeID             *string                  `json:\"node_id,omitempty\"`\n\tOwner              *User                    `json:\"owner,omitempty\"`\n\tName               *string                  `json:\"name,omitempty\"`\n\tDescription        *string                  `json:\"description,omitempty\"`\n\tExternalURL        *string                  `json:\"external_url,omitempty\"`\n\tHTMLURL            *string                  `json:\"html_url,omitempty\"`\n\tCreatedAt          *Timestamp               `json:\"created_at,omitempty\"`\n\tUpdatedAt          *Timestamp               `json:\"updated_at,omitempty\"`\n\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) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\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) GetEvents() []string\n```\nGetEvents returns the Events slice if it's non-nil, nil 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 AppInstallationRepositoriesRequest struct {\n\t// Repository names to add to or remove from the installation.\n\tRepositories []string `json:\"repositories\"`\n}\n```\nAppInstallationRepositoriesRequest specifies the parameters for EnterpriseService.AddRepositoriesToAppInstallation and EnterpriseService.RemoveRepositoriesFromAppInstallation.\n\n```go\nfunc (a *AppInstallationRepositoriesRequest) GetRepositories() []string\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil 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/rest/apps?apiVersion=2022-11-28](https://docs.github.com/rest/apps?apiVersion=2022-11-28)\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/rest/apps/installations?apiVersion=2022-11-28#add-a-repository-to-an-app-installation](https://docs.github.com/rest/apps/installations?apiVersion=2022-11-28#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/rest/apps/apps?apiVersion=2022-11-28#create-a-github-app-from-a-manifest](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.3/rest/reference/apps#create-a-content-attachment](https://docs.github.com/enterprise-server@3.3/rest/reference/apps#create-a-content-attachment)\n\n```go\nfunc (s *AppsService) CreateInstallationToken(ctx context.Context, id int64, body *InstallationTokenOptions) (*InstallationToken, *Response, error)\n```\nCreateInstallationToken creates a new installation token.\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app)\n\n```go\nfunc (s *AppsService) CreateInstallationTokenListRepos(ctx context.Context, id int64, body *InstallationTokenListRepoOptions) (*InstallationToken, *Response, error)\n```\nCreateInstallationTokenListRepos creates a new installation token with a list of all repositories in an installation which is not possible with CreateInstallationToken.\n\nIt differs from CreateInstallationToken by taking InstallationTokenListRepoOptions as a parameter which does not omit RepositoryIDs if that field is nil or an empty array.\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#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/rest/apps/apps?apiVersion=2022-11-28#delete-an-installation-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#delete-an-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/rest/apps/apps?apiVersion=2022-11-28#get-an-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-an-app)\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-the-authenticated-app)\n\n```go\nfunc (s *AppsService) GetEnterpriseInstallation(ctx context.Context, enterprise string) (*Installation, *Response, error)\n```\nGetEnterpriseInstallation finds the enterprise's installation information.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/apps/apps?apiVersion=2022-11-28#get-an-enterprise-installation-for-the-authenticated-app](https://docs.github.com/enterprise-cloud@latest/rest/apps/apps?apiVersion=2022-11-28#get-an-enterprise-installation-for-the-authenticated-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/rest/apps/webhooks?apiVersion=2022-11-28#get-a-webhook-configuration-for-an-app](https://docs.github.com/rest/apps/webhooks?apiVersion=2022-11-28#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/rest/apps/webhooks?apiVersion=2022-11-28#get-a-delivery-for-an-app-webhook](https://docs.github.com/rest/apps/webhooks?apiVersion=2022-11-28#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/rest/apps/apps?apiVersion=2022-11-28#get-an-installation-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-an-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) GetOrganizationInstallation(ctx context.Context, org string) (*Installation, *Response, error)\n```\nGetOrganizationInstallation finds the organization's installation information.\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-an-organization-installation-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-an-organization-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) GetRepositoryInstallation(ctx context.Context, owner, repo string) (*Installation, *Response, error)\n```\nGetRepositoryInstallation finds the repository's installation information.\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-repository-installation-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-repository-installation-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) GetRepositoryInstallationByID(ctx context.Context, id int64) (*Installation, *Response, error)\n```\nGetRepositoryInstallationByID finds the repository's installation information.\n\nNote: GetRepositoryInstallationByID uses the undocumented GitHub API endpoint \"GET /repositories/{repository\\_id}/installation\".\n\n```go\nfunc (s *AppsService) GetUserInstallation(ctx context.Context, user string) (*Installation, *Response, error)\n```\nGetUserInstallation finds the user's installation information.\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-user-installation-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-user-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/rest/apps/webhooks?apiVersion=2022-11-28#list-deliveries-for-an-app-webhook](https://docs.github.com/rest/apps/webhooks?apiVersion=2022-11-28#list-deliveries-for-an-app-webhook)\n\n```go\nfunc (s *AppsService) ListHookDeliveriesIter(ctx context.Context, opts *ListCursorOptions) iter.Seq2[*HookDelivery, error]\n```\nListHookDeliveriesIter returns an iterator that paginates through all results of ListHookDeliveries.\n\n```go\nfunc (s *AppsService) ListInstallationRequests(ctx context.Context, opts *ListOptions) ([]*InstallationRequest, *Response, error)\n```\nListInstallationRequests lists the pending installation requests that the current GitHub App has.\n\nGitHub API docs: [https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#list-installation-requests-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#list-installation-requests-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) ListInstallationRequestsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*InstallationRequest, error]\n```\nListInstallationRequestsIter returns an iterator that paginates through all results of ListInstallationRequests.\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/rest/apps/apps?apiVersion=2022-11-28#list-installations-for-the-authenticated-app](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#list-installations-for-the-authenticated-app)\n\n```go\nfunc (s *AppsService) ListInstallationsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Installation, error]\n```\nListInstallationsIter returns an iterator that paginates through all results of ListInstallations.\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/rest/apps/installations?apiVersion=2022-11-28#list-repositories-accessible-to-the-app-installation](https://docs.github.com/rest/apps/installations?apiVersion=2022-11-28#list-repositories-accessible-to-the-app-installation)\n\n```go\nfunc (s *AppsService) ListReposIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListReposIter returns an iterator that paginates through all results of ListRepos.\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/rest/apps/installations?apiVersion=2022-11-28#list-app-installations-accessible-to-the-user-access-token](https://docs.github.com/rest/apps/installations?apiVersion=2022-11-28#list-app-installations-accessible-to-the-user-access-token)\n\n```go\nfunc (s *AppsService) ListUserInstallationsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Installation, error]\n```\nListUserInstallationsIter returns an iterator that paginates through all results of ListUserInstallations.\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/rest/apps/installations?apiVersion=2022-11-28#list-repositories-accessible-to-the-user-access-token](https://docs.github.com/rest/apps/installations?apiVersion=2022-11-28#list-repositories-accessible-to-the-user-access-token)\n\n```go\nfunc (s *AppsService) ListUserReposIter(ctx context.Context, id int64, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListUserReposIter returns an iterator that paginates through all results of ListUserRepos.\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/rest/apps/webhooks?apiVersion=2022-11-28#redeliver-a-delivery-for-an-app-webhook](https://docs.github.com/rest/apps/webhooks?apiVersion=2022-11-28#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/rest/apps/installations?apiVersion=2022-11-28#remove-a-repository-from-an-app-installation](https://docs.github.com/rest/apps/installations?apiVersion=2022-11-28#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/rest/apps/installations?apiVersion=2022-11-28#revoke-an-installation-access-token](https://docs.github.com/rest/apps/installations?apiVersion=2022-11-28#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/rest/apps/apps?apiVersion=2022-11-28#suspend-an-app-installation](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#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/rest/apps/apps?apiVersion=2022-11-28#unsuspend-an-app-installation](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#unsuspend-an-app-installation)\n\n```go\nfunc (s *AppsService) UpdateHookConfig(ctx context.Context, body 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/rest/apps/webhooks?apiVersion=2022-11-28#update-a-webhook-configuration-for-an-app](https://docs.github.com/rest/apps/webhooks?apiVersion=2022-11-28#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\t// Digest is the SHA256 digest of the artifact.\n\t// This field will only be populated on artifacts uploaded with upload-artifact v4 or newer.\n\t// For older versions, this field will be null.\n\tDigest      *string              `json:\"digest,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/rest/actions/artifacts?apiVersion=2022-11-28](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28)\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) GetDigest() string\n```\nGetDigest returns the Digest 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 ArtifactDeploymentRecord struct {\n\tID                  *int64                  `json:\"id,omitempty\"`\n\tDigest              *string                 `json:\"digest,omitempty\"`\n\tLogicalEnvironment  *string                 `json:\"logical_environment,omitempty\"`\n\tPhysicalEnvironment *string                 `json:\"physical_environment,omitempty\"`\n\tCluster             *string                 `json:\"cluster,omitempty\"`\n\tDeploymentName      *string                 `json:\"deployment_name,omitempty\"`\n\tTags                map[string]string       `json:\"tags,omitempty\"`\n\tRuntimeRisks        []DeploymentRuntimeRisk `json:\"runtime_risks,omitempty\"`\n\tAttestationID       *int64                  `json:\"attestation_id,omitempty\"`\n\tCreatedAt           *Timestamp              `json:\"created_at,omitempty\"`\n\tUpdatedAt           *Timestamp              `json:\"updated_at,omitempty\"`\n}\n```\nArtifactDeploymentRecord represents a GitHub artifact deployment record.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetAttestationID() int64\n```\nGetAttestationID returns the AttestationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetCluster() string\n```\nGetCluster returns the Cluster field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetDeploymentName() string\n```\nGetDeploymentName returns the DeploymentName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetDigest() string\n```\nGetDigest returns the Digest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetLogicalEnvironment() string\n```\nGetLogicalEnvironment returns the LogicalEnvironment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetPhysicalEnvironment() string\n```\nGetPhysicalEnvironment returns the PhysicalEnvironment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetRuntimeRisks() []DeploymentRuntimeRisk\n```\nGetRuntimeRisks returns the RuntimeRisks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetTags() map[string]string\n```\nGetTags returns the Tags map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (a *ArtifactDeploymentRecord) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ArtifactDeploymentResponse struct {\n\tTotalCount        *int                        `json:\"total_count,omitempty\"`\n\tDeploymentRecords []*ArtifactDeploymentRecord `json:\"deployment_records,omitempty\"`\n}\n```\nArtifactDeploymentResponse represents the response for deployment records.\n\n```go\nfunc (a *ArtifactDeploymentResponse) GetDeploymentRecords() []*ArtifactDeploymentRecord\n```\nGetDeploymentRecords returns the DeploymentRecords slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ArtifactDeploymentResponse) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ArtifactList struct {\n\tTotalCount *int64      `json:\"total_count,omitempty\"`\n\tArtifacts  []*Artifact `json:\"artifacts,omitempty\"`\n}\n```\nArtifactList represents a list of GitHub artifacts.\n\nGitHub API docs: [https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#artifacts](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28#artifacts)\n\n```go\nfunc (a *ArtifactList) GetArtifacts() []*Artifact\n```\nGetArtifacts returns the Artifacts slice if it's non-nil, nil otherwise.\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 ArtifactPeriod struct {\n\tDays               *int `json:\"days,omitempty\"`\n\tMaximumAllowedDays *int `json:\"maximum_allowed_days,omitempty\"`\n}\n```\nArtifactPeriod represents the period for which the artifact and log of a workflow run is retained.\n\n```go\nfunc (a *ArtifactPeriod) GetDays() int\n```\nGetDays returns the Days field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactPeriod) GetMaximumAllowedDays() int\n```\nGetMaximumAllowedDays returns the MaximumAllowedDays field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a ArtifactPeriod) String() string\n```\n\n```go\ntype ArtifactPeriodOpt struct {\n\tDays int `json:\"days\"`\n}\n```\nArtifactPeriodOpt is used to specify the retention period of artifacts and logs in a workflow run.\n\n```go\nfunc (a *ArtifactPeriodOpt) GetDays() int\n```\nGetDays returns the Days field.\n\n```go\ntype ArtifactStorageRecord struct {\n\tID          *int64     `json:\"id,omitempty\"`\n\tName        *string    `json:\"name,omitempty\"`\n\tDigest      *string    `json:\"digest,omitempty\"`\n\tArtifactURL *string    `json:\"artifact_url,omitempty\"`\n\tRegistryURL *string    `json:\"registry_url,omitempty\"`\n\tRepository  *string    `json:\"repository,omitempty\"`\n\tStatus      *string    `json:\"status,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nArtifactStorageRecord represents a GitHub artifact storage record.\n\n```go\nfunc (a *ArtifactStorageRecord) GetArtifactURL() string\n```\nGetArtifactURL returns the ArtifactURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetDigest() string\n```\nGetDigest returns the Digest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetRegistryURL() string\n```\nGetRegistryURL returns the RegistryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetRepository() string\n```\nGetRepository returns the Repository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *ArtifactStorageRecord) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ArtifactStorageResponse struct {\n\tTotalCount     *int                     `json:\"total_count,omitempty\"`\n\tStorageRecords []*ArtifactStorageRecord `json:\"storage_records,omitempty\"`\n}\n```\nArtifactStorageResponse represents the response for storage records.\n\n```go\nfunc (a *ArtifactStorageResponse) GetStorageRecords() []*ArtifactStorageRecord\n```\nGetStorageRecords returns the StorageRecords slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *ArtifactStorageResponse) GetTotalCount() int\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/rest/actions/artifacts?apiVersion=2022-11-28](https://docs.github.com/rest/actions/artifacts?apiVersion=2022-11-28)\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 AssignmentGrade struct {\n\tAssignmentName        *string    `json:\"assignment_name,omitempty\"`\n\tAssignmentURL         *string    `json:\"assignment_url,omitempty\"`\n\tStarterCodeURL        *string    `json:\"starter_code_url,omitempty\"`\n\tGithubUsername        *string    `json:\"github_username,omitempty\"`\n\tRosterIdentifier      *string    `json:\"roster_identifier,omitempty\"`\n\tStudentRepositoryName *string    `json:\"student_repository_name,omitempty\"`\n\tStudentRepositoryURL  *string    `json:\"student_repository_url,omitempty\"`\n\tSubmissionTimestamp   *Timestamp `json:\"submission_timestamp,omitempty\"`\n\tPointsAwarded         *int       `json:\"points_awarded,omitempty\"`\n\tPointsAvailable       *int       `json:\"points_available,omitempty\"`\n\tGroupName             *string    `json:\"group_name,omitempty\"`\n}\n```\nAssignmentGrade represents a GitHub Classroom assignment grade.\n\n```go\nfunc (a *AssignmentGrade) GetAssignmentName() string\n```\nGetAssignmentName returns the AssignmentName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetAssignmentURL() string\n```\nGetAssignmentURL returns the AssignmentURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetGithubUsername() string\n```\nGetGithubUsername returns the GithubUsername field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetGroupName() string\n```\nGetGroupName returns the GroupName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetPointsAvailable() int\n```\nGetPointsAvailable returns the PointsAvailable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetPointsAwarded() int\n```\nGetPointsAwarded returns the PointsAwarded field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetRosterIdentifier() string\n```\nGetRosterIdentifier returns the RosterIdentifier field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetStarterCodeURL() string\n```\nGetStarterCodeURL returns the StarterCodeURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetStudentRepositoryName() string\n```\nGetStudentRepositoryName returns the StudentRepositoryName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetStudentRepositoryURL() string\n```\nGetStudentRepositoryURL returns the StudentRepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AssignmentGrade) GetSubmissionTimestamp() Timestamp\n```\nGetSubmissionTimestamp returns the SubmissionTimestamp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g AssignmentGrade) String() string\n```\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 Attestation struct {\n\t// The attestation's Sigstore Bundle.\n\t// Refer to the sigstore bundle specification for more info:\n\t// https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto\n\tBundle       json.RawMessage `json:\"bundle\"`\n\tRepositoryID int64           `json:\"repository_id\"`\n}\n```\nAttestation represents an artifact attestation associated with a repository. The provided bundle can be used to verify the provenance of artifacts.\n\n[https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds)\n\n```go\nfunc (a *Attestation) GetBundle() json.RawMessage\n```\nGetBundle returns the Bundle field.\n\n```go\nfunc (a *Attestation) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field.\n\n```go\ntype AttestationsResponse struct {\n\tAttestations []*Attestation `json:\"attestations\"`\n}\n```\nAttestationsResponse represents a collection of artifact attestations.\n\n```go\nfunc (a *AttestationsResponse) GetAttestations() []*Attestation\n```\nGetAttestations returns the Attestations slice if it's non-nil, nil otherwise.\n\n```go\ntype AuditEntry struct {\n\tAction                   *string        `json:\"action,omitempty\"` // The name of the action that was performed, for example `user.login` or `repo.create`.\n\tActor                    *string        `json:\"actor,omitempty\"`  // The actor who performed the action.\n\tActorID                  *int64         `json:\"actor_id,omitempty\"`\n\tActorLocation            *ActorLocation `json:\"actor_location,omitempty\"`\n\tBusiness                 *string        `json:\"business,omitempty\"`\n\tBusinessID               *int64         `json:\"business_id,omitempty\"`\n\tCreatedAt                *Timestamp     `json:\"created_at,omitempty\"`\n\tDocumentID               *string        `json:\"_document_id,omitempty\"`\n\tExternalIdentityNameID   *string        `json:\"external_identity_nameid,omitempty\"`\n\tExternalIdentityUsername *string        `json:\"external_identity_username,omitempty\"`\n\tHashedToken              *string        `json:\"hashed_token,omitempty\"`\n\tOrg                      *string        `json:\"org,omitempty\"`\n\tOrgID                    *int64         `json:\"org_id,omitempty\"`\n\tTimestamp                *Timestamp     `json:\"@timestamp,omitempty\"` // The time the audit log event occurred, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).\n\tTokenID                  *int64         `json:\"token_id,omitempty\"`\n\tTokenScopes              *string        `json:\"token_scopes,omitempty\"`\n\tUser                     *string        `json:\"user,omitempty\"` // The user that was affected by the action performed (if available).\n\tUserID                   *int64         `json:\"user_id,omitempty\"`\n\n\t// Some events types have a data field that contains additional information about the event.\n\tData map[string]any `json:\"data,omitempty\"`\n\n\t// All fields that are not explicitly defined in the struct are captured here.\n\tAdditionalFields map[string]any `json:\"-\"`\n}\n```\nAuditEntry describes the fields that may be represented by various audit-log \"action\" entries. There are many other fields that may be present depending on the action. You can access those in AdditionalFields. For a list of actions see - [https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#audit-log-actions](https://docs.github.com/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) GetActor() string\n```\nGetActor returns the Actor field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetActorID() int64\n```\nGetActorID returns the ActorID 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) GetAdditionalFields() map[string]any\n```\nGetAdditionalFields returns the AdditionalFields map if it's non-nil, an empty map 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) GetBusinessID() int64\n```\nGetBusinessID returns the BusinessID 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() map[string]any\n```\nGetData returns the Data map if it's non-nil, an empty map 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) GetExternalIdentityNameID() string\n```\nGetExternalIdentityNameID returns the ExternalIdentityNameID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetExternalIdentityUsername() string\n```\nGetExternalIdentityUsername returns the ExternalIdentityUsername 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) 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) 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) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditEntry) GetUserID() int64\n```\nGetUserID returns the UserID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a AuditEntry) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface.\n\n```go\nfunc (a *AuditEntry) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface.\n\nGitHub's audit-log API occasionally returns \"org\" as a JSON array of strings and \"org\\_id\" as a JSON array of integers instead of the documented scalar types. This implementation normalises both fields to their scalar forms (joining multiple org names with a comma, and using the first org\\_id) so callers always receive a consistent type regardless of the API response shape.\n\n```go\ntype AuditLogStream struct {\n\tID            int64      `json:\"id\"`\n\tStreamType    string     `json:\"stream_type\"`\n\tStreamDetails string     `json:\"stream_details\"`\n\tEnabled       bool       `json:\"enabled\"`\n\tCreatedAt     Timestamp  `json:\"created_at\"`\n\tUpdatedAt     Timestamp  `json:\"updated_at\"`\n\tPausedAt      *Timestamp `json:\"paused_at,omitempty\"`\n}\n```\nAuditLogStream represents an audit log stream configuration for an enterprise.\n\n```go\nfunc (a *AuditLogStream) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (a *AuditLogStream) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\n\n```go\nfunc (a *AuditLogStream) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (a *AuditLogStream) GetPausedAt() Timestamp\n```\nGetPausedAt returns the PausedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a *AuditLogStream) GetStreamDetails() string\n```\nGetStreamDetails returns the StreamDetails field.\n\n```go\nfunc (a *AuditLogStream) GetStreamType() string\n```\nGetStreamType returns the StreamType field.\n\n```go\nfunc (a *AuditLogStream) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field.\n\n```go\ntype AuditLogStreamConfig struct {\n\tEnabled        bool                       `json:\"enabled\"`\n\tStreamType     string                     `json:\"stream_type\"`\n\tVendorSpecific AuditLogStreamVendorConfig `json:\"vendor_specific\"`\n}\n```\nAuditLogStreamConfig represents a configuration for creating or updating an audit log stream.\n\n```go\nfunc NewAmazonS3AccessKeysStreamConfig(enabled bool, cfg *AmazonS3AccessKeysConfig) *AuditLogStreamConfig\n```\nNewAmazonS3AccessKeysStreamConfig returns an AuditLogStreamConfig for Amazon S3 with access key auth.\n\n```go\nfunc NewAmazonS3OIDCStreamConfig(enabled bool, cfg *AmazonS3OIDCConfig) *AuditLogStreamConfig\n```\nNewAmazonS3OIDCStreamConfig returns an AuditLogStreamConfig for Amazon S3 with OIDC auth.\n\n```go\nfunc NewAzureBlobStreamConfig(enabled bool, cfg *AzureBlobConfig) *AuditLogStreamConfig\n```\nNewAzureBlobStreamConfig returns an AuditLogStreamConfig for Azure Blob Storage.\n\n```go\nfunc NewAzureHubStreamConfig(enabled bool, cfg *AzureHubConfig) *AuditLogStreamConfig\n```\nNewAzureHubStreamConfig returns an AuditLogStreamConfig for Azure Event Hubs.\n\n```go\nfunc NewDatadogStreamConfig(enabled bool, cfg *DatadogConfig) *AuditLogStreamConfig\n```\nNewDatadogStreamConfig returns an AuditLogStreamConfig for Datadog.\n\n```go\nfunc NewGoogleCloudStreamConfig(enabled bool, cfg *GoogleCloudConfig) *AuditLogStreamConfig\n```\nNewGoogleCloudStreamConfig returns an AuditLogStreamConfig for Google Cloud Storage.\n\n```go\nfunc NewHecStreamConfig(enabled bool, cfg *HecConfig) *AuditLogStreamConfig\n```\nNewHecStreamConfig returns an AuditLogStreamConfig for an HTTPS Event Collector endpoint.\n\n```go\nfunc NewSplunkStreamConfig(enabled bool, cfg *SplunkConfig) *AuditLogStreamConfig\n```\nNewSplunkStreamConfig returns an AuditLogStreamConfig for Splunk.\n\n```go\nfunc (a *AuditLogStreamConfig) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\n\n```go\nfunc (a *AuditLogStreamConfig) GetStreamType() string\n```\nGetStreamType returns the StreamType field.\n\n```go\nfunc (a *AuditLogStreamConfig) GetVendorSpecific() AuditLogStreamVendorConfig\n```\nGetVendorSpecific returns the VendorSpecific field.\n\n```go\ntype AuditLogStreamKey struct {\n\tKeyID string `json:\"key_id\"`\n\tKey   string `json:\"key\"`\n}\n```\nAuditLogStreamKey represents the public key used to encrypt secrets for audit log streaming.\n\n```go\nfunc (a *AuditLogStreamKey) GetKey() string\n```\nGetKey returns the Key field.\n\n```go\nfunc (a *AuditLogStreamKey) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\ntype AuditLogStreamVendorConfig interface {\n\t// contains filtered or unexported methods\n}\n```\nAuditLogStreamVendorConfig is a sealed marker interface for vendor-specific audit log stream configurations. Only this package can define implementations.\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) GetScopes() []Scope\n```\nGetScopes returns the Scopes slice if it's non-nil, nil 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) GetScopes() []Scope\n```\nGetScopes returns the Scopes slice if it's non-nil, nil 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/rest/oauth-authorizations?apiVersion=2022-11-28#update-an-existing-authorization](https://docs.github.com/rest/oauth-authorizations?apiVersion=2022-11-28#update-an-existing-authorization)\n\n```go\nfunc (a *AuthorizationUpdateRequest) GetAddScopes() []string\n```\nGetAddScopes returns the AddScopes slice if it's non-nil, nil otherwise.\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) GetRemoveScopes() []string\n```\nGetRemoveScopes returns the RemoveScopes slice if it's non-nil, nil otherwise.\n\n```go\nfunc (a *AuthorizationUpdateRequest) GetScopes() []string\n```\nGetScopes returns the Scopes slice if it's non-nil, nil 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/rest/oauth-authorizations?apiVersion=2022-11-28](https://docs.github.com/rest/oauth-authorizations?apiVersion=2022-11-28)\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/rest/apps/oauth-applications?apiVersion=2022-11-28#check-a-token](https://docs.github.com/rest/apps/oauth-applications?apiVersion=2022-11-28#check-a-token)\n\n```go\nfunc (s *AuthorizationsService) CreateImpersonation(ctx context.Context, username string, body *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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#create-an-impersonation-oauth-token](https://docs.github.com/enterprise-server@3.22/rest/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/rest/apps/oauth-applications?apiVersion=2022-11-28#delete-an-app-authorization](https://docs.github.com/rest/apps/oauth-applications?apiVersion=2022-11-28#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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#delete-an-impersonation-oauth-token](https://docs.github.com/enterprise-server@3.22/rest/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/rest/apps/oauth-applications?apiVersion=2022-11-28#reset-a-token](https://docs.github.com/rest/apps/oauth-applications?apiVersion=2022-11-28#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/rest/apps/oauth-applications?apiVersion=2022-11-28#delete-an-app-token](https://docs.github.com/rest/apps/oauth-applications?apiVersion=2022-11-28#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\nfunc (a *AuthorizedActorNames) GetFrom() []string\n```\nGetFrom returns the From slice if it's non-nil, nil otherwise.\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 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 AzureBlobConfig struct {\n\tKeyID           string `json:\"key_id\"`\n\tEncryptedSASURL string `json:\"encrypted_sas_url\"`\n\tContainer       string `json:\"container\"`\n}\n```\nAzureBlobConfig represents vendor-specific config for Azure Blob Storage.\n\n```go\nfunc (a *AzureBlobConfig) GetContainer() string\n```\nGetContainer returns the Container field.\n\n```go\nfunc (a *AzureBlobConfig) GetEncryptedSASURL() string\n```\nGetEncryptedSASURL returns the EncryptedSASURL field.\n\n```go\nfunc (a *AzureBlobConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\ntype AzureHubConfig struct {\n\tName                string `json:\"name\"`\n\tEncryptedConnstring string `json:\"encrypted_connstring\"`\n\tKeyID               string `json:\"key_id\"`\n}\n```\nAzureHubConfig represents vendor-specific config for Azure Event Hubs.\n\n```go\nfunc (a *AzureHubConfig) GetEncryptedConnstring() string\n```\nGetEncryptedConnstring returns the EncryptedConnstring field.\n\n```go\nfunc (a *AzureHubConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (a *AzureHubConfig) GetName() string\n```\nGetName returns the Name field.\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// AllowedOrigins limits the origins the credentials above are sent to. They\n\t// are attached only to requests whose origin matches one of these; every\n\t// other request, including a redirect hop, is sent without them.\n\t//\n\t// If empty, the GitHub.com API and upload origins are used. An empty\n\t// AllowedOrigins does not mean \"any origin\": set it explicitly when talking\n\t// to GitHub Enterprise.\n\tAllowedOrigins []*url.URL\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 (b *BasicAuthTransport) GetOTP() string\n```\nGetOTP returns the OTP field.\n\n```go\nfunc (b *BasicAuthTransport) GetPassword() string\n```\nGetPassword returns the Password field.\n\n```go\nfunc (b *BasicAuthTransport) GetUsername() string\n```\nGetUsername returns the Username field.\n\n```go\nfunc (t *BasicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\nRoundTrip implements the RoundTripper interface.\n\n```go\ntype BillingCostCenter struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n}\n```\nBillingCostCenter represents a cost center reference embedded in enterprise billing usage reports.\n\n```go\nfunc (b *BillingCostCenter) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (b *BillingCostCenter) GetName() string\n```\nGetName returns the Name field.\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/rest/billing?apiVersion=2022-11-28](https://docs.github.com/rest/billing?apiVersion=2022-11-28)\n\n```go\nfunc (s *BillingService) GetOrgAICreditUsage(ctx context.Context, org string, opts *PremiumRequestUsageReportOptions) (*PremiumRequestUsageReport, *Response, error)\n```\nGetOrgAICreditUsage returns a report of the AI credit usage for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-ai-credit-usage-report-for-an-organization](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-ai-credit-usage-report-for-an-organization)\n\n```go\nfunc (s *BillingService) GetOrganizationAdvancedSecurityActiveCommitters(ctx context.Context, org string, opts *ActiveCommittersListOptions) (*ActiveCommitters, *Response, error)\n```\nGetOrganizationAdvancedSecurityActiveCommitters returns the GitHub Advanced Security active committers for an organization per repository.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/billing?apiVersion=2022-11-28#get-github-advanced-security-active-committers-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/billing/billing?apiVersion=2022-11-28#get-github-advanced-security-active-committers-for-an-organization)\n\n```go\nfunc (s *BillingService) GetOrganizationPackagesBilling(ctx context.Context, org string) (*PackagesBilling, *Response, error)\n```\nGetOrganizationPackagesBilling returns the free and paid storage used for GitHub Packages in gigabytes for an Org.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-github-packages-billing-for-an-organization](https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-github-packages-billing-for-an-organization)\n\n```go\nfunc (s *BillingService) GetOrganizationPremiumRequestUsageReport(ctx context.Context, org string, opts *PremiumRequestUsageReportOptions) (*PremiumRequestUsageReport, *Response, error)\n```\nGetOrganizationPremiumRequestUsageReport returns a report of the premium request usage for an organization using the enhanced billing platform.\n\nNote: This endpoint is only available to organizations with access to the enhanced billing platform.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-premium-request-usage-report-for-an-organization](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-premium-request-usage-report-for-an-organization)\n\n```go\nfunc (s *BillingService) GetOrganizationStorageBilling(ctx context.Context, org string) (*StorageBilling, *Response, error)\n```\nGetOrganizationStorageBilling returns the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages in gigabytes for an Org.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-shared-storage-billing-for-an-organization](https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-shared-storage-billing-for-an-organization)\n\n```go\nfunc (s *BillingService) GetOrganizationUsageReport(ctx context.Context, org string, opts *UsageReportOptions) (*UsageReport, *Response, error)\n```\nGetOrganizationUsageReport returns a report of the total usage for an organization using the enhanced billing platform.\n\nNote: This endpoint is only available to organizations with access to the enhanced billing platform.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-organization](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-organization)\n\n```go\nfunc (s *BillingService) GetOrganizationUsageSummary(ctx context.Context, org string, opts *UsageSummaryOptions) (*UsageSummaryReport, *Response, error)\n```\nGetOrganizationUsageSummary returns a summary report of usage for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-summary-for-an-organization](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-summary-for-an-organization)\n\n```go\nfunc (s *BillingService) GetPackagesBilling(ctx context.Context, user string) (*PackagesBilling, *Response, error)\n```\nGetPackagesBilling returns the free and paid storage used for GitHub Packages in gigabytes for a user.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-github-packages-billing-for-a-user](https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-github-packages-billing-for-a-user)\n\n```go\nfunc (s *BillingService) GetPremiumRequestUsageReport(ctx context.Context, user string, opts *PremiumRequestUsageReportOptions) (*PremiumRequestUsageReport, *Response, error)\n```\nGetPremiumRequestUsageReport returns a report of the premium request usage for a user using the enhanced billing platform.\n\nNote: This endpoint is only available to users with access to the enhanced billing platform.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-premium-request-usage-report-for-a-user](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-premium-request-usage-report-for-a-user)\n\n```go\nfunc (s *BillingService) GetStorageBilling(ctx context.Context, user string) (*StorageBilling, *Response, error)\n```\nGetStorageBilling returns the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages in gigabytes for a user.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-shared-storage-billing-for-a-user](https://docs.github.com/rest/billing/billing?apiVersion=2022-11-28#get-shared-storage-billing-for-a-user)\n\n```go\nfunc (s *BillingService) GetUsageReport(ctx context.Context, user string, opts *UsageReportOptions) (*UsageReport, *Response, error)\n```\nGetUsageReport returns a report of the total usage for a user using the enhanced billing platform.\n\nNote: This endpoint is only available to users with access to the enhanced billing platform.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-a-user](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-a-user)\n\n```go\nfunc (s *BillingService) GetUserAICreditUsage(ctx context.Context, username string, opts *PremiumRequestUsageReportOptions) (*PremiumRequestUsageReport, *Response, error)\n```\nGetUserAICreditUsage returns a report of the AI credit usage for a user.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-ai-credit-usage-report-for-a-user](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-ai-credit-usage-report-for-a-user)\n\n```go\nfunc (s *BillingService) GetUserUsageSummary(ctx context.Context, user string, opts *UsageSummaryOptions) (*UsageSummaryReport, *Response, error)\n```\nGetUserUsageSummary returns a summary report of usage for a user.\n\nGitHub API docs: [https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-summary-for-a-user](https://docs.github.com/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-summary-for-a-user)\n\n```go\ntype Blob struct {\n\tContent  string  `json:\"content\"`\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.\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\t// Protection will always be included in APIs which return the\n\t// 'Branch With Protection' schema such as 'Get a branch', but may\n\t// not be included in APIs that return the `Short Branch` schema\n\t// such as 'List branches'. In such cases, if branch protection is\n\t// enabled, Protected will be `true` but this will be nil, and\n\t// additional protection details can be obtained by calling GetBranch().\n\tProtection    *Protection `json:\"protection,omitempty\"`\n\tProtectionURL *string     `json:\"protection_url,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\nfunc (b *Branch) GetProtection() *Protection\n```\nGetProtection returns the Protection field.\n\n```go\nfunc (b *Branch) GetProtectionURL() string\n```\nGetProtectionURL returns the ProtectionURL 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 BranchProtectionConfigurationEvent struct {\n\tAction       *string       `json:\"action,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tEnterprise   *Enterprise   `json:\"enterprise,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n}\n```\nBranchProtectionConfigurationEvent is triggered when there is a change to branch protection configurations for a repository. The Webhook event name is \"branch\\_protection\\_configuration\".\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch\\_protection\\_configuration](https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_configuration)\n\n```go\nfunc (b *BranchProtectionConfigurationEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b *BranchProtectionConfigurationEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (b *BranchProtectionConfigurationEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (b *BranchProtectionConfigurationEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (b *BranchProtectionConfigurationEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (b *BranchProtectionConfigurationEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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\tRequireLastPushApproval                  *bool      `json:\"require_last_push_approval,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) GetAuthorizedActorNames() []string\n```\nGetAuthorizedActorNames returns the AuthorizedActorNames slice if it's non-nil, nil 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) GetRequireLastPushApproval() bool\n```\nGetRequireLastPushApproval returns the RequireLastPushApproval 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) GetRequiredStatusChecks() []string\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks slice if it's non-nil, nil 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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch\\_protection\\_rule](https://docs.github.com/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\nfunc (b *BranchRestrictions) GetApps() []*App\n```\nGetApps returns the Apps slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRestrictions) GetTeams() []*Team\n```\nGetTeams returns the Teams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRestrictions) GetUsers() []*User\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\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\nfunc (b *BranchRestrictionsRequest) GetApps() []string\n```\nGetApps returns the Apps slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRestrictionsRequest) GetTeams() []string\n```\nGetTeams returns the Teams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRestrictionsRequest) GetUsers() []string\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\n\n```go\ntype BranchRuleMetadata struct {\n\tRulesetSourceType RulesetSourceType `json:\"ruleset_source_type\"`\n\tRulesetSource     string            `json:\"ruleset_source\"`\n\tRulesetID         int64             `json:\"ruleset_id\"`\n}\n```\nBranchRuleMetadata represents the metadata for a branch rule.\n\n```go\nfunc (b *BranchRuleMetadata) GetRulesetID() int64\n```\nGetRulesetID returns the RulesetID field.\n\n```go\nfunc (b *BranchRuleMetadata) GetRulesetSource() string\n```\nGetRulesetSource returns the RulesetSource field.\n\n```go\nfunc (b *BranchRuleMetadata) GetRulesetSourceType() RulesetSourceType\n```\nGetRulesetSourceType returns the RulesetSourceType field.\n\n```go\ntype BranchRules struct {\n\t// Branch or tag target rules.\n\tCreation                 []*BranchRuleMetadata\n\tUpdate                   []*UpdateBranchRule\n\tDeletion                 []*BranchRuleMetadata\n\tRequiredLinearHistory    []*BranchRuleMetadata\n\tMergeQueue               []*MergeQueueBranchRule\n\tRequiredDeployments      []*RequiredDeploymentsBranchRule\n\tRequiredSignatures       []*BranchRuleMetadata\n\tPullRequest              []*PullRequestBranchRule\n\tRequiredStatusChecks     []*RequiredStatusChecksBranchRule\n\tNonFastForward           []*BranchRuleMetadata\n\tCommitMessagePattern     []*PatternBranchRule\n\tCommitAuthorEmailPattern []*PatternBranchRule\n\tCommitterEmailPattern    []*PatternBranchRule\n\tBranchNamePattern        []*PatternBranchRule\n\tTagNamePattern           []*PatternBranchRule\n\tWorkflows                []*WorkflowsBranchRule\n\tCodeScanning             []*CodeScanningBranchRule\n\tCopilotCodeReview        []*CopilotCodeReviewBranchRule\n\n\t// Push target rules.\n\tFileExtensionRestriction []*FileExtensionRestrictionBranchRule\n\tFilePathRestriction      []*FilePathRestrictionBranchRule\n\tMaxFilePathLength        []*MaxFilePathLengthBranchRule\n\tMaxFileSize              []*MaxFileSizeBranchRule\n}\n```\nBranchRules represents the rules active for a GitHub repository branch. This type doesn't have JSON annotations as it uses custom marshaling.\n\n```go\nfunc (b *BranchRules) GetBranchNamePattern() []*PatternBranchRule\n```\nGetBranchNamePattern returns the BranchNamePattern slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetCodeScanning() []*CodeScanningBranchRule\n```\nGetCodeScanning returns the CodeScanning slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetCommitAuthorEmailPattern() []*PatternBranchRule\n```\nGetCommitAuthorEmailPattern returns the CommitAuthorEmailPattern slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetCommitMessagePattern() []*PatternBranchRule\n```\nGetCommitMessagePattern returns the CommitMessagePattern slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetCommitterEmailPattern() []*PatternBranchRule\n```\nGetCommitterEmailPattern returns the CommitterEmailPattern slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetCopilotCodeReview() []*CopilotCodeReviewBranchRule\n```\nGetCopilotCodeReview returns the CopilotCodeReview slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetCreation() []*BranchRuleMetadata\n```\nGetCreation returns the Creation slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetDeletion() []*BranchRuleMetadata\n```\nGetDeletion returns the Deletion slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetFileExtensionRestriction() []*FileExtensionRestrictionBranchRule\n```\nGetFileExtensionRestriction returns the FileExtensionRestriction slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetFilePathRestriction() []*FilePathRestrictionBranchRule\n```\nGetFilePathRestriction returns the FilePathRestriction slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetMaxFilePathLength() []*MaxFilePathLengthBranchRule\n```\nGetMaxFilePathLength returns the MaxFilePathLength slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetMaxFileSize() []*MaxFileSizeBranchRule\n```\nGetMaxFileSize returns the MaxFileSize slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetMergeQueue() []*MergeQueueBranchRule\n```\nGetMergeQueue returns the MergeQueue slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetNonFastForward() []*BranchRuleMetadata\n```\nGetNonFastForward returns the NonFastForward slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetPullRequest() []*PullRequestBranchRule\n```\nGetPullRequest returns the PullRequest slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetRequiredDeployments() []*RequiredDeploymentsBranchRule\n```\nGetRequiredDeployments returns the RequiredDeployments slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetRequiredLinearHistory() []*BranchRuleMetadata\n```\nGetRequiredLinearHistory returns the RequiredLinearHistory slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetRequiredSignatures() []*BranchRuleMetadata\n```\nGetRequiredSignatures returns the RequiredSignatures slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetRequiredStatusChecks() []*RequiredStatusChecksBranchRule\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetTagNamePattern() []*PatternBranchRule\n```\nGetTagNamePattern returns the TagNamePattern slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetUpdate() []*UpdateBranchRule\n```\nGetUpdate returns the Update slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BranchRules) GetWorkflows() []*WorkflowsBranchRule\n```\nGetWorkflows returns the Workflows slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *BranchRules) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON is a custom JSON unmarshaler for BranchRules.\n\n```go\ntype BypassActor struct {\n\tActorID    *int64           `json:\"actor_id,omitempty\"`\n\tActorType  *BypassActorType `json:\"actor_type,omitempty\"`\n\tBypassMode *BypassMode      `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() *BypassActorType\n```\nGetActorType returns the ActorType field.\n\n```go\nfunc (b *BypassActor) GetBypassMode() *BypassMode\n```\nGetBypassMode returns the BypassMode field.\n\n```go\ntype BypassActorType string\n```\nBypassActorType represents a GitHub ruleset bypass actor type.\n\n```go\nconst (\n\tBypassActorTypeIntegration       BypassActorType = \"Integration\"\n\tBypassActorTypeOrganizationAdmin BypassActorType = \"OrganizationAdmin\"\n\tBypassActorTypeRepositoryRole    BypassActorType = \"RepositoryRole\"\n\tBypassActorTypeTeam              BypassActorType = \"Team\"\n\tBypassActorTypeDeployKey         BypassActorType = \"DeployKey\"\n)\n```\nThis is the set of GitHub ruleset bypass actor types.\n\n```go\ntype BypassMode string\n```\nBypassMode represents a GitHub ruleset bypass mode.\n\n```go\nconst (\n\tBypassModeAlways      BypassMode = \"always\"\n\tBypassModeExempt      BypassMode = \"exempt\"\n\tBypassModeNever       BypassMode = \"never\"\n\tBypassModePullRequest BypassMode = \"pull_request\"\n)\n```\nThis is the set of GitHub ruleset bypass modes.\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\nfunc (b *BypassPullRequestAllowances) GetApps() []*App\n```\nGetApps returns the Apps slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BypassPullRequestAllowances) GetTeams() []*Team\n```\nGetTeams returns the Teams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BypassPullRequestAllowances) GetUsers() []*User\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\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\nfunc (b *BypassPullRequestAllowancesRequest) GetApps() []string\n```\nGetApps returns the Apps slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BypassPullRequestAllowancesRequest) GetTeams() []string\n```\nGetTeams returns the Teams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (b *BypassPullRequestAllowancesRequest) GetUsers() []string\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\n\n```go\ntype BypassReviewer struct {\n\tReviewerID              int64  `json:\"reviewer_id\"`\n\tReviewerType            string `json:\"reviewer_type\"`\n\tSecurityConfigurationID *int64 `json:\"security_configuration_id,omitempty\"`\n}\n```\nBypassReviewer represents the bypass reviewers for the delegated bypass of a code security configuration. SecurityConfigurationID is added by GitHub in responses.\n\n```go\nfunc (b *BypassReviewer) GetReviewerID() int64\n```\nGetReviewerID returns the ReviewerID field.\n\n```go\nfunc (b *BypassReviewer) GetReviewerType() string\n```\nGetReviewerType returns the ReviewerType field.\n\n```go\nfunc (b *BypassReviewer) GetSecurityConfigurationID() int64\n```\nGetSecurityConfigurationID returns the SecurityConfigurationID field if it's non-nil, zero value otherwise.\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) GetPullRequests() []*PullRequest\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\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\nfunc (c *CheckRunAction) GetDescription() string\n```\nGetDescription returns the Description field.\n\n```go\nfunc (c *CheckRunAction) GetIdentifier() string\n```\nGetIdentifier returns the Identifier field.\n\n```go\nfunc (c *CheckRunAction) GetLabel() string\n```\nGetLabel returns the Label field.\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/developers/webhooks-and-events/webhook-events-and-payloads#check\\_run](https://docs.github.com/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) GetAnnotations() []*CheckRunAnnotation\n```\nGetAnnotations returns the Annotations slice if it's non-nil, nil otherwise.\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) GetImages() []*CheckRunImage\n```\nGetImages returns the Images slice if it's non-nil, nil 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\tLatestCheckRunsCount *int64  `json:\"latest_check_runs_count,omitempty\"`\n\tRerequestable        *bool   `json:\"rerequestable,omitempty\"`\n\tRunsRerequestable    *bool   `json:\"runs_rerequestable,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) GetLatestCheckRunsCount() int64\n```\nGetLatestCheckRunsCount returns the LatestCheckRunsCount 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) GetPullRequests() []*PullRequest\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CheckSuite) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (c *CheckSuite) GetRerequestable() bool\n```\nGetRerequestable returns the Rerequestable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CheckSuite) GetRunsRerequestable() bool\n```\nGetRunsRerequestable returns the RunsRerequestable field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#check\\_suite](https://docs.github.com/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\nfunc (c *CheckSuitePreferenceOptions) GetAutoTriggerChecks() []*AutoTriggerCheck\n```\nGetAutoTriggerChecks returns the AutoTriggerChecks slice if it's non-nil, nil otherwise.\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/rest/checks?apiVersion=2022-11-28](https://docs.github.com/rest/checks?apiVersion=2022-11-28)\n\n```go\nfunc (s *ChecksService) CreateCheckRun(ctx context.Context, owner, repo string, body CreateCheckRunOptions) (*CheckRun, *Response, error)\n```\nCreateCheckRun creates a check run for repository.\n\nGitHub API docs: [https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#create-a-check-run](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#create-a-check-run)\n\n```go\nfunc (s *ChecksService) CreateCheckSuite(ctx context.Context, owner, repo string, body CreateCheckSuiteOptions) (*CheckSuite, *Response, error)\n```\nCreateCheckSuite manually creates a check suite for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#create-a-check-suite](https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#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/rest/checks/runs?apiVersion=2022-11-28#get-a-check-run](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#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/rest/checks/suites?apiVersion=2022-11-28#get-a-check-suite](https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#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/rest/checks/runs?apiVersion=2022-11-28#list-check-run-annotations](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#list-check-run-annotations)\n\n```go\nfunc (s *ChecksService) ListCheckRunAnnotationsIter(ctx context.Context, owner string, repo string, checkRunID int64, opts *ListOptions) iter.Seq2[*CheckRunAnnotation, error]\n```\nListCheckRunAnnotationsIter returns an iterator that paginates through all results of ListCheckRunAnnotations.\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/rest/checks/runs?apiVersion=2022-11-28#list-check-runs-in-a-check-suite](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#list-check-runs-in-a-check-suite)\n\n```go\nfunc (s *ChecksService) ListCheckRunsCheckSuiteIter(ctx context.Context, owner string, repo string, checkSuiteID int64, opts *ListCheckRunsOptions) iter.Seq2[*CheckRun, error]\n```\nListCheckRunsCheckSuiteIter returns an iterator that paginates through all results of ListCheckRunsCheckSuite.\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. The ref can be a commit SHA, branch name \\`heads/\\\u003cbranch name\u003e\\`, or tag name \\`tags/\\\u003ctag name\u003e\\`. For more information, see \"Git References\" in the Git documentation [https://git-scm.com/book/en/v2/Git-Internals-Git-References](https://git-scm.com/book/en/v2/Git-Internals-Git-References).\n\nGitHub API docs: [https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#list-check-runs-for-a-git-reference](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#list-check-runs-for-a-git-reference)\n\n```go\nfunc (s *ChecksService) ListCheckRunsForRefIter(ctx context.Context, owner string, repo string, ref string, opts *ListCheckRunsOptions) iter.Seq2[*CheckRun, error]\n```\nListCheckRunsForRefIter returns an iterator that paginates through all results of ListCheckRunsForRef.\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. The ref can be a commit SHA, branch name \\`heads/\\\u003cbranch name\u003e\\`, or tag name \\`tags/\\\u003ctag name\u003e\\`. For more information, see \"Git References\" in the Git documentation [https://git-scm.com/book/en/v2/Git-Internals-Git-References](https://git-scm.com/book/en/v2/Git-Internals-Git-References).\n\nGitHub API docs: [https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#list-check-suites-for-a-git-reference](https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#list-check-suites-for-a-git-reference)\n\n```go\nfunc (s *ChecksService) ListCheckSuitesForRefIter(ctx context.Context, owner string, repo string, ref string, opts *ListCheckSuiteOptions) iter.Seq2[*CheckSuite, error]\n```\nListCheckSuitesForRefIter returns an iterator that paginates through all results of ListCheckSuitesForRef.\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/rest/checks/runs?apiVersion=2022-11-28#rerequest-a-check-run](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#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/rest/checks/suites?apiVersion=2022-11-28#rerequest-a-check-suite](https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#rerequest-a-check-suite)\n\n```go\nfunc (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, repo string, body CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error)\n```\nSetCheckSuitePreferences changes the default automatic flow when creating check suites.\n\nGitHub API docs: [https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#update-repository-preferences-for-check-suites](https://docs.github.com/rest/checks/suites?apiVersion=2022-11-28#update-repository-preferences-for-check-suites)\n\n```go\nfunc (s *ChecksService) UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, body 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/rest/checks/runs?apiVersion=2022-11-28#update-a-check-run](https://docs.github.com/rest/checks/runs?apiVersion=2022-11-28#update-a-check-run)\n\n```go\ntype Classroom struct {\n\tID           *int64        `json:\"id,omitempty\"`\n\tName         *string       `json:\"name,omitempty\"`\n\tArchived     *bool         `json:\"archived,omitempty\"`\n\tOrganization *Organization `json:\"organization,omitempty\"`\n\tURL          *string       `json:\"url,omitempty\"`\n}\n```\nClassroom represents a GitHub Classroom.\n\n```go\nfunc (c *Classroom) GetArchived() bool\n```\nGetArchived returns the Archived field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Classroom) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Classroom) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Classroom) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (c *Classroom) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c Classroom) String() string\n```\n\n```go\ntype ClassroomAssignment struct {\n\tID                          *int64      `json:\"id,omitempty\"`\n\tPublicRepo                  *bool       `json:\"public_repo,omitempty\"`\n\tTitle                       *string     `json:\"title,omitempty\"`\n\tType                        *string     `json:\"type,omitempty\"`\n\tInviteLink                  *string     `json:\"invite_link,omitempty\"`\n\tInvitationsEnabled          *bool       `json:\"invitations_enabled,omitempty\"`\n\tSlug                        *string     `json:\"slug,omitempty\"`\n\tStudentsAreRepoAdmins       *bool       `json:\"students_are_repo_admins,omitempty\"`\n\tFeedbackPullRequestsEnabled *bool       `json:\"feedback_pull_requests_enabled,omitempty\"`\n\tMaxTeams                    *int        `json:\"max_teams,omitempty\"`\n\tMaxMembers                  *int        `json:\"max_members,omitempty\"`\n\tEditor                      *string     `json:\"editor,omitempty\"`\n\tAccepted                    *int        `json:\"accepted,omitempty\"`\n\tSubmitted                   *int        `json:\"submitted,omitempty\"`\n\tPassing                     *int        `json:\"passing,omitempty\"`\n\tLanguage                    *string     `json:\"language,omitempty\"`\n\tDeadline                    *Timestamp  `json:\"deadline,omitempty\"`\n\tStarterCodeRepository       *Repository `json:\"starter_code_repository,omitempty\"`\n\tClassroom                   *Classroom  `json:\"classroom,omitempty\"`\n}\n```\nClassroomAssignment represents a GitHub Classroom assignment.\n\n```go\nfunc (c *ClassroomAssignment) GetAccepted() int\n```\nGetAccepted returns the Accepted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetClassroom() *Classroom\n```\nGetClassroom returns the Classroom field.\n\n```go\nfunc (c *ClassroomAssignment) GetDeadline() Timestamp\n```\nGetDeadline returns the Deadline field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetEditor() string\n```\nGetEditor returns the Editor field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetFeedbackPullRequestsEnabled() bool\n```\nGetFeedbackPullRequestsEnabled returns the FeedbackPullRequestsEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetInvitationsEnabled() bool\n```\nGetInvitationsEnabled returns the InvitationsEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetInviteLink() string\n```\nGetInviteLink returns the InviteLink field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetLanguage() string\n```\nGetLanguage returns the Language field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetMaxMembers() int\n```\nGetMaxMembers returns the MaxMembers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetMaxTeams() int\n```\nGetMaxTeams returns the MaxTeams field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetPassing() int\n```\nGetPassing returns the Passing field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetPublicRepo() bool\n```\nGetPublicRepo returns the PublicRepo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetStarterCodeRepository() *Repository\n```\nGetStarterCodeRepository returns the StarterCodeRepository field.\n\n```go\nfunc (c *ClassroomAssignment) GetStudentsAreRepoAdmins() bool\n```\nGetStudentsAreRepoAdmins returns the StudentsAreRepoAdmins field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetSubmitted() int\n```\nGetSubmitted returns the Submitted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomAssignment) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (a ClassroomAssignment) String() string\n```\n\n```go\ntype ClassroomService service\n```\nClassroomService handles communication with the GitHub Classroom related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28)\n\n```go\nfunc (s *ClassroomService) GetAssignment(ctx context.Context, assignmentID int64) (*ClassroomAssignment, *Response, error)\n```\nGetAssignment gets a GitHub Classroom assignment. Assignment will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---get-an-assignment](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---get-an-assignment)\n\n```go\nfunc (s *ClassroomService) GetAssignmentGrades(ctx context.Context, assignmentID int64) ([]*AssignmentGrade, *Response, error)\n```\nGetAssignmentGrades gets assignment grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---get-assignment-grades](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---get-assignment-grades)\n\n```go\nfunc (s *ClassroomService) GetClassroom(ctx context.Context, classroomID int64) (*Classroom, *Response, error)\n```\nGetClassroom gets a GitHub Classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---get-a-classroom](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---get-a-classroom)\n\n```go\nfunc (s *ClassroomService) ListAcceptedAssignments(ctx context.Context, assignmentID int64, opts *ListOptions) ([]*AcceptedAssignment, *Response, error)\n```\nListAcceptedAssignments lists accepted assignments for a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---list-accepted-assignments-for-an-assignment](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---list-accepted-assignments-for-an-assignment)\n\n```go\nfunc (s *ClassroomService) ListAcceptedAssignmentsIter(ctx context.Context, assignmentID int64, opts *ListOptions) iter.Seq2[*AcceptedAssignment, error]\n```\nListAcceptedAssignmentsIter returns an iterator that paginates through all results of ListAcceptedAssignments.\n\n```go\nfunc (s *ClassroomService) ListClassroomAssignments(ctx context.Context, classroomID int64, opts *ListOptions) ([]*ClassroomAssignment, *Response, error)\n```\nListClassroomAssignments lists GitHub Classroom assignments for a classroom. Assignments will only be returned if the current user is an administrator of the GitHub Classroom.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---list-assignments-for-a-classroom](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---list-assignments-for-a-classroom)\n\n```go\nfunc (s *ClassroomService) ListClassroomAssignmentsIter(ctx context.Context, classroomID int64, opts *ListOptions) iter.Seq2[*ClassroomAssignment, error]\n```\nListClassroomAssignmentsIter returns an iterator that paginates through all results of ListClassroomAssignments.\n\n```go\nfunc (s *ClassroomService) ListClassrooms(ctx context.Context, opts *ListOptions) ([]*Classroom, *Response, error)\n```\nListClassrooms lists GitHub Classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---list-classrooms](https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closed---list-classrooms)\n\n```go\nfunc (s *ClassroomService) ListClassroomsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Classroom, error]\n```\nListClassroomsIter returns an iterator that paginates through all results of ListClassrooms.\n\n```go\ntype ClassroomUser struct {\n\tID        *int64  `json:\"id,omitempty\"`\n\tLogin     *string `json:\"login,omitempty\"`\n\tAvatarURL *string `json:\"avatar_url,omitempty\"`\n\tHTMLURL   *string `json:\"html_url,omitempty\"`\n}\n```\nClassroomUser represents a GitHub user simplified for Classroom.\n\n```go\nfunc (c *ClassroomUser) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomUser) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomUser) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClassroomUser) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u ClassroomUser) String() string\n```\n\n```go\ntype Client struct {\n\n\t// Services used for talking to different parts of the GitHub API.\n\tActions            *ActionsService\n\tActivity           *ActivityService\n\tAdmin              *AdminService\n\tAgentTasks         *AgentTasksService\n\tAgents             *AgentsService\n\tApps               *AppsService\n\tAuthorizations     *AuthorizationsService\n\tBilling            *BillingService\n\tChecks             *ChecksService\n\tClassroom          *ClassroomService\n\tCodeQuality        *CodeQualityService\n\tCodeScanning       *CodeScanningService\n\tCodesOfConduct     *CodesOfConductService\n\tCodespaces         *CodespacesService\n\tCopilot            *CopilotService\n\tCredentials        *CredentialsService\n\tDependabot         *DependabotService\n\tDependencyGraph    *DependencyGraphService\n\tEmojis             *EmojisService\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\tMarkdown           *MarkdownService\n\tMarketplace        *MarketplaceService\n\tMeta               *MetaService\n\tMigrations         *MigrationService\n\tOrganizations      *OrganizationsService\n\tPrivateRegistries  *PrivateRegistriesService\n\tProjects           *ProjectsService\n\tPullRequests       *PullRequestsService\n\tRateLimit          *RateLimitService\n\tReactions          *ReactionsService\n\tRepositories       *RepositoriesService\n\tSCIM               *SCIMService\n\tSearch             *SearchService\n\tSecretScanning     *SecretScanningService\n\tSecurityAdvisories *SecurityAdvisoriesService\n\tSubIssue           *SubIssueService\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(opts ...ClientOptionsFunc) (*Client, error)\n```\nNewClient returns a new GitHub API client configured with the provided options. The default configuration is suitable for making unauthenticated requests to the public GitHub API.\n\nFor GitHub Enterprise, use [WithEnterpriseURLs](#WithEnterpriseURLs) to set the base and upload URLs.\n\nTo make authenticated requests, use [WithAuthToken](#WithAuthToken) or [WithHTTPClient](#WithHTTPClient) to pass in a [http.Client](/net/http#Client) that performs authentication (e.g., using golang.org/x/oauth2).\n\nFor production usage it is recommended to provide a timeout using [WithTimeout](#WithTimeout) or by providing a custom [http.Client](/net/http#Client) with an appropriate timeout using [WithHTTPClient](#WithHTTPClient).\n\n```go\nfunc (c *Client) APIMeta(ctx context.Context) (*APIMeta, *Response, error)\n```\nAPIMeta returns information about GitHub.com.\n\nDeprecated: Use MetaService.Get instead.\n\n```go\nfunc (c *Client) BareDo(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\n```go\nfunc (c *Client) BaseURL() string\n```\nBaseURL returns the base URL for API requests.\n\n```go\nfunc (c *Client) Client() *http.Client\n```\nClient returns the http.Client used by this GitHub client. The token configured by [WithAuthToken](#WithAuthToken) is attached only to requests to this client's configured API and upload origins, so the returned client may also be used for requests to other hosts without leaking the token.\n\n```go\nfunc (c *Client) Clone(opts ...ClientOptionsFunc) (*Client, error)\n```\nClone returns a copy of the client with the same configuration and services. The returned client has its own http.Client but shares the client configuration such as transport and timeout. The returned client starts with the same rate limit information as the original client, but it is not updated when the original client's rate limit information is updated. The returned client is independent of the original client and can be modified without affecting the original client. Any token configured by [WithAuthToken](#WithAuthToken) carries over to the clone, and is re-scoped to the clone's own API and upload origins.\n\n```go\nfunc (c *Client) Do(req *http.Request, v any) (*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 happens, 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\n```go\nfunc (c *Client) GetCodeOfConduct(ctx context.Context, key string) (*CodeOfConduct, *Response, error)\n```\nGetCodeOfConduct returns an individual code of conduct.\n\nDeprecated: Use CodesOfConductService.Get instead.\n\n```go\nfunc (c *Client) ListCodesOfConduct(ctx context.Context) ([]*CodeOfConduct, *Response, error)\n```\nListCodesOfConduct returns all codes of conduct.\n\nDeprecated: Use CodesOfConductService.List instead.\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\nDeprecated: Use EmojisService.List instead.\n\n```go\nfunc (c *Client) NewFormRequest(ctx context.Context, 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\nAn absolute urlStr replaces the BaseURL, so the request is refused with [ErrUntrustedDestination](#ErrUntrustedDestination) unless it targets an origin this Client was configured for. This constructor carries a body, and a body cannot be withheld the way a credential can: see the destination rules on [ErrUntrustedDestination](#ErrUntrustedDestination).\n\n```go\nfunc (c *Client) NewRequest(ctx context.Context, method, urlStr string, body any, 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(ctx context.Context, 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\nAn absolute urlStr replaces the Client's UploadURL, and the host in one of those is usually chosen by an API response rather than by the caller — a release's UploadURL is the usual case. The request is therefore refused with [ErrUntrustedDestination](#ErrUntrustedDestination) unless it targets an origin this Client was configured for, so that a response cannot redirect the caller's bytes to a host the caller did not choose.\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\nDeprecated: Use MetaService.Octocat instead.\n\n```go\nfunc (c *Client) RateLimits(ctx context.Context) (*RateLimits, *Response, error)\n```\nRateLimits returns the rate limits for the current client.\n\nDeprecated: Use RateLimitService.Get instead.\n\n```go\nfunc (c *Client) UploadURL() string\n```\nUploadURL returns the base URL for upload API requests.\n\n```go\nfunc (c *Client) UserAgent() string\n```\nUserAgent returns the User-Agent header value for the 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\nDeprecated: Use MetaService.Zen instead.\n\n```go\ntype ClientOptionsFunc func(*clientOptions) error\n```\nClientOptionsFunc is a functional option for providing configuration options to a Client.\n\n```go\nfunc WithAuthToken(token string) ClientOptionsFunc\n```\nWithAuthToken returns a ClientOptionsFunc that sets the authentication token for a Client. The token is attached only to requests to the Client's configured API and upload origins; a request to any other origin is sent without it. If not set, the client will make unauthenticated requests.\n\n```go\nfunc WithDisableRateLimitCheck() ClientOptionsFunc\n```\nWithDisableRateLimitCheck returns a ClientOptionsFunc that disables rate limit checking for a Client. If not set, the client will check for rate limits and track them.\n\n```go\nfunc WithEnterpriseURLs(baseURL, uploadURL string) ClientOptionsFunc\n```\nWithEnterpriseURLs returns a ClientOptionsFunc that sets the base and upload URLs for a Client.\n\n```go\nfunc WithEnvProxy() ClientOptionsFunc\n```\nWithEnvProxy returns a ClientOptionsFunc that configures the Client to use the HTTP proxy settings from the environment variables (e.g., HTTP\\_PROXY, HTTPS\\_PROXY, NO\\_PROXY). If not set, the client will not use environment proxy settings.\n\n```go\nfunc WithHTTPClient(httpClient *http.Client) ClientOptionsFunc\n```\nWithHTTPClient returns a ClientOptionsFunc that sets the http.Client for a Client. If not set, a default http.Client will be used.\n\n```go\nfunc WithMaxSecondaryRateLimitRetryAfterDuration(duration time.Duration) ClientOptionsFunc\n```\nWithMaxSecondaryRateLimitRetryAfterDuration returns a ClientOptionsFunc that configures the Client secondary rate limit max retry after duration.\n\n```go\nfunc WithRateLimitRedirectionalEndpoints() ClientOptionsFunc\n```\nWithRateLimitRedirectionalEndpoints returns a ClientOptionsFunc that configures the Client to respect rate limit headers on endpoints that return 302 redirection to artifacts. If not set, the client will not respect rate limit headers on these endpoints.\n\n```go\nfunc WithTimeout(timeout time.Duration) ClientOptionsFunc\n```\nWithTimeout returns a ClientOptionsFunc that sets the timeout for a Client. This overrides the timeout set by [WithHTTPClient](#WithHTTPClient). If not set and no HTTP client is provided, the default http.Client with no timeout will be used. It is recommended to provide a timeout for production environments.\n\n```go\nfunc WithTransport(transport http.RoundTripper) ClientOptionsFunc\n```\nWithTransport returns a ClientOptionsFunc that sets the http.RoundTripper for a Client. This overrides the transport set by [WithHTTPClient](#WithHTTPClient). If not set and no HTTP client is provided, the default http.RoundTripper will be used.\n\n```go\nfunc WithURLs(baseURL, uploadURL *string) ClientOptionsFunc\n```\nWithURLs returns a ClientOptionsFunc that sets the base and upload URLs while only validating the URL format. Nil values will be ignored and default URLs will be used.\n\n```go\nfunc WithUserAgent(userAgent string) ClientOptionsFunc\n```\nWithUserAgent returns a ClientOptionsFunc that sets the User-Agent header for a Client. If not set, a default User-Agent will be used.\n\n```go\ntype ClusterArtifactDeployment struct {\n\tName             string                  `json:\"name\"`\n\tDigest           string                  `json:\"digest\"`\n\tVersion          *string                 `json:\"version,omitempty\"`\n\tStatus           string                  `json:\"status\"`\n\tDeploymentName   string                  `json:\"deployment_name\"`\n\tTags             map[string]string       `json:\"tags,omitempty\"`\n\tRuntimeRisks     []DeploymentRuntimeRisk `json:\"runtime_risks,omitempty\"`\n\tGithubRepository *string                 `json:\"github_repository,omitempty\"`\n}\n```\nClusterArtifactDeployment represents a deployment within a cluster record request.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetDeploymentName() string\n```\nGetDeploymentName returns the DeploymentName field.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetDigest() string\n```\nGetDigest returns the Digest field.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetGithubRepository() string\n```\nGetGithubRepository returns the GithubRepository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetRuntimeRisks() []DeploymentRuntimeRisk\n```\nGetRuntimeRisks returns the RuntimeRisks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetStatus() string\n```\nGetStatus returns the Status field.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetTags() map[string]string\n```\nGetTags returns the Tags map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (c *ClusterArtifactDeployment) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype ClusterDeploymentRecordsRequest struct {\n\tLogicalEnvironment  string                       `json:\"logical_environment\"`\n\tPhysicalEnvironment *string                      `json:\"physical_environment,omitempty\"`\n\tDeployments         []*ClusterArtifactDeployment `json:\"deployments\"`\n}\n```\nClusterDeploymentRecordsRequest represents the request body for setting cluster deployment records.\n\n```go\nfunc (c *ClusterDeploymentRecordsRequest) GetDeployments() []*ClusterArtifactDeployment\n```\nGetDeployments returns the Deployments slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ClusterDeploymentRecordsRequest) GetLogicalEnvironment() string\n```\nGetLogicalEnvironment returns the LogicalEnvironment field.\n\n```go\nfunc (c *ClusterDeploymentRecordsRequest) GetPhysicalEnvironment() string\n```\nGetPhysicalEnvironment returns the PhysicalEnvironment field if it's non-nil, zero value otherwise.\n\n```go\ntype ClusterSSHKey struct {\n\tKey         *string `json:\"key,omitempty\"`\n\tFingerprint *string `json:\"fingerprint,omitempty\"`\n}\n```\nClusterSSHKey represents the SSH keys configured for the instance.\n\n```go\nfunc (c *ClusterSSHKey) GetFingerprint() string\n```\nGetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClusterSSHKey) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\ntype ClusterStatus struct {\n\tStatus *string              `json:\"status,omitempty\"`\n\tNodes  []*ClusterStatusNode `json:\"nodes\"`\n}\n```\nClusterStatus represents a response from the ClusterStatus and ReplicationStatus methods.\n\n```go\nfunc (c *ClusterStatus) GetNodes() []*ClusterStatusNode\n```\nGetNodes returns the Nodes slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ClusterStatus) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype ClusterStatusNode struct {\n\tHostname *string                         `json:\"hostname,omitempty\"`\n\tStatus   *string                         `json:\"status,omitempty\"`\n\tServices []*ClusterStatusNodeServiceItem `json:\"services\"`\n}\n```\nClusterStatusNode represents the status of a cluster node.\n\n```go\nfunc (c *ClusterStatusNode) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClusterStatusNode) GetServices() []*ClusterStatusNodeServiceItem\n```\nGetServices returns the Services slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ClusterStatusNode) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype ClusterStatusNodeServiceItem struct {\n\tStatus  *string `json:\"status,omitempty\"`\n\tName    *string `json:\"name,omitempty\"`\n\tDetails *string `json:\"details,omitempty\"`\n}\n```\nClusterStatusNodeServiceItem represents the status of a service running on a cluster node.\n\n```go\nfunc (c *ClusterStatusNodeServiceItem) GetDetails() string\n```\nGetDetails returns the Details field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClusterStatusNodeServiceItem) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ClusterStatusNodeServiceItem) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeCoverageRuleParameters struct {\n\tMaxCoverageDrop *float64 `json:\"max_coverage_drop,omitempty\"`\n\tMinimumCoverage *float64 `json:\"minimum_coverage,omitempty\"`\n}\n```\nCodeCoverageRuleParameters represents the code\\_coverage rule parameters.\n\n```go\nfunc (c *CodeCoverageRuleParameters) GetMaxCoverageDrop() float64\n```\nGetMaxCoverageDrop returns the MaxCoverageDrop field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeCoverageRuleParameters) GetMinimumCoverage() float64\n```\nGetMinimumCoverage returns the MinimumCoverage field if it's non-nil, zero value otherwise.\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 CodeQLDatabase struct {\n\tID          *int64     `json:\"id,omitempty\"`\n\tName        *string    `json:\"name,omitempty\"`\n\tLanguage    *string    `json:\"language,omitempty\"`\n\tUploader    *User      `json:\"uploader,omitempty\"`\n\tContentType *string    `json:\"content_type,omitempty\"`\n\tSize        *int64     `json:\"size,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n\tURL         *string    `json:\"url,omitempty\"`\n}\n```\nCodeQLDatabase represents a metadata about the CodeQL database.\n\nGitHub API docs: [https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\n\n```go\nfunc (c *CodeQLDatabase) GetContentType() string\n```\nGetContentType returns the ContentType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetLanguage() string\n```\nGetLanguage returns the Language field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetSize() int64\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQLDatabase) GetUploader() *User\n```\nGetUploader returns the Uploader field.\n\n```go\ntype CodeQualityFinding struct {\n\tNumber    int                        `json:\"number\"`\n\tState     string                     `json:\"state\"`\n\tURL       string                     `json:\"url\"`\n\tRule      CodeQualityFindingRule     `json:\"rule\"`\n\tLocation  CodeQualityFindingLocation `json:\"location\"`\n\tMessage   CodeQualityFindingMessage  `json:\"message\"`\n\tCreatedAt *Timestamp                 `json:\"created_at,omitempty\"`\n}\n```\nCodeQualityFinding represents a single code quality finding.\n\n```go\nfunc (c *CodeQualityFinding) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityFinding) GetLocation() CodeQualityFindingLocation\n```\nGetLocation returns the Location field.\n\n```go\nfunc (c *CodeQualityFinding) GetMessage() CodeQualityFindingMessage\n```\nGetMessage returns the Message field.\n\n```go\nfunc (c *CodeQualityFinding) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (c *CodeQualityFinding) GetRule() CodeQualityFindingRule\n```\nGetRule returns the Rule field.\n\n```go\nfunc (c *CodeQualityFinding) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (c *CodeQualityFinding) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\ntype CodeQualityFindingLocation struct {\n\tPath        string `json:\"path\"`\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```\nCodeQualityFindingLocation represents the location of a code quality finding.\n\n```go\nfunc (c *CodeQualityFindingLocation) GetEndColumn() int\n```\nGetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityFindingLocation) GetEndLine() int\n```\nGetEndLine returns the EndLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityFindingLocation) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\nfunc (c *CodeQualityFindingLocation) GetStartColumn() int\n```\nGetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityFindingLocation) GetStartLine() int\n```\nGetStartLine returns the StartLine field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeQualityFindingMessage struct {\n\tText     string `json:\"text\"`\n\tMarkdown string `json:\"markdown\"`\n}\n```\nCodeQualityFindingMessage represents the message of a code quality finding.\n\n```go\nfunc (c *CodeQualityFindingMessage) GetMarkdown() string\n```\nGetMarkdown returns the Markdown field.\n\n```go\nfunc (c *CodeQualityFindingMessage) GetText() string\n```\nGetText returns the Text field.\n\n```go\ntype CodeQualityFindingRule struct {\n\tID          string  `json:\"id\"`\n\tTitle       string  `json:\"title\"`\n\tDescription string  `json:\"description\"`\n\tHelp        *string `json:\"help,omitempty\"`\n\tSeverity    string  `json:\"severity\"`\n\tCategory    string  `json:\"category\"`\n}\n```\nCodeQualityFindingRule represents the rule associated with a code quality finding.\n\n```go\nfunc (c *CodeQualityFindingRule) GetCategory() string\n```\nGetCategory returns the Category field.\n\n```go\nfunc (c *CodeQualityFindingRule) GetDescription() string\n```\nGetDescription returns the Description field.\n\n```go\nfunc (c *CodeQualityFindingRule) GetHelp() string\n```\nGetHelp returns the Help field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityFindingRule) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (c *CodeQualityFindingRule) GetSeverity() string\n```\nGetSeverity returns the Severity field.\n\n```go\nfunc (c *CodeQualityFindingRule) GetTitle() string\n```\nGetTitle returns the Title field.\n\n```go\ntype CodeQualityService service\n```\nCodeQualityService handles communication with the code quality related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28](https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28)\n\n```go\nfunc (s *CodeQualityService) GetFinding(ctx context.Context, owner, repo string, findingNumber int) (*CodeQualityFinding, *Response, error)\n```\nGetFinding gets a single code quality finding for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#get-a-code-quality-finding](https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#get-a-code-quality-finding)\n\n```go\nfunc (s *CodeQualityService) GetSetup(ctx context.Context, owner, repo string) (*CodeQualitySetupConfiguration, *Response, error)\n```\nGetSetup gets a code quality setup configuration for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#get-a-code-quality-setup-configuration](https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#get-a-code-quality-setup-configuration)\n\n```go\nfunc (s *CodeQualityService) ListFindings(ctx context.Context, owner, repo string, opts *ListCodeQualityFindingsOptions) ([]*CodeQualityFinding, *Response, error)\n```\nListFindings lists code quality findings for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#list-code-quality-findings-for-a-repository](https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#list-code-quality-findings-for-a-repository)\n\n```go\nfunc (s *CodeQualityService) ListFindingsIter(ctx context.Context, owner string, repo string, opts *ListCodeQualityFindingsOptions) iter.Seq2[*CodeQualityFinding, error]\n```\nListFindingsIter returns an iterator that paginates through all results of ListFindings.\n\n```go\nfunc (s *CodeQualityService) UpdateSetup(ctx context.Context, owner, repo string, body CodeQualityUpdateSetupRequest) (*CodeQualityUpdateSetupResponse, *Response, error)\n```\nUpdateSetup updates a code quality setup configuration for a 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 has now scheduled the update in a background task.\n\nGitHub API docs: [https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#update-a-code-quality-setup-configuration](https://docs.github.com/rest/code-quality/code-quality?apiVersion=2022-11-28#update-a-code-quality-setup-configuration)\n\n```go\ntype CodeQualitySetupConfiguration struct {\n\tState       *string    `json:\"state,omitempty\"`\n\tLanguages   []string   `json:\"languages,omitempty\"`\n\tRunnerType  *string    `json:\"runner_type,omitempty\"`\n\tRunnerLabel *string    `json:\"runner_label,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n\tSchedule    *string    `json:\"schedule,omitempty\"`\n}\n```\nCodeQualitySetupConfiguration represents a code quality setup configuration for a repository.\n\n```go\nfunc (c *CodeQualitySetupConfiguration) GetLanguages() []string\n```\nGetLanguages returns the Languages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CodeQualitySetupConfiguration) GetRunnerLabel() string\n```\nGetRunnerLabel returns the RunnerLabel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualitySetupConfiguration) GetRunnerType() string\n```\nGetRunnerType returns the RunnerType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualitySetupConfiguration) GetSchedule() string\n```\nGetSchedule returns the Schedule field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualitySetupConfiguration) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualitySetupConfiguration) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeQualityUpdateSetupRequest struct {\n\tState       *string  `json:\"state,omitempty\"`\n\tRunnerType  *string  `json:\"runner_type,omitempty\"`\n\tRunnerLabel *string  `json:\"runner_label,omitempty\"`\n\tLanguages   []string `json:\"languages,omitempty\"`\n}\n```\nCodeQualityUpdateSetupRequest specifies parameters to the CodeQualityService.UpdateSetup method.\n\n```go\nfunc (c *CodeQualityUpdateSetupRequest) GetLanguages() []string\n```\nGetLanguages returns the Languages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CodeQualityUpdateSetupRequest) GetRunnerLabel() string\n```\nGetRunnerLabel returns the RunnerLabel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityUpdateSetupRequest) GetRunnerType() string\n```\nGetRunnerType returns the RunnerType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityUpdateSetupRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeQualityUpdateSetupResponse struct {\n\tRunID  *int64  `json:\"run_id,omitempty\"`\n\tRunURL *string `json:\"run_url,omitempty\"`\n}\n```\nCodeQualityUpdateSetupResponse represents a response from updating a code quality setup configuration.\n\n```go\nfunc (c *CodeQualityUpdateSetupResponse) GetRunID() int64\n```\nGetRunID returns the RunID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeQualityUpdateSetupResponse) GetRunURL() string\n```\nGetRunURL returns the RunURL field if it's non-nil, zero value otherwise.\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) GetTextMatches() []*TextMatch\n```\nGetTextMatches returns the TextMatches slice if it's non-nil, nil 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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#code\\_scanning\\_alert](https://docs.github.com/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/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\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\nfunc (c *CodeScanningAlertState) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype CodeScanningAlertsThreshold string\n```\nCodeScanningAlertsThreshold models a GitHub code scanning alerts threshold.\n\n```go\nconst (\n\tCodeScanningAlertsThresholdNone              CodeScanningAlertsThreshold = \"none\"\n\tCodeScanningAlertsThresholdErrors            CodeScanningAlertsThreshold = \"errors\"\n\tCodeScanningAlertsThresholdErrorsAndWarnings CodeScanningAlertsThreshold = \"errors_and_warnings\"\n\tCodeScanningAlertsThresholdAll               CodeScanningAlertsThreshold = \"all\"\n)\n```\nThis is the set of GitHub code scanning alerts thresholds.\n\n```go\ntype CodeScanningBranchRule struct {\n\tBranchRuleMetadata\n\tParameters CodeScanningRuleParameters `json:\"parameters\"`\n}\n```\nCodeScanningBranchRule represents a code scanning branch rule.\n\n```go\nfunc (c *CodeScanningBranchRule) GetParameters() CodeScanningRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype CodeScanningDefaultSetupOptions struct {\n\tRunnerType  string  `json:\"runner_type\"`\n\tRunnerLabel *string `json:\"runner_label,omitempty\"`\n}\n```\nCodeScanningDefaultSetupOptions represents the feature options for the code scanning default options.\n\n```go\nfunc (c *CodeScanningDefaultSetupOptions) GetRunnerLabel() string\n```\nGetRunnerLabel returns the RunnerLabel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeScanningDefaultSetupOptions) GetRunnerType() string\n```\nGetRunnerType returns the RunnerType field.\n\n```go\ntype CodeScanningOptions struct {\n\tAllowAdvanced *bool `json:\"allow_advanced,omitempty\"`\n}\n```\nCodeScanningOptions represents the options for the Security Configuration code scanning feature.\n\n```go\nfunc (c *CodeScanningOptions) GetAllowAdvanced() bool\n```\nGetAllowAdvanced returns the AllowAdvanced field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeScanningRuleParameters struct {\n\tCodeScanningTools []*RuleCodeScanningTool `json:\"code_scanning_tools\"`\n}\n```\nCodeScanningRuleParameters represents the code scanning rule parameters.\n\n```go\nfunc (c *CodeScanningRuleParameters) GetCodeScanningTools() []*RuleCodeScanningTool\n```\nGetCodeScanningTools returns the CodeScanningTools slice if it's non-nil, nil otherwise.\n\n```go\ntype CodeScanningSecurityAlertsThreshold string\n```\nCodeScanningSecurityAlertsThreshold models a GitHub code scanning security alerts threshold.\n\n```go\nconst (\n\tCodeScanningSecurityAlertsThresholdNone           CodeScanningSecurityAlertsThreshold = \"none\"\n\tCodeScanningSecurityAlertsThresholdCritical       CodeScanningSecurityAlertsThreshold = \"critical\"\n\tCodeScanningSecurityAlertsThresholdHighOrHigher   CodeScanningSecurityAlertsThreshold = \"high_or_higher\"\n\tCodeScanningSecurityAlertsThresholdMediumOrHigher CodeScanningSecurityAlertsThreshold = \"medium_or_higher\"\n\tCodeScanningSecurityAlertsThresholdAll            CodeScanningSecurityAlertsThreshold = \"all\"\n)\n```\nThis is the set of GitHub code scanning security alerts thresholds.\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/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\n\n```go\nfunc (s *CodeScanningService) DeleteAnalysis(ctx context.Context, owner, repo string, id int64) (*DeleteAnalysis, *Response, error)\n```\nDeleteAnalysis deletes a single code scanning analysis from a repository.\n\nYou must use an access token with the repo 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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#delete-a-code-scanning-analysis-from-a-repository](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#delete-a-code-scanning-analysis-from-a-repository)\n\n```go\nfunc (s *CodeScanningService) DeleteCodeQLDatabase(ctx context.Context, owner, repo, language string) (*Response, error)\n```\nDeleteCodeQLDatabase deletes a CodeQL database for a language in a repository.\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.\n\nGitHub API docs: [https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#delete-a-codeql-database](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#delete-a-codeql-database)\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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-code-scanning-alert](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-code-scanning-analysis-for-a-repository](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-code-scanning-analysis-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) GetCodeQLDatabase(ctx context.Context, owner, repo, language string) (*CodeQLDatabase, *Response, error)\n```\nGetCodeQLDatabase gets a CodeQL database for a language in a repository.\n\nYou must use an access token with the security\\_events scope to use this endpoint. GitHub Apps must have the contents read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-codeql-database-for-a-repository](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-codeql-database-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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-code-scanning-default-setup-configuration](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-code-scanning-default-setup-configuration)\n\n```go\nfunc (s *CodeScanningService) GetSARIF(ctx context.Context, owner, repo, sarifID string) (*SARIFUpload, *Response, error)\n```\nGetSARIF gets information about a SARIF upload.\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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-information-about-a-sarif-upload](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-information-about-a-sarif-upload)\n\n```go\nfunc (s *CodeScanningService) ListAlertInstances(ctx context.Context, owner, repo string, id int64, opts *AlertInstancesListOptions) ([]*MostRecentInstance, *Response, error)\n```\nListAlertInstances lists instances of a code scanning alert.\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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-instances-of-a-code-scanning-alert](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-instances-of-a-code-scanning-alert)\n\n```go\nfunc (s *CodeScanningService) ListAlertInstancesIter(ctx context.Context, owner string, repo string, id int64, opts *AlertInstancesListOptions) iter.Seq2[*MostRecentInstance, error]\n```\nListAlertInstancesIter returns an iterator that paginates through all results of ListAlertInstances.\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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-alerts-for-an-organization](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-alerts-for-an-organization)\n\n```go\nfunc (s *CodeScanningService) ListAlertsForOrgIter(ctx context.Context, org string, opts *AlertListOptions) iter.Seq2[*Alert, error]\n```\nListAlertsForOrgIter returns an iterator that paginates through all results of ListAlertsForOrg.\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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-alerts-for-a-repository](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-alerts-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) ListAlertsForRepoIter(ctx context.Context, owner string, repo string, opts *AlertListOptions) iter.Seq2[*Alert, error]\n```\nListAlertsForRepoIter returns an iterator that paginates through all results of ListAlertsForRepo.\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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-analyses-for-a-repository](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-code-scanning-analyses-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) ListAnalysesForRepoIter(ctx context.Context, owner string, repo string, opts *AnalysesListOptions) iter.Seq2[*ScanningAnalysis, error]\n```\nListAnalysesForRepoIter returns an iterator that paginates through all results of ListAnalysesForRepo.\n\n```go\nfunc (s *CodeScanningService) ListCodeQLDatabases(ctx context.Context, owner, repo string) ([]*CodeQLDatabase, *Response, error)\n```\nListCodeQLDatabases lists the CodeQL databases that are available in a repository.\n\nYou must use an access token with the security\\_events scope to use this endpoint. GitHub Apps must have the contents read permission to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-codeql-databases-for-a-repository](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#list-codeql-databases-for-a-repository)\n\n```go\nfunc (s *CodeScanningService) UpdateAlert(ctx context.Context, owner, repo string, id int64, body *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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#update-a-code-scanning-alert](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#update-a-code-scanning-alert)\n\n```go\nfunc (s *CodeScanningService) UpdateDefaultSetupConfiguration(ctx context.Context, owner, repo string, body *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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#update-a-code-scanning-default-setup-configuration](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#update-a-code-scanning-default-setup-configuration)\n\n```go\nfunc (s *CodeScanningService) UploadSarif(ctx context.Context, owner, repo string, body 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/rest/code-scanning/code-scanning?apiVersion=2022-11-28#upload-an-analysis-as-sarif-data](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2022-11-28#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) GetCodeResults() []*CodeResult\n```\nGetCodeResults returns the CodeResults slice if it's non-nil, nil otherwise.\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 CodeSecurity struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nCodeSecurity represents the state of code security on a repository.\n\nGitHub API docs: [https://docs.github.com/en/code-security/getting-started/github-security-features#available-with-github-code-security](https://docs.github.com/en/code-security/getting-started/github-security-features#available-with-github-code-security)\n\n```go\nfunc (c *CodeSecurity) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c CodeSecurity) String() string\n```\n\n```go\ntype CodeSecurityConfiguration struct {\n\tID                                     *int64                                  `json:\"id,omitempty\"`\n\tTargetType                             *string                                 `json:\"target_type,omitempty\"`\n\tName                                   string                                  `json:\"name\"`\n\tDescription                            string                                  `json:\"description\"`\n\tAdvancedSecurity                       *string                                 `json:\"advanced_security,omitempty\"`\n\tDependencyGraph                        *string                                 `json:\"dependency_graph,omitempty\"`\n\tDependencyGraphAutosubmitAction        *string                                 `json:\"dependency_graph_autosubmit_action,omitempty\"`\n\tDependencyGraphAutosubmitActionOptions *DependencyGraphAutosubmitActionOptions `json:\"dependency_graph_autosubmit_action_options,omitempty\"`\n\tDependabotAlerts                       *string                                 `json:\"dependabot_alerts,omitempty\"`\n\tDependabotDelegatedAlertDismissal      *string                                 `json:\"dependabot_delegated_alert_dismissal,omitempty\"`\n\tDependabotSecurityUpdates              *string                                 `json:\"dependabot_security_updates,omitempty\"`\n\tCodeScanningDefaultSetup               *string                                 `json:\"code_scanning_default_setup,omitempty\"`\n\tCodeScanningDefaultSetupOptions        *CodeScanningDefaultSetupOptions        `json:\"code_scanning_default_setup_options,omitempty\"`\n\tCodeScanningDelegatedAlertDismissal    *string                                 `json:\"code_scanning_delegated_alert_dismissal,omitempty\"`\n\tCodeScanningOptions                    *CodeScanningOptions                    `json:\"code_scanning_options,omitempty\"`\n\tCodeSecurity                           *string                                 `json:\"code_security,omitempty\"`\n\tSecretScanning                         *string                                 `json:\"secret_scanning,omitempty\"`\n\tSecretScanningPushProtection           *string                                 `json:\"secret_scanning_push_protection,omitempty\"`\n\tSecretScanningDelegatedBypass          *string                                 `json:\"secret_scanning_delegated_bypass,omitempty\"`\n\tSecretScanningDelegatedBypassOptions   *SecretScanningDelegatedBypassOptions   `json:\"secret_scanning_delegated_bypass_options,omitempty\"`\n\tSecretScanningValidityChecks           *string                                 `json:\"secret_scanning_validity_checks,omitempty\"`\n\tSecretScanningNonProviderPatterns      *string                                 `json:\"secret_scanning_non_provider_patterns,omitempty\"`\n\tSecretScanningGenericSecrets           *string                                 `json:\"secret_scanning_generic_secrets,omitempty\"`\n\tSecretScanningDelegatedAlertDismissal  *string                                 `json:\"secret_scanning_delegated_alert_dismissal,omitempty\"`\n\tSecretScanningExtendedMetadata         *string                                 `json:\"secret_scanning_extended_metadata,omitempty\"`\n\tSecretProtection                       *string                                 `json:\"secret_protection,omitempty\"`\n\tPrivateVulnerabilityReporting          *string                                 `json:\"private_vulnerability_reporting,omitempty\"`\n\tEnforcement                            *string                                 `json:\"enforcement,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}\n```\nCodeSecurityConfiguration represents a code security configuration.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetAdvancedSecurity() string\n```\nGetAdvancedSecurity returns the AdvancedSecurity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetCodeScanningDefaultSetup() string\n```\nGetCodeScanningDefaultSetup returns the CodeScanningDefaultSetup field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetCodeScanningDefaultSetupOptions() *CodeScanningDefaultSetupOptions\n```\nGetCodeScanningDefaultSetupOptions returns the CodeScanningDefaultSetupOptions field.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetCodeScanningDelegatedAlertDismissal() string\n```\nGetCodeScanningDelegatedAlertDismissal returns the CodeScanningDelegatedAlertDismissal field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetCodeScanningOptions() *CodeScanningOptions\n```\nGetCodeScanningOptions returns the CodeScanningOptions field.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetCodeSecurity() string\n```\nGetCodeSecurity returns the CodeSecurity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDependabotAlerts() string\n```\nGetDependabotAlerts returns the DependabotAlerts field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDependabotDelegatedAlertDismissal() string\n```\nGetDependabotDelegatedAlertDismissal returns the DependabotDelegatedAlertDismissal field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDependabotSecurityUpdates() string\n```\nGetDependabotSecurityUpdates returns the DependabotSecurityUpdates field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDependencyGraph() string\n```\nGetDependencyGraph returns the DependencyGraph field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDependencyGraphAutosubmitAction() string\n```\nGetDependencyGraphAutosubmitAction returns the DependencyGraphAutosubmitAction field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDependencyGraphAutosubmitActionOptions() *DependencyGraphAutosubmitActionOptions\n```\nGetDependencyGraphAutosubmitActionOptions returns the DependencyGraphAutosubmitActionOptions field.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetDescription() string\n```\nGetDescription returns the Description field.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetEnforcement() string\n```\nGetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetPrivateVulnerabilityReporting() string\n```\nGetPrivateVulnerabilityReporting returns the PrivateVulnerabilityReporting field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretProtection() string\n```\nGetSecretProtection returns the SecretProtection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanning() string\n```\nGetSecretScanning returns the SecretScanning field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningDelegatedAlertDismissal() string\n```\nGetSecretScanningDelegatedAlertDismissal returns the SecretScanningDelegatedAlertDismissal field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningDelegatedBypass() string\n```\nGetSecretScanningDelegatedBypass returns the SecretScanningDelegatedBypass field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningDelegatedBypassOptions() *SecretScanningDelegatedBypassOptions\n```\nGetSecretScanningDelegatedBypassOptions returns the SecretScanningDelegatedBypassOptions field.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningExtendedMetadata() string\n```\nGetSecretScanningExtendedMetadata returns the SecretScanningExtendedMetadata field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningGenericSecrets() string\n```\nGetSecretScanningGenericSecrets returns the SecretScanningGenericSecrets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningNonProviderPatterns() string\n```\nGetSecretScanningNonProviderPatterns returns the SecretScanningNonProviderPatterns field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningPushProtection() string\n```\nGetSecretScanningPushProtection returns the SecretScanningPushProtection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetSecretScanningValidityChecks() string\n```\nGetSecretScanningValidityChecks returns the SecretScanningValidityChecks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetTargetType() string\n```\nGetTargetType returns the TargetType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodeSecurityConfiguration) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CodeSecurityConfigurationWithDefaultForNewRepos struct {\n\tConfiguration      *CodeSecurityConfiguration `json:\"configuration\"`\n\tDefaultForNewRepos *string                    `json:\"default_for_new_repos,omitempty\"`\n}\n```\nCodeSecurityConfigurationWithDefaultForNewRepos represents a code security configuration with default for new repos param.\n\n```go\nfunc (c *CodeSecurityConfigurationWithDefaultForNewRepos) GetConfiguration() *CodeSecurityConfiguration\n```\nGetConfiguration returns the Configuration field.\n\n```go\nfunc (c *CodeSecurityConfigurationWithDefaultForNewRepos) GetDefaultForNewRepos() string\n```\nGetDefaultForNewRepos returns the DefaultForNewRepos 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) GetColumn() int\n```\nGetColumn returns the Column field.\n\n```go\nfunc (c *CodeownersError) GetKind() string\n```\nGetKind returns the Kind field.\n\n```go\nfunc (c *CodeownersError) GetLine() int\n```\nGetLine returns the Line field.\n\n```go\nfunc (c *CodeownersError) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\nfunc (c *CodeownersError) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\nfunc (c *CodeownersError) GetSource() string\n```\nGetSource returns the Source field.\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\nfunc (c *CodeownersErrors) GetErrors() []*CodeownersError\n```\nGetErrors returns the Errors slice if it's non-nil, nil otherwise.\n\n```go\ntype CodesOfConductService service\n```\nCodesOfConductService provides access to code-of-conduct-related functions in the GitHub API.\n\n```go\nfunc (s *CodesOfConductService) Get(ctx context.Context, key string) (*CodeOfConduct, *Response, error)\n```\nGet returns an individual code of conduct.\n\nGitHub API docs: [https://docs.github.com/rest/codes-of-conduct/codes-of-conduct?apiVersion=2022-11-28#get-a-code-of-conduct](https://docs.github.com/rest/codes-of-conduct/codes-of-conduct?apiVersion=2022-11-28#get-a-code-of-conduct)\n\n```go\nfunc (s *CodesOfConductService) List(ctx context.Context) ([]*CodeOfConduct, *Response, error)\n```\nList returns all codes of conduct.\n\nGitHub API docs: [https://docs.github.com/rest/codes-of-conduct/codes-of-conduct?apiVersion=2022-11-28#get-all-codes-of-conduct](https://docs.github.com/rest/codes-of-conduct/codes-of-conduct?apiVersion=2022-11-28#get-all-codes-of-conduct)\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/rest/codespaces?apiVersion=2022-11-28](https://docs.github.com/rest/codespaces?apiVersion=2022-11-28)\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) GetRecentFolders() []string\n```\nGetRecentFolders returns the RecentFolders slice if it's non-nil, nil 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 CodespaceDefaultAttributes struct {\n\tBillableOwner *User              `json:\"billable_owner\"`\n\tDefaults      *CodespaceDefaults `json:\"defaults\"`\n}\n```\nCodespaceDefaultAttributes represents the default attributes for codespaces created by the user with the repository.\n\n```go\nfunc (c *CodespaceDefaultAttributes) GetBillableOwner() *User\n```\nGetBillableOwner returns the BillableOwner field.\n\n```go\nfunc (c *CodespaceDefaultAttributes) GetDefaults() *CodespaceDefaults\n```\nGetDefaults returns the Defaults field.\n\n```go\ntype CodespaceDefaults struct {\n\tLocation         string  `json:\"location\"`\n\tDevcontainerPath *string `json:\"devcontainer_path,omitempty\"`\n}\n```\nCodespaceDefaults represents default settings for a Codespace.\n\n```go\nfunc (c *CodespaceDefaults) GetDevcontainerPath() string\n```\nGetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceDefaults) GetLocation() string\n```\nGetLocation returns the Location field.\n\n```go\ntype CodespaceExport struct {\n\t// Can be one of: `succeeded`, `failed`, `in_progress`.\n\tState       *string    `json:\"state,omitempty\"`\n\tCompletedAt *Timestamp `json:\"completed_at,omitempty\"`\n\tBranch      *string    `json:\"branch,omitempty\"`\n\tSHA         *string    `json:\"sha,omitempty\"`\n\tID          *string    `json:\"id,omitempty\"`\n\tExportURL   *string    `json:\"export_url,omitempty\"`\n\tHTMLURL     *string    `json:\"html_url,omitempty\"`\n}\n```\nCodespaceExport represents an export of a codespace.\n\n```go\nfunc (c *CodespaceExport) GetBranch() string\n```\nGetBranch returns the Branch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceExport) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceExport) GetExportURL() string\n```\nGetExportURL returns the ExportURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceExport) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceExport) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceExport) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceExport) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype CodespaceGetDefaultAttributesOptions struct {\n\t// Ref represents the branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked.\n\tRef *string `url:\"ref,omitempty\"`\n\t// ClientIP represents an alternative IP for default location auto-detection, such as when proxying a request.\n\tClientIP *string `url:\"client_ip,omitempty\"`\n}\n```\nCodespaceGetDefaultAttributesOptions represents options for getting default attributes for a codespace.\n\n```go\nfunc (c *CodespaceGetDefaultAttributesOptions) GetClientIP() string\n```\nGetClientIP returns the ClientIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CodespaceGetDefaultAttributesOptions) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\ntype CodespacePermissions struct {\n\tAccepted bool `json:\"accepted\"`\n}\n```\nCodespacePermissions represents a response indicating whether the permissions defined by a devcontainer have been accepted.\n\n```go\nfunc (c *CodespacePermissions) GetAccepted() bool\n```\nGetAccepted returns the Accepted field.\n\n```go\ntype CodespacePullRequestOptions struct {\n\t// PullRequestNumber represents the pull request number.\n\tPullRequestNumber int64 `json:\"pull_request_number\"`\n\t// RepositoryID represents the repository ID for this codespace.\n\tRepositoryID int64 `json:\"repository_id\"`\n}\n```\nCodespacePullRequestOptions represents options for a CodespacePullRequest.\n\n```go\nfunc (c *CodespacePullRequestOptions) GetPullRequestNumber() int64\n```\nGetPullRequestNumber returns the PullRequestNumber field.\n\n```go\nfunc (c *CodespacePullRequestOptions) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field.\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 CodespacesMachines struct {\n\tTotalCount int64                `json:\"total_count\"`\n\tMachines   []*CodespacesMachine `json:\"machines\"`\n}\n```\nCodespacesMachines represent a list of machines.\n\n```go\nfunc (c *CodespacesMachines) GetMachines() []*CodespacesMachine\n```\nGetMachines returns the Machines slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CodespacesMachines) GetTotalCount() int64\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype CodespacesOrgAccessControlRequest struct {\n\t// Visibility represent which users can access codespaces in the organization.\n\t// Can be one of: disabled, selected_members, all_members, all_members_and_outside_collaborators.\n\tVisibility string `json:\"visibility\"`\n\t// SelectedUsernames represent the usernames of the organization members who should have access to codespaces in the organization.\n\t// Required when visibility is selected_members.\n\tSelectedUsernames []string `json:\"selected_usernames,omitzero\"`\n}\n```\nCodespacesOrgAccessControlRequest represent request for SetOrgAccessControl.\n\n```go\nfunc (c *CodespacesOrgAccessControlRequest) GetSelectedUsernames() []string\n```\nGetSelectedUsernames returns the SelectedUsernames slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CodespacesOrgAccessControlRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\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\nfunc (c *CodespacesRuntimeConstraints) GetAllowedPortPrivacySettings() []string\n```\nGetAllowedPortPrivacySettings returns the AllowedPortPrivacySettings slice if it's non-nil, nil otherwise.\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/rest/codespaces?apiVersion=2022-11-28](https://docs.github.com/rest/codespaces?apiVersion=2022-11-28)\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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#add-selected-repository-to-an-organization-secret](https://docs.github.com/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/rest/codespaces/secrets?apiVersion=2022-11-28#add-a-selected-repository-to-a-user-secret](https://docs.github.com/rest/codespaces/secrets?apiVersion=2022-11-28#add-a-selected-repository-to-a-user-secret)\n\n```go\nfunc (s *CodespacesService) AddUsersToOrgAccess(ctx context.Context, org string, usernames []string) (*Response, error)\n```\nAddUsersToOrgAccess adds users to Codespaces access for an organization.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#add-users-to-codespaces-access-for-an-organization](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#add-users-to-codespaces-access-for-an-organization)\n\n```go\nfunc (s *CodespacesService) CheckPermissions(ctx context.Context, owner, repo, ref, devcontainerPath string) (*CodespacePermissions, *Response, error)\n```\nCheckPermissions checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) Create(ctx context.Context, body CreateCodespaceForUserRequest) (*Codespace, *Response, error)\n```\nCreate creates a new codespace, owned by the authenticated user.\n\nThis method requires either RepositoryID or PullRequest to be set, but not both.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) CreateFromPullRequest(ctx context.Context, owner, repo string, pullNumber int, body CreateCodespaceRequest) (*Codespace, *Response, error)\n```\nCreateFromPullRequest creates a codespace owned by the authenticated user for the specified pull request.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-from-a-pull-request](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-from-a-pull-request)\n\n```go\nfunc (s *CodespacesService) CreateInRepo(ctx context.Context, owner, repo string, body CreateCodespaceRequest) (*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/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-codespace-in-a-repository](https://docs.github.com/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, body *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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret](https://docs.github.com/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, body *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/rest/codespaces/repository-secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret](https://docs.github.com/rest/codespaces/repository-secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret)\n\n```go\nfunc (s *CodespacesService) CreateOrUpdateUserSecret(ctx context.Context, body *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/rest/codespaces/secrets?apiVersion=2022-11-28#create-or-update-a-secret-for-the-authenticated-user](https://docs.github.com/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/rest/codespaces/codespaces?apiVersion=2022-11-28#delete-a-codespace-for-the-authenticated-user](https://docs.github.com/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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#delete-an-organization-secret](https://docs.github.com/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/rest/codespaces/repository-secrets?apiVersion=2022-11-28#delete-a-repository-secret](https://docs.github.com/rest/codespaces/repository-secrets?apiVersion=2022-11-28#delete-a-repository-secret)\n\n```go\nfunc (s *CodespacesService) DeleteUserCodespaceInOrg(ctx context.Context, org, username, codespaceName string) (*Response, error)\n```\nDeleteUserCodespaceInOrg deletes a user's codespace from the organization.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#delete-a-codespace-from-the-organization](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#delete-a-codespace-from-the-organization)\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/rest/codespaces/secrets?apiVersion=2022-11-28#delete-a-secret-for-the-authenticated-user](https://docs.github.com/rest/codespaces/secrets?apiVersion=2022-11-28#delete-a-secret-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ExportCodespace(ctx context.Context, codespaceName string) (*CodespaceExport, *Response, error)\n```\nExportCodespace triggers an export of the specified codespace and returns a URL and ID where the status of the export can be monitored.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#export-a-codespace-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#export-a-codespace-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) Get(ctx context.Context, codespaceName string) (*Codespace, *Response, error)\n```\nGet gets information about a user's codespace.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#get-a-codespace-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#get-a-codespace-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) GetDefaultAttributes(ctx context.Context, owner, repo string, opts *CodespaceGetDefaultAttributesOptions) (*CodespaceDefaultAttributes, *Response, error)\n```\nGetDefaultAttributes gets the default attributes for codespaces created by the user with the repository.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#get-default-attributes-for-a-codespace](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#get-default-attributes-for-a-codespace)\n\n```go\nfunc (s *CodespacesService) GetLatestCodespaceExport(ctx context.Context, codespaceName string) (*CodespaceExport, *Response, error)\n```\nGetLatestCodespaceExport gets information about an export of a codespace.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#get-details-about-a-codespace-export](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#get-details-about-a-codespace-export)\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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#get-an-organization-public-key](https://docs.github.com/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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#get-an-organization-secret](https://docs.github.com/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/rest/codespaces/repository-secrets?apiVersion=2022-11-28#get-a-repository-public-key](https://docs.github.com/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/rest/codespaces/repository-secrets?apiVersion=2022-11-28#get-a-repository-secret](https://docs.github.com/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/rest/codespaces/secrets?apiVersion=2022-11-28#get-public-key-for-the-authenticated-user](https://docs.github.com/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/rest/codespaces/secrets?apiVersion=2022-11-28#get-a-secret-for-the-authenticated-user](https://docs.github.com/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/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ListCodespaceMachineTypes(ctx context.Context, codespaceName string) (*CodespacesMachines, *Response, error)\n```\nListCodespaceMachineTypes lists the machine types a codespace can transition to use.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/machines?apiVersion=2022-11-28#list-machine-types-for-a-codespace](https://docs.github.com/rest/codespaces/machines?apiVersion=2022-11-28#list-machine-types-for-a-codespace)\n\n```go\nfunc (s *CodespacesService) ListDevContainerConfigurations(ctx context.Context, owner, repo string, opts *ListOptions) (*DevContainerConfigurations, *Response, error)\n```\nListDevContainerConfigurations lists devcontainer configurations in a repository for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#list-devcontainer-configurations-in-a-repository-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#list-devcontainer-configurations-in-a-repository-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ListDevContainerConfigurationsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*DevContainer, error]\n```\nListDevContainerConfigurationsIter returns an iterator that paginates through all results of ListDevContainerConfigurations.\n\n```go\nfunc (s *CodespacesService) ListInOrg(ctx context.Context, org string, opts *ListOptions) (*ListCodespaces, *Response, error)\n```\nListInOrg lists the codespaces associated to a specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#list-codespaces-for-the-organization](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#list-codespaces-for-the-organization)\n\n```go\nfunc (s *CodespacesService) ListInOrgIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Codespace, error]\n```\nListInOrgIter returns an iterator that paginates through all results of ListInOrg.\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/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-in-a-repository-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#list-codespaces-in-a-repository-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ListInRepoIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Codespace, error]\n```\nListInRepoIter returns an iterator that paginates through all results of ListInRepo.\n\n```go\nfunc (s *CodespacesService) ListIter(ctx context.Context, opts *ListCodespacesOptions) iter.Seq2[*Codespace, error]\n```\nListIter returns an iterator that paginates through all results of List.\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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-organization-secrets](https://docs.github.com/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-organization-secrets)\n\n```go\nfunc (s *CodespacesService) ListOrgSecretsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListOrgSecretsIter returns an iterator that paginates through all results of ListOrgSecrets.\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/rest/codespaces/repository-secrets?apiVersion=2022-11-28#list-repository-secrets](https://docs.github.com/rest/codespaces/repository-secrets?apiVersion=2022-11-28#list-repository-secrets)\n\n```go\nfunc (s *CodespacesService) ListRepoSecretsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListRepoSecretsIter returns an iterator that paginates through all results of ListRepoSecrets.\n\n```go\nfunc (s *CodespacesService) ListRepositoryMachineTypes(ctx context.Context, owner, repo string, opts *ListRepoMachineTypesOptions) (*CodespacesMachines, *Response, error)\n```\nListRepositoryMachineTypes lists the machine types available for a given repository based on its configuration.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/machines?apiVersion=2022-11-28#list-available-machine-types-for-a-repository](https://docs.github.com/rest/codespaces/machines?apiVersion=2022-11-28#list-available-machine-types-for-a-repository)\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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/codespaces/organization-secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *CodespacesService) ListSelectedReposForOrgSecretIter(ctx context.Context, org string, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForOrgSecretIter returns an iterator that paginates through all results of ListSelectedReposForOrgSecret.\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/rest/codespaces/secrets?apiVersion=2022-11-28#list-selected-repositories-for-a-user-secret](https://docs.github.com/rest/codespaces/secrets?apiVersion=2022-11-28#list-selected-repositories-for-a-user-secret)\n\n```go\nfunc (s *CodespacesService) ListSelectedReposForUserSecretIter(ctx context.Context, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForUserSecretIter returns an iterator that paginates through all results of ListSelectedReposForUserSecret.\n\n```go\nfunc (s *CodespacesService) ListUserCodespacesInOrg(ctx context.Context, org, username string, opts *ListOptions) (*ListCodespaces, *Response, error)\n```\nListUserCodespacesInOrg lists the codespaces that a member of an organization has for repositories in that organization.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#list-codespaces-for-a-user-in-organization](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#list-codespaces-for-a-user-in-organization)\n\n```go\nfunc (s *CodespacesService) ListUserCodespacesInOrgIter(ctx context.Context, org string, username string, opts *ListOptions) iter.Seq2[*Codespace, error]\n```\nListUserCodespacesInOrgIter returns an iterator that paginates through all results of ListUserCodespacesInOrg.\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/rest/codespaces/secrets?apiVersion=2022-11-28#list-secrets-for-the-authenticated-user](https://docs.github.com/rest/codespaces/secrets?apiVersion=2022-11-28#list-secrets-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) ListUserSecretsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListUserSecretsIter returns an iterator that paginates through all results of ListUserSecrets.\n\n```go\nfunc (s *CodespacesService) Publish(ctx context.Context, codespaceName string, body PublishCodespaceRequest) (*Codespace, *Response, error)\n```\nPublish publishes an unpublished codespace, creating a new repository and assigning it to the codespace.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-repository-from-an-unpublished-codespace](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#create-a-repository-from-an-unpublished-codespace)\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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-secret](https://docs.github.com/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/rest/codespaces/secrets?apiVersion=2022-11-28#remove-a-selected-repository-from-a-user-secret](https://docs.github.com/rest/codespaces/secrets?apiVersion=2022-11-28#remove-a-selected-repository-from-a-user-secret)\n\n```go\nfunc (s *CodespacesService) RemoveUsersFromOrgAccess(ctx context.Context, org string, usernames []string) (*Response, error)\n```\nRemoveUsersFromOrgAccess removes users from Codespaces access for an organization.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#remove-users-from-codespaces-access-for-an-organization](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#remove-users-from-codespaces-access-for-an-organization)\n\n```go\nfunc (s *CodespacesService) SetOrgAccessControl(ctx context.Context, org string, body CodespacesOrgAccessControlRequest) (*Response, error)\n```\nSetOrgAccessControl sets which users can access codespaces in an organization.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#manage-access-control-for-organization-codespaces](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#manage-access-control-for-organization-codespaces)\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/rest/codespaces/organization-secrets?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/codespaces/organization-secrets?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-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/rest/codespaces/secrets?apiVersion=2022-11-28#set-selected-repositories-for-a-user-secret](https://docs.github.com/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/rest/codespaces/codespaces?apiVersion=2022-11-28#start-a-codespace-for-the-authenticated-user](https://docs.github.com/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/rest/codespaces/codespaces?apiVersion=2022-11-28#stop-a-codespace-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#stop-a-codespace-for-the-authenticated-user)\n\n```go\nfunc (s *CodespacesService) StopUserCodespaceInOrg(ctx context.Context, org, username, codespaceName string) (*Response, error)\n```\nStopUserCodespaceInOrg stops a codespace for an organization user.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#stop-a-codespace-for-an-organization-user](https://docs.github.com/rest/codespaces/organizations?apiVersion=2022-11-28#stop-a-codespace-for-an-organization-user)\n\n```go\nfunc (s *CodespacesService) Update(ctx context.Context, codespaceName string, body UpdateCodespaceRequest) (*Codespace, *Response, error)\n```\nUpdate updates a codespace owned by the authenticated user.\n\nOnly the codespace's machine type and recent folders can be modified using this endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#update-a-codespace-for-the-authenticated-user](https://docs.github.com/rest/codespaces/codespaces?apiVersion=2022-11-28#update-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/rest/collaborators/collaborators?apiVersion=2022-11-28#add-a-repository-collaborator](https://docs.github.com/rest/collaborators/collaborators?apiVersion=2022-11-28#add-a-repository-collaborator)\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) GetStatuses() []*RepoStatus\n```\nGetStatuses returns the Statuses slice if it's non-nil, nil 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) GetBody() string\n```\nGetBody returns the Body field.\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\t// AuthorAssociation is the comment author's relationship to the repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Discussions REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/discussions/comments?apiVersion=2022-11-28#get-a-discussion-comment\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\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```\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) GetParents() []*Commit\n```\nGetParents returns the Parents slice if it's non-nil, nil 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) 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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#commit\\_comment](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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) GetParents() []*Commit\n```\nGetParents returns the Parents slice if it's non-nil, nil 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 if it's non-nil, zero value otherwise.\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) GetCommits() []*RepositoryCommit\n```\nGetCommits returns the Commits slice if it's non-nil, nil 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) GetFiles() []*CommitFile\n```\nGetFiles returns the Files slice if it's non-nil, nil 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\nfunc (c *CommitsListOptions) GetAuthor() string\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (c *CommitsListOptions) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\nfunc (c *CommitsListOptions) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\nfunc (c *CommitsListOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\n\n```go\nfunc (c *CommitsListOptions) GetUntil() time.Time\n```\nGetUntil returns the Until field.\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) GetCommits() []*CommitResult\n```\nGetCommits returns the Commits slice if it's non-nil, nil otherwise.\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 ComputeService string\n```\nComputeService represents a hosted compute service the network configuration supports.\n\n```go\nconst (\n\tComputeServiceNone       ComputeService = \"none\"\n\tComputeServiceActions    ComputeService = \"actions\"\n\tComputeServiceCodespaces ComputeService = \"codespaces\"\n)\n```\n\n```go\ntype ConfigApplyEvents struct {\n\tNodes []*ConfigApplyEventsNode `json:\"nodes\"`\n}\n```\nConfigApplyEvents is a struct to hold the response from the ConfigApplyEvents API.\n\n```go\nfunc (c *ConfigApplyEvents) GetNodes() []*ConfigApplyEventsNode\n```\nGetNodes returns the Nodes slice if it's non-nil, nil otherwise.\n\n```go\ntype ConfigApplyEventsNode struct {\n\tNode          *string                       `json:\"node,omitempty\"`\n\tLastRequestID *string                       `json:\"last_request_id,omitempty\"`\n\tEvents        []*ConfigApplyEventsNodeEvent `json:\"events\"`\n}\n```\nConfigApplyEventsNode is a struct to hold the response from the ConfigApplyEvents API.\n\n```go\nfunc (c *ConfigApplyEventsNode) GetEvents() []*ConfigApplyEventsNodeEvent\n```\nGetEvents returns the Events slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNode) GetLastRequestID() string\n```\nGetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNode) GetNode() string\n```\nGetNode returns the Node field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigApplyEventsNodeEvent struct {\n\tTimestamp    *Timestamp `json:\"timestamp,omitempty\"`\n\tSeverityText *string    `json:\"severity_text,omitempty\"`\n\tBody         *string    `json:\"body,omitempty\"`\n\tEventName    *string    `json:\"event_name,omitempty\"`\n\tTopology     *string    `json:\"topology,omitempty\"`\n\tHostname     *string    `json:\"hostname,omitempty\"`\n\tConfigRunID  *string    `json:\"config_run_id,omitempty\"`\n\tTraceID      *string    `json:\"trace_id,omitempty\"`\n\tSpanID       *string    `json:\"span_id,omitempty\"`\n\tSpanParentID *int64     `json:\"span_parent_id,omitempty\"`\n\tSpanDepth    *int       `json:\"span_depth,omitempty\"`\n}\n```\nConfigApplyEventsNodeEvent is a struct to hold the response from the ConfigApplyEvents API.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetConfigRunID() string\n```\nGetConfigRunID returns the ConfigRunID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetEventName() string\n```\nGetEventName returns the EventName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetSeverityText() string\n```\nGetSeverityText returns the SeverityText field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetSpanDepth() int\n```\nGetSpanDepth returns the SpanDepth field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetSpanID() string\n```\nGetSpanID returns the SpanID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetSpanParentID() int64\n```\nGetSpanParentID returns the SpanParentID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetTimestamp() Timestamp\n```\nGetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetTopology() string\n```\nGetTopology returns the Topology field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyEventsNodeEvent) GetTraceID() string\n```\nGetTraceID returns the TraceID field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigApplyEventsOptions struct {\n\tLastRequestID *string `url:\"last_request_id,omitempty\"`\n}\n```\nConfigApplyEventsOptions is used to enable pagination.\n\n```go\nfunc (c *ConfigApplyEventsOptions) GetLastRequestID() string\n```\nGetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigApplyOptions struct {\n\t// RunID is the ID of the run to get the status of. If empty a random one will be generated.\n\tRunID *string `json:\"run_id,omitempty\"`\n}\n```\nConfigApplyOptions is a struct to hold the options for the ConfigApply API and the response.\n\n```go\nfunc (c *ConfigApplyOptions) GetRunID() string\n```\nGetRunID returns the RunID field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigApplyStatus struct {\n\tRunning    *bool                    `json:\"running,omitempty\"`\n\tSuccessful *bool                    `json:\"successful,omitempty\"`\n\tNodes      []*ConfigApplyStatusNode `json:\"nodes\"`\n}\n```\nConfigApplyStatus is a struct to hold the response from the ConfigApply API.\n\n```go\nfunc (c *ConfigApplyStatus) GetNodes() []*ConfigApplyStatusNode\n```\nGetNodes returns the Nodes slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ConfigApplyStatus) GetRunning() bool\n```\nGetRunning returns the Running field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyStatus) GetSuccessful() bool\n```\nGetSuccessful returns the Successful field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigApplyStatusNode struct {\n\tHostname   *string `json:\"hostname,omitempty\"`\n\tRunning    *bool   `json:\"running,omitempty\"`\n\tSuccessful *bool   `json:\"successful,omitempty\"`\n\tRunID      *string `json:\"run_id,omitempty\"`\n}\n```\nConfigApplyStatusNode is a struct to hold the response from the ConfigApply API.\n\n```go\nfunc (c *ConfigApplyStatusNode) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyStatusNode) GetRunID() string\n```\nGetRunID returns the RunID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyStatusNode) GetRunning() bool\n```\nGetRunning returns the Running field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigApplyStatusNode) GetSuccessful() bool\n```\nGetSuccessful returns the Successful field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettings struct {\n\tPrivateMode           *bool                          `json:\"private_mode,omitempty\"`\n\tPublicPages           *bool                          `json:\"public_pages,omitempty\"`\n\tSubdomainIsolation    *bool                          `json:\"subdomain_isolation,omitempty\"`\n\tSignupEnabled         *bool                          `json:\"signup_enabled,omitempty\"`\n\tGithubHostname        *string                        `json:\"github_hostname,omitempty\"`\n\tIdenticonsHost        *string                        `json:\"identicons_host,omitempty\"`\n\tHTTPProxy             *string                        `json:\"http_proxy,omitempty\"`\n\tAuthMode              *string                        `json:\"auth_mode,omitempty\"`\n\tExpireSessions        *bool                          `json:\"expire_sessions,omitempty\"`\n\tAdminPassword         *string                        `json:\"admin_password,omitempty\"`\n\tConfigurationID       *int64                         `json:\"configuration_id,omitempty\"`\n\tConfigurationRunCount *int                           `json:\"configuration_run_count,omitempty\"`\n\tAvatar                *ConfigSettingsAvatar          `json:\"avatar,omitempty\"`\n\tCustomer              *ConfigSettingsCustomer        `json:\"customer,omitempty\"`\n\tLicense               *ConfigSettingsLicenseSettings `json:\"license,omitempty\"`\n\tGithubSSL             *ConfigSettingsGithubSSL       `json:\"github_ssl,omitempty\"`\n\tLDAP                  *ConfigSettingsLDAP            `json:\"ldap,omitempty\"`\n\tCAS                   *ConfigSettingsCAS             `json:\"cas,omitempty\"`\n\tSAML                  *ConfigSettingsSAML            `json:\"saml,omitempty\"`\n\tGithubOAuth           *ConfigSettingsGithubOAuth     `json:\"github_oauth,omitempty\"`\n\tSMTP                  *ConfigSettingsSMTP            `json:\"smtp,omitempty\"`\n\tNTP                   *ConfigSettingsNTP             `json:\"ntp,omitempty\"`\n\tTimezone              *string                        `json:\"timezone,omitempty\"`\n\tSNMP                  *ConfigSettingsSNMP            `json:\"snmp,omitempty\"`\n\tSyslog                *ConfigSettingsSyslog          `json:\"syslog,omitempty\"`\n\tAssets                *string                        `json:\"assets,omitempty\"`\n\tPages                 *ConfigSettingsPagesSettings   `json:\"pages,omitempty\"`\n\tCollectd              *ConfigSettingsCollectd        `json:\"collectd,omitempty\"`\n\tMapping               *ConfigSettingsMapping         `json:\"mapping,omitempty\"`\n\tLoadBalancer          *string                        `json:\"load_balancer,omitempty\"`\n}\n```\nConfigSettings is a struct to hold the response from the Settings API. There are many fields that link to other structs.\n\n```go\nfunc (c *ConfigSettings) GetAdminPassword() string\n```\nGetAdminPassword returns the AdminPassword field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetAssets() string\n```\nGetAssets returns the Assets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetAuthMode() string\n```\nGetAuthMode returns the AuthMode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetAvatar() *ConfigSettingsAvatar\n```\nGetAvatar returns the Avatar field.\n\n```go\nfunc (c *ConfigSettings) GetCAS() *ConfigSettingsCAS\n```\nGetCAS returns the CAS field.\n\n```go\nfunc (c *ConfigSettings) GetCollectd() *ConfigSettingsCollectd\n```\nGetCollectd returns the Collectd field.\n\n```go\nfunc (c *ConfigSettings) GetConfigurationID() int64\n```\nGetConfigurationID returns the ConfigurationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetConfigurationRunCount() int\n```\nGetConfigurationRunCount returns the ConfigurationRunCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetCustomer() *ConfigSettingsCustomer\n```\nGetCustomer returns the Customer field.\n\n```go\nfunc (c *ConfigSettings) GetExpireSessions() bool\n```\nGetExpireSessions returns the ExpireSessions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetGithubHostname() string\n```\nGetGithubHostname returns the GithubHostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetGithubOAuth() *ConfigSettingsGithubOAuth\n```\nGetGithubOAuth returns the GithubOAuth field.\n\n```go\nfunc (c *ConfigSettings) GetGithubSSL() *ConfigSettingsGithubSSL\n```\nGetGithubSSL returns the GithubSSL field.\n\n```go\nfunc (c *ConfigSettings) GetHTTPProxy() string\n```\nGetHTTPProxy returns the HTTPProxy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetIdenticonsHost() string\n```\nGetIdenticonsHost returns the IdenticonsHost field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetLDAP() *ConfigSettingsLDAP\n```\nGetLDAP returns the LDAP field.\n\n```go\nfunc (c *ConfigSettings) GetLicense() *ConfigSettingsLicenseSettings\n```\nGetLicense returns the License field.\n\n```go\nfunc (c *ConfigSettings) GetLoadBalancer() string\n```\nGetLoadBalancer returns the LoadBalancer field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetMapping() *ConfigSettingsMapping\n```\nGetMapping returns the Mapping field.\n\n```go\nfunc (c *ConfigSettings) GetNTP() *ConfigSettingsNTP\n```\nGetNTP returns the NTP field.\n\n```go\nfunc (c *ConfigSettings) GetPages() *ConfigSettingsPagesSettings\n```\nGetPages returns the Pages field.\n\n```go\nfunc (c *ConfigSettings) GetPrivateMode() bool\n```\nGetPrivateMode returns the PrivateMode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetPublicPages() bool\n```\nGetPublicPages returns the PublicPages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetSAML() *ConfigSettingsSAML\n```\nGetSAML returns the SAML field.\n\n```go\nfunc (c *ConfigSettings) GetSMTP() *ConfigSettingsSMTP\n```\nGetSMTP returns the SMTP field.\n\n```go\nfunc (c *ConfigSettings) GetSNMP() *ConfigSettingsSNMP\n```\nGetSNMP returns the SNMP field.\n\n```go\nfunc (c *ConfigSettings) GetSignupEnabled() bool\n```\nGetSignupEnabled returns the SignupEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetSubdomainIsolation() bool\n```\nGetSubdomainIsolation returns the SubdomainIsolation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettings) GetSyslog() *ConfigSettingsSyslog\n```\nGetSyslog returns the Syslog field.\n\n```go\nfunc (c *ConfigSettings) GetTimezone() string\n```\nGetTimezone returns the Timezone field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsAvatar struct {\n\tEnabled *bool   `json:\"enabled,omitempty\"`\n\tURI     *string `json:\"uri,omitempty\"`\n}\n```\nConfigSettingsAvatar is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsAvatar) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsAvatar) GetURI() string\n```\nGetURI returns the URI field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsCAS struct {\n\tURL *string `json:\"url,omitempty\"`\n}\n```\nConfigSettingsCAS is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsCAS) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsCollectd struct {\n\tEnabled    *bool   `json:\"enabled,omitempty\"`\n\tServer     *string `json:\"server,omitempty\"`\n\tPort       *int    `json:\"port,omitempty\"`\n\tEncryption *string `json:\"encryption,omitempty\"`\n\tUsername   *string `json:\"username,omitempty\"`\n\tPassword   *string `json:\"password,omitempty\"`\n}\n```\nConfigSettingsCollectd is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsCollectd) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCollectd) GetEncryption() string\n```\nGetEncryption returns the Encryption field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCollectd) GetPassword() string\n```\nGetPassword returns the Password field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCollectd) GetPort() int\n```\nGetPort returns the Port field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCollectd) GetServer() string\n```\nGetServer returns the Server field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCollectd) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsCustomer struct {\n\tName          *string `json:\"name,omitempty\"`\n\tEmail         *string `json:\"email,omitempty\"`\n\tUUID          *string `json:\"uuid,omitempty\"`\n\tSecret        *string `json:\"secret,omitempty\"`\n\tPublicKeyData *string `json:\"public_key_data,omitempty\"`\n}\n```\nConfigSettingsCustomer is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsCustomer) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCustomer) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCustomer) GetPublicKeyData() string\n```\nGetPublicKeyData returns the PublicKeyData field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCustomer) GetSecret() string\n```\nGetSecret returns the Secret field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsCustomer) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsGithubOAuth struct {\n\tClientID         *string `json:\"client_id,omitempty\"`\n\tClientSecret     *string `json:\"client_secret,omitempty\"`\n\tOrganizationName *string `json:\"organization_name,omitempty\"`\n\tOrganizationTeam *string `json:\"organization_team,omitempty\"`\n}\n```\nConfigSettingsGithubOAuth is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsGithubOAuth) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsGithubOAuth) GetClientSecret() string\n```\nGetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsGithubOAuth) GetOrganizationName() string\n```\nGetOrganizationName returns the OrganizationName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsGithubOAuth) GetOrganizationTeam() string\n```\nGetOrganizationTeam returns the OrganizationTeam field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsGithubSSL struct {\n\tEnabled *bool   `json:\"enabled,omitempty\"`\n\tCert    *string `json:\"cert,omitempty\"`\n\tKey     *string `json:\"key,omitempty\"`\n}\n```\nConfigSettingsGithubSSL is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsGithubSSL) GetCert() string\n```\nGetCert returns the Cert field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsGithubSSL) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsGithubSSL) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsLDAP struct {\n\tHost                    *string                           `json:\"host,omitempty\"`\n\tPort                    *int                              `json:\"port,omitempty\"`\n\tBase                    []string                          `json:\"base,omitempty\"`\n\tUID                     *string                           `json:\"uid,omitempty\"`\n\tBindDN                  *string                           `json:\"bind_dn,omitempty\"`\n\tPassword                *string                           `json:\"password,omitempty\"`\n\tMethod                  *string                           `json:\"method,omitempty\"`\n\tSearchStrategy          *string                           `json:\"search_strategy,omitempty\"`\n\tUserGroups              []string                          `json:\"user_groups,omitempty\"`\n\tAdminGroup              *string                           `json:\"admin_group,omitempty\"`\n\tVirtualAttributeEnabled *bool                             `json:\"virtual_attribute_enabled,omitempty\"`\n\tRecursiveGroupSearch    *bool                             `json:\"recursive_group_search,omitempty\"`\n\tPosixSupport            *bool                             `json:\"posix_support,omitempty\"`\n\tUserSyncEmails          *bool                             `json:\"user_sync_emails,omitempty\"`\n\tUserSyncKeys            *bool                             `json:\"user_sync_keys,omitempty\"`\n\tUserSyncInterval        *int                              `json:\"user_sync_interval,omitempty\"`\n\tTeamSyncInterval        *int                              `json:\"team_sync_interval,omitempty\"`\n\tSyncEnabled             *bool                             `json:\"sync_enabled,omitempty\"`\n\tReconciliation          *ConfigSettingsLDAPReconciliation `json:\"reconciliation,omitempty\"`\n\tProfile                 *ConfigSettingsLDAPProfile        `json:\"profile,omitempty\"`\n}\n```\nConfigSettingsLDAP is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetAdminGroup() string\n```\nGetAdminGroup returns the AdminGroup field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetBase() []string\n```\nGetBase returns the Base slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetBindDN() string\n```\nGetBindDN returns the BindDN field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetHost() string\n```\nGetHost returns the Host field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetMethod() string\n```\nGetMethod returns the Method field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetPassword() string\n```\nGetPassword returns the Password field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetPort() int\n```\nGetPort returns the Port field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetPosixSupport() bool\n```\nGetPosixSupport returns the PosixSupport field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetProfile() *ConfigSettingsLDAPProfile\n```\nGetProfile returns the Profile field.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetReconciliation() *ConfigSettingsLDAPReconciliation\n```\nGetReconciliation returns the Reconciliation field.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetRecursiveGroupSearch() bool\n```\nGetRecursiveGroupSearch returns the RecursiveGroupSearch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetSearchStrategy() string\n```\nGetSearchStrategy returns the SearchStrategy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetSyncEnabled() bool\n```\nGetSyncEnabled returns the SyncEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetTeamSyncInterval() int\n```\nGetTeamSyncInterval returns the TeamSyncInterval field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetUID() string\n```\nGetUID returns the UID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetUserGroups() []string\n```\nGetUserGroups returns the UserGroups slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetUserSyncEmails() bool\n```\nGetUserSyncEmails returns the UserSyncEmails field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetUserSyncInterval() int\n```\nGetUserSyncInterval returns the UserSyncInterval field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetUserSyncKeys() bool\n```\nGetUserSyncKeys returns the UserSyncKeys field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAP) GetVirtualAttributeEnabled() bool\n```\nGetVirtualAttributeEnabled returns the VirtualAttributeEnabled field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsLDAPProfile struct {\n\tUID  *string `json:\"uid,omitempty\"`\n\tName *string `json:\"name,omitempty\"`\n\tMail *string `json:\"mail,omitempty\"`\n\tKey  *string `json:\"key,omitempty\"`\n}\n```\nConfigSettingsLDAPProfile is part of the ConfigSettingsLDAP struct.\n\n```go\nfunc (c *ConfigSettingsLDAPProfile) GetKey() string\n```\nGetKey returns the Key field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAPProfile) GetMail() string\n```\nGetMail returns the Mail field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAPProfile) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAPProfile) GetUID() string\n```\nGetUID returns the UID field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsLDAPReconciliation struct {\n\tUser *string `json:\"user,omitempty\"`\n\tOrg  *string `json:\"org,omitempty\"`\n}\n```\nConfigSettingsLDAPReconciliation is part of the ConfigSettingsLDAP struct.\n\n```go\nfunc (c *ConfigSettingsLDAPReconciliation) GetOrg() string\n```\nGetOrg returns the Org field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLDAPReconciliation) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsLicenseSettings struct {\n\tSeats            *int       `json:\"seats,omitempty\"`\n\tEvaluation       *bool      `json:\"evaluation,omitempty\"`\n\tPerpetual        *bool      `json:\"perpetual,omitempty\"`\n\tUnlimitedSeating *bool      `json:\"unlimited_seating,omitempty\"`\n\tSupportKey       *string    `json:\"support_key,omitempty\"`\n\tSSHAllowed       *bool      `json:\"ssh_allowed,omitempty\"`\n\tClusterSupport   *bool      `json:\"cluster_support,omitempty\"`\n\tExpireAt         *Timestamp `json:\"expire_at,omitempty\"`\n}\n```\nConfigSettingsLicenseSettings is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetClusterSupport() bool\n```\nGetClusterSupport returns the ClusterSupport field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetEvaluation() bool\n```\nGetEvaluation returns the Evaluation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetExpireAt() Timestamp\n```\nGetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetPerpetual() bool\n```\nGetPerpetual returns the Perpetual field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetSSHAllowed() bool\n```\nGetSSHAllowed returns the SSHAllowed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetSeats() int\n```\nGetSeats returns the Seats field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetSupportKey() string\n```\nGetSupportKey returns the SupportKey field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsLicenseSettings) GetUnlimitedSeating() bool\n```\nGetUnlimitedSeating returns the UnlimitedSeating field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsMapping struct {\n\tEnabled    *bool   `json:\"enabled,omitempty\"`\n\tTileserver *string `json:\"tileserver,omitempty\"`\n\tBasemap    *string `json:\"basemap,omitempty\"`\n\tToken      *string `json:\"token,omitempty\"`\n}\n```\nConfigSettingsMapping is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsMapping) GetBasemap() string\n```\nGetBasemap returns the Basemap field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsMapping) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsMapping) GetTileserver() string\n```\nGetTileserver returns the Tileserver field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsMapping) GetToken() string\n```\nGetToken returns the Token field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsNTP struct {\n\tPrimaryServer   *string `json:\"primary_server,omitempty\"`\n\tSecondaryServer *string `json:\"secondary_server,omitempty\"`\n}\n```\nConfigSettingsNTP is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsNTP) GetPrimaryServer() string\n```\nGetPrimaryServer returns the PrimaryServer field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsNTP) GetSecondaryServer() string\n```\nGetSecondaryServer returns the SecondaryServer field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsPagesSettings struct {\n\tEnabled *bool `json:\"enabled,omitempty\"`\n}\n```\nConfigSettingsPagesSettings is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsPagesSettings) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsSAML struct {\n\tSSOURL             *string `json:\"sso_url,omitempty\"`\n\tCertificate        *string `json:\"certificate,omitempty\"`\n\tCertificatePath    *string `json:\"certificate_path,omitempty\"`\n\tIssuer             *string `json:\"issuer,omitempty\"`\n\tIDPInitiatedSSO    *bool   `json:\"idp_initiated_sso,omitempty\"`\n\tDisableAdminDemote *bool   `json:\"disable_admin_demote,omitempty\"`\n}\n```\nConfigSettingsSAML is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsSAML) GetCertificate() string\n```\nGetCertificate returns the Certificate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSAML) GetCertificatePath() string\n```\nGetCertificatePath returns the CertificatePath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSAML) GetDisableAdminDemote() bool\n```\nGetDisableAdminDemote returns the DisableAdminDemote field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSAML) GetIDPInitiatedSSO() bool\n```\nGetIDPInitiatedSSO returns the IDPInitiatedSSO field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSAML) GetIssuer() string\n```\nGetIssuer returns the Issuer field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSAML) GetSSOURL() string\n```\nGetSSOURL returns the SSOURL field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsSMTP struct {\n\tEnabled                 *bool   `json:\"enabled,omitempty\"`\n\tAddress                 *string `json:\"address,omitempty\"`\n\tAuthentication          *string `json:\"authentication,omitempty\"`\n\tPort                    *string `json:\"port,omitempty\"`\n\tDomain                  *string `json:\"domain,omitempty\"`\n\tUsername                *string `json:\"username,omitempty\"`\n\tUserName                *string `json:\"user_name,omitempty\"`\n\tEnableStarttlsAuto      *bool   `json:\"enable_starttls_auto,omitempty\"`\n\tPassword                *string `json:\"password,omitempty\"`\n\tDiscardToNoreplyAddress *bool   `json:\"discard-to-noreply-address,omitempty\"`\n\tSupportAddress          *string `json:\"support_address,omitempty\"`\n\tSupportAddressType      *string `json:\"support_address_type,omitempty\"`\n\tNoreplyAddress          *string `json:\"noreply_address,omitempty\"`\n}\n```\nConfigSettingsSMTP is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetAddress() string\n```\nGetAddress returns the Address field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetAuthentication() string\n```\nGetAuthentication returns the Authentication field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetDiscardToNoreplyAddress() bool\n```\nGetDiscardToNoreplyAddress returns the DiscardToNoreplyAddress field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetDomain() string\n```\nGetDomain returns the Domain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetEnableStarttlsAuto() bool\n```\nGetEnableStarttlsAuto returns the EnableStarttlsAuto field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetNoreplyAddress() string\n```\nGetNoreplyAddress returns the NoreplyAddress field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetPassword() string\n```\nGetPassword returns the Password field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetPort() string\n```\nGetPort returns the Port field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetSupportAddress() string\n```\nGetSupportAddress returns the SupportAddress field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetSupportAddressType() string\n```\nGetSupportAddressType returns the SupportAddressType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetUserName() string\n```\nGetUserName returns the UserName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSMTP) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsSNMP struct {\n\tEnabled   *bool   `json:\"enabled,omitempty\"`\n\tCommunity *string `json:\"community,omitempty\"`\n}\n```\nConfigSettingsSNMP is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsSNMP) GetCommunity() string\n```\nGetCommunity returns the Community field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSNMP) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\ntype ConfigSettingsSyslog struct {\n\tEnabled      *bool   `json:\"enabled,omitempty\"`\n\tServer       *string `json:\"server,omitempty\"`\n\tProtocolName *string `json:\"protocol_name,omitempty\"`\n}\n```\nConfigSettingsSyslog is a struct to hold the response from the Settings API.\n\n```go\nfunc (c *ConfigSettingsSyslog) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSyslog) GetProtocolName() string\n```\nGetProtocolName returns the ProtocolName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConfigSettingsSyslog) GetServer() string\n```\nGetServer returns the Server field if it's non-nil, zero value otherwise.\n\n```go\ntype ConnectionServiceItem struct {\n\tName   *string `json:\"name,omitempty\"`\n\tNumber *int    `json:\"number,omitempty\"`\n}\n```\nConnectionServiceItem represents the connection services for the maintenance status.\n\n```go\nfunc (c *ConnectionServiceItem) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *ConnectionServiceItem) GetNumber() int\n```\nGetNumber returns the Number 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 ContributorApprovalPermissions struct {\n\tApprovalPolicy string `json:\"approval_policy\"`\n}\n```\nContributorApprovalPermissions represents the policy that controls when fork PR workflows require approval from a maintainer.\n\n```go\nfunc (c *ContributorApprovalPermissions) GetApprovalPolicy() string\n```\nGetApprovalPolicy returns the ApprovalPolicy field.\n\n```go\nfunc (p ContributorApprovalPermissions) String() string\n```\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) GetWeeks() []*WeeklyStats\n```\nGetWeeks returns the Weeks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c ContributorStats) String() string\n```\n\n```go\ntype CopilotCloudAgentConfiguration struct {\n\tMCPConfiguration                      any                            `json:\"mcp_configuration\"`\n\tEnabledTools                          *CopilotCloudAgentEnabledTools `json:\"enabled_tools\"`\n\tRequireActionsWorkflowApproval        bool                           `json:\"require_actions_workflow_approval\"`\n\tIsFirewallEnabled                     bool                           `json:\"is_firewall_enabled\"`\n\tIsFirewallRecommendedAllowlistEnabled bool                           `json:\"is_firewall_recommended_allowlist_enabled\"`\n\tCustomAllowlist                       []string                       `json:\"custom_allowlist\"`\n}\n```\nCopilotCloudAgentConfiguration represents the Copilot cloud agent configuration for a repository.\n\n```go\nfunc (c *CopilotCloudAgentConfiguration) GetCustomAllowlist() []string\n```\nGetCustomAllowlist returns the CustomAllowlist slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotCloudAgentConfiguration) GetEnabledTools() *CopilotCloudAgentEnabledTools\n```\nGetEnabledTools returns the EnabledTools field.\n\n```go\nfunc (c *CopilotCloudAgentConfiguration) GetIsFirewallEnabled() bool\n```\nGetIsFirewallEnabled returns the IsFirewallEnabled field.\n\n```go\nfunc (c *CopilotCloudAgentConfiguration) GetIsFirewallRecommendedAllowlistEnabled() bool\n```\nGetIsFirewallRecommendedAllowlistEnabled returns the IsFirewallRecommendedAllowlistEnabled field.\n\n```go\nfunc (c *CopilotCloudAgentConfiguration) GetMCPConfiguration() any\n```\nGetMCPConfiguration returns the MCPConfiguration field.\n\n```go\nfunc (c *CopilotCloudAgentConfiguration) GetRequireActionsWorkflowApproval() bool\n```\nGetRequireActionsWorkflowApproval returns the RequireActionsWorkflowApproval field.\n\n```go\ntype CopilotCloudAgentEnabledTools struct {\n\tCodeql                        bool `json:\"codeql\"`\n\tCopilotCodeReview             bool `json:\"copilot_code_review\"`\n\tSecretScanning                bool `json:\"secret_scanning\"`\n\tDependencyVulnerabilityChecks bool `json:\"dependency_vulnerability_checks\"`\n}\n```\nCopilotCloudAgentEnabledTools represents the enabled review tools for Copilot cloud agent.\n\n```go\nfunc (c *CopilotCloudAgentEnabledTools) GetCodeql() bool\n```\nGetCodeql returns the Codeql field.\n\n```go\nfunc (c *CopilotCloudAgentEnabledTools) GetCopilotCodeReview() bool\n```\nGetCopilotCodeReview returns the CopilotCodeReview field.\n\n```go\nfunc (c *CopilotCloudAgentEnabledTools) GetDependencyVulnerabilityChecks() bool\n```\nGetDependencyVulnerabilityChecks returns the DependencyVulnerabilityChecks field.\n\n```go\nfunc (c *CopilotCloudAgentEnabledTools) GetSecretScanning() bool\n```\nGetSecretScanning returns the SecretScanning field.\n\n```go\ntype CopilotCodeReviewBranchRule struct {\n\tBranchRuleMetadata\n\tParameters CopilotCodeReviewRuleParameters `json:\"parameters\"`\n}\n```\nCopilotCodeReviewBranchRule represents a copilot code review branch rule.\n\n```go\nfunc (c *CopilotCodeReviewBranchRule) GetParameters() CopilotCodeReviewRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype CopilotCodeReviewRuleParameters struct {\n\tReviewOnPush            bool `json:\"review_on_push\"`\n\tReviewDraftPullRequests bool `json:\"review_draft_pull_requests\"`\n}\n```\nCopilotCodeReviewRuleParameters represents the copilot\\_code\\_review rule parameters.\n\n```go\nfunc (c *CopilotCodeReviewRuleParameters) GetReviewDraftPullRequests() bool\n```\nGetReviewDraftPullRequests returns the ReviewDraftPullRequests field.\n\n```go\nfunc (c *CopilotCodeReviewRuleParameters) GetReviewOnPush() bool\n```\nGetReviewOnPush returns the ReviewOnPush field.\n\n```go\ntype CopilotDailyMetrics struct {\n\tDay                                  string  `json:\"day\"`\n\tOrganizationID                       *string `json:\"organization_id,omitempty\"`\n\tEnterpriseID                         *string `json:\"enterprise_id,omitempty\"`\n\tDailyActiveCLIUsers                  *int    `json:\"daily_active_cli_users,omitempty\"`\n\tDailyActiveCopilotAppUsers           *int    `json:\"daily_active_copilot_app_users,omitempty\"`\n\tDailyActiveUsers                     *int    `json:\"daily_active_users,omitempty\"`\n\tDailyActiveCopilotCloudAgentUsers    *int    `json:\"daily_active_copilot_cloud_agent_users,omitempty\"`\n\tWeeklyActiveUsers                    *int    `json:\"weekly_active_users,omitempty\"`\n\tWeeklyActiveCopilotCloudAgentUsers   *int    `json:\"weekly_active_copilot_cloud_agent_users,omitempty\"`\n\tMonthlyActiveUsers                   *int    `json:\"monthly_active_users,omitempty\"`\n\tMonthlyActiveChatUsers               *int    `json:\"monthly_active_chat_users,omitempty\"`\n\tMonthlyActiveAgentUsers              *int    `json:\"monthly_active_agent_users,omitempty\"`\n\tMonthlyActiveCopilotCloudAgentUsers  *int    `json:\"monthly_active_copilot_cloud_agent_users,omitempty\"`\n\tDailyActiveCopilotCodeReviewUsers    *int    `json:\"daily_active_copilot_code_review_users,omitempty\"`\n\tWeeklyActiveCopilotCodeReviewUsers   *int    `json:\"weekly_active_copilot_code_review_users,omitempty\"`\n\tMonthlyActiveCopilotCodeReviewUsers  *int    `json:\"monthly_active_copilot_code_review_users,omitempty\"`\n\tDailyPassiveCopilotCodeReviewUsers   *int    `json:\"daily_passive_copilot_code_review_users,omitempty\"`\n\tWeeklyPassiveCopilotCodeReviewUsers  *int    `json:\"weekly_passive_copilot_code_review_users,omitempty\"`\n\tMonthlyPassiveCopilotCodeReviewUsers *int    `json:\"monthly_passive_copilot_code_review_users,omitempty\"`\n\tUserInitiatedInteractionCount        *int    `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsChatPanel\n\tCodeGenerationActivityCount *int                                   `json:\"code_generation_activity_count,omitempty\"`\n\tCodeAcceptanceActivityCount *int                                   `json:\"code_acceptance_activity_count,omitempty\"`\n\tTotalsByIDE                 []*CopilotMetricsIDE                   `json:\"totals_by_ide,omitempty\"`\n\tTotalsByFeature             []*CopilotMetricsFeature               `json:\"totals_by_feature,omitempty\"`\n\tTotalsByLanguageFeature     []*CopilotMetricsLanguageFeature       `json:\"totals_by_language_feature,omitempty\"`\n\tTotalsByLanguageModel       []*CopilotMetricsLanguageModel         `json:\"totals_by_language_model,omitempty\"`\n\tTotalsByModelFeature        []*CopilotMetricsModelFeature          `json:\"totals_by_model_feature,omitempty\"`\n\tTotalsByCLI                 *CopilotMetricsCLI                     `json:\"totals_by_cli,omitempty\"`\n\tTotalsByCopilotApp          *CopilotMetricsCopilotApp              `json:\"totals_by_copilot_app,omitempty\"`\n\tTotalsBy3rdPartyAgent       []*CopilotMetricsThirdPartyAgent       `json:\"totals_by_3rd_party_agent,omitempty\"`\n\tTotalsByAIAdoptionPhase     []*CopilotMetricsAIAdoptionPhaseTotals `json:\"totals_by_ai_adoption_phase,omitempty\"`\n\tLOCSuggestedToAddSum        *int                                   `json:\"loc_suggested_to_add_sum,omitempty\"`\n\tLOCSuggestedToDeleteSum     *int                                   `json:\"loc_suggested_to_delete_sum,omitempty\"`\n\tLOCAddedSum                 *int                                   `json:\"loc_added_sum,omitempty\"`\n\tLOCDeletedSum               *int                                   `json:\"loc_deleted_sum,omitempty\"`\n\tPullRequests                *CopilotMetricsPullRequests            `json:\"pull_requests,omitempty\"`\n}\n```\nCopilotDailyMetrics represents the payload downloaded from a 1-day Copilot usage metrics report.\n\n```go\nfunc (c *CopilotDailyMetrics) GetCodeAcceptanceActivityCount() int\n```\nGetCodeAcceptanceActivityCount returns the CodeAcceptanceActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetCodeGenerationActivityCount() int\n```\nGetCodeGenerationActivityCount returns the CodeGenerationActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDailyActiveCLIUsers() int\n```\nGetDailyActiveCLIUsers returns the DailyActiveCLIUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDailyActiveCopilotAppUsers() int\n```\nGetDailyActiveCopilotAppUsers returns the DailyActiveCopilotAppUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDailyActiveCopilotCloudAgentUsers() int\n```\nGetDailyActiveCopilotCloudAgentUsers returns the DailyActiveCopilotCloudAgentUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDailyActiveCopilotCodeReviewUsers() int\n```\nGetDailyActiveCopilotCodeReviewUsers returns the DailyActiveCopilotCodeReviewUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDailyActiveUsers() int\n```\nGetDailyActiveUsers returns the DailyActiveUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDailyPassiveCopilotCodeReviewUsers() int\n```\nGetDailyPassiveCopilotCodeReviewUsers returns the DailyPassiveCopilotCodeReviewUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetDay() string\n```\nGetDay returns the Day field.\n\n```go\nfunc (c *CopilotDailyMetrics) GetEnterpriseID() string\n```\nGetEnterpriseID returns the EnterpriseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetLOCAddedSum() int\n```\nGetLOCAddedSum returns the LOCAddedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetLOCDeletedSum() int\n```\nGetLOCDeletedSum returns the LOCDeletedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetLOCSuggestedToAddSum() int\n```\nGetLOCSuggestedToAddSum returns the LOCSuggestedToAddSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetLOCSuggestedToDeleteSum() int\n```\nGetLOCSuggestedToDeleteSum returns the LOCSuggestedToDeleteSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetMonthlyActiveAgentUsers() int\n```\nGetMonthlyActiveAgentUsers returns the MonthlyActiveAgentUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetMonthlyActiveChatUsers() int\n```\nGetMonthlyActiveChatUsers returns the MonthlyActiveChatUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetMonthlyActiveCopilotCloudAgentUsers() int\n```\nGetMonthlyActiveCopilotCloudAgentUsers returns the MonthlyActiveCopilotCloudAgentUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetMonthlyActiveCopilotCodeReviewUsers() int\n```\nGetMonthlyActiveCopilotCodeReviewUsers returns the MonthlyActiveCopilotCodeReviewUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetMonthlyActiveUsers() int\n```\nGetMonthlyActiveUsers returns the MonthlyActiveUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetMonthlyPassiveCopilotCodeReviewUsers() int\n```\nGetMonthlyPassiveCopilotCodeReviewUsers returns the MonthlyPassiveCopilotCodeReviewUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetOrganizationID() string\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetPullRequests() *CopilotMetricsPullRequests\n```\nGetPullRequests returns the PullRequests field.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsBy3rdPartyAgent() []*CopilotMetricsThirdPartyAgent\n```\nGetTotalsBy3rdPartyAgent returns the TotalsBy3rdPartyAgent slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByAIAdoptionPhase() []*CopilotMetricsAIAdoptionPhaseTotals\n```\nGetTotalsByAIAdoptionPhase returns the TotalsByAIAdoptionPhase slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByCLI() *CopilotMetricsCLI\n```\nGetTotalsByCLI returns the TotalsByCLI field.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByCopilotApp() *CopilotMetricsCopilotApp\n```\nGetTotalsByCopilotApp returns the TotalsByCopilotApp field.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByFeature() []*CopilotMetricsFeature\n```\nGetTotalsByFeature returns the TotalsByFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByIDE() []*CopilotMetricsIDE\n```\nGetTotalsByIDE returns the TotalsByIDE slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByLanguageFeature() []*CopilotMetricsLanguageFeature\n```\nGetTotalsByLanguageFeature returns the TotalsByLanguageFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByLanguageModel() []*CopilotMetricsLanguageModel\n```\nGetTotalsByLanguageModel returns the TotalsByLanguageModel slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetTotalsByModelFeature() []*CopilotMetricsModelFeature\n```\nGetTotalsByModelFeature returns the TotalsByModelFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetWeeklyActiveCopilotCloudAgentUsers() int\n```\nGetWeeklyActiveCopilotCloudAgentUsers returns the WeeklyActiveCopilotCloudAgentUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetWeeklyActiveCopilotCodeReviewUsers() int\n```\nGetWeeklyActiveCopilotCodeReviewUsers returns the WeeklyActiveCopilotCodeReviewUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetWeeklyActiveUsers() int\n```\nGetWeeklyActiveUsers returns the WeeklyActiveUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDailyMetrics) GetWeeklyPassiveCopilotCodeReviewUsers() int\n```\nGetWeeklyPassiveCopilotCodeReviewUsers returns the WeeklyPassiveCopilotCodeReviewUsers field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotDailyMetricsReport struct {\n\tDownloadLinks []string `json:\"download_links\"`\n\tReportDay     string   `json:\"report_day\"`\n}\n```\nCopilotDailyMetricsReport represents the response from 1-day Copilot metrics report endpoints.\n\n```go\nfunc (c *CopilotDailyMetricsReport) GetDownloadLinks() []string\n```\nGetDownloadLinks returns the DownloadLinks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDailyMetricsReport) GetReportDay() string\n```\nGetReportDay returns the ReportDay field.\n\n```go\ntype CopilotDotcomChat struct {\n\tTotalEngagedUsers int                       `json:\"total_engaged_users\"`\n\tModels            []*CopilotDotcomChatModel `json:\"models\"`\n}\n```\nCopilotDotcomChat represents Copilot usage metrics for Copilot Chat in the webbrowser, categorized by model.\n\n```go\nfunc (c *CopilotDotcomChat) GetModels() []*CopilotDotcomChatModel\n```\nGetModels returns the Models slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDotcomChat) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotDotcomChatModel struct {\n\tName                    string  `json:\"name\"`\n\tIsCustomModel           bool    `json:\"is_custom_model\"`\n\tCustomModelTrainingDate *string `json:\"custom_model_training_date,omitempty\"`\n\tTotalEngagedUsers       int     `json:\"total_engaged_users\"`\n\tTotalChats              int     `json:\"total_chats\"`\n}\n```\nCopilotDotcomChatModel represents Copilot usage metrics for chatting with a model in the webbrowser.\n\n```go\nfunc (c *CopilotDotcomChatModel) GetCustomModelTrainingDate() string\n```\nGetCustomModelTrainingDate returns the CustomModelTrainingDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDotcomChatModel) GetIsCustomModel() bool\n```\nGetIsCustomModel returns the IsCustomModel field.\n\n```go\nfunc (c *CopilotDotcomChatModel) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotDotcomChatModel) GetTotalChats() int\n```\nGetTotalChats returns the TotalChats field.\n\n```go\nfunc (c *CopilotDotcomChatModel) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotDotcomPullRequests struct {\n\tTotalEngagedUsers int                                    `json:\"total_engaged_users\"`\n\tRepositories      []*CopilotDotcomPullRequestsRepository `json:\"repositories\"`\n}\n```\nCopilotDotcomPullRequests represents Copilot usage metrics for pull requests in the webbrowser, categorized by repository and model.\n\n```go\nfunc (c *CopilotDotcomPullRequests) GetRepositories() []*CopilotDotcomPullRequestsRepository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDotcomPullRequests) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotDotcomPullRequestsModel struct {\n\tName                    string  `json:\"name\"`\n\tIsCustomModel           bool    `json:\"is_custom_model\"`\n\tCustomModelTrainingDate *string `json:\"custom_model_training_date,omitempty\"`\n\tTotalPRSummariesCreated int     `json:\"total_pr_summaries_created\"`\n\tTotalEngagedUsers       int     `json:\"total_engaged_users\"`\n}\n```\nCopilotDotcomPullRequestsModel represents Copilot usage metrics for pull requests in the webbrowser, categorized by model.\n\n```go\nfunc (c *CopilotDotcomPullRequestsModel) GetCustomModelTrainingDate() string\n```\nGetCustomModelTrainingDate returns the CustomModelTrainingDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotDotcomPullRequestsModel) GetIsCustomModel() bool\n```\nGetIsCustomModel returns the IsCustomModel field.\n\n```go\nfunc (c *CopilotDotcomPullRequestsModel) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotDotcomPullRequestsModel) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\nfunc (c *CopilotDotcomPullRequestsModel) GetTotalPRSummariesCreated() int\n```\nGetTotalPRSummariesCreated returns the TotalPRSummariesCreated field.\n\n```go\ntype CopilotDotcomPullRequestsRepository struct {\n\tName              string                            `json:\"name\"`\n\tTotalEngagedUsers int                               `json:\"total_engaged_users\"`\n\tModels            []*CopilotDotcomPullRequestsModel `json:\"models\"`\n}\n```\nCopilotDotcomPullRequestsRepository represents Copilot usage metrics for pull requests in the webbrowser, categorized by repository.\n\n```go\nfunc (c *CopilotDotcomPullRequestsRepository) GetModels() []*CopilotDotcomPullRequestsModel\n```\nGetModels returns the Models slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotDotcomPullRequestsRepository) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotDotcomPullRequestsRepository) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDEChat struct {\n\tTotalEngagedUsers int                     `json:\"total_engaged_users\"`\n\tEditors           []*CopilotIDEChatEditor `json:\"editors\"`\n}\n```\nCopilotIDEChat represents Copilot usage metrics for Copilot Chat in the IDE, categorized by editor and model.\n\n```go\nfunc (c *CopilotIDEChat) GetEditors() []*CopilotIDEChatEditor\n```\nGetEditors returns the Editors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotIDEChat) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDEChatEditor struct {\n\tName              string                 `json:\"name\"`\n\tTotalEngagedUsers int                    `json:\"total_engaged_users\"`\n\tModels            []*CopilotIDEChatModel `json:\"models\"`\n}\n```\nCopilotIDEChatEditor represents Copilot usage metrics for chatting with a model in the IDE, categorized by editor and model.\n\n```go\nfunc (c *CopilotIDEChatEditor) GetModels() []*CopilotIDEChatModel\n```\nGetModels returns the Models slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotIDEChatEditor) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotIDEChatEditor) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDEChatModel struct {\n\tName                     string  `json:\"name\"`\n\tIsCustomModel            bool    `json:\"is_custom_model\"`\n\tCustomModelTrainingDate  *string `json:\"custom_model_training_date,omitempty\"`\n\tTotalEngagedUsers        int     `json:\"total_engaged_users\"`\n\tTotalChats               int     `json:\"total_chats\"`\n\tTotalChatInsertionEvents int     `json:\"total_chat_insertion_events\"`\n\tTotalChatCopyEvents      int     `json:\"total_chat_copy_events\"`\n}\n```\nCopilotIDEChatModel represents Copilot usage metrics for chatting with a model in the IDE.\n\n```go\nfunc (c *CopilotIDEChatModel) GetCustomModelTrainingDate() string\n```\nGetCustomModelTrainingDate returns the CustomModelTrainingDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotIDEChatModel) GetIsCustomModel() bool\n```\nGetIsCustomModel returns the IsCustomModel field.\n\n```go\nfunc (c *CopilotIDEChatModel) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotIDEChatModel) GetTotalChatCopyEvents() int\n```\nGetTotalChatCopyEvents returns the TotalChatCopyEvents field.\n\n```go\nfunc (c *CopilotIDEChatModel) GetTotalChatInsertionEvents() int\n```\nGetTotalChatInsertionEvents returns the TotalChatInsertionEvents field.\n\n```go\nfunc (c *CopilotIDEChatModel) GetTotalChats() int\n```\nGetTotalChats returns the TotalChats field.\n\n```go\nfunc (c *CopilotIDEChatModel) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDECodeCompletions struct {\n\tTotalEngagedUsers int                                  `json:\"total_engaged_users\"`\n\tLanguages         []*CopilotIDECodeCompletionsLanguage `json:\"languages\"`\n\tEditors           []*CopilotIDECodeCompletionsEditor   `json:\"editors\"`\n}\n```\nCopilotIDECodeCompletions represents Copilot usage metrics for Copilot code completions in the IDE, categorized by editor, model and language.\n\n```go\nfunc (c *CopilotIDECodeCompletions) GetEditors() []*CopilotIDECodeCompletionsEditor\n```\nGetEditors returns the Editors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotIDECodeCompletions) GetLanguages() []*CopilotIDECodeCompletionsLanguage\n```\nGetLanguages returns the Languages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotIDECodeCompletions) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDECodeCompletionsEditor struct {\n\tName              string                            `json:\"name\"`\n\tTotalEngagedUsers int                               `json:\"total_engaged_users\"`\n\tModels            []*CopilotIDECodeCompletionsModel `json:\"models\"`\n}\n```\nCopilotIDECodeCompletionsEditor represents Copilot usage metrics for completions in the IDE for an editor.\n\n```go\nfunc (c *CopilotIDECodeCompletionsEditor) GetModels() []*CopilotIDECodeCompletionsModel\n```\nGetModels returns the Models slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotIDECodeCompletionsEditor) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsEditor) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDECodeCompletionsLanguage struct {\n\tName              string `json:\"name\"`\n\tTotalEngagedUsers int    `json:\"total_engaged_users\"`\n}\n```\nCopilotIDECodeCompletionsLanguage represents Copilot usage metrics for completions in the IDE for a language.\n\n```go\nfunc (c *CopilotIDECodeCompletionsLanguage) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsLanguage) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDECodeCompletionsModel struct {\n\tName                    string                                    `json:\"name\"`\n\tIsCustomModel           bool                                      `json:\"is_custom_model\"`\n\tCustomModelTrainingDate *string                                   `json:\"custom_model_training_date,omitempty\"`\n\tTotalEngagedUsers       int                                       `json:\"total_engaged_users\"`\n\tLanguages               []*CopilotIDECodeCompletionsModelLanguage `json:\"languages\"`\n}\n```\nCopilotIDECodeCompletionsModel represents Copilot usage metrics for completions in the IDE for a model.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModel) GetCustomModelTrainingDate() string\n```\nGetCustomModelTrainingDate returns the CustomModelTrainingDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModel) GetIsCustomModel() bool\n```\nGetIsCustomModel returns the IsCustomModel field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModel) GetLanguages() []*CopilotIDECodeCompletionsModelLanguage\n```\nGetLanguages returns the Languages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModel) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModel) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotIDECodeCompletionsModelLanguage struct {\n\tName                    string `json:\"name\"`\n\tTotalEngagedUsers       int    `json:\"total_engaged_users\"`\n\tTotalCodeSuggestions    int    `json:\"total_code_suggestions\"`\n\tTotalCodeAcceptances    int    `json:\"total_code_acceptances\"`\n\tTotalCodeLinesSuggested int    `json:\"total_code_lines_suggested\"`\n\tTotalCodeLinesAccepted  int    `json:\"total_code_lines_accepted\"`\n}\n```\nCopilotIDECodeCompletionsModelLanguage represents Copilot usage metrics for completions in the IDE for a model and language.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModelLanguage) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModelLanguage) GetTotalCodeAcceptances() int\n```\nGetTotalCodeAcceptances returns the TotalCodeAcceptances field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModelLanguage) GetTotalCodeLinesAccepted() int\n```\nGetTotalCodeLinesAccepted returns the TotalCodeLinesAccepted field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModelLanguage) GetTotalCodeLinesSuggested() int\n```\nGetTotalCodeLinesSuggested returns the TotalCodeLinesSuggested field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModelLanguage) GetTotalCodeSuggestions() int\n```\nGetTotalCodeSuggestions returns the TotalCodeSuggestions field.\n\n```go\nfunc (c *CopilotIDECodeCompletionsModelLanguage) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\ntype CopilotMetrics struct {\n\tDate                      string                     `json:\"date\"`\n\tTotalActiveUsers          *int                       `json:\"total_active_users,omitempty\"`\n\tTotalEngagedUsers         *int                       `json:\"total_engaged_users,omitempty\"`\n\tCopilotIDECodeCompletions *CopilotIDECodeCompletions `json:\"copilot_ide_code_completions,omitempty\"`\n\tCopilotIDEChat            *CopilotIDEChat            `json:\"copilot_ide_chat,omitempty\"`\n\tCopilotDotcomChat         *CopilotDotcomChat         `json:\"copilot_dotcom_chat,omitempty\"`\n\tCopilotDotcomPullRequests *CopilotDotcomPullRequests `json:\"copilot_dotcom_pull_requests,omitempty\"`\n}\n```\nCopilotMetrics represents Copilot usage metrics for a given day.\n\n```go\nfunc (c *CopilotMetrics) GetCopilotDotcomChat() *CopilotDotcomChat\n```\nGetCopilotDotcomChat returns the CopilotDotcomChat field.\n\n```go\nfunc (c *CopilotMetrics) GetCopilotDotcomPullRequests() *CopilotDotcomPullRequests\n```\nGetCopilotDotcomPullRequests returns the CopilotDotcomPullRequests field.\n\n```go\nfunc (c *CopilotMetrics) GetCopilotIDEChat() *CopilotIDEChat\n```\nGetCopilotIDEChat returns the CopilotIDEChat field.\n\n```go\nfunc (c *CopilotMetrics) GetCopilotIDECodeCompletions() *CopilotIDECodeCompletions\n```\nGetCopilotIDECodeCompletions returns the CopilotIDECodeCompletions field.\n\n```go\nfunc (c *CopilotMetrics) GetDate() string\n```\nGetDate returns the Date field.\n\n```go\nfunc (c *CopilotMetrics) GetTotalActiveUsers() int\n```\nGetTotalActiveUsers returns the TotalActiveUsers field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetrics) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsAIAdoptionPhase struct {\n\tPhaseNumber int    `json:\"phase_number\"`\n\tPhase       string `json:\"phase\"`\n\tVersion     string `json:\"version\"`\n}\n```\nCopilotMetricsAIAdoptionPhase represents a user's AI adoption phase classification in a Copilot usage metrics report.\n\nPhase assignment uses a trailing 28-day engagement window and may change day to day. Version identifies the classification model (for example, \"v1\").\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#ai-adoption-phase-fields](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#ai-adoption-phase-fields)\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhase) GetPhase() string\n```\nGetPhase returns the Phase field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhase) GetPhaseNumber() int\n```\nGetPhaseNumber returns the PhaseNumber field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhase) GetVersion() string\n```\nGetVersion returns the Version field.\n\n```go\ntype CopilotMetricsAIAdoptionPhaseTotals struct {\n\tPhase                               string  `json:\"phase\"`\n\tPhaseNumber                         int     `json:\"phase_number\"`\n\tTotalEngagedUsers                   int     `json:\"total_engaged_users\"`\n\tAvgUserInitiatedInteractions        float64 `json:\"avg_user_initiated_interactions\"`\n\tAvgCodeGenerationActivities         float64 `json:\"avg_code_generation_activities\"`\n\tAvgCodeAcceptanceActivities         float64 `json:\"avg_code_acceptance_activities\"`\n\tAvgLOCAdded                         float64 `json:\"avg_loc_added\"`\n\tAvgLOCDeleted                       float64 `json:\"avg_loc_deleted\"`\n\tAvgPullRequestsReviewed             float64 `json:\"avg_pull_requests_reviewed\"`\n\tAvgPullRequestsCreated              float64 `json:\"avg_pull_requests_created\"`\n\tAvgPullRequestsMerged               float64 `json:\"avg_pull_requests_merged\"`\n\tTotalPullRequestsMerged             int     `json:\"total_pull_requests_merged\"`\n\tAvgPullRequestsMedianMinutesToMerge float64 `json:\"avg_pull_requests_median_minutes_to_merge\"`\n\tAvgPullRequestsMinutesToReview      float64 `json:\"avg_pull_requests_minutes_to_review\"`\n\tAvgPullRequestsReviewCycles         float64 `json:\"avg_pull_requests_review_cycles\"`\n}\n```\nCopilotMetricsAIAdoptionPhaseTotals represents aggregated per-phase averages in an enterprise or organization Copilot usage metrics report.\n\nAggregated metrics report the average per user within each phase rather than the sum, except TotalEngagedUsers and TotalPullRequestsMerged.\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#ai-adoption-phase-fields](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#ai-adoption-phase-fields)\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgCodeAcceptanceActivities() float64\n```\nGetAvgCodeAcceptanceActivities returns the AvgCodeAcceptanceActivities field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgCodeGenerationActivities() float64\n```\nGetAvgCodeGenerationActivities returns the AvgCodeGenerationActivities field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgLOCAdded() float64\n```\nGetAvgLOCAdded returns the AvgLOCAdded field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgLOCDeleted() float64\n```\nGetAvgLOCDeleted returns the AvgLOCDeleted field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgPullRequestsCreated() float64\n```\nGetAvgPullRequestsCreated returns the AvgPullRequestsCreated field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgPullRequestsMedianMinutesToMerge() float64\n```\nGetAvgPullRequestsMedianMinutesToMerge returns the AvgPullRequestsMedianMinutesToMerge field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgPullRequestsMerged() float64\n```\nGetAvgPullRequestsMerged returns the AvgPullRequestsMerged field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgPullRequestsMinutesToReview() float64\n```\nGetAvgPullRequestsMinutesToReview returns the AvgPullRequestsMinutesToReview field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgPullRequestsReviewCycles() float64\n```\nGetAvgPullRequestsReviewCycles returns the AvgPullRequestsReviewCycles field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgPullRequestsReviewed() float64\n```\nGetAvgPullRequestsReviewed returns the AvgPullRequestsReviewed field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetAvgUserInitiatedInteractions() float64\n```\nGetAvgUserInitiatedInteractions returns the AvgUserInitiatedInteractions field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetPhase() string\n```\nGetPhase returns the Phase field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetPhaseNumber() int\n```\nGetPhaseNumber returns the PhaseNumber field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetTotalEngagedUsers() int\n```\nGetTotalEngagedUsers returns the TotalEngagedUsers field.\n\n```go\nfunc (c *CopilotMetricsAIAdoptionPhaseTotals) GetTotalPullRequestsMerged() int\n```\nGetTotalPullRequestsMerged returns the TotalPullRequestsMerged field.\n\n```go\ntype CopilotMetricsCLI struct {\n\tSessionCount        *int                         `json:\"session_count,omitempty\"`\n\tRequestCount        *int                         `json:\"request_count,omitempty\"`\n\tPromptCount         *int                         `json:\"prompt_count,omitempty\"`\n\tTokenUsage          *CopilotMetricsCLITokenUsage `json:\"token_usage,omitempty\"`\n\tLastKnownCLIVersion *CopilotMetricsCLIVersion    `json:\"last_known_cli_version,omitempty\"`\n}\n```\nCopilotMetricsCLI represents Copilot CLI totals in a metrics report.\n\n```go\nfunc (c *CopilotMetricsCLI) GetLastKnownCLIVersion() *CopilotMetricsCLIVersion\n```\nGetLastKnownCLIVersion returns the LastKnownCLIVersion field.\n\n```go\nfunc (c *CopilotMetricsCLI) GetPromptCount() int\n```\nGetPromptCount returns the PromptCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCLI) GetRequestCount() int\n```\nGetRequestCount returns the RequestCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCLI) GetSessionCount() int\n```\nGetSessionCount returns the SessionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCLI) GetTokenUsage() *CopilotMetricsCLITokenUsage\n```\nGetTokenUsage returns the TokenUsage field.\n\n```go\ntype CopilotMetricsCLITokenUsage struct {\n\tAvgTokensPerRequest *float64 `json:\"avg_tokens_per_request,omitempty\"`\n\tOutputTokensSum     *int     `json:\"output_tokens_sum,omitempty\"`\n\tPromptTokensSum     *int     `json:\"prompt_tokens_sum,omitempty\"`\n}\n```\nCopilotMetricsCLITokenUsage represents Copilot CLI token totals in a metrics report.\n\n```go\nfunc (c *CopilotMetricsCLITokenUsage) GetAvgTokensPerRequest() float64\n```\nGetAvgTokensPerRequest returns the AvgTokensPerRequest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCLITokenUsage) GetOutputTokensSum() int\n```\nGetOutputTokensSum returns the OutputTokensSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCLITokenUsage) GetPromptTokensSum() int\n```\nGetPromptTokensSum returns the PromptTokensSum field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsCLIVersion struct {\n\tSampledAt  *Timestamp `json:\"sampled_at,omitempty\"`\n\tCLIVersion string     `json:\"cli_version\"`\n}\n```\nCopilotMetricsCLIVersion represents the last known Copilot CLI version seen in a metrics report.\n\n```go\nfunc (c *CopilotMetricsCLIVersion) GetCLIVersion() string\n```\nGetCLIVersion returns the CLIVersion field.\n\n```go\nfunc (c *CopilotMetricsCLIVersion) GetSampledAt() Timestamp\n```\nGetSampledAt returns the SampledAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsChatPanel struct {\n\tChatPanelAgentMode   *int `json:\"chat_panel_agent_mode,omitempty\"`\n\tChatPanelAskMode     *int `json:\"chat_panel_ask_mode,omitempty\"`\n\tChatPanelCustomMode  *int `json:\"chat_panel_custom_mode,omitempty\"`\n\tChatPanelEditMode    *int `json:\"chat_panel_edit_mode,omitempty\"`\n\tChatPanelUnknownMode *int `json:\"chat_panel_unknown_mode,omitempty\"`\n}\n```\nCopilotMetricsChatPanel captures per-mode chat panel interaction counts shared across daily, periodic, and user metrics reports. Each field is a subset of user\\_initiated\\_interaction\\_count attributed to that chat panel mode.\n\n```go\nfunc (c *CopilotMetricsChatPanel) GetChatPanelAgentMode() int\n```\nGetChatPanelAgentMode returns the ChatPanelAgentMode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsChatPanel) GetChatPanelAskMode() int\n```\nGetChatPanelAskMode returns the ChatPanelAskMode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsChatPanel) GetChatPanelCustomMode() int\n```\nGetChatPanelCustomMode returns the ChatPanelCustomMode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsChatPanel) GetChatPanelEditMode() int\n```\nGetChatPanelEditMode returns the ChatPanelEditMode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsChatPanel) GetChatPanelUnknownMode() int\n```\nGetChatPanelUnknownMode returns the ChatPanelUnknownMode field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsCodeActivity struct {\n\tCodeGenerationActivityCount *int `json:\"code_generation_activity_count,omitempty\"`\n\tCodeAcceptanceActivityCount *int `json:\"code_acceptance_activity_count,omitempty\"`\n\tLOCSuggestedToAddSum        *int `json:\"loc_suggested_to_add_sum,omitempty\"`\n\tLOCSuggestedToDeleteSum     *int `json:\"loc_suggested_to_delete_sum,omitempty\"`\n\tLOCAddedSum                 *int `json:\"loc_added_sum,omitempty\"`\n\tLOCDeletedSum               *int `json:\"loc_deleted_sum,omitempty\"`\n}\n```\nCopilotMetricsCodeActivity captures the code-generation activity counts and lines-of-code (LOC) suggestion totals shared across the per-IDE, per-feature, per-language, and per-model breakdowns in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsCodeActivity) GetCodeAcceptanceActivityCount() int\n```\nGetCodeAcceptanceActivityCount returns the CodeAcceptanceActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCodeActivity) GetCodeGenerationActivityCount() int\n```\nGetCodeGenerationActivityCount returns the CodeGenerationActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCodeActivity) GetLOCAddedSum() int\n```\nGetLOCAddedSum returns the LOCAddedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCodeActivity) GetLOCDeletedSum() int\n```\nGetLOCDeletedSum returns the LOCDeletedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCodeActivity) GetLOCSuggestedToAddSum() int\n```\nGetLOCSuggestedToAddSum returns the LOCSuggestedToAddSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCodeActivity) GetLOCSuggestedToDeleteSum() int\n```\nGetLOCSuggestedToDeleteSum returns the LOCSuggestedToDeleteSum field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsCopilotApp struct {\n\tSessionCount *int                                `json:\"session_count,omitempty\"`\n\tRequestCount *int                                `json:\"request_count,omitempty\"`\n\tPromptCount  *int                                `json:\"prompt_count,omitempty\"`\n\tTokenUsage   *CopilotMetricsCopilotAppTokenUsage `json:\"token_usage,omitempty\"`\n}\n```\nCopilotMetricsCopilotApp represents Copilot app totals in a metrics report.\n\nUnlike totals\\_by\\_cli, there is no last\\_known\\_app\\_version field.\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#copilot-app-metrics-fields](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#copilot-app-metrics-fields)\n\n```go\nfunc (c *CopilotMetricsCopilotApp) GetPromptCount() int\n```\nGetPromptCount returns the PromptCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCopilotApp) GetRequestCount() int\n```\nGetRequestCount returns the RequestCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCopilotApp) GetSessionCount() int\n```\nGetSessionCount returns the SessionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCopilotApp) GetTokenUsage() *CopilotMetricsCopilotAppTokenUsage\n```\nGetTokenUsage returns the TokenUsage field.\n\n```go\ntype CopilotMetricsCopilotAppTokenUsage struct {\n\tAvgTokensPerRequest *float64 `json:\"avg_tokens_per_request,omitempty\"`\n\tOutputTokensSum     *int     `json:\"output_tokens_sum,omitempty\"`\n\tPromptTokensSum     *int     `json:\"prompt_tokens_sum,omitempty\"`\n}\n```\nCopilotMetricsCopilotAppTokenUsage represents Copilot app token totals in a metrics report.\n\n```go\nfunc (c *CopilotMetricsCopilotAppTokenUsage) GetAvgTokensPerRequest() float64\n```\nGetAvgTokensPerRequest returns the AvgTokensPerRequest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCopilotAppTokenUsage) GetOutputTokensSum() int\n```\nGetOutputTokensSum returns the OutputTokensSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCopilotAppTokenUsage) GetPromptTokensSum() int\n```\nGetPromptTokensSum returns the PromptTokensSum field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsCopilotSuggestionByCommentType struct {\n\tCommentType                    string `json:\"comment_type\"`\n\tTotalCopilotSuggestions        *int   `json:\"total_copilot_suggestions,omitempty\"`\n\tTotalCopilotAppliedSuggestions *int   `json:\"total_copilot_applied_suggestions,omitempty\"`\n}\n```\nCopilotMetricsCopilotSuggestionByCommentType represents Copilot code review suggestion counts broken down by comment type in a pull\\_requests object.\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#pull-request-activity-fields](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#pull-request-activity-fields)\n\n```go\nfunc (c *CopilotMetricsCopilotSuggestionByCommentType) GetCommentType() string\n```\nGetCommentType returns the CommentType field.\n\n```go\nfunc (c *CopilotMetricsCopilotSuggestionByCommentType) GetTotalCopilotAppliedSuggestions() int\n```\nGetTotalCopilotAppliedSuggestions returns the TotalCopilotAppliedSuggestions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsCopilotSuggestionByCommentType) GetTotalCopilotSuggestions() int\n```\nGetTotalCopilotSuggestions returns the TotalCopilotSuggestions field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsFeature struct {\n\tFeature                       string `json:\"feature\"`\n\tUserInitiatedInteractionCount *int   `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsCodeActivity\n}\n```\nCopilotMetricsFeature represents per-feature aggregate totals in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsFeature) GetFeature() string\n```\nGetFeature returns the Feature field.\n\n```go\nfunc (c *CopilotMetricsFeature) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsIDE struct {\n\tIDE                           string `json:\"ide\"`\n\tUserInitiatedInteractionCount *int   `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsCodeActivity\n}\n```\nCopilotMetricsIDE represents per-IDE aggregate totals in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsIDE) GetIDE() string\n```\nGetIDE returns the IDE field.\n\n```go\nfunc (c *CopilotMetricsIDE) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsLanguageFeature struct {\n\tLanguage string `json:\"language\"`\n\tFeature  string `json:\"feature\"`\n\tCopilotMetricsCodeActivity\n}\n```\nCopilotMetricsLanguageFeature represents per-language-feature totals in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsLanguageFeature) GetFeature() string\n```\nGetFeature returns the Feature field.\n\n```go\nfunc (c *CopilotMetricsLanguageFeature) GetLanguage() string\n```\nGetLanguage returns the Language field.\n\n```go\ntype CopilotMetricsLanguageModel struct {\n\tLanguage string `json:\"language\"`\n\tModel    string `json:\"model\"`\n\tCopilotMetricsCodeActivity\n}\n```\nCopilotMetricsLanguageModel represents per-language-model totals in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsLanguageModel) GetLanguage() string\n```\nGetLanguage returns the Language field.\n\n```go\nfunc (c *CopilotMetricsLanguageModel) GetModel() string\n```\nGetModel returns the Model field.\n\n```go\ntype CopilotMetricsListOptions struct {\n\tSince *time.Time `url:\"since,omitempty\"`\n\tUntil *time.Time `url:\"until,omitempty\"`\n\n\tListOptions\n}\n```\nCopilotMetricsListOptions represents the optional parameters to the CopilotService get metrics methods.\n\n```go\nfunc (c *CopilotMetricsListOptions) GetSince() time.Time\n```\nGetSince returns the Since field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsListOptions) GetUntil() time.Time\n```\nGetUntil returns the Until field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsModelFeature struct {\n\tModel                         string `json:\"model\"`\n\tFeature                       string `json:\"feature\"`\n\tUserInitiatedInteractionCount *int   `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsCodeActivity\n}\n```\nCopilotMetricsModelFeature represents per-model-feature totals in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsModelFeature) GetFeature() string\n```\nGetFeature returns the Feature field.\n\n```go\nfunc (c *CopilotMetricsModelFeature) GetModel() string\n```\nGetModel returns the Model field.\n\n```go\nfunc (c *CopilotMetricsModelFeature) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsPullRequests struct {\n\tTotalReviewed                       *int                                            `json:\"total_reviewed,omitempty\"`\n\tTotalCreated                        *int                                            `json:\"total_created,omitempty\"`\n\tTotalCreatedByCopilot               *int                                            `json:\"total_created_by_copilot,omitempty\"`\n\tTotalReviewedByCopilot              *int                                            `json:\"total_reviewed_by_copilot,omitempty\"`\n\tTotalMerged                         *int                                            `json:\"total_merged,omitempty\"`\n\tMedianMinutesToMerge                *float64                                        `json:\"median_minutes_to_merge,omitempty\"`\n\tTotalSuggestions                    *int                                            `json:\"total_suggestions,omitempty\"`\n\tTotalAppliedSuggestions             *int                                            `json:\"total_applied_suggestions,omitempty\"`\n\tTotalMergedCreatedByCopilot         *int                                            `json:\"total_merged_created_by_copilot,omitempty\"`\n\tMedianMinutesToMergeCopilotAuthored *float64                                        `json:\"median_minutes_to_merge_copilot_authored,omitempty\"`\n\tTotalCopilotSuggestions             *int                                            `json:\"total_copilot_suggestions,omitempty\"`\n\tTotalCopilotAppliedSuggestions      *int                                            `json:\"total_copilot_applied_suggestions,omitempty\"`\n\tMedianMinutesToMergeCopilotReviewed *float64                                        `json:\"median_minutes_to_merge_copilot_reviewed,omitempty\"`\n\tTotalMergedReviewedByCopilot        *int                                            `json:\"total_merged_reviewed_by_copilot,omitempty\"`\n\tCopilotSuggestionsByCommentType     []*CopilotMetricsCopilotSuggestionByCommentType `json:\"copilot_suggestions_by_comment_type,omitempty\"`\n}\n```\nCopilotMetricsPullRequests represents pull request totals in a Copilot metrics report.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetCopilotSuggestionsByCommentType() []*CopilotMetricsCopilotSuggestionByCommentType\n```\nGetCopilotSuggestionsByCommentType returns the CopilotSuggestionsByCommentType slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetMedianMinutesToMerge() float64\n```\nGetMedianMinutesToMerge returns the MedianMinutesToMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetMedianMinutesToMergeCopilotAuthored() float64\n```\nGetMedianMinutesToMergeCopilotAuthored returns the MedianMinutesToMergeCopilotAuthored field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetMedianMinutesToMergeCopilotReviewed() float64\n```\nGetMedianMinutesToMergeCopilotReviewed returns the MedianMinutesToMergeCopilotReviewed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalAppliedSuggestions() int\n```\nGetTotalAppliedSuggestions returns the TotalAppliedSuggestions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalCopilotAppliedSuggestions() int\n```\nGetTotalCopilotAppliedSuggestions returns the TotalCopilotAppliedSuggestions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalCopilotSuggestions() int\n```\nGetTotalCopilotSuggestions returns the TotalCopilotSuggestions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalCreated() int\n```\nGetTotalCreated returns the TotalCreated field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalCreatedByCopilot() int\n```\nGetTotalCreatedByCopilot returns the TotalCreatedByCopilot field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalMerged() int\n```\nGetTotalMerged returns the TotalMerged field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalMergedCreatedByCopilot() int\n```\nGetTotalMergedCreatedByCopilot returns the TotalMergedCreatedByCopilot field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalMergedReviewedByCopilot() int\n```\nGetTotalMergedReviewedByCopilot returns the TotalMergedReviewedByCopilot field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalReviewed() int\n```\nGetTotalReviewed returns the TotalReviewed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalReviewedByCopilot() int\n```\nGetTotalReviewedByCopilot returns the TotalReviewedByCopilot field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsPullRequests) GetTotalSuggestions() int\n```\nGetTotalSuggestions returns the TotalSuggestions field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotMetricsReport struct {\n\tDownloadLinks  []string `json:\"download_links\"`\n\tReportStartDay string   `json:\"report_start_day\"`\n\tReportEndDay   string   `json:\"report_end_day\"`\n}\n```\nCopilotMetricsReport represents the response from 28-day Copilot metrics report endpoints.\n\n```go\nfunc (c *CopilotMetricsReport) GetDownloadLinks() []string\n```\nGetDownloadLinks returns the DownloadLinks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotMetricsReport) GetReportEndDay() string\n```\nGetReportEndDay returns the ReportEndDay field.\n\n```go\nfunc (c *CopilotMetricsReport) GetReportStartDay() string\n```\nGetReportStartDay returns the ReportStartDay field.\n\n```go\ntype CopilotMetricsReportOptions struct {\n\tDay string `url:\"day\"` // Required, format: YYYY-MM-DD\n}\n```\nCopilotMetricsReportOptions specifies the optional parameters for single-day metrics report endpoints.\n\n```go\nfunc (c *CopilotMetricsReportOptions) GetDay() string\n```\nGetDay returns the Day field.\n\n```go\ntype CopilotMetricsThirdPartyAgent struct {\n\tAgentName                     string `json:\"agent_name\"`\n\tAgentID                       string `json:\"agent_id\"`\n\tUserInitiatedInteractionCount *int   `json:\"user_initiated_interaction_count,omitempty\"`\n\tSessionCount                  *int   `json:\"session_count,omitempty\"`\n}\n```\nCopilotMetricsThirdPartyAgent represents per-agent app totals in a Copilot usage metrics report.\n\nAgentID is the stable grouping key. AgentName is for display and can change. UserInitiatedInteractionCount is agent-app job starts; it is not the same as the top-level user\\_initiated\\_interaction\\_count on the parent metrics object. SessionCount is included on aggregated enterprise and organization reports and omitted from per-user reports.\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#agent-apps-metrics-fields](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#agent-apps-metrics-fields)\n\n```go\nfunc (c *CopilotMetricsThirdPartyAgent) GetAgentID() string\n```\nGetAgentID returns the AgentID field.\n\n```go\nfunc (c *CopilotMetricsThirdPartyAgent) GetAgentName() string\n```\nGetAgentName returns the AgentName field.\n\n```go\nfunc (c *CopilotMetricsThirdPartyAgent) GetSessionCount() int\n```\nGetSessionCount returns the SessionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotMetricsThirdPartyAgent) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotOrganizationContentExclusionDetails map[string][]string\n```\nCopilotOrganizationContentExclusionDetails lists all Copilot content exclusion rules for an organization, keyed by repository full name. Each value is the list of file paths excluded from Copilot for that repository.\n\n```go\ntype CopilotOrganizationDetails struct {\n\tSeatBreakdown         *CopilotSeatBreakdown `json:\"seat_breakdown\"`\n\tPublicCodeSuggestions string                `json:\"public_code_suggestions\"`\n\tCopilotChat           string                `json:\"copilot_chat\"`\n\tSeatManagementSetting string                `json:\"seat_management_setting\"`\n}\n```\nCopilotOrganizationDetails represents the details of an organization's Copilot for Business subscription.\n\n```go\nfunc (c *CopilotOrganizationDetails) GetCopilotChat() string\n```\nGetCopilotChat returns the CopilotChat field.\n\n```go\nfunc (c *CopilotOrganizationDetails) GetPublicCodeSuggestions() string\n```\nGetPublicCodeSuggestions returns the PublicCodeSuggestions field.\n\n```go\nfunc (c *CopilotOrganizationDetails) GetSeatBreakdown() *CopilotSeatBreakdown\n```\nGetSeatBreakdown returns the SeatBreakdown field.\n\n```go\nfunc (c *CopilotOrganizationDetails) GetSeatManagementSetting() string\n```\nGetSeatManagementSetting returns the SeatManagementSetting field.\n\n```go\ntype CopilotPeriodicMetrics struct {\n\tReportStartDay string                 `json:\"report_start_day\"`\n\tReportEndDay   string                 `json:\"report_end_day\"`\n\tOrganizationID *string                `json:\"organization_id,omitempty\"`\n\tEnterpriseID   *string                `json:\"enterprise_id,omitempty\"`\n\tCreatedAt      *Timestamp             `json:\"created_at,omitempty\"`\n\tDayTotals      []*CopilotDailyMetrics `json:\"day_totals,omitempty\"`\n}\n```\nCopilotPeriodicMetrics represents the payload downloaded from a multi-day (e.g. 28-day rolling) Copilot usage metrics report. The DayTotals field contains one CopilotDailyMetrics entry per day in the reporting window. Window-level metadata (ReportStartDay, ReportEndDay, CreatedAt) lives on this parent struct; each DayTotals entry only populates fields scoped to that day.\n\n```go\nfunc (c *CopilotPeriodicMetrics) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotPeriodicMetrics) GetDayTotals() []*CopilotDailyMetrics\n```\nGetDayTotals returns the DayTotals slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotPeriodicMetrics) GetEnterpriseID() string\n```\nGetEnterpriseID returns the EnterpriseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotPeriodicMetrics) GetOrganizationID() string\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotPeriodicMetrics) GetReportEndDay() string\n```\nGetReportEndDay returns the ReportEndDay field.\n\n```go\nfunc (c *CopilotPeriodicMetrics) GetReportStartDay() string\n```\nGetReportStartDay returns the ReportStartDay field.\n\n```go\ntype CopilotRepositoryDailyMetrics struct {\n\tDay            string                      `json:\"day\"`\n\tEnterpriseID   *string                     `json:\"enterprise_id,omitempty\"`\n\tOrganizationID *string                     `json:\"organization_id,omitempty\"`\n\tRepoID         int64                       `json:\"repo_id\"`\n\tRepoOwnerName  string                      `json:\"repo_owner_name\"`\n\tRepoName       string                      `json:\"repo_name\"`\n\tRepoVisibility string                      `json:\"repo_visibility\"`\n\tPullRequests   *CopilotMetricsPullRequests `json:\"pull_requests,omitempty\"`\n}\n```\nCopilotRepositoryDailyMetrics represents a single repository's per-day Copilot pull request metrics record from a repos-1-day report. Repository reports are served as newline-delimited JSON.\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#repository-level-fields-api-only](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#repository-level-fields-api-only)\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetDay() string\n```\nGetDay returns the Day field.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetEnterpriseID() string\n```\nGetEnterpriseID returns the EnterpriseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetOrganizationID() string\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetPullRequests() *CopilotMetricsPullRequests\n```\nGetPullRequests returns the PullRequests field.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetRepoID() int64\n```\nGetRepoID returns the RepoID field.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetRepoName() string\n```\nGetRepoName returns the RepoName field.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetRepoOwnerName() string\n```\nGetRepoOwnerName returns the RepoOwnerName field.\n\n```go\nfunc (c *CopilotRepositoryDailyMetrics) GetRepoVisibility() string\n```\nGetRepoVisibility returns the RepoVisibility field.\n\n```go\ntype CopilotSeatBreakdown struct {\n\tTotal               int `json:\"total\"`\n\tAddedThisCycle      int `json:\"added_this_cycle\"`\n\tPendingCancellation int `json:\"pending_cancellation\"`\n\tPendingInvitation   int `json:\"pending_invitation\"`\n\tActiveThisCycle     int `json:\"active_this_cycle\"`\n\tInactiveThisCycle   int `json:\"inactive_this_cycle\"`\n}\n```\nCopilotSeatBreakdown represents the breakdown of Copilot for Business seats for the organization.\n\n```go\nfunc (c *CopilotSeatBreakdown) GetActiveThisCycle() int\n```\nGetActiveThisCycle returns the ActiveThisCycle field.\n\n```go\nfunc (c *CopilotSeatBreakdown) GetAddedThisCycle() int\n```\nGetAddedThisCycle returns the AddedThisCycle field.\n\n```go\nfunc (c *CopilotSeatBreakdown) GetInactiveThisCycle() int\n```\nGetInactiveThisCycle returns the InactiveThisCycle field.\n\n```go\nfunc (c *CopilotSeatBreakdown) GetPendingCancellation() int\n```\nGetPendingCancellation returns the PendingCancellation field.\n\n```go\nfunc (c *CopilotSeatBreakdown) GetPendingInvitation() int\n```\nGetPendingInvitation returns the PendingInvitation field.\n\n```go\nfunc (c *CopilotSeatBreakdown) GetTotal() int\n```\nGetTotal returns the Total field.\n\n```go\ntype CopilotSeatDetails struct {\n\t// Assignee can either be a User, Team, or Organization.\n\tAssignee                any        `json:\"assignee\"`\n\tAssigningTeam           *Team      `json:\"assigning_team,omitempty\"`\n\tPendingCancellationDate *string    `json:\"pending_cancellation_date,omitempty\"`\n\tLastActivityAt          *Timestamp `json:\"last_activity_at,omitempty\"`\n\tLastActivityEditor      *string    `json:\"last_activity_editor,omitempty\"`\n\tCreatedAt               *Timestamp `json:\"created_at\"`\n\tUpdatedAt               *Timestamp `json:\"updated_at,omitempty\"`\n\tPlanType                *string    `json:\"plan_type,omitempty\"`\n}\n```\nCopilotSeatDetails represents the details of a Copilot for Business seat.\n\n```go\nfunc (c *CopilotSeatDetails) GetAssignee() any\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (c *CopilotSeatDetails) GetAssigningTeam() *Team\n```\nGetAssigningTeam returns the AssigningTeam field.\n\n```go\nfunc (c *CopilotSeatDetails) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSeatDetails) GetLastActivityAt() Timestamp\n```\nGetLastActivityAt returns the LastActivityAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSeatDetails) GetLastActivityEditor() string\n```\nGetLastActivityEditor returns the LastActivityEditor field if it's non-nil, zero value otherwise.\n\n```go\nfunc (cp *CopilotSeatDetails) GetOrganization() (*Organization, bool)\n```\nGetOrganization gets the Organization from the CopilotSeatDetails if the assignee is an organization.\n\n```go\nfunc (c *CopilotSeatDetails) GetPendingCancellationDate() string\n```\nGetPendingCancellationDate returns the PendingCancellationDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSeatDetails) GetPlanType() string\n```\nGetPlanType returns the PlanType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (cp *CopilotSeatDetails) GetTeam() (*Team, bool)\n```\nGetTeam gets the Team from the CopilotSeatDetails if the assignee is a team.\n\n```go\nfunc (c *CopilotSeatDetails) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (cp *CopilotSeatDetails) GetUser() (*User, bool)\n```\nGetUser gets the User from the CopilotSeatDetails if the assignee is a user.\n\n```go\nfunc (cp *CopilotSeatDetails) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface.\n\n```go\ntype CopilotService service\n```\nCopilotService provides access to the Copilot-related functions in the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/copilot?apiVersion=2022-11-28](https://docs.github.com/rest/copilot?apiVersion=2022-11-28)\n\n```go\nfunc (s *CopilotService) AddCopilotTeams(ctx context.Context, org string, teamNames []string) (*SeatAssignments, *Response, error)\n```\nAddCopilotTeams adds teams to the Copilot for Business subscription for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-teams-to-the-copilot-subscription-for-an-organization](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-teams-to-the-copilot-subscription-for-an-organization)\n\n```go\nfunc (s *CopilotService) AddCopilotUsers(ctx context.Context, org string, users []string) (*SeatAssignments, *Response, error)\n```\nAddCopilotUsers adds users to the Copilot for Business subscription for an organization\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-users-to-the-copilot-subscription-for-an-organization](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#add-users-to-the-copilot-subscription-for-an-organization)\n\n```go\nfunc (s *CopilotService) CreateOrganizationCopilotSpace(ctx context.Context, org string, body CreateOrganizationCopilotSpaceRequest) (*CopilotSpace, *Response, error)\n```\nCreateOrganizationCopilotSpace creates a Copilot Space for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#create-an-organization-copilot-space](https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#create-an-organization-copilot-space)\n\n```go\nfunc (s *CopilotService) DeleteOrganizationCopilotSpace(ctx context.Context, org string, spaceNumber int) (*Response, error)\n```\nDeleteOrganizationCopilotSpace deletes a Copilot Space for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#delete-an-organization-copilot-space](https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#delete-an-organization-copilot-space)\n\n```go\nfunc (s *CopilotService) DownloadCopilotMetrics(ctx context.Context, url string) ([]*CopilotMetrics, *Response, error)\n```\nDownloadCopilotMetrics downloads a Copilot metrics report from the provided download link and decodes it as a \\[]\\*CopilotMetrics.\n\nDeprecated: Use DownloadDailyMetrics, DownloadPeriodicMetrics, DownloadUserDailyMetrics, DownloadUserPeriodicMetrics, DownloadRepositoryDailyMetrics, DownloadUserTeamsDailyMetrics instead. The payloads served at the download links returned by the new Get\\*MetricsReport endpoints on GitHub.com do not match the CopilotMetrics shape (see [https://github.com/google/go-github/issues/4136](https://github.com/google/go-github/issues/4136)). This method is retained for GitHub Enterprise Server installations that may still serve the legacy shape.\n\n```go\nfunc (s *CopilotService) DownloadDailyMetrics(ctx context.Context, url string) (*CopilotDailyMetrics, *Response, error)\n```\nDownloadDailyMetrics downloads the payload of a 1-day Copilot usage metrics report from a download link returned by GetEnterpriseDailyMetricsReport or GetOrganizationDailyMetricsReport.\n\n```go\nfunc (s *CopilotService) DownloadPeriodicMetrics(ctx context.Context, url string) (*CopilotPeriodicMetrics, *Response, error)\n```\nDownloadPeriodicMetrics downloads the payload of a multi-day (e.g. 28-day rolling) Copilot usage metrics report from a download link returned by GetEnterpriseMetricsReport or GetOrganizationMetricsReport.\n\n```go\nfunc (s *CopilotService) DownloadRepositoryDailyMetrics(ctx context.Context, url string) ([]*CopilotRepositoryDailyMetrics, *Response, error)\n```\nDownloadRepositoryDailyMetrics downloads the payload of a 1-day Copilot repository metrics report from a download link returned by GetEnterpriseRepositoriesDailyMetricsReport or GetOrganizationRepositoriesDailyMetricsReport.\n\nThe response is newline-delimited JSON, with one CopilotRepositoryDailyMetrics record per line.\n\n```go\nfunc (s *CopilotService) DownloadUserDailyMetrics(ctx context.Context, url string) ([]*CopilotUserDailyMetrics, *Response, error)\n```\nDownloadUserDailyMetrics downloads the payload of a 1-day Copilot user metrics report from a download link returned by GetEnterpriseUsersDailyMetricsReport or GetOrganizationUsersDailyMetricsReport.\n\nThe response is newline-delimited JSON, with one CopilotUserDailyMetrics record per line.\n\n```go\nfunc (s *CopilotService) DownloadUserPeriodicMetrics(ctx context.Context, url string) ([]*CopilotUserPeriodicMetrics, *Response, error)\n```\nDownloadUserPeriodicMetrics downloads the payload of a multi-day (e.g. 28-day rolling) Copilot user metrics report from a download link returned by GetEnterpriseUsersMetricsReport or GetOrganizationUsersMetricsReport.\n\nThe response is newline-delimited JSON, with one CopilotUserPeriodicMetrics record per user-day in the reporting window.\n\n```go\nfunc (s *CopilotService) DownloadUserTeamsDailyMetrics(ctx context.Context, url string) ([]*CopilotUserTeamsDailyMetrics, *Response, error)\n```\nDownloadUserTeamsDailyMetrics downloads the payload of a 1-day Copilot user-teams report from a download link returned by GetEnterpriseUserTeamsDailyMetricsReport or GetOrganizationUserTeamsDailyMetricsReport.\n\nThe response is newline-delimited JSON, with one CopilotUserTeamsDailyMetrics record per line.\n\n```go\nfunc (s *CopilotService) GetCloudAgentConfiguration(ctx context.Context, owner, repo string) (*CopilotCloudAgentConfiguration, *Response, error)\n```\nGetCloudAgentConfiguration gets the Copilot cloud agent configuration for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-cloud-agent-management?apiVersion=2022-11-28#get-copilot-cloud-agent-configuration-for-a-repository](https://docs.github.com/rest/copilot/copilot-cloud-agent-management?apiVersion=2022-11-28#get-copilot-cloud-agent-configuration-for-a-repository)\n\n```go\nfunc (s *CopilotService) GetCopilotBilling(ctx context.Context, org string) (*CopilotOrganizationDetails, *Response, error)\n```\nGetCopilotBilling gets Copilot for Business billing information and settings for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#get-copilot-seat-information-and-settings-for-an-organization](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#get-copilot-seat-information-and-settings-for-an-organization)\n\n```go\nfunc (s *CopilotService) GetEnterpriseDailyMetricsReport(ctx context.Context, enterprise string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetEnterpriseDailyMetricsReport gets a report containing Copilot metrics for a single day for an enterprise.\n\nUse DownloadDailyMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-usage-metrics-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-usage-metrics-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetEnterpriseMetrics(ctx context.Context, enterprise string, opts *CopilotMetricsListOptions) ([]*CopilotMetrics, *Response, error)\n```\nGetEnterpriseMetrics gets Copilot usage metrics for an enterprise.\n\nDeprecated: This endpoint was closed down on April 2, 2026 for github.com. It may still be available for GitHub Enterprise Server. Use GetEnterpriseDailyMetricsReport or GetEnterpriseMetricsReport instead.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-enterprise)\n\n```go\nfunc (s *CopilotService) GetEnterpriseMetricsReport(ctx context.Context, enterprise string) (*CopilotMetricsReport, *Response, error)\n```\nGetEnterpriseMetricsReport gets a report containing Copilot metrics for a 28-day rolling window for an enterprise.\n\nUse DownloadPeriodicMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-usage-metrics](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-usage-metrics)\n\n```go\nfunc (s *CopilotService) GetEnterpriseRepositoriesDailyMetricsReport(ctx context.Context, enterprise string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetEnterpriseRepositoriesDailyMetricsReport gets a report containing Copilot repository-level pull request metrics for a single day for an enterprise.\n\nUse DownloadRepositoryDailyMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-repository-report-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-repository-report-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetEnterpriseTeamMetrics(ctx context.Context, enterprise, team string, opts *CopilotMetricsListOptions) ([]*CopilotMetrics, *Response, error)\n```\nGetEnterpriseTeamMetrics gets Copilot usage metrics for an enterprise team.\n\nDeprecated: This endpoint was closed down on April 2, 2026 for github.com. It may still be available for GitHub Enterprise Server. Use GetEnterpriseDailyMetricsReport or GetEnterpriseMetricsReport instead.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-enterprise-team](https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-enterprise-team)\n\n```go\nfunc (s *CopilotService) GetEnterpriseUserTeamsDailyMetricsReport(ctx context.Context, enterprise string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetEnterpriseUserTeamsDailyMetricsReport gets a report containing Copilot user-team membership data for a single day for an enterprise.\n\nUse DownloadUserTeamsDailyMetrics to decode the payloads served at the returned download links. Join these records with per-user usage metrics on user\\_id, day, and enterprise\\_id to construct team-level metrics.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-user-teams-report-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-enterprise-user-teams-report-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetEnterpriseUsersDailyMetricsReport(ctx context.Context, enterprise string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetEnterpriseUsersDailyMetricsReport gets a report containing Copilot user metrics for a single day for an enterprise.\n\nUse DownloadUserDailyMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-users-usage-metrics-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-users-usage-metrics-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetEnterpriseUsersMetricsReport(ctx context.Context, enterprise string) (*CopilotMetricsReport, *Response, error)\n```\nGetEnterpriseUsersMetricsReport gets a report containing Copilot user metrics for a 28-day rolling window for an enterprise.\n\nUse DownloadUserPeriodicMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-users-usage-metrics](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-users-usage-metrics)\n\n```go\nfunc (s *CopilotService) GetOrganizationContentExclusionDetails(ctx context.Context, org string) (CopilotOrganizationContentExclusionDetails, *Response, error)\n```\nGetOrganizationContentExclusionDetails gets the Copilot content exclusion rules for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-content-exclusion-management?apiVersion=2022-11-28#get-copilot-content-exclusion-rules-for-an-organization](https://docs.github.com/rest/copilot/copilot-content-exclusion-management?apiVersion=2022-11-28#get-copilot-content-exclusion-rules-for-an-organization)\n\n```go\nfunc (s *CopilotService) GetOrganizationCopilotSpace(ctx context.Context, org string, spaceNumber int) (*CopilotSpace, *Response, error)\n```\nGetOrganizationCopilotSpace gets a Copilot Space for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#get-an-organization-copilot-space](https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#get-an-organization-copilot-space)\n\n```go\nfunc (s *CopilotService) GetOrganizationDailyMetricsReport(ctx context.Context, org string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetOrganizationDailyMetricsReport gets a report containing Copilot metrics for a single day for an organization.\n\nUse DownloadDailyMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-usage-metrics-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-usage-metrics-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetOrganizationMetrics(ctx context.Context, org string, opts *CopilotMetricsListOptions) ([]*CopilotMetrics, *Response, error)\n```\nGetOrganizationMetrics gets Copilot usage metrics for an organization.\n\nDeprecated: This endpoint was closed down on April 2, 2026 for github.com. It may still be available for GitHub Enterprise Server. Use GetOrganizationDailyMetricsReport or GetOrganizationMetricsReport instead.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-organization](https://docs.github.com/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-organization)\n\n```go\nfunc (s *CopilotService) GetOrganizationMetricsReport(ctx context.Context, org string) (*CopilotMetricsReport, *Response, error)\n```\nGetOrganizationMetricsReport gets a report containing Copilot metrics for a 28-day rolling window for an organization.\n\nUse DownloadPeriodicMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-usage-metrics](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-usage-metrics)\n\n```go\nfunc (s *CopilotService) GetOrganizationRepositoriesDailyMetricsReport(ctx context.Context, org string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetOrganizationRepositoriesDailyMetricsReport gets a report containing Copilot repository-level pull request metrics for a single day for an organization.\n\nUse DownloadRepositoryDailyMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-repository-report-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-repository-report-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetOrganizationTeamMetrics(ctx context.Context, org, team string, opts *CopilotMetricsListOptions) ([]*CopilotMetrics, *Response, error)\n```\nGetOrganizationTeamMetrics gets Copilot usage metrics for an organization team.\n\nDeprecated: This endpoint was closed down on April 2, 2026 for github.com. It may still be available for GitHub Enterprise Server. Use GetOrganizationDailyMetricsReport or GetOrganizationMetricsReport instead.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-a-team](https://docs.github.com/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-a-team)\n\n```go\nfunc (s *CopilotService) GetOrganizationUserTeamsDailyMetricsReport(ctx context.Context, org string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetOrganizationUserTeamsDailyMetricsReport gets a report containing Copilot user-team membership data for a single day for an organization.\n\nUse DownloadUserTeamsDailyMetrics to decode the payloads served at the returned download links. Join these records with per-user usage metrics on user\\_id, day, and organization\\_id to construct team-level metrics.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-user-teams-report-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-user-teams-report-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetOrganizationUsersDailyMetricsReport(ctx context.Context, org string, opts *CopilotMetricsReportOptions) (*CopilotDailyMetricsReport, *Response, error)\n```\nGetOrganizationUsersDailyMetricsReport gets a report containing Copilot user metrics for a single day for an organization.\n\nUse DownloadUserDailyMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-users-usage-metrics-for-a-specific-day](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-users-usage-metrics-for-a-specific-day)\n\n```go\nfunc (s *CopilotService) GetOrganizationUsersMetricsReport(ctx context.Context, org string) (*CopilotMetricsReport, *Response, error)\n```\nGetOrganizationUsersMetricsReport gets a report containing Copilot user metrics for a 28-day rolling window for an organization.\n\nUse DownloadUserPeriodicMetrics to decode the payloads served at the returned download links.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-users-usage-metrics](https://docs.github.com/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28#get-copilot-organization-users-usage-metrics)\n\n```go\nfunc (s *CopilotService) GetSeatDetails(ctx context.Context, org, user string) (*CopilotSeatDetails, *Response, error)\n```\nGetSeatDetails gets Copilot for Business seat assignment details for a user.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#get-copilot-seat-assignment-details-for-a-user](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#get-copilot-seat-assignment-details-for-a-user)\n\n```go\nfunc (s *CopilotService) ListCopilotEnterpriseSeats(ctx context.Context, enterprise string, opts *ListOptions) (*ListCopilotSeatsResponse, *Response, error)\n```\nListCopilotEnterpriseSeats lists Copilot for Business seat assignments for an enterprise.\n\nTo paginate through all seats, populate 'Page' with the number of the last page.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-enterprise)\n\n```go\nfunc (s *CopilotService) ListCopilotEnterpriseSeatsIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*CopilotSeatDetails, error]\n```\nListCopilotEnterpriseSeatsIter returns an iterator that paginates through all results of ListCopilotEnterpriseSeats.\n\n```go\nfunc (s *CopilotService) ListCopilotSeats(ctx context.Context, org string, opts *ListOptions) (*ListCopilotSeatsResponse, *Response, error)\n```\nListCopilotSeats lists Copilot for Business seat assignments for an organization.\n\nTo paginate through all seats, populate 'Page' with the number of the last page.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-organization](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#list-all-copilot-seat-assignments-for-an-organization)\n\n```go\nfunc (s *CopilotService) ListCopilotSeatsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*CopilotSeatDetails, error]\n```\nListCopilotSeatsIter returns an iterator that paginates through all results of ListCopilotSeats.\n\n```go\nfunc (s *CopilotService) ListOrganizationCodingAgentRepositories(ctx context.Context, org string, opts *ListOptions) (*ListOrganizationCopilotCodingAgentRepositoriesResponse, *Response, error)\n```\nListOrganizationCodingAgentRepositories lists repositories enabled for the Copilot coding agent in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-coding-agent-management?apiVersion=2022-11-28#list-repositories-enabled-for-copilot-cloud-agent-in-an-organization](https://docs.github.com/rest/copilot/copilot-coding-agent-management?apiVersion=2022-11-28#list-repositories-enabled-for-copilot-cloud-agent-in-an-organization)\n\n```go\nfunc (s *CopilotService) ListOrganizationCodingAgentRepositoriesIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListOrganizationCodingAgentRepositoriesIter returns an iterator that paginates through all results of ListOrganizationCodingAgentRepositories.\n\n```go\nfunc (s *CopilotService) ListOrganizationCopilotSpaces(ctx context.Context, org string, opts *ListCursorOptions) (*CopilotSpacesList, *Response, error)\n```\nListOrganizationCopilotSpaces lists Copilot Spaces for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#list-organization-copilot-spaces](https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#list-organization-copilot-spaces)\n\n```go\nfunc (s *CopilotService) ListOrganizationCopilotSpacesIter(ctx context.Context, org string, opts *ListCursorOptions) iter.Seq2[*CopilotSpace, error]\n```\nListOrganizationCopilotSpacesIter returns an iterator that paginates through all results of ListOrganizationCopilotSpaces.\n\n```go\nfunc (s *CopilotService) RemoveCopilotTeams(ctx context.Context, org string, teamNames []string) (*SeatCancellations, *Response, error)\n```\nRemoveCopilotTeams removes teams from the Copilot for Business subscription for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#remove-teams-from-the-copilot-subscription-for-an-organization](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#remove-teams-from-the-copilot-subscription-for-an-organization)\n\n```go\nfunc (s *CopilotService) RemoveCopilotUsers(ctx context.Context, org string, users []string) (*SeatCancellations, *Response, error)\n```\nRemoveCopilotUsers removes users from the Copilot for Business subscription for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#remove-users-from-the-copilot-subscription-for-an-organization](https://docs.github.com/rest/copilot/copilot-user-management?apiVersion=2022-11-28#remove-users-from-the-copilot-subscription-for-an-organization)\n\n```go\nfunc (s *CopilotService) UpdateOrganizationCopilotSpace(ctx context.Context, org string, spaceNumber int, body UpdateOrganizationCopilotSpaceRequest) (*CopilotSpace, *Response, error)\n```\nUpdateOrganizationCopilotSpace updates a Copilot Space for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#set-an-organization-copilot-space](https://docs.github.com/rest/copilot-spaces/copilot-spaces?apiVersion=2022-11-28#set-an-organization-copilot-space)\n\n```go\ntype CopilotSpace struct {\n\tID                  int64   `json:\"id\"`\n\tNumber              int     `json:\"number\"`\n\tName                string  `json:\"name\"`\n\tDescription         *string `json:\"description,omitempty\"`\n\tGeneralInstructions *string `json:\"general_instructions,omitempty\"`\n\t// Owner can either be a User or an Organization.\n\tOwner               any                     `json:\"owner\"`\n\tCreator             User                    `json:\"creator\"`\n\tCreatedAt           Timestamp               `json:\"created_at\"`\n\tUpdatedAt           Timestamp               `json:\"updated_at\"`\n\tHTMLURL             string                  `json:\"html_url\"`\n\tAPIURL              string                  `json:\"api_url\"`\n\tBaseRole            string                  `json:\"base_role\"`\n\tResourcesAttributes []*CopilotSpaceResource `json:\"resources_attributes,omitempty\"`\n}\n```\nCopilotSpace represents a Copilot Space.\n\n```go\nfunc (c *CopilotSpace) GetAPIURL() string\n```\nGetAPIURL returns the APIURL field.\n\n```go\nfunc (c *CopilotSpace) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field.\n\n```go\nfunc (c *CopilotSpace) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (c *CopilotSpace) GetCreator() User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (c *CopilotSpace) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpace) GetGeneralInstructions() string\n```\nGetGeneralInstructions returns the GeneralInstructions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpace) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field.\n\n```go\nfunc (c *CopilotSpace) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (c *CopilotSpace) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CopilotSpace) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (c *CopilotSpace) GetOwner() any\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (c *CopilotSpace) GetResourcesAttributes() []*CopilotSpaceResource\n```\nGetResourcesAttributes returns the ResourcesAttributes slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotSpace) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field.\n\n```go\nfunc (c *CopilotSpace) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface.\n\n```go\ntype CopilotSpaceMetadata struct {\n\tRepositoryID            *int64  `json:\"repository_id,omitempty\"`\n\tFilePath                *string `json:\"file_path,omitempty\"`\n\tText                    *string `json:\"text,omitempty\"`\n\tName                    *string `json:\"name,omitempty\"`\n\tNumber                  *int    `json:\"number,omitempty\"`\n\tCopilotChatAttachmentID *int64  `json:\"copilot_chat_attachment_id,omitempty\"`\n\tMediaType               *string `json:\"media_type,omitempty\"`\n\tURL                     *string `json:\"url,omitempty\"`\n\tHeight                  *int    `json:\"height,omitempty\"`\n\tWidth                   *int    `json:\"width,omitempty\"`\n}\n```\nCopilotSpaceMetadata represents metadata specific to a Copilot Space resource type.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetCopilotChatAttachmentID() int64\n```\nGetCopilotChatAttachmentID returns the CopilotChatAttachmentID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetFilePath() string\n```\nGetFilePath returns the FilePath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetHeight() int\n```\nGetHeight returns the Height field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetMediaType() string\n```\nGetMediaType returns the MediaType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetText() string\n```\nGetText returns the Text field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceMetadata) GetWidth() int\n```\nGetWidth returns the Width field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotSpaceResource struct {\n\tID                      *int64                `json:\"id,omitempty\"`\n\tResourceType            *string               `json:\"resource_type,omitempty\"`\n\tMetadata                *CopilotSpaceMetadata `json:\"metadata,omitempty\"`\n\tCopilotChatAttachmentID *int64                `json:\"copilot_chat_attachment_id,omitempty\"`\n\tCreatedAt               *Timestamp            `json:\"created_at,omitempty\"`\n\tUpdatedAt               *Timestamp            `json:\"updated_at,omitempty\"`\n}\n```\nCopilotSpaceResource represents a resource attached to a Copilot Space.\n\n```go\nfunc (c *CopilotSpaceResource) GetCopilotChatAttachmentID() int64\n```\nGetCopilotChatAttachmentID returns the CopilotChatAttachmentID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceResource) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceResource) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceResource) GetMetadata() *CopilotSpaceMetadata\n```\nGetMetadata returns the Metadata field.\n\n```go\nfunc (c *CopilotSpaceResource) GetResourceType() string\n```\nGetResourceType returns the ResourceType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotSpaceResource) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotSpacesList struct {\n\tSpaces []*CopilotSpace `json:\"spaces\"`\n}\n```\nCopilotSpacesList represents a list of Copilot Spaces.\n\n```go\nfunc (c *CopilotSpacesList) GetSpaces() []*CopilotSpace\n```\nGetSpaces returns the Spaces slice if it's non-nil, nil otherwise.\n\n```go\ntype CopilotUserDailyMetrics struct {\n\tUserID                        int      `json:\"user_id\"`\n\tUserLogin                     string   `json:\"user_login\"`\n\tDay                           string   `json:\"day\"`\n\tOrganizationID                *string  `json:\"organization_id,omitempty\"`\n\tEnterpriseID                  *string  `json:\"enterprise_id,omitempty\"`\n\tAICreditsUsed                 *float64 `json:\"ai_credits_used,omitempty\"`\n\tUserInitiatedInteractionCount *int     `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsChatPanel\n\tCodeGenerationActivityCount  *int                             `json:\"code_generation_activity_count,omitempty\"`\n\tCodeAcceptanceActivityCount  *int                             `json:\"code_acceptance_activity_count,omitempty\"`\n\tTotalsByIDE                  []*CopilotUserMetricsIDE         `json:\"totals_by_ide,omitempty\"`\n\tTotalsByFeature              []*CopilotMetricsFeature         `json:\"totals_by_feature,omitempty\"`\n\tTotalsByLanguageFeature      []*CopilotMetricsLanguageFeature `json:\"totals_by_language_feature,omitempty\"`\n\tTotalsByLanguageModel        []*CopilotMetricsLanguageModel   `json:\"totals_by_language_model,omitempty\"`\n\tTotalsByModelFeature         []*CopilotMetricsModelFeature    `json:\"totals_by_model_feature,omitempty\"`\n\tTotalsByCLI                  *CopilotMetricsCLI               `json:\"totals_by_cli,omitempty\"`\n\tTotalsByCopilotApp           *CopilotMetricsCopilotApp        `json:\"totals_by_copilot_app,omitempty\"`\n\tTotalsBy3rdPartyAgent        []*CopilotMetricsThirdPartyAgent `json:\"totals_by_3rd_party_agent,omitempty\"`\n\tAIAdoptionPhase              *CopilotMetricsAIAdoptionPhase   `json:\"ai_adoption_phase,omitempty\"`\n\tUsedAgent                    *bool                            `json:\"used_agent,omitempty\"`\n\tUsedChat                     *bool                            `json:\"used_chat,omitempty\"`\n\tUsedCLI                      *bool                            `json:\"used_cli,omitempty\"`\n\tUsedCopilotApp               *bool                            `json:\"used_copilot_app,omitempty\"`\n\tUsedCopilotCloudAgent        *bool                            `json:\"used_copilot_cloud_agent,omitempty\"`\n\tUsedCopilotCodeReviewActive  *bool                            `json:\"used_copilot_code_review_active,omitempty\"`\n\tUsedCopilotCodeReviewPassive *bool                            `json:\"used_copilot_code_review_passive,omitempty\"`\n\tUsedCopilotCodingAgent       *bool                            `json:\"used_copilot_coding_agent,omitempty\"`\n\tLOCSuggestedToAddSum         *int                             `json:\"loc_suggested_to_add_sum,omitempty\"`\n\tLOCSuggestedToDeleteSum      *int                             `json:\"loc_suggested_to_delete_sum,omitempty\"`\n\tLOCAddedSum                  *int                             `json:\"loc_added_sum,omitempty\"`\n\tLOCDeletedSum                *int                             `json:\"loc_deleted_sum,omitempty\"`\n}\n```\nCopilotUserDailyMetrics represents a single user's per-day Copilot usage metrics record from a 1-day user metrics report. User metrics reports are served as newline-delimited JSON.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetAIAdoptionPhase() *CopilotMetricsAIAdoptionPhase\n```\nGetAIAdoptionPhase returns the AIAdoptionPhase field.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetAICreditsUsed() float64\n```\nGetAICreditsUsed returns the AICreditsUsed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetCodeAcceptanceActivityCount() int\n```\nGetCodeAcceptanceActivityCount returns the CodeAcceptanceActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetCodeGenerationActivityCount() int\n```\nGetCodeGenerationActivityCount returns the CodeGenerationActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetDay() string\n```\nGetDay returns the Day field.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetEnterpriseID() string\n```\nGetEnterpriseID returns the EnterpriseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetLOCAddedSum() int\n```\nGetLOCAddedSum returns the LOCAddedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetLOCDeletedSum() int\n```\nGetLOCDeletedSum returns the LOCDeletedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetLOCSuggestedToAddSum() int\n```\nGetLOCSuggestedToAddSum returns the LOCSuggestedToAddSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetLOCSuggestedToDeleteSum() int\n```\nGetLOCSuggestedToDeleteSum returns the LOCSuggestedToDeleteSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetOrganizationID() string\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsBy3rdPartyAgent() []*CopilotMetricsThirdPartyAgent\n```\nGetTotalsBy3rdPartyAgent returns the TotalsBy3rdPartyAgent slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByCLI() *CopilotMetricsCLI\n```\nGetTotalsByCLI returns the TotalsByCLI field.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByCopilotApp() *CopilotMetricsCopilotApp\n```\nGetTotalsByCopilotApp returns the TotalsByCopilotApp field.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByFeature() []*CopilotMetricsFeature\n```\nGetTotalsByFeature returns the TotalsByFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByIDE() []*CopilotUserMetricsIDE\n```\nGetTotalsByIDE returns the TotalsByIDE slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByLanguageFeature() []*CopilotMetricsLanguageFeature\n```\nGetTotalsByLanguageFeature returns the TotalsByLanguageFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByLanguageModel() []*CopilotMetricsLanguageModel\n```\nGetTotalsByLanguageModel returns the TotalsByLanguageModel slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetTotalsByModelFeature() []*CopilotMetricsModelFeature\n```\nGetTotalsByModelFeature returns the TotalsByModelFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedAgent() bool\n```\nGetUsedAgent returns the UsedAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedCLI() bool\n```\nGetUsedCLI returns the UsedCLI field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedChat() bool\n```\nGetUsedChat returns the UsedChat field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedCopilotApp() bool\n```\nGetUsedCopilotApp returns the UsedCopilotApp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedCopilotCloudAgent() bool\n```\nGetUsedCopilotCloudAgent returns the UsedCopilotCloudAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedCopilotCodeReviewActive() bool\n```\nGetUsedCopilotCodeReviewActive returns the UsedCopilotCodeReviewActive field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedCopilotCodeReviewPassive() bool\n```\nGetUsedCopilotCodeReviewPassive returns the UsedCopilotCodeReviewPassive field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUsedCopilotCodingAgent() bool\n```\nGetUsedCopilotCodingAgent returns the UsedCopilotCodingAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUserID() int\n```\nGetUserID returns the UserID field.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserDailyMetrics) GetUserLogin() string\n```\nGetUserLogin returns the UserLogin field.\n\n```go\ntype CopilotUserMetricsIDE struct {\n\tIDE                           string `json:\"ide\"`\n\tUserInitiatedInteractionCount *int   `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsCodeActivity\n\tLastKnownPluginVersion *CopilotUserMetricsPluginVersion `json:\"last_known_plugin_version,omitempty\"`\n\tLastKnownIDEVersion    *CopilotUserMetricsIDEVersion    `json:\"last_known_ide_version,omitempty\"`\n}\n```\nCopilotUserMetricsIDE represents per-IDE totals for a single Copilot user in a user metrics report.\n\n```go\nfunc (c *CopilotUserMetricsIDE) GetIDE() string\n```\nGetIDE returns the IDE field.\n\n```go\nfunc (c *CopilotUserMetricsIDE) GetLastKnownIDEVersion() *CopilotUserMetricsIDEVersion\n```\nGetLastKnownIDEVersion returns the LastKnownIDEVersion field.\n\n```go\nfunc (c *CopilotUserMetricsIDE) GetLastKnownPluginVersion() *CopilotUserMetricsPluginVersion\n```\nGetLastKnownPluginVersion returns the LastKnownPluginVersion field.\n\n```go\nfunc (c *CopilotUserMetricsIDE) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotUserMetricsIDEVersion struct {\n\tSampledAt  *Timestamp `json:\"sampled_at,omitempty\"`\n\tIDEVersion string     `json:\"ide_version\"`\n}\n```\nCopilotUserMetricsIDEVersion represents the last known IDE version used by a Copilot user.\n\n```go\nfunc (c *CopilotUserMetricsIDEVersion) GetIDEVersion() string\n```\nGetIDEVersion returns the IDEVersion field.\n\n```go\nfunc (c *CopilotUserMetricsIDEVersion) GetSampledAt() Timestamp\n```\nGetSampledAt returns the SampledAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotUserMetricsPluginVersion struct {\n\tSampledAt     *Timestamp `json:\"sampled_at,omitempty\"`\n\tPlugin        string     `json:\"plugin\"`\n\tPluginVersion string     `json:\"plugin_version\"`\n}\n```\nCopilotUserMetricsPluginVersion represents the last known plugin version used in an IDE by a Copilot user.\n\n```go\nfunc (c *CopilotUserMetricsPluginVersion) GetPlugin() string\n```\nGetPlugin returns the Plugin field.\n\n```go\nfunc (c *CopilotUserMetricsPluginVersion) GetPluginVersion() string\n```\nGetPluginVersion returns the PluginVersion field.\n\n```go\nfunc (c *CopilotUserMetricsPluginVersion) GetSampledAt() Timestamp\n```\nGetSampledAt returns the SampledAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CopilotUserPeriodicMetrics struct {\n\tReportStartDay                string   `json:\"report_start_day\"`\n\tReportEndDay                  string   `json:\"report_end_day\"`\n\tDay                           string   `json:\"day\"`\n\tOrganizationID                *string  `json:\"organization_id,omitempty\"`\n\tEnterpriseID                  *string  `json:\"enterprise_id,omitempty\"`\n\tUserID                        int      `json:\"user_id\"`\n\tUserLogin                     string   `json:\"user_login\"`\n\tAICreditsUsed                 *float64 `json:\"ai_credits_used,omitempty\"`\n\tUserInitiatedInteractionCount *int     `json:\"user_initiated_interaction_count,omitempty\"`\n\tCopilotMetricsChatPanel\n\tCodeGenerationActivityCount  *int                             `json:\"code_generation_activity_count,omitempty\"`\n\tCodeAcceptanceActivityCount  *int                             `json:\"code_acceptance_activity_count,omitempty\"`\n\tTotalsByIDE                  []*CopilotUserMetricsIDE         `json:\"totals_by_ide,omitempty\"`\n\tTotalsByFeature              []*CopilotMetricsFeature         `json:\"totals_by_feature,omitempty\"`\n\tTotalsByLanguageFeature      []*CopilotMetricsLanguageFeature `json:\"totals_by_language_feature,omitempty\"`\n\tTotalsByLanguageModel        []*CopilotMetricsLanguageModel   `json:\"totals_by_language_model,omitempty\"`\n\tTotalsByModelFeature         []*CopilotMetricsModelFeature    `json:\"totals_by_model_feature,omitempty\"`\n\tTotalsByCLI                  *CopilotMetricsCLI               `json:\"totals_by_cli,omitempty\"`\n\tTotalsByCopilotApp           *CopilotMetricsCopilotApp        `json:\"totals_by_copilot_app,omitempty\"`\n\tTotalsBy3rdPartyAgent        []*CopilotMetricsThirdPartyAgent `json:\"totals_by_3rd_party_agent,omitempty\"`\n\tAIAdoptionPhase              *CopilotMetricsAIAdoptionPhase   `json:\"ai_adoption_phase,omitempty\"`\n\tUsedAgent                    *bool                            `json:\"used_agent,omitempty\"`\n\tUsedChat                     *bool                            `json:\"used_chat,omitempty\"`\n\tUsedCLI                      *bool                            `json:\"used_cli,omitempty\"`\n\tUsedCopilotApp               *bool                            `json:\"used_copilot_app,omitempty\"`\n\tUsedCopilotCloudAgent        *bool                            `json:\"used_copilot_cloud_agent,omitempty\"`\n\tUsedCopilotCodeReviewActive  *bool                            `json:\"used_copilot_code_review_active,omitempty\"`\n\tUsedCopilotCodeReviewPassive *bool                            `json:\"used_copilot_code_review_passive,omitempty\"`\n\tUsedCopilotCodingAgent       *bool                            `json:\"used_copilot_coding_agent,omitempty\"`\n\tLOCSuggestedToAddSum         *int                             `json:\"loc_suggested_to_add_sum,omitempty\"`\n\tLOCSuggestedToDeleteSum      *int                             `json:\"loc_suggested_to_delete_sum,omitempty\"`\n\tLOCAddedSum                  *int                             `json:\"loc_added_sum,omitempty\"`\n\tLOCDeletedSum                *int                             `json:\"loc_deleted_sum,omitempty\"`\n}\n```\nCopilotUserPeriodicMetrics represents a single user's per-day Copilot usage metrics record from a multi-day (e.g. 28-day rolling) user metrics report. User metrics reports are served as newline-delimited JSON.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetAIAdoptionPhase() *CopilotMetricsAIAdoptionPhase\n```\nGetAIAdoptionPhase returns the AIAdoptionPhase field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetAICreditsUsed() float64\n```\nGetAICreditsUsed returns the AICreditsUsed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetCodeAcceptanceActivityCount() int\n```\nGetCodeAcceptanceActivityCount returns the CodeAcceptanceActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetCodeGenerationActivityCount() int\n```\nGetCodeGenerationActivityCount returns the CodeGenerationActivityCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetDay() string\n```\nGetDay returns the Day field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetEnterpriseID() string\n```\nGetEnterpriseID returns the EnterpriseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetLOCAddedSum() int\n```\nGetLOCAddedSum returns the LOCAddedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetLOCDeletedSum() int\n```\nGetLOCDeletedSum returns the LOCDeletedSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetLOCSuggestedToAddSum() int\n```\nGetLOCSuggestedToAddSum returns the LOCSuggestedToAddSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetLOCSuggestedToDeleteSum() int\n```\nGetLOCSuggestedToDeleteSum returns the LOCSuggestedToDeleteSum field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetOrganizationID() string\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetReportEndDay() string\n```\nGetReportEndDay returns the ReportEndDay field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetReportStartDay() string\n```\nGetReportStartDay returns the ReportStartDay field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsBy3rdPartyAgent() []*CopilotMetricsThirdPartyAgent\n```\nGetTotalsBy3rdPartyAgent returns the TotalsBy3rdPartyAgent slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByCLI() *CopilotMetricsCLI\n```\nGetTotalsByCLI returns the TotalsByCLI field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByCopilotApp() *CopilotMetricsCopilotApp\n```\nGetTotalsByCopilotApp returns the TotalsByCopilotApp field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByFeature() []*CopilotMetricsFeature\n```\nGetTotalsByFeature returns the TotalsByFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByIDE() []*CopilotUserMetricsIDE\n```\nGetTotalsByIDE returns the TotalsByIDE slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByLanguageFeature() []*CopilotMetricsLanguageFeature\n```\nGetTotalsByLanguageFeature returns the TotalsByLanguageFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByLanguageModel() []*CopilotMetricsLanguageModel\n```\nGetTotalsByLanguageModel returns the TotalsByLanguageModel slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetTotalsByModelFeature() []*CopilotMetricsModelFeature\n```\nGetTotalsByModelFeature returns the TotalsByModelFeature slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedAgent() bool\n```\nGetUsedAgent returns the UsedAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedCLI() bool\n```\nGetUsedCLI returns the UsedCLI field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedChat() bool\n```\nGetUsedChat returns the UsedChat field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedCopilotApp() bool\n```\nGetUsedCopilotApp returns the UsedCopilotApp field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedCopilotCloudAgent() bool\n```\nGetUsedCopilotCloudAgent returns the UsedCopilotCloudAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedCopilotCodeReviewActive() bool\n```\nGetUsedCopilotCodeReviewActive returns the UsedCopilotCodeReviewActive field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedCopilotCodeReviewPassive() bool\n```\nGetUsedCopilotCodeReviewPassive returns the UsedCopilotCodeReviewPassive field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUsedCopilotCodingAgent() bool\n```\nGetUsedCopilotCodingAgent returns the UsedCopilotCodingAgent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUserID() int\n```\nGetUserID returns the UserID field.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUserInitiatedInteractionCount() int\n```\nGetUserInitiatedInteractionCount returns the UserInitiatedInteractionCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserPeriodicMetrics) GetUserLogin() string\n```\nGetUserLogin returns the UserLogin field.\n\n```go\ntype CopilotUserTeamsDailyMetrics struct {\n\tUserID         int64   `json:\"user_id\"`\n\tUserLogin      string  `json:\"user_login\"`\n\tDay            string  `json:\"day\"`\n\tOrganizationID *string `json:\"organization_id,omitempty\"`\n\tEnterpriseID   *string `json:\"enterprise_id,omitempty\"`\n\tTeamID         int64   `json:\"team_id\"`\n\tSlug           string  `json:\"slug\"`\n}\n```\nCopilotUserTeamsDailyMetrics represents a user-team membership record from a user-teams-1-day report. These records are joined with per-user usage metrics to construct team-level metrics. Teams with fewer than 5 seated Copilot users are omitted from the report. User-teams reports are served as newline-delimited JSON.\n\nGitHub API docs: [https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#user-teams-fields](https://docs.github.com/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#user-teams-fields)\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetDay() string\n```\nGetDay returns the Day field.\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetEnterpriseID() string\n```\nGetEnterpriseID returns the EnterpriseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetOrganizationID() string\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetSlug() string\n```\nGetSlug returns the Slug field.\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetTeamID() int64\n```\nGetTeamID returns the TeamID field.\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetUserID() int64\n```\nGetUserID returns the UserID field.\n\n```go\nfunc (c *CopilotUserTeamsDailyMetrics) GetUserLogin() string\n```\nGetUserLogin returns the UserLogin field.\n\n```go\ntype CostCenter struct {\n\tID                string                `json:\"id\"`\n\tName              string                `json:\"name\"`\n\tResources         []*CostCenterResource `json:\"resources\"`\n\tState             *string               `json:\"state,omitempty\"`\n\tAzureSubscription *string               `json:\"azure_subscription,omitempty\"`\n}\n```\nCostCenter represents an enterprise cost center.\n\n```go\nfunc (c *CostCenter) GetAzureSubscription() string\n```\nGetAzureSubscription returns the AzureSubscription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CostCenter) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (c *CostCenter) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CostCenter) GetResources() []*CostCenterResource\n```\nGetResources returns the Resources slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CostCenter) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype CostCenterRequest struct {\n\tName string `json:\"name\"`\n}\n```\nCostCenterRequest represents a request to create or update a cost center.\n\n```go\nfunc (c *CostCenterRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype CostCenterResource struct {\n\tType string `json:\"type\"`\n\tName string `json:\"name\"`\n}\n```\nCostCenterResource represents a resource assigned to a cost center.\n\n```go\nfunc (c *CostCenterResource) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CostCenterResource) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype CostCenterResourceRequest struct {\n\tUsers         []string `json:\"users,omitempty\"`\n\tOrganizations []string `json:\"organizations,omitempty\"`\n\tRepositories  []string `json:\"repositories,omitempty\"`\n}\n```\nCostCenterResourceRequest represents a request to add or remove resources from a cost center.\n\n```go\nfunc (c *CostCenterResourceRequest) GetOrganizations() []string\n```\nGetOrganizations returns the Organizations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CostCenterResourceRequest) GetRepositories() []string\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CostCenterResourceRequest) GetUsers() []string\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\n\n```go\ntype CostCenters struct {\n\tCostCenters []*CostCenter `json:\"costCenters,omitempty\"`\n}\n```\nCostCenters represents a list of cost centers.\n\n```go\nfunc (c *CostCenters) GetCostCenters() []*CostCenter\n```\nGetCostCenters returns the CostCenters slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateActionsPolicyRequest struct {\n\tName        string                   `json:\"name\"`\n\tEnforcement RulesetEnforcement       `json:\"enforcement\"`\n\tConditions  *ActionsPolicyConditions `json:\"conditions,omitempty\"`\n\tRules       []*ActionsPolicyRule     `json:\"rules,omitzero\"`\n}\n```\nCreateActionsPolicyRequest represents a request to create a GitHub Actions policy.\n\n```go\nfunc (c *CreateActionsPolicyRequest) GetConditions() *ActionsPolicyConditions\n```\nGetConditions returns the Conditions field.\n\n```go\nfunc (c *CreateActionsPolicyRequest) GetEnforcement() RulesetEnforcement\n```\nGetEnforcement returns the Enforcement field.\n\n```go\nfunc (c *CreateActionsPolicyRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateActionsPolicyRequest) GetRules() []*ActionsPolicyRule\n```\nGetRules returns the Rules slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateAgentTaskRequest struct {\n\t// Prompt is the user's prompt for the agent.\n\tPrompt string `json:\"prompt\"`\n\n\t// Model is the model to use for this task.\n\tModel *string `json:\"model,omitempty\"`\n\n\t// CreatePullRequest indicates whether to create a pull request.\n\tCreatePullRequest *bool `json:\"create_pull_request,omitempty\"`\n\n\t// HeadRef is the head ref for the new branch or pull request.\n\tHeadRef *string `json:\"head_ref,omitempty\"`\n\n\t// BaseRef is the base ref for the new branch or pull request.\n\tBaseRef *string `json:\"base_ref,omitempty\"`\n}\n```\nCreateAgentTaskRequest represents the parameters for creating an agent task.\n\n```go\nfunc (c *CreateAgentTaskRequest) GetBaseRef() string\n```\nGetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateAgentTaskRequest) GetCreatePullRequest() bool\n```\nGetCreatePullRequest returns the CreatePullRequest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateAgentTaskRequest) GetHeadRef() string\n```\nGetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateAgentTaskRequest) GetModel() string\n```\nGetModel returns the Model field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateAgentTaskRequest) GetPrompt() string\n```\nGetPrompt returns the Prompt field.\n\n```go\ntype CreateArtifactDeploymentRequest struct {\n\tName                string                  `json:\"name\"`\n\tDigest              string                  `json:\"digest\"`\n\tVersion             *string                 `json:\"version,omitempty\"`\n\tStatus              string                  `json:\"status\"`\n\tLogicalEnvironment  string                  `json:\"logical_environment\"`\n\tPhysicalEnvironment *string                 `json:\"physical_environment,omitempty\"`\n\tCluster             *string                 `json:\"cluster,omitempty\"`\n\tDeploymentName      string                  `json:\"deployment_name\"`\n\tTags                map[string]string       `json:\"tags,omitempty\"`\n\tRuntimeRisks        []DeploymentRuntimeRisk `json:\"runtime_risks,omitempty\"`\n\tGithubRepository    *string                 `json:\"github_repository,omitempty\"`\n}\n```\nCreateArtifactDeploymentRequest represents the request body for creating a deployment record.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetCluster() string\n```\nGetCluster returns the Cluster field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetDeploymentName() string\n```\nGetDeploymentName returns the DeploymentName field.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetDigest() string\n```\nGetDigest returns the Digest field.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetGithubRepository() string\n```\nGetGithubRepository returns the GithubRepository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetLogicalEnvironment() string\n```\nGetLogicalEnvironment returns the LogicalEnvironment field.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetPhysicalEnvironment() string\n```\nGetPhysicalEnvironment returns the PhysicalEnvironment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetRuntimeRisks() []DeploymentRuntimeRisk\n```\nGetRuntimeRisks returns the RuntimeRisks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetStatus() string\n```\nGetStatus returns the Status field.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetTags() map[string]string\n```\nGetTags returns the Tags map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (c *CreateArtifactDeploymentRequest) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateArtifactStorageRequest struct {\n\tName             string  `json:\"name\"`\n\tDigest           string  `json:\"digest\"`\n\tVersion          *string `json:\"version,omitempty\"`\n\tArtifactURL      *string `json:\"artifact_url,omitempty\"`\n\tPath             *string `json:\"path,omitempty\"`\n\tRegistryURL      string  `json:\"registry_url\"`\n\tRepository       *string `json:\"repository,omitempty\"`\n\tStatus           *string `json:\"status,omitempty\"`\n\tGithubRepository *string `json:\"github_repository,omitempty\"`\n}\n```\nCreateArtifactStorageRequest represents the request body for creating a storage record.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetArtifactURL() string\n```\nGetArtifactURL returns the ArtifactURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetDigest() string\n```\nGetDigest returns the Digest field.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetGithubRepository() string\n```\nGetGithubRepository returns the GithubRepository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetRegistryURL() string\n```\nGetRegistryURL returns the RegistryURL field.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetRepository() string\n```\nGetRepository returns the Repository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateArtifactStorageRequest) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateAutolinkRequest struct {\n\tKeyPrefix      string `json:\"key_prefix\"`\n\tURLTemplate    string `json:\"url_template\"`\n\tIsAlphanumeric *bool  `json:\"is_alphanumeric,omitempty\"`\n}\n```\nCreateAutolinkRequest specifies parameters for RepositoriesService.CreateAutolink method.\n\n```go\nfunc (c *CreateAutolinkRequest) GetIsAlphanumeric() bool\n```\nGetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateAutolinkRequest) GetKeyPrefix() string\n```\nGetKeyPrefix returns the KeyPrefix field.\n\n```go\nfunc (c *CreateAutolinkRequest) GetURLTemplate() string\n```\nGetURLTemplate returns the URLTemplate field.\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) GetActions() []*CheckRunAction\n```\nGetActions returns the Actions slice if it's non-nil, nil otherwise.\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) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field.\n\n```go\nfunc (c *CreateCheckRunOptions) GetName() string\n```\nGetName returns the Name field.\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 suite.\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\nfunc (c *CreateCheckSuiteOptions) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field.\n\n```go\ntype CreateCodespaceForUserRequest struct {\n\tPullRequest *CodespacePullRequestOptions `json:\"pull_request,omitempty\"`\n\t// RepositoryID represents the repository ID for this codespace.\n\tRepositoryID               *int64  `json:\"repository_id,omitempty\"`\n\tRef                        *string `json:\"ref,omitempty\"`\n\tGeo                        *string `json:\"geo,omitempty\"`\n\tClientIP                   *string `json:\"client_ip,omitempty\"`\n\tRetentionPeriodMinutes     *int    `json:\"retention_period_minutes,omitempty\"`\n\tLocation                   *string `json:\"location,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}\n```\nCreateCodespaceForUserRequest represents a request to create a codespace for the authenticated user.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetClientIP() string\n```\nGetClientIP returns the ClientIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetDevcontainerPath() string\n```\nGetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetGeo() string\n```\nGetGeo returns the Geo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetIdleTimeoutMinutes() int\n```\nGetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetMachine() string\n```\nGetMachine returns the Machine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetMultiRepoPermissionsOptOut() bool\n```\nGetMultiRepoPermissionsOptOut returns the MultiRepoPermissionsOptOut field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetPullRequest() *CodespacePullRequestOptions\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetRetentionPeriodMinutes() int\n```\nGetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceForUserRequest) GetWorkingDirectory() string\n```\nGetWorkingDirectory returns the WorkingDirectory field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateCodespaceRequest 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\tLocation               *string `json:\"location,omitempty\"`\n}\n```\nCreateCodespaceRequest represents a request to create a codespace in a repository.\n\n```go\nfunc (c *CreateCodespaceRequest) GetClientIP() string\n```\nGetClientIP returns the ClientIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetDevcontainerPath() string\n```\nGetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetGeo() string\n```\nGetGeo returns the Geo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetIdleTimeoutMinutes() int\n```\nGetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetMachine() string\n```\nGetMachine returns the Machine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetMultiRepoPermissionsOptOut() bool\n```\nGetMultiRepoPermissionsOptOut returns the MultiRepoPermissionsOptOut field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetRetentionPeriodMinutes() int\n```\nGetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCodespaceRequest) GetWorkingDirectory() string\n```\nGetWorkingDirectory returns the WorkingDirectory field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateCommitCommentRequest struct {\n\tBody     string  `json:\"body\"`\n\tPath     *string `json:\"path,omitempty\"`\n\tPosition *int    `json:\"position,omitempty\"`\n\t// Deprecated: Use Position instead.\n\tLine *int `json:\"line,omitempty\"`\n}\n```\nCreateCommitCommentRequest represents a request to create a commit comment.\n\n```go\nfunc (c *CreateCommitCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\nfunc (c *CreateCommitCommentRequest) GetLine() int\n```\nGetLine returns the Line field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCommitCommentRequest) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCommitCommentRequest) GetPosition() int\n```\nGetPosition returns the Position field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateCommitOptions struct {\n\t// CreateCommit will sign the commit with this signer. See MessageSigner doc for more details.\n\t// Ignored on commits where Verification.Signature is defined.\n\tSigner MessageSigner\n}\n```\nCreateCommitOptions specifies optional parameters to creates a new commit in a repository.\n\n```go\nfunc (c *CreateCommitOptions) GetSigner() MessageSigner\n```\nGetSigner returns the Signer field.\n\n```go\ntype CreateCopilotSpaceResourceAttributes struct {\n\tResourceType *string               `json:\"resource_type,omitempty\"`\n\tMetadata     *CopilotSpaceMetadata `json:\"metadata,omitempty\"`\n}\n```\nCreateCopilotSpaceResourceAttributes represents a resource to attach when creating a Copilot Space.\n\n```go\nfunc (c *CreateCopilotSpaceResourceAttributes) GetMetadata() *CopilotSpaceMetadata\n```\nGetMetadata returns the Metadata field.\n\n```go\nfunc (c *CreateCopilotSpaceResourceAttributes) GetResourceType() string\n```\nGetResourceType returns the ResourceType field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateCustomOrgRoleRequest struct {\n\tName        string   `json:\"name\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tPermissions []string `json:\"permissions\"`\n\tBaseRole    *string  `json:\"base_role,omitempty\"` // Can be one of: read, triage, write, maintain, admin\n}\n```\nCreateCustomOrgRoleRequest represents body parameters required to create a custom organization role.\n\n```go\nfunc (c *CreateCustomOrgRoleRequest) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCustomOrgRoleRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCustomOrgRoleRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateCustomOrgRoleRequest) GetPermissions() []string\n```\nGetPermissions returns the Permissions slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateCustomRepoRoleRequest struct {\n\tName        string   `json:\"name\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tBaseRole    string   `json:\"base_role\"`\n\tPermissions []string `json:\"permissions\"`\n}\n```\nCreateCustomRepoRoleRequest represents the parameters to create a custom repository role.\n\n```go\nfunc (c *CreateCustomRepoRoleRequest) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field.\n\n```go\nfunc (c *CreateCustomRepoRoleRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateCustomRepoRoleRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateCustomRepoRoleRequest) GetPermissions() []string\n```\nGetPermissions returns the Permissions slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateDependencyGraphSnapshotRequest struct {\n\tVersion   int                                         `json:\"version\"`\n\tSHA       string                                      `json:\"sha\"`\n\tRef       string                                      `json:\"ref\"`\n\tJob       DependencyGraphSnapshotJob                  `json:\"job\"`\n\tDetector  DependencyGraphSnapshotDetector             `json:\"detector\"`\n\tScanned   Timestamp                                   `json:\"scanned\"`\n\tMetadata  map[string]any                              `json:\"metadata,omitempty\"`\n\tManifests map[string]*DependencyGraphSnapshotManifest `json:\"manifests,omitempty\"`\n}\n```\nCreateDependencyGraphSnapshotRequest represents a request to create a snapshot of a repository's dependencies.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetDetector() DependencyGraphSnapshotDetector\n```\nGetDetector returns the Detector field.\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetJob() DependencyGraphSnapshotJob\n```\nGetJob returns the Job field.\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetMetadata() map[string]any\n```\nGetMetadata returns the Metadata map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetScanned() Timestamp\n```\nGetScanned returns the Scanned field.\n\n```go\nfunc (c *CreateDependencyGraphSnapshotRequest) GetVersion() int\n```\nGetVersion returns the Version field.\n\n```go\ntype CreateDeployKeyRequest struct {\n\tTitle    *string `json:\"title,omitempty\"`\n\tKey      string  `json:\"key\"`\n\tReadOnly *bool   `json:\"read_only,omitempty\"`\n}\n```\nCreateDeployKeyRequest represents a request to create a deploy key.\n\n```go\nfunc (c *CreateDeployKeyRequest) GetKey() string\n```\nGetKey returns the Key field.\n\n```go\nfunc (c *CreateDeployKeyRequest) GetReadOnly() bool\n```\nGetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateDeployKeyRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateDeploymentBranchPolicyRequest struct {\n\tName string  `json:\"name\"`\n\tType *string `json:\"type,omitempty\"`\n}\n```\nCreateDeploymentBranchPolicyRequest represents a request to create a deployment branch policy.\n\n```go\nfunc (c *CreateDeploymentBranchPolicyRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateDeploymentBranchPolicyRequest) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateEnterpriseRunnerGroupRequest struct {\n\tName       string  `json:\"name\"`\n\tVisibility *string `json:\"visibility,omitempty\"`\n\t// List of organization IDs that can access the runner group.\n\tSelectedOrganizationIDs []int64 `json:\"selected_organization_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\t// The identifier of a hosted compute network configuration.\n\tNetworkConfigurationID *string `json:\"network_configuration_id,omitempty\"`\n}\n```\nCreateEnterpriseRunnerGroupRequest represents a request to create a Runner group for an enterprise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetAllowsPublicRepositories() bool\n```\nGetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetRestrictedToWorkflows() bool\n```\nGetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetRunners() []int64\n```\nGetRunners returns the Runners slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetSelectedOrganizationIDs() []int64\n```\nGetSelectedOrganizationIDs returns the SelectedOrganizationIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetSelectedWorkflows() []string\n```\nGetSelectedWorkflows returns the SelectedWorkflows slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateEnterpriseRunnerGroupRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility 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/developers/webhooks-and-events/github-event-types#createevent](https://docs.github.com/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 CreateForkRequest 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```\nCreateForkRequest represents a request to create a fork of a repository.\n\n```go\nfunc (c *CreateForkRequest) GetDefaultBranchOnly() bool\n```\nGetDefaultBranchOnly returns the DefaultBranchOnly field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateForkRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateForkRequest) GetOrganization() string\n```\nGetOrganization returns the Organization field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateGistCommentRequest struct {\n\t// Body is the comment text.\n\tBody string `json:\"body\"`\n}\n```\nCreateGistCommentRequest represents the input for creating a gist comment.\n\n```go\nfunc (c *CreateGistCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\ntype CreateGistFile struct {\n\t// Content is the contents of the file.\n\tContent string `json:\"content\"`\n}\n```\nCreateGistFile represents a file within a CreateGistRequest, keyed by filename in the request's Files map.\n\n```go\nfunc (c *CreateGistFile) GetContent() string\n```\nGetContent returns the Content field.\n\n```go\ntype CreateGistRequest struct {\n\tDescription *string `json:\"description,omitempty\"`\n\tPublic      *bool   `json:\"public,omitempty\"`\n\t// Files is the set of files that make up the gist, keyed by filename.\n\tFiles map[GistFilename]*CreateGistFile `json:\"files\"`\n}\n```\nCreateGistRequest represents the input for creating a gist.\n\n```go\nfunc (c *CreateGistRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateGistRequest) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateHostedRunnerRequest struct {\n\tName           string            `json:\"name\"`\n\tImage          HostedRunnerImage `json:\"image\"`\n\tSize           string            `json:\"size\"`\n\tRunnerGroupID  int64             `json:\"runner_group_id\"`\n\tMaximumRunners *int64            `json:\"maximum_runners,omitempty\"`\n\tEnableStaticIP *bool             `json:\"enable_static_ip,omitempty\"`\n\tImageGen       *bool             `json:\"image_gen,omitempty\"`\n}\n```\nCreateHostedRunnerRequest specifies body parameters to create Hosted Runner configuration.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetEnableStaticIP() bool\n```\nGetEnableStaticIP returns the EnableStaticIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetImage() HostedRunnerImage\n```\nGetImage returns the Image field.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetImageGen() bool\n```\nGetImageGen returns the ImageGen field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetMaximumRunners() int64\n```\nGetMaximumRunners returns the MaximumRunners field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID field.\n\n```go\nfunc (c *CreateHostedRunnerRequest) GetSize() string\n```\nGetSize returns the Size field.\n\n```go\ntype CreateIssueLabelRequest struct {\n\tName        string  `json:\"name\"`\n\tColor       *string `json:\"color,omitempty\"`\n\tDescription *string `json:\"description,omitempty\"`\n}\n```\nCreateIssueLabelRequest represents a request to create a label.\n\n```go\nfunc (c *CreateIssueLabelRequest) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateIssueLabelRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateIssueLabelRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype CreateIssueRequest struct {\n\tTitle            string                    `json:\"title\"`\n\tBody             *string                   `json:\"body,omitempty\"`\n\tLabels           []string                  `json:\"labels,omitempty\"`\n\tAssignee         *string                   `json:\"assignee,omitempty\"`\n\tMilestone        *int                      `json:\"milestone,omitempty\"`\n\tAssignees        []string                  `json:\"assignees,omitempty\"`\n\tType             *string                   `json:\"type,omitempty\"`\n\tIssueFieldValues []*IssueRequestFieldValue `json:\"issue_field_values,omitempty\"`\n}\n```\nCreateIssueRequest represents a request to create an issue. It is separate from Issue above because otherwise Labels and Assignee fail to serialize to the correct JSON.\n\n```go\nfunc (c *CreateIssueRequest) GetAssignee() string\n```\nGetAssignee returns the Assignee field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateIssueRequest) GetAssignees() []string\n```\nGetAssignees returns the Assignees slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateIssueRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateIssueRequest) GetIssueFieldValues() []*IssueRequestFieldValue\n```\nGetIssueFieldValues returns the IssueFieldValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateIssueRequest) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateIssueRequest) GetMilestone() int\n```\nGetMilestone returns the Milestone field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateIssueRequest) GetTitle() string\n```\nGetTitle returns the Title field.\n\n```go\nfunc (c *CreateIssueRequest) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateJITConfigRequest 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```\nCreateJITConfigRequest specifies body parameters to CreateOrgJITConfig, CreateRepoJITConfig, and CreateJITConfig.\n\n```go\nfunc (c *CreateJITConfigRequest) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateJITConfigRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateJITConfigRequest) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID field.\n\n```go\nfunc (c *CreateJITConfigRequest) GetWorkFolder() string\n```\nGetWorkFolder returns the WorkFolder field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateMilestoneRequest struct {\n\tTitle       string     `json:\"title\"`\n\tState       *string    `json:\"state,omitempty\"`\n\tDescription *string    `json:\"description,omitempty\"`\n\tDueOn       *Timestamp `json:\"due_on,omitempty\"`\n}\n```\nCreateMilestoneRequest represents a request to create a milestone.\n\n```go\nfunc (c *CreateMilestoneRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateMilestoneRequest) GetDueOn() Timestamp\n```\nGetDueOn returns the DueOn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateMilestoneRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateMilestoneRequest) GetTitle() string\n```\nGetTitle returns the Title field.\n\n```go\ntype CreateOrUpdateIssueTypesOptions struct {\n\tName        string  `json:\"name\"`                  // Name of the issue type. (Required.)\n\tIsEnabled   bool    `json:\"is_enabled\"`            // Whether or not the issue type is enabled at the organization level. (Required.)\n\tIsPrivate   *bool   `json:\"is_private,omitempty\"`  // Whether or not the issue type is restricted to issues in private repositories. (Optional.)\n\tDescription *string `json:\"description,omitempty\"` // Description of the issue type. (Optional.)\n\tColor       *string `json:\"color,omitempty\"`       // Color for the issue type. Can be one of \"gray\", \"blue\", green \"orange\", \"red\", \"pink\", \"purple\", \"null\". (Optional.)\n}\n```\nCreateOrUpdateIssueTypesOptions represents the parameters for creating or updating an issue type.\n\n```go\nfunc (c *CreateOrUpdateIssueTypesOptions) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrUpdateIssueTypesOptions) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrUpdateIssueTypesOptions) GetIsEnabled() bool\n```\nGetIsEnabled returns the IsEnabled field.\n\n```go\nfunc (c *CreateOrUpdateIssueTypesOptions) GetIsPrivate() bool\n```\nGetIsPrivate returns the IsPrivate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrUpdateIssueTypesOptions) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype CreateOrgInvitationRequest 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\tTeamIDs []int64 `json:\"team_ids,omitempty\"`\n}\n```\nCreateOrgInvitationRequest specifies the request body for OrganizationsService.CreateOrgInvitation.\n\n```go\nfunc (c *CreateOrgInvitationRequest) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrgInvitationRequest) GetInviteeID() int64\n```\nGetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrgInvitationRequest) GetRole() string\n```\nGetRole returns the Role field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrgInvitationRequest) GetTeamIDs() []int64\n```\nGetTeamIDs returns the TeamIDs slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateOrganizationCopilotSpaceRequest struct {\n\tName                string                                  `json:\"name\"`\n\tDescription         *string                                 `json:\"description,omitempty\"`\n\tGeneralInstructions *string                                 `json:\"general_instructions,omitempty\"`\n\tBaseRole            *string                                 `json:\"base_role,omitempty\"`\n\tResourcesAttributes []*CreateCopilotSpaceResourceAttributes `json:\"resources_attributes,omitempty\"`\n}\n```\nCreateOrganizationCopilotSpaceRequest represents a request to create a Copilot Space.\n\n```go\nfunc (c *CreateOrganizationCopilotSpaceRequest) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationCopilotSpaceRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationCopilotSpaceRequest) GetGeneralInstructions() string\n```\nGetGeneralInstructions returns the GeneralInstructions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationCopilotSpaceRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateOrganizationCopilotSpaceRequest) GetResourcesAttributes() []*CreateCopilotSpaceResourceAttributes\n```\nGetResourcesAttributes returns the ResourcesAttributes slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateOrganizationPrivateRegistry struct {\n\t// RegistryType is the type of private registry.\n\t// You can find the list of supported types in PrivateRegistryType.\n\tRegistryType PrivateRegistryType `json:\"registry_type\"`\n\n\t// URL is the URL of the private registry.\n\tURL string `json:\"url\"`\n\n\t// The username to use when authenticating with the private registry.\n\t// This field should be omitted if the private registry does not require a username for authentication.\n\tUsername *string `json:\"username,omitempty\"`\n\n\t// ReplacesBase indicates whether this private registry should replace the base registry\n\t// (e.g., npmjs.org for npm, rubygems.org for rubygems).\n\tReplacesBase *bool `json:\"replaces_base,omitempty\"`\n\n\t// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages)\n\t// using the public key retrieved from the PrivateRegistriesService.GetOrganizationPrivateRegistriesPublicKey.\n\t// Required when AuthType is \"token\" or \"username_password\". Should be omitted for OIDC auth types.\n\tEncryptedValue *string `json:\"encrypted_value,omitempty\"`\n\t// KeyID is the ID of the public key used to encrypt the secret.\n\t// Required when AuthType is \"token\" or \"username_password\". Should be omitted for OIDC auth types.\n\tKeyID *string `json:\"key_id,omitempty\"`\n\t// Visibility is the visibility of the private registry.\n\t// Possible values are: \"private\", \"all\", and \"selected\".\n\tVisibility PrivateRegistryVisibility `json:\"visibility\"`\n\n\t// An array of repository IDs that can access the organization private registry.\n\t// You can only provide a list of repository IDs when CreateOrganizationPrivateRegistry.Visibility is set to PrivateRegistryVisibilitySelected.\n\t// This field should be omitted if visibility is set to PrivateRegistryVisibilityAll or PrivateRegistryVisibilityPrivate.\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitempty\"`\n\n\t// AuthType is the authentication type for the private registry.\n\t// Defaults to \"token\" if not specified. Use \"oidc_azure\", \"oidc_aws\", or \"oidc_jfrog\" for OIDC authentication.\n\tAuthType *string `json:\"auth_type,omitempty\"`\n\n\t// TenantID is the tenant ID of the Azure AD application. Required when AuthType is \"oidc_azure\".\n\tTenantID *string `json:\"tenant_id,omitempty\"`\n\t// ClientID is the client ID of the Azure AD application. Required when AuthType is \"oidc_azure\".\n\tClientID *string `json:\"client_id,omitempty\"`\n\n\t// AWSRegion is the AWS region. Required when AuthType is \"oidc_aws\".\n\tAWSRegion *string `json:\"aws_region,omitempty\"`\n\t// AccountID is the AWS account ID. Required when AuthType is \"oidc_aws\".\n\tAccountID *string `json:\"account_id,omitempty\"`\n\t// RoleName is the AWS IAM role name. Required when AuthType is \"oidc_aws\".\n\tRoleName *string `json:\"role_name,omitempty\"`\n\t// Domain is the CodeArtifact domain. Required when AuthType is \"oidc_aws\".\n\tDomain *string `json:\"domain,omitempty\"`\n\t// DomainOwner is the CodeArtifact domain owner (AWS account ID). Required when AuthType is \"oidc_aws\".\n\tDomainOwner *string `json:\"domain_owner,omitempty\"`\n\n\t// JFrogOIDCProviderName is the JFrog OIDC provider name. Required when AuthType is \"oidc_jfrog\".\n\tJFrogOIDCProviderName *string `json:\"jfrog_oidc_provider_name,omitempty\"`\n\n\t// Audience is the OIDC audience. Optional for \"oidc_aws\" and \"oidc_jfrog\" auth types.\n\tAudience *string `json:\"audience,omitempty\"`\n\t// IdentityMappingName is the JFrog identity mapping name. Optional for \"oidc_jfrog\" auth type.\n\tIdentityMappingName *string `json:\"identity_mapping_name,omitempty\"`\n}\n```\nCreateOrganizationPrivateRegistry represents the payload to create a private registry.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetAWSRegion() string\n```\nGetAWSRegion returns the AWSRegion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetAccountID() string\n```\nGetAccountID returns the AccountID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetAudience() string\n```\nGetAudience returns the Audience field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetAuthType() string\n```\nGetAuthType returns the AuthType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetDomain() string\n```\nGetDomain returns the Domain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetDomainOwner() string\n```\nGetDomainOwner returns the DomainOwner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetEncryptedValue() string\n```\nGetEncryptedValue returns the EncryptedValue field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetIdentityMappingName() string\n```\nGetIdentityMappingName returns the IdentityMappingName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetJFrogOIDCProviderName() string\n```\nGetJFrogOIDCProviderName returns the JFrogOIDCProviderName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetKeyID() string\n```\nGetKeyID returns the KeyID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetRegistryType() PrivateRegistryType\n```\nGetRegistryType returns the RegistryType field.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetReplacesBase() bool\n```\nGetReplacesBase returns the ReplacesBase field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetRoleName() string\n```\nGetRoleName returns the RoleName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetTenantID() string\n```\nGetTenantID returns the TenantID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateOrganizationPrivateRegistry) GetVisibility() PrivateRegistryVisibility\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype CreateProjectV2DraftItemRequest struct {\n\t// Title is the title of the draft issue item to create.\n\tTitle string `json:\"title\"`\n\t// Body is the body content of the draft issue item to create.\n\tBody *string `json:\"body,omitempty\"`\n}\n```\nCreateProjectV2DraftItemRequest specifies the parameters to create a draft item in a project.\n\n```go\nfunc (c *CreateProjectV2DraftItemRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateProjectV2DraftItemRequest) GetTitle() string\n```\nGetTitle returns the Title field.\n\n```go\ntype CreateProjectV2ViewRequest struct {\n\t// Name is the view's display name.\n\tName string `json:\"name\"`\n\t// Layout is the view's layout. One of: table, board, roadmap.\n\tLayout string `json:\"layout\"`\n\t// Filter is an optional query string to filter the items shown in the view.\n\tFilter *string `json:\"filter,omitempty\"`\n\t// VisibleFields lists the field IDs to display. Not applicable to the roadmap layout.\n\tVisibleFields []int64 `json:\"visible_fields,omitempty\"`\n}\n```\nCreateProjectV2ViewRequest specifies the parameters to create a project view.\n\n```go\nfunc (c *CreateProjectV2ViewRequest) GetFilter() string\n```\nGetFilter returns the Filter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateProjectV2ViewRequest) GetLayout() string\n```\nGetLayout returns the Layout field.\n\n```go\nfunc (c *CreateProjectV2ViewRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateProjectV2ViewRequest) GetVisibleFields() []int64\n```\nGetVisibleFields returns the VisibleFields slice if it's non-nil, nil 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 CreatePullRequest struct {\n\tTitle *string `json:\"title,omitempty\"`\n\t// The name of the branch where your changes are implemented. For\n\t// cross-repository pull requests in the same network, namespace head with\n\t// a user like this: username:branch.\n\tHead     string  `json:\"head\"`\n\tHeadRepo *string `json:\"head_repo,omitempty\"`\n\t// The name of the branch you want the changes pulled into. This should be\n\t// an existing branch on the current repository. You cannot submit a pull\n\t// request to one repository that requests a merge to a base of another\n\t// repository.\n\tBase                string  `json:\"base\"`\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```\nCreatePullRequest represents a request to create a pull request.\n\n```go\nfunc (c *CreatePullRequest) GetBase() string\n```\nGetBase returns the Base field.\n\n```go\nfunc (c *CreatePullRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequest) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequest) GetHead() string\n```\nGetHead returns the Head field.\n\n```go\nfunc (c *CreatePullRequest) GetHeadRepo() string\n```\nGetHeadRepo returns the HeadRepo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequest) GetIssue() int\n```\nGetIssue returns the Issue field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequest) GetMaintainerCanModify() bool\n```\nGetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype CreatePullRequestCommentRequest struct {\n\tBody     string `json:\"body\"`\n\tCommitID string `json:\"commit_id\"`\n\tPath     string `json:\"path\"`\n\t// Deprecated: Use Line and Side instead.\n\tPosition    *int    `json:\"position,omitempty\"`\n\tLine        *int    `json:\"line,omitempty\"`\n\tSide        *string `json:\"side,omitempty\"`\n\tStartLine   *int    `json:\"start_line,omitempty\"`\n\tStartSide   *string `json:\"start_side,omitempty\"`\n\tInReplyTo   *int64  `json:\"in_reply_to,omitempty\"`\n\tSubjectType *string `json:\"subject_type,omitempty\"`\n}\n```\nCreatePullRequestCommentRequest represents a request to create a review comment on a pull request.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetCommitID() string\n```\nGetCommitID returns the CommitID field.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetInReplyTo() int64\n```\nGetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetLine() int\n```\nGetLine returns the Line field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetPosition() int\n```\nGetPosition returns the Position field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetSide() string\n```\nGetSide returns the Side field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetStartLine() int\n```\nGetStartLine returns the StartLine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetStartSide() string\n```\nGetStartSide returns the StartSide field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreatePullRequestCommentRequest) GetSubjectType() string\n```\nGetSubjectType returns the SubjectType field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateRef struct {\n\tRef string `json:\"ref\"`\n\tSHA string `json:\"sha\"`\n}\n```\nCreateRef represents the payload for creating a reference.\n\n```go\nfunc (c *CreateRef) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (c *CreateRef) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\ntype CreateReleaseRequest struct {\n\tTagName         string  `json:\"tag_name\"`\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\tGenerateReleaseNotes   *bool   `json:\"generate_release_notes,omitempty\"`\n}\n```\nCreateReleaseRequest represents a request to create a release in a repository.\n\n```go\nfunc (c *CreateReleaseRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetDiscussionCategoryName() string\n```\nGetDiscussionCategoryName returns the DiscussionCategoryName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetGenerateReleaseNotes() bool\n```\nGetGenerateReleaseNotes returns the GenerateReleaseNotes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetMakeLatest() string\n```\nGetMakeLatest returns the MakeLatest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetPrerelease() bool\n```\nGetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateReleaseRequest) GetTagName() string\n```\nGetTagName returns the TagName field.\n\n```go\nfunc (c *CreateReleaseRequest) GetTargetCommitish() string\n```\nGetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateRepositoryRequest struct {\n\tName        string  `json:\"name\"`\n\tDescription *string `json:\"description,omitempty\"`\n\tHomepage    *string `json:\"homepage,omitempty\"`\n\n\tPrivate        *bool   `json:\"private,omitempty\"`\n\tVisibility     *string `json:\"visibility,omitempty\"`\n\tHasIssues      *bool   `json:\"has_issues,omitempty\"`\n\tHasProjects    *bool   `json:\"has_projects,omitempty\"`\n\tHasWiki        *bool   `json:\"has_wiki,omitempty\"`\n\tHasDiscussions *bool   `json:\"has_discussions,omitempty\"`\n\tIsTemplate     *bool   `json:\"is_template,omitempty\"`\n\n\t// TeamID is used when creating an organization repository.\n\tTeamID *int64 `json:\"team_id,omitempty\"`\n\n\tAutoInit                  *bool          `json:\"auto_init,omitempty\"`\n\tGitignoreTemplate         *string        `json:\"gitignore_template,omitempty\"`\n\tLicenseTemplate           *string        `json:\"license_template,omitempty\"`\n\tAllowSquashMerge          *bool          `json:\"allow_squash_merge,omitempty\"`\n\tAllowMergeCommit          *bool          `json:\"allow_merge_commit,omitempty\"`\n\tAllowRebaseMerge          *bool          `json:\"allow_rebase_merge,omitempty\"`\n\tAllowUpdateBranch         *bool          `json:\"allow_update_branch,omitempty\"`\n\tAllowAutoMerge            *bool          `json:\"allow_auto_merge,omitempty\"`\n\tAllowForking              *bool          `json:\"allow_forking,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\"`\n\tSquashMergeCommitMessage  *string        `json:\"squash_merge_commit_message,omitempty\"`\n\tMergeCommitTitle          *string        `json:\"merge_commit_title,omitempty\"`\n\tMergeCommitMessage        *string        `json:\"merge_commit_message,omitempty\"`\n\tCustomProperties          map[string]any `json:\"custom_properties,omitempty\"`\n}\n```\nCreateRepositoryRequest specifies the repository to create.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAllowAutoMerge() bool\n```\nGetAllowAutoMerge returns the AllowAutoMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAllowForking() bool\n```\nGetAllowForking returns the AllowForking field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAllowMergeCommit() bool\n```\nGetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAllowRebaseMerge() bool\n```\nGetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAllowSquashMerge() bool\n```\nGetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAllowUpdateBranch() bool\n```\nGetAllowUpdateBranch returns the AllowUpdateBranch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetAutoInit() bool\n```\nGetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetCustomProperties() map[string]any\n```\nGetCustomProperties returns the CustomProperties map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetDeleteBranchOnMerge() bool\n```\nGetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetGitignoreTemplate() string\n```\nGetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetHasDiscussions() bool\n```\nGetHasDiscussions returns the HasDiscussions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetHasIssues() bool\n```\nGetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetHasProjects() bool\n```\nGetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetHasWiki() bool\n```\nGetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetHomepage() string\n```\nGetHomepage returns the Homepage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetIsTemplate() bool\n```\nGetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetLicenseTemplate() string\n```\nGetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetMergeCommitMessage() string\n```\nGetMergeCommitMessage returns the MergeCommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetMergeCommitTitle() string\n```\nGetMergeCommitTitle returns the MergeCommitTitle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateRepositoryRequest) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetSquashMergeCommitMessage() string\n```\nGetSquashMergeCommitMessage returns the SquashMergeCommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetSquashMergeCommitTitle() string\n```\nGetSquashMergeCommitTitle returns the SquashMergeCommitTitle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetTeamID() int64\n```\nGetTeamID returns the TeamID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetUseSquashPRTitleAsDefault() bool\n```\nGetUseSquashPRTitleAsDefault returns the UseSquashPRTitleAsDefault field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateRepositoryRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r CreateRepositoryRequest) String() string\n```\n\n```go\ntype CreateRunnerGroupRequest struct {\n\tName       string  `json:\"name\"`\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\t// The identifier of a hosted compute network configuration.\n\tNetworkConfigurationID *string `json:\"network_configuration_id,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.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID 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) GetRunners() []int64\n```\nGetRunners returns the Runners slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateRunnerGroupRequest) GetSelectedWorkflows() []string\n```\nGetSelectedWorkflows returns the SelectedWorkflows slice if it's non-nil, nil 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 CreateSSHSigningKeyRequest struct {\n\tTitle *string `json:\"title,omitempty\"`\n\tKey   string  `json:\"key\"`\n}\n```\nCreateSSHSigningKeyRequest represents a request to create an SSH signing key for the authenticated user.\n\n```go\nfunc (c *CreateSSHSigningKeyRequest) GetKey() string\n```\nGetKey returns the Key field.\n\n```go\nfunc (c *CreateSSHSigningKeyRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateTag struct {\n\tTag     string        `json:\"tag\"`\n\tMessage string        `json:\"message\"`\n\tObject  string        `json:\"object\"`\n\tType    string        `json:\"type\"`\n\tTagger  *CommitAuthor `json:\"tagger,omitempty\"`\n}\n```\nCreateTag represents the payload for creating a tag.\n\n```go\nfunc (c *CreateTag) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\nfunc (c *CreateTag) GetObject() string\n```\nGetObject returns the Object field.\n\n```go\nfunc (c *CreateTag) GetTag() string\n```\nGetTag returns the Tag field.\n\n```go\nfunc (c *CreateTag) GetTagger() *CommitAuthor\n```\nGetTagger returns the Tagger field.\n\n```go\nfunc (c *CreateTag) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype CreateTeamRequest struct {\n\t// The name of the team (required).\n\tName string `json:\"name\"`\n\n\t// The description of the team.\n\tDescription *string `json:\"description,omitempty\"`\n\n\t// List GitHub usernames for organization members who will become team maintainers.\n\tMaintainers []string `json:\"maintainers,omitempty\"`\n\n\t// The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.\n\tRepoNames []string `json:\"repo_names,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// NotificationSetting can be one of: \"notifications_enabled\", \"notifications_disabled\".\n\tNotificationSetting *string `json:\"notification_setting,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// The ID of a team to set as the parent team.\n\tParentTeamID *int64 `json:\"parent_team_id,omitempty\"`\n\n\t// The slug of a team to set as the parent team.\n\t// Ignored when ParentTeamID is also provided.\n\tParentTeamSlug *string `json:\"parent_team_slug,omitempty\"`\n\n\t// Set the distinguished name (DN) of the LDAP entry to map to a team. This is\n\t// only supported by GitHub Enterprise Server.\n\tLDAPDN *string `json:\"ldap_dn,omitempty\"`\n}\n```\nCreateTeamRequest represents a team to be created.\n\n```go\nfunc (c *CreateTeamRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetMaintainers() []string\n```\nGetMaintainers returns the Maintainers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (c *CreateTeamRequest) GetNotificationSetting() string\n```\nGetNotificationSetting returns the NotificationSetting field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetParentTeamID() int64\n```\nGetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetParentTeamSlug() string\n```\nGetParentTeamSlug returns the ParentTeamSlug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetPrivacy() string\n```\nGetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateTeamRequest) GetRepoNames() []string\n```\nGetRepoNames returns the RepoNames slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r CreateTeamRequest) String() string\n```\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\tPreventSelfReview      *bool           `json:\"prevent_self_review,omitempty\"`\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) GetPreventSelfReview() bool\n```\nGetPreventSelfReview returns the PreventSelfReview field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateUpdateEnvironment) GetReviewers() []*EnvReviewers\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil otherwise.\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 CreateUserImpersonationRequest struct {\n\tScopes []string `json:\"scopes\"`\n}\n```\nCreateUserImpersonationRequest represents the scoping for the OAuth token. Note that \\`Scopes\\` is a required field.\n\n```go\nfunc (c *CreateUserImpersonationRequest) GetScopes() []string\n```\nGetScopes returns the Scopes slice if it's non-nil, nil otherwise.\n\n```go\ntype CreateUserKeyRequest struct {\n\tTitle *string `json:\"title,omitempty\"`\n\tKey   string  `json:\"key\"`\n}\n```\nCreateUserKeyRequest represents a request to create a public SSH key for the authenticated user.\n\n```go\nfunc (c *CreateUserKeyRequest) GetKey() string\n```\nGetKey returns the Key field.\n\n```go\nfunc (c *CreateUserKeyRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype CreateUserRequest struct {\n\tLogin     string  `json:\"login\"`\n\tEmail     *string `json:\"email,omitempty\"`\n\tSuspended *bool   `json:\"suspended,omitempty\"`\n}\n```\nCreateUserRequest represents the fields sent to the \\`CreateUser\\` endpoint. Note that \\`Login\\` is a required field.\n\n```go\nfunc (c *CreateUserRequest) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CreateUserRequest) GetLogin() string\n```\nGetLogin returns the Login field.\n\n```go\nfunc (c *CreateUserRequest) GetSuspended() bool\n```\nGetSuspended returns the Suspended 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 25.\n\t// Default: Any default properties configured in the workflow file will be used when `inputs` are omitted.\n\tInputs map[string]any `json:\"inputs,omitempty\"`\n\t// ReturnRunDetails specifies whether the response should include\n\t// the workflow run ID and URLs.\n\tReturnRunDetails *bool `json:\"return_run_details,omitempty\"`\n}\n```\nCreateWorkflowDispatchEventRequest represents a request to create a workflow dispatch event.\n\n```go\nfunc (c *CreateWorkflowDispatchEventRequest) GetInputs() map[string]any\n```\nGetInputs returns the Inputs map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (c *CreateWorkflowDispatchEventRequest) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (c *CreateWorkflowDispatchEventRequest) GetReturnRunDetails() bool\n```\nGetReturnRunDetails returns the ReturnRunDetails field if it's non-nil, zero value otherwise.\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\nfunc (c *CreationInfo) GetCreators() []string\n```\nGetCreators returns the Creators slice if it's non-nil, nil 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) GetScopes() []string\n```\nGetScopes returns the Scopes slice if it's non-nil, nil 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 CredentialAuthorizationsListOptions struct {\n\tListOptions\n\t// For credentials authorizations for an organization, limit the list of authorizations to a specific login (aka github username)\n\tLogin string `url:\"login,omitempty\"`\n}\n```\nCredentialAuthorizationsListOptions adds the Login option as supported by the list SAML SSO authorizations for organizations endpoint alongside paging options such as Page and PerPage. GitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#list-saml-sso-authorizations-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#list-saml-sso-authorizations-for-an-organization)\n\n```go\nfunc (c *CredentialAuthorizationsListOptions) GetLogin() string\n```\nGetLogin returns the Login field.\n\n```go\ntype CredentialsService service\n```\nCredentialsService handles credentials related methods of the GitHub API.\n\n```go\nfunc (s *CredentialsService) Revoke(ctx context.Context, credentials []string) (*Response, error)\n```\nRevoke revokes a list of credentials.\n\nGitHub API docs: [https://docs.github.com/rest/credentials/revoke?apiVersion=2022-11-28#revoke-a-list-of-credentials](https://docs.github.com/rest/credentials/revoke?apiVersion=2022-11-28#revoke-a-list-of-credentials)\n\n```go\ntype Credit struct {\n\tUser *User   `json:\"user,omitempty\"`\n\tType *string `json:\"type,omitempty\"`\n}\n```\nCredit represents the credit object for a global security advisory.\n\n```go\nfunc (c *Credit) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *Credit) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype CustomDeploymentProtectionRule struct {\n\tID      *int64                             `json:\"id,omitempty\"`\n\tNodeID  *string                            `json:\"node_id,omitempty\"`\n\tEnabled *bool                              `json:\"enabled,omitempty\"`\n\tApp     *CustomDeploymentProtectionRuleApp `json:\"app,omitempty\"`\n}\n```\nCustomDeploymentProtectionRule represents a single deployment protection rule for an environment.\n\n```go\nfunc (c *CustomDeploymentProtectionRule) GetApp() *CustomDeploymentProtectionRuleApp\n```\nGetApp returns the App field.\n\n```go\nfunc (c *CustomDeploymentProtectionRule) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomDeploymentProtectionRule) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomDeploymentProtectionRule) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomDeploymentProtectionRuleApp struct {\n\tID             *int64  `json:\"id,omitempty\"`\n\tSlug           *string `json:\"slug,omitempty\"`\n\tIntegrationURL *string `json:\"integration_url,omitempty\"`\n\tNodeID         *string `json:\"node_id,omitempty\"`\n}\n```\nCustomDeploymentProtectionRuleApp represents a single deployment protection rule app for an environment.\n\n```go\nfunc (c *CustomDeploymentProtectionRuleApp) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomDeploymentProtectionRuleApp) GetIntegrationURL() string\n```\nGetIntegrationURL returns the IntegrationURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomDeploymentProtectionRuleApp) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomDeploymentProtectionRuleApp) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomDeploymentProtectionRuleRequest struct {\n\tIntegrationID *int64 `json:\"integration_id,omitempty\"`\n}\n```\nCustomDeploymentProtectionRuleRequest represents a deployment protection rule request.\n\n```go\nfunc (c *CustomDeploymentProtectionRuleRequest) GetIntegrationID() int64\n```\nGetIntegrationID returns the IntegrationID field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomOrgRole struct {\n\tID          *int64        `json:\"id,omitempty\"`\n\tName        *string       `json:\"name,omitempty\"`\n\tDescription *string       `json:\"description,omitempty\"`\n\tPermissions []string      `json:\"permissions,omitempty\"`\n\tOrg         *Organization `json:\"organization,omitempty\"`\n\tCreatedAt   *Timestamp    `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp    `json:\"updated_at,omitempty\"`\n\tSource      *string       `json:\"source,omitempty\"`\n\tBaseRole    *string       `json:\"base_role,omitempty\"`\n}\n```\nCustomOrgRole represents custom organization role available in specified organization.\n\n```go\nfunc (c *CustomOrgRole) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CustomOrgRole) GetPermissions() []string\n```\nGetPermissions returns the Permissions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetSource() string\n```\nGetSource returns the Source field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomOrgRole) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomPatternBackfillScan struct {\n\tSecretsScan\n\tPatternSlug  *string `json:\"pattern_slug,omitempty\"`\n\tPatternScope *string `json:\"pattern_scope,omitempty\"`\n}\n```\nCustomPatternBackfillScan represents a scan with an associated custom pattern.\n\n```go\nfunc (c *CustomPatternBackfillScan) GetPatternScope() string\n```\nGetPatternScope returns the PatternScope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomPatternBackfillScan) GetPatternSlug() string\n```\nGetPatternSlug returns the PatternSlug field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomProperty struct {\n\t// PropertyName is required for most endpoints except when calling CreateOrUpdateCustomProperty;\n\t// where this is sent in the path and thus can be omitted.\n\tPropertyName *string `json:\"property_name,omitempty\"`\n\t// The URL that can be used to fetch, update, or delete info about this property via the API.\n\tURL *string `json:\"url,omitempty\"`\n\t// SourceType is the source type of the property where it has been created. Can be one of: organization, enterprise.\n\tSourceType *string `json:\"source_type,omitempty\"`\n\t// The type of the value for the property. Can be one of: string, single_select, multi_select, true_false, url.\n\tValueType PropertyValueType `json:\"value_type\"`\n\t// Whether the property is required.\n\tRequired *bool `json:\"required,omitempty\"`\n\t// Whether setting property values is mandatory.\n\tRequireExplicitValues *bool `json:\"require_explicit_values,omitempty\"`\n\t// Default value of the property.\n\tDefaultValue any `json:\"default_value,omitempty\"`\n\t// Short description of the property.\n\tDescription *string `json:\"description,omitempty\"`\n\t// An ordered list of the allowed values of the property. The property can have up to 200\n\t// allowed values.\n\tAllowedValues []string `json:\"allowed_values,omitempty\"`\n\t// Who can edit the values of the property. Can be one of: org_actors, org_and_repo_actors, nil (null).\n\tValuesEditableBy *string `json:\"values_editable_by,omitempty\"`\n}\n```\nCustomProperty represents an organization custom property object.\n\n```go\nfunc (cp CustomProperty) DefaultValueBool() (bool, bool)\n```\nDefaultValueBool returns the DefaultValue as a string if the ValueType is true\\_false.\n\n```go\nfunc (cp CustomProperty) DefaultValueString() (string, bool)\n```\nDefaultValueString returns the DefaultValue as a string if the ValueType is string or single\\_select or url.\n\n```go\nfunc (cp CustomProperty) DefaultValueStrings() ([]string, bool)\n```\nDefaultValueStrings returns the DefaultValue as a slice of string if the ValueType is multi\\_select.\n\n```go\nfunc (c *CustomProperty) GetAllowedValues() []string\n```\nGetAllowedValues returns the AllowedValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CustomProperty) GetDefaultValue() any\n```\nGetDefaultValue returns the DefaultValue field.\n\n```go\nfunc (c *CustomProperty) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomProperty) GetPropertyName() string\n```\nGetPropertyName returns the PropertyName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomProperty) GetRequireExplicitValues() bool\n```\nGetRequireExplicitValues returns the RequireExplicitValues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomProperty) GetRequired() bool\n```\nGetRequired returns the Required field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomProperty) GetSourceType() string\n```\nGetSourceType returns the SourceType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomProperty) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomProperty) GetValueType() PropertyValueType\n```\nGetValueType returns the ValueType field.\n\n```go\nfunc (c *CustomProperty) GetValuesEditableBy() string\n```\nGetValuesEditableBy returns the ValuesEditableBy field if it's non-nil, zero value otherwise.\n\n```go\ntype CustomPropertyEvent struct {\n\t// Action possible values are: \"created\", \"deleted\", \"updated\".\n\tAction     *string         `json:\"action,omitempty\"`\n\tDefinition *CustomProperty `json:\"definition,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tEnterprise   *Enterprise   `json:\"enterprise,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n}\n```\nCustomPropertyEvent represents a created, deleted or updated custom property. The Webhook event name is \"custom\\_property\".\n\nNote: this is related to custom property configuration at the enterprise or organization level. See CustomPropertyValuesEvent for activity related to custom property values for a repository.\n\nGitHub API docs: [https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom\\_property](https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property)\n\n```go\nfunc (c *CustomPropertyEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomPropertyEvent) GetDefinition() *CustomProperty\n```\nGetDefinition returns the Definition field.\n\n```go\nfunc (c *CustomPropertyEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (c *CustomPropertyEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CustomPropertyEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CustomPropertyEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype CustomPropertyValue struct {\n\tPropertyName string `json:\"property_name\"`\n\tValue        any    `json:\"value\"`\n}\n```\nCustomPropertyValue represents a custom property value.\n\n```go\nfunc (c *CustomPropertyValue) GetPropertyName() string\n```\nGetPropertyName returns the PropertyName field.\n\n```go\nfunc (c *CustomPropertyValue) GetValue() any\n```\nGetValue returns the Value field.\n\n```go\nfunc (cpv *CustomPropertyValue) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface. This helps us handle the fact that Value can be either a string, \\[]string, or nil.\n\n```go\ntype CustomPropertyValuesEvent struct {\n\t// Action possible values are: \"updated\".\n\tAction            *string                `json:\"action,omitempty\"`\n\tNewPropertyValues []*CustomPropertyValue `json:\"new_property_values,omitempty\"`\n\tOldPropertyValues []*CustomPropertyValue `json:\"old_property_values,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tEnterprise   *Enterprise   `json:\"enterprise,omitempty\"`\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tOrg          *Organization `json:\"organization,omitempty\"`\n\tSender       *User         `json:\"sender,omitempty\"`\n}\n```\nCustomPropertyValuesEvent represents an update to a custom property. The Webhook event name is \"custom\\_property\\_values\".\n\nGitHub API docs: [https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom\\_property\\_values](https://docs.github.com/en/webhooks/webhook-events-and-payloads#custom_property_values)\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetNewPropertyValues() []*CustomPropertyValue\n```\nGetNewPropertyValues returns the NewPropertyValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetOldPropertyValues() []*CustomPropertyValue\n```\nGetOldPropertyValues returns the OldPropertyValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (c *CustomPropertyValuesEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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\tOrg         *Organization `json:\"organization,omitempty\"`\n\tCreatedAt   *Timestamp    `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp    `json:\"updated_at,omitempty\"`\n}\n```\nCustomRepoRoles represents custom repository roles for an organization. See [https://docs.github.com/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization](https://docs.github.com/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) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt 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\nfunc (c *CustomRepoRoles) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (c *CustomRepoRoles) GetPermissions() []string\n```\nGetPermissions returns the Permissions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (c *CustomRepoRoles) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype DatadogConfig struct {\n\tEncryptedToken string `json:\"encrypted_token\"`\n\tSite           string `json:\"site\"` // One of: US, US3, US5, EU1, US1-FED, AP1\n\tKeyID          string `json:\"key_id\"`\n}\n```\nDatadogConfig represents vendor-specific config for Datadog.\n\n```go\nfunc (d *DatadogConfig) GetEncryptedToken() string\n```\nGetEncryptedToken returns the EncryptedToken field.\n\n```go\nfunc (d *DatadogConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (d *DatadogConfig) GetSite() string\n```\nGetSite returns the Site field.\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) GetLanguages() []string\n```\nGetLanguages returns the Languages slice if it's non-nil, nil otherwise.\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 DefaultWorkflowPermissionEnterprise struct {\n\tDefaultWorkflowPermissions   *string `json:\"default_workflow_permissions,omitempty\"`\n\tCanApprovePullRequestReviews *bool   `json:\"can_approve_pull_request_reviews,omitempty\"`\n}\n```\nDefaultWorkflowPermissionEnterprise represents the default permissions for GitHub Actions workflows for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28)\n\n```go\nfunc (d *DefaultWorkflowPermissionEnterprise) GetCanApprovePullRequestReviews() bool\n```\nGetCanApprovePullRequestReviews returns the CanApprovePullRequestReviews field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DefaultWorkflowPermissionEnterprise) GetDefaultWorkflowPermissions() string\n```\nGetDefaultWorkflowPermissions returns the DefaultWorkflowPermissions field if it's non-nil, zero value otherwise.\n\n```go\ntype DefaultWorkflowPermissionOrganization struct {\n\tDefaultWorkflowPermissions   *string `json:\"default_workflow_permissions,omitempty\"`\n\tCanApprovePullRequestReviews *bool   `json:\"can_approve_pull_request_reviews,omitempty\"`\n}\n```\nDefaultWorkflowPermissionOrganization represents the default permissions for GitHub Actions workflows for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28)\n\n```go\nfunc (d *DefaultWorkflowPermissionOrganization) GetCanApprovePullRequestReviews() bool\n```\nGetCanApprovePullRequestReviews returns the CanApprovePullRequestReviews field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DefaultWorkflowPermissionOrganization) GetDefaultWorkflowPermissions() string\n```\nGetDefaultWorkflowPermissions returns the DefaultWorkflowPermissions field if it's non-nil, zero value otherwise.\n\n```go\ntype DefaultWorkflowPermissionRepository struct {\n\tDefaultWorkflowPermissions   *string `json:\"default_workflow_permissions,omitempty\"`\n\tCanApprovePullRequestReviews *bool   `json:\"can_approve_pull_request_reviews,omitempty\"`\n}\n```\nDefaultWorkflowPermissionRepository represents the default permissions for GitHub Actions workflows for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28)\n\n```go\nfunc (d *DefaultWorkflowPermissionRepository) GetCanApprovePullRequestReviews() bool\n```\nGetCanApprovePullRequestReviews returns the CanApprovePullRequestReviews field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DefaultWorkflowPermissionRepository) GetDefaultWorkflowPermissions() string\n```\nGetDefaultWorkflowPermissions returns the DefaultWorkflowPermissions field if it's non-nil, zero value otherwise.\n\n```go\ntype DeleteAnalysis struct {\n\t// Next deletable analysis in chain, without last analysis deletion confirmation\n\tNextAnalysisURL *string `json:\"next_analysis_url,omitempty\"`\n\t// Next deletable analysis in chain, with last analysis deletion confirmation\n\tConfirmDeleteURL *string `json:\"confirm_delete_url,omitempty\"`\n}\n```\nDeleteAnalysis represents a successful deletion of a code scanning analysis.\n\n```go\nfunc (d *DeleteAnalysis) GetConfirmDeleteURL() string\n```\nGetConfirmDeleteURL returns the ConfirmDeleteURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeleteAnalysis) GetNextAnalysisURL() string\n```\nGetNextAnalysisURL returns the NextAnalysisURL field if it's non-nil, zero value otherwise.\n\n```go\ntype DeleteCostCenterResponse struct {\n\tMessage         string `json:\"message\"`\n\tID              string `json:\"id\"`\n\tName            string `json:\"name\"`\n\tCostCenterState string `json:\"costCenterState\"`\n}\n```\nDeleteCostCenterResponse represents a response from deleting a cost center.\n\n```go\nfunc (d *DeleteCostCenterResponse) GetCostCenterState() string\n```\nGetCostCenterState returns the CostCenterState field.\n\n```go\nfunc (d *DeleteCostCenterResponse) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (d *DeleteCostCenterResponse) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\nfunc (d *DeleteCostCenterResponse) GetName() string\n```\nGetName returns the Name field.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/github-event-types#deleteevent](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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\tAutoDismissedAt       *Timestamp                  `json:\"auto_dismissed_at,omitempty\"`\n\t// The repository is always empty for events\n\tRepository *Repository `json:\"repository,omitempty\"`\n}\n```\nDependabotAlert represents a Dependabot alert.\n\n```go\nfunc (d *DependabotAlert) GetAutoDismissedAt() Timestamp\n```\nGetAutoDismissedAt returns the AutoDismissedAt field if it's non-nil, zero value otherwise.\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 DependabotAlertEvent struct {\n\tAction *string          `json:\"action,omitempty\"`\n\tAlert  *DependabotAlert `json:\"alert,omitempty\"`\n\n\t// The following fields are only populated by Webhook events.\n\tInstallation *Installation `json:\"installation,omitempty\"`\n\tEnterprise   *Enterprise   `json:\"enterprise,omitempty\"`\n\tRepo         *Repository   `json:\"repository,omitempty\"`\n\tSender       *User         `json:\"sender,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```\nDependabotAlertEvent is triggered when there is activity relating to Dependabot alerts. The Webhook event name is \"dependabot\\_alert\".\n\nGitHub API docs: [https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot\\_alert](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot_alert)\n\n```go\nfunc (d *DependabotAlertEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlertEvent) GetAlert() *DependabotAlert\n```\nGetAlert returns the Alert field.\n\n```go\nfunc (d *DependabotAlertEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (d *DependabotAlertEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DependabotAlertEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (d *DependabotAlertEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DependabotAlertEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype DependabotAlertState struct {\n\t// The state of the Dependabot alert. A dismissed_reason must be provided when setting the state to dismissed.\n\tState string `json:\"state\"`\n\t// Required when state is dismissed. A reason for dismissing the alert.\n\t// Can be one of: fix_started, inaccurate, no_bandwidth, not_used, tolerable_risk\n\tDismissedReason *string `json:\"dismissed_reason,omitempty\"`\n\t// An optional comment associated with dismissing the alert.\n\tDismissedComment *string `json:\"dismissed_comment,omitempty\"`\n}\n```\nDependabotAlertState represents the state of a Dependabot alert to update.\n\n```go\nfunc (d *DependabotAlertState) GetDismissedComment() string\n```\nGetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlertState) GetDismissedReason() string\n```\nGetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependabotAlertState) GetState() string\n```\nGetState returns the State field.\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\tClassification  *string                  `json:\"classification,omitempty\"`\n\tCVSS            *AdvisoryCVSS            `json:\"cvss,omitempty\"`\n\tCVSSSeverities  *AdvisoryCVSSSeverities  `json:\"cvss_severities,omitempty\"`\n\tCWEs            []*AdvisoryCWEs          `json:\"cwes,omitempty\"`\n\tEPSS            *AdvisoryEPSS            `json:\"epss,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) GetCVSSSeverities() *AdvisoryCVSSSeverities\n```\nGetCVSSSeverities returns the CVSSSeverities field.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetCWEs() []*AdvisoryCWEs\n```\nGetCWEs returns the CWEs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DependabotSecurityAdvisory) GetClassification() string\n```\nGetClassification returns the Classification field if it's non-nil, zero value otherwise.\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) GetEPSS() *AdvisoryEPSS\n```\nGetEPSS returns the EPSS field.\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) GetIdentifiers() []*AdvisoryIdentifier\n```\nGetIdentifiers returns the Identifiers slice if it's non-nil, nil 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) GetReferences() []*AdvisoryReference\n```\nGetReferences returns the References slice if it's non-nil, nil 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) GetVulnerabilities() []*AdvisoryVulnerability\n```\nGetVulnerabilities returns the Vulnerabilities slice if it's non-nil, nil 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/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates](https://docs.github.com/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/rest/dependabot?apiVersion=2022-11-28](https://docs.github.com/rest/dependabot?apiVersion=2022-11-28)\n\n```go\nfunc (s *DependabotService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nAddSelectedRepoToOrgSecret adds a repository to an organization Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#add-selected-repository-to-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#add-selected-repository-to-an-organization-secret)\n\n```go\nfunc (s *DependabotService) CreateOrUpdateOrgSecret(ctx context.Context, org, name string, body SecretOrgRequest) (*Response, error)\n```\nCreateOrUpdateOrgSecret creates or updates an organization Dependabot secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret)\n\n```go\nfunc (s *DependabotService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo, name string, body SecretRequest) (*Response, error)\n```\nCreateOrUpdateRepoSecret creates or updates a repository Dependabot secret with an encrypted value.\n\nGitHub API docs: [https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/secrets?apiVersion=2022-11-28#delete-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/secrets?apiVersion=2022-11-28#delete-a-repository-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/secrets?apiVersion=2022-11-28#get-an-organization-public-key](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/secrets?apiVersion=2022-11-28#get-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/alerts?apiVersion=2022-11-28#get-a-dependabot-alert](https://docs.github.com/rest/dependabot/alerts?apiVersion=2022-11-28#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/rest/dependabot/secrets?apiVersion=2022-11-28#get-a-repository-public-key](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/secrets?apiVersion=2022-11-28#get-a-repository-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#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/rest/dependabot/alerts?apiVersion=2022-11-28#list-dependabot-alerts-for-an-organization](https://docs.github.com/rest/dependabot/alerts?apiVersion=2022-11-28#list-dependabot-alerts-for-an-organization)\n\n```go\nfunc (s *DependabotService) ListOrgAlertsIter(ctx context.Context, org string, opts *ListAlertsOptions) iter.Seq2[*DependabotAlert, error]\n```\nListOrgAlertsIter returns an iterator that paginates through all results of ListOrgAlerts.\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/rest/dependabot/secrets?apiVersion=2022-11-28#list-organization-secrets](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#list-organization-secrets)\n\n```go\nfunc (s *DependabotService) ListOrgSecretsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListOrgSecretsIter returns an iterator that paginates through all results of ListOrgSecrets.\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/rest/dependabot/alerts?apiVersion=2022-11-28#list-dependabot-alerts-for-a-repository](https://docs.github.com/rest/dependabot/alerts?apiVersion=2022-11-28#list-dependabot-alerts-for-a-repository)\n\n```go\nfunc (s *DependabotService) ListRepoAlertsIter(ctx context.Context, owner string, repo string, opts *ListAlertsOptions) iter.Seq2[*DependabotAlert, error]\n```\nListRepoAlertsIter returns an iterator that paginates through all results of ListRepoAlerts.\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/rest/dependabot/secrets?apiVersion=2022-11-28#list-repository-secrets](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#list-repository-secrets)\n\n```go\nfunc (s *DependabotService) ListRepoSecretsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Secret, error]\n```\nListRepoSecretsIter returns an iterator that paginates through all results of ListRepoSecrets.\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/rest/dependabot/secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#list-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *DependabotService) ListSelectedReposForOrgSecretIter(ctx context.Context, org string, name string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListSelectedReposForOrgSecretIter returns an iterator that paginates through all results of ListSelectedReposForOrgSecret.\n\n```go\nfunc (s *DependabotService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repoID int64) (*Response, error)\n```\nRemoveSelectedRepoFromOrgSecret removes a repository from an organization Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#remove-selected-repository-from-an-organization-secret)\n\n```go\nfunc (s *DependabotService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids []int64) (*Response, error)\n```\nSetSelectedReposForOrgSecret sets the repositories that have access to a Dependabot secret.\n\nGitHub API docs: [https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-secret](https://docs.github.com/rest/dependabot/secrets?apiVersion=2022-11-28#set-selected-repositories-for-an-organization-secret)\n\n```go\nfunc (s *DependabotService) UpdateAlert(ctx context.Context, owner, repo string, number int, body *DependabotAlertState) (*DependabotAlert, *Response, error)\n```\nUpdateAlert updates a Dependabot alert.\n\nGitHub API docs: [https://docs.github.com/rest/dependabot/alerts?apiVersion=2022-11-28#update-a-dependabot-alert](https://docs.github.com/rest/dependabot/alerts?apiVersion=2022-11-28#update-a-dependabot-alert)\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 represents 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 DependencyGraphAutosubmitActionOptions struct {\n\tLabeledRunners *bool `json:\"labeled_runners,omitempty\"`\n}\n```\nDependencyGraphAutosubmitActionOptions represents the options for the DependencyGraphAutosubmitAction.\n\n```go\nfunc (d *DependencyGraphAutosubmitActionOptions) GetLabeledRunners() bool\n```\nGetLabeledRunners returns the LabeledRunners field if it's non-nil, zero value otherwise.\n\n```go\ntype DependencyGraphService service\n```\nDependencyGraphService handles communication with the dependency graph related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph?apiVersion=2022-11-28](https://docs.github.com/rest/dependency-graph?apiVersion=2022-11-28)\n\n```go\nfunc (s *DependencyGraphService) CreateSnapshot(ctx context.Context, owner, repo string, body CreateDependencyGraphSnapshotRequest) (*DependencyGraphSnapshotCreationData, *Response, error)\n```\nCreateSnapshot creates a new snapshot of a repository's dependencies.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (s *DependencyGraphService) FetchSBOM(ctx context.Context, owner, repo, sbomUUID string, followRedirectsClient *http.Client) (sbom *SBOM, redirectURL string, resp *Response, err error)\n```\nFetchSBOM downloads a software bill of materials or returns a redirect URL.\n\nsbomUUID is the final path segment of the SBOMURL returned by GenerateSBOM.\n\nIf followRedirectsClient is nil, FetchSBOM returns the download URL in redirectURL and a nil sbom. Otherwise, it downloads the report and returns sbom with an empty redirectURL.\n\nUse http.DefaultClient or another client that does not add authentication headers when fetching the pre-signed download URL.\n\nWhile GitHub is generating the SBOM, FetchSBOM returns an \\*AcceptedError and status code 202. The request can be repeated later.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/sboms?apiVersion=2022-11-28#fetch-a-software-bill-of-materials-sbom-for-a-repository](https://docs.github.com/rest/dependency-graph/sboms?apiVersion=2022-11-28#fetch-a-software-bill-of-materials-sbom-for-a-repository)\n\n```go\nfunc (s *DependencyGraphService) GenerateSBOM(ctx context.Context, owner, repo string) (*SBOMGeneration, *Response, error)\n```\nGenerateSBOM requests the generation of a software bill of materials for a repository.\n\nGeneration is asynchronous. Pass the UUID from the returned SBOMGeneration to FetchSBOM to retrieve the report once GitHub has built it.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/sboms?apiVersion=2022-11-28#request-generation-of-a-software-bill-of-materials-sbom-for-a-repository](https://docs.github.com/rest/dependency-graph/sboms?apiVersion=2022-11-28#request-generation-of-a-software-bill-of-materials-sbom-for-a-repository)\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\nDeprecated: GitHub is retiring this endpoint on 11-13-2026 in favor of the asynchronous workflow. Use GenerateSBOM followed by FetchSBOM.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/sboms?apiVersion=2022-11-28#export-a-software-bill-of-materials-sbom-for-a-repository](https://docs.github.com/rest/dependency-graph/sboms?apiVersion=2022-11-28#export-a-software-bill-of-materials-sbom-for-a-repository)\n\n```go\ntype DependencyGraphSnapshotCreationData struct {\n\tID        int64      `json:\"id\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tMessage   *string    `json:\"message,omitempty\"`\n\t// Represents the snapshot creation result.\n\t// Can have the following values:\n\t//   - \"SUCCESS\": indicates that the snapshot was successfully created and the repository's dependencies were updated.\n\t//   - \"ACCEPTED\": indicates that the snapshot was successfully created, but the repository's dependencies were not updated.\n\t//   - \"INVALID\": indicates that the snapshot was malformed.\n\tResult *string `json:\"result,omitempty\"`\n}\n```\nDependencyGraphSnapshotCreationData represents the dependency snapshot's creation result.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (d *DependencyGraphSnapshotCreationData) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotCreationData) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (d *DependencyGraphSnapshotCreationData) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotCreationData) GetResult() string\n```\nGetResult returns the Result field if it's non-nil, zero value otherwise.\n\n```go\ntype DependencyGraphSnapshotDetector struct {\n\tName    string `json:\"name\"`\n\tVersion string `json:\"version\"`\n\tURL     string `json:\"url\"`\n}\n```\nDependencyGraphSnapshotDetector represents a description of the detector used.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (d *DependencyGraphSnapshotDetector) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (d *DependencyGraphSnapshotDetector) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\nfunc (d *DependencyGraphSnapshotDetector) GetVersion() string\n```\nGetVersion returns the Version field.\n\n```go\ntype DependencyGraphSnapshotJob struct {\n\tCorrelator string  `json:\"correlator\"`\n\tID         string  `json:\"id\"`\n\tHTMLURL    *string `json:\"html_url,omitempty\"`\n}\n```\nDependencyGraphSnapshotJob represents the job that created the snapshot.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (d *DependencyGraphSnapshotJob) GetCorrelator() string\n```\nGetCorrelator returns the Correlator field.\n\n```go\nfunc (d *DependencyGraphSnapshotJob) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotJob) GetID() string\n```\nGetID returns the ID field.\n\n```go\ntype DependencyGraphSnapshotManifest struct {\n\tName     string                                                `json:\"name\"`\n\tFile     *DependencyGraphSnapshotManifestFile                  `json:\"file,omitempty\"`\n\tMetadata map[string]any                                        `json:\"metadata,omitempty\"`\n\tResolved map[string]*DependencyGraphSnapshotResolvedDependency `json:\"resolved,omitempty\"`\n}\n```\nDependencyGraphSnapshotManifest represents a collection of related dependencies declared in a file or representing a logical group of dependencies.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (d *DependencyGraphSnapshotManifest) GetFile() *DependencyGraphSnapshotManifestFile\n```\nGetFile returns the File field.\n\n```go\nfunc (d *DependencyGraphSnapshotManifest) GetMetadata() map[string]any\n```\nGetMetadata returns the Metadata map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotManifest) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype DependencyGraphSnapshotManifestFile struct {\n\tSourceLocation *string `json:\"source_location,omitempty\"`\n}\n```\nDependencyGraphSnapshotManifestFile represents the file declaring the repository's dependencies.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (d *DependencyGraphSnapshotManifestFile) GetSourceLocation() string\n```\nGetSourceLocation returns the SourceLocation field if it's non-nil, zero value otherwise.\n\n```go\ntype DependencyGraphSnapshotResolvedDependency struct {\n\tPackageURL *string `json:\"package_url,omitempty\"`\n\t// User-defined metadata to store domain-specific information limited to 8 keys with scalar values.\n\t// This metadata overrides auto-detected values from the package URL and GitHub's database.\n\t// Common fields include:\n\t//   - \"licenses\": license information (e.g., \"MIT\", \"Apache-2.0\")\n\t//   - \"name\": package name\n\t//   - \"version\": package version\n\t//   - \"manager\": package manager (e.g., \"npm\", \"pip\", \"maven\")\n\t//   - \"description\": package description\n\tMetadata map[string]any `json:\"metadata,omitempty\"`\n\t// Represents whether the dependency is requested directly by the manifest or is a dependency of another dependency.\n\t// Can have the following values:\n\t//   - \"direct\": indicates that the dependency is requested directly by the manifest.\n\t//   - \"indirect\": indicates that the dependency is a dependency of another dependency.\n\tRelationship *string `json:\"relationship,omitempty\"`\n\t// Represents whether the dependency is required for the primary build artifact or is only used for development.\n\t// Can have the following values:\n\t//   - \"runtime\": indicates that the dependency is required for the primary build artifact.\n\t//   - \"development\": indicates that the dependency is only used for development.\n\tScope        *string  `json:\"scope,omitempty\"`\n\tDependencies []string `json:\"dependencies,omitempty\"`\n}\n```\nDependencyGraphSnapshotResolvedDependency represents a resolved dependency in a dependency graph snapshot.\n\nGitHub API docs: [https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository](https://docs.github.com/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository)\n\n```go\nfunc (d *DependencyGraphSnapshotResolvedDependency) GetDependencies() []string\n```\nGetDependencies returns the Dependencies slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotResolvedDependency) GetMetadata() map[string]any\n```\nGetMetadata returns the Metadata map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotResolvedDependency) GetPackageURL() string\n```\nGetPackageURL returns the PackageURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotResolvedDependency) GetRelationship() string\n```\nGetRelationship returns the Relationship field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DependencyGraphSnapshotResolvedDependency) GetScope() string\n```\nGetScope returns the Scope field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#deploy\\_key](https://docs.github.com/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) GetPayload() json.RawMessage\n```\nGetPayload returns the Payload field.\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\tType   *string `json:\"type,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\nfunc (d *DeploymentBranchPolicy) GetType() string\n```\nGetType returns the Type 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) GetBranchPolicies() []*DeploymentBranchPolicy\n```\nGetBranchPolicies returns the BranchPolicies slice if it's non-nil, nil otherwise.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#deployment](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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) GetPullRequests() []*PullRequest\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DeploymentProtectionRuleEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (e *DeploymentProtectionRuleEvent) GetRunID() (int64, error)\n```\nGetRunID is a Helper Function used to extract the workflow RunID from the \\*DeploymentProtectionRuleEvent.DeploymentCallBackURL.\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\"`\n\tTask                  *string  `json:\"task,omitempty\"`\n\tAutoMerge             *bool    `json:\"auto_merge,omitempty\"`\n\tRequiredContexts      []string `json:\"required_contexts,omitzero\"`\n\tPayload               any      `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) GetPayload() any\n```\nGetPayload returns the Payload field.\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.\n\n```go\nfunc (d *DeploymentRequest) GetRequiredContexts() []string\n```\nGetRequiredContexts returns the RequiredContexts slice if it's non-nil, nil 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 DeploymentReviewEvent struct {\n\t// The action performed. Possible values are: \"requested\", \"approved\", or \"rejected\".\n\tAction *string `json:\"action,omitempty\"`\n\n\t// The following will be populated only if requested.\n\tRequester   *User   `json:\"requester,omitempty\"`\n\tEnvironment *string `json:\"environment,omitempty\"`\n\n\t// The following will be populated only if approved or rejected.\n\tApprover        *User             `json:\"approver,omitempty\"`\n\tComment         *string           `json:\"comment,omitempty\"`\n\tWorkflowJobRuns []*WorkflowJobRun `json:\"workflow_job_runs,omitempty\"`\n\n\tEnterprise     *Enterprise         `json:\"enterprise,omitempty\"`\n\tInstallation   *Installation       `json:\"installation,omitempty\"`\n\tOrganization   *Organization       `json:\"organization,omitempty\"`\n\tRepo           *Repository         `json:\"repository,omitempty\"`\n\tReviewers      []*RequiredReviewer `json:\"reviewers,omitempty\"`\n\tSender         *User               `json:\"sender,omitempty\"`\n\tSince          *string             `json:\"since,omitempty\"`\n\tWorkflowJobRun *WorkflowJobRun     `json:\"workflow_job_run,omitempty\"`\n\tWorkflowRun    *WorkflowRun        `json:\"workflow_run,omitempty\"`\n}\n```\nDeploymentReviewEvent represents a deployment review event. The Webhook event name is \"deployment\\_review\".\n\nGitHub API docs: [https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads?#deployment\\_review](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads?#deployment_review)\n\n```go\nfunc (d *DeploymentReviewEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentReviewEvent) GetApprover() *User\n```\nGetApprover returns the Approver field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetComment() string\n```\nGetComment returns the Comment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentReviewEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentReviewEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetRequester() *User\n```\nGetRequester returns the Requester field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetReviewers() []*RequiredReviewer\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DeploymentReviewEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetSince() string\n```\nGetSince returns the Since field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DeploymentReviewEvent) GetWorkflowJobRun() *WorkflowJobRun\n```\nGetWorkflowJobRun returns the WorkflowJobRun field.\n\n```go\nfunc (d *DeploymentReviewEvent) GetWorkflowJobRuns() []*WorkflowJobRun\n```\nGetWorkflowJobRuns returns the WorkflowJobRuns slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DeploymentReviewEvent) GetWorkflowRun() *WorkflowRun\n```\nGetWorkflowRun returns the WorkflowRun field.\n\n```go\ntype DeploymentRuntimeRisk string\n```\nDeploymentRuntimeRisk represents the runtime risk of a deployment.\n\n```go\nconst (\n\tDeploymentRuntimeRiskCriticalResource DeploymentRuntimeRisk = \"critical-resource\"\n\tDeploymentRuntimeRiskInternetExposed  DeploymentRuntimeRisk = \"internet-exposed\"\n\tDeploymentRuntimeRiskLateralMovement  DeploymentRuntimeRisk = \"lateral-movement\"\n\tDeploymentRuntimeRiskSensitiveData    DeploymentRuntimeRisk = \"sensitive-data\"\n)\n```\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\tAction           *string           `json:\"action,omitempty\"`\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#deployment\\_status](https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#deployment_status)\n\n```go\nfunc (d *DeploymentStatusEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\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) GetOrg() *Organization\n```\nGetOrg returns the Org 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\"`\n\t// TargetURL is the target URL to associate with this status.\n\t// It's recommended to use LogURL instead, which replaces TargetURL.\n\tTargetURL      *string `json:\"target_url,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 status 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.\n\n```go\nfunc (d *DeploymentStatusRequest) GetTargetURL() string\n```\nGetTargetURL returns the TargetURL 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. This can be a branch, tag, or SHA.\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\nfunc (d *DeploymentsListOptions) GetEnvironment() string\n```\nGetEnvironment returns the Environment field.\n\n```go\nfunc (d *DeploymentsListOptions) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (d *DeploymentsListOptions) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\nfunc (d *DeploymentsListOptions) GetTask() string\n```\nGetTask returns the Task field.\n\n```go\ntype DevContainer struct {\n\tPath        string  `json:\"path\"`\n\tName        *string `json:\"name,omitempty\"`\n\tDisplayName *string `json:\"display_name,omitempty\"`\n}\n```\nDevContainer represents a devcontainer configuration in a repository.\n\n```go\nfunc (d *DevContainer) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DevContainer) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *DevContainer) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\ntype DevContainerConfigurations struct {\n\tDevcontainers []*DevContainer `json:\"devcontainers\"`\n\tTotalCount    int64           `json:\"total_count\"`\n}\n```\nDevContainerConfigurations represents a list of devcontainer configurations in a repository.\n\n```go\nfunc (d *DevContainerConfigurations) GetDevcontainers() []*DevContainer\n```\nGetDevcontainers returns the Devcontainers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DevContainerConfigurations) GetTotalCount() int64\n```\nGetTotalCount returns the TotalCount field.\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\t// AuthorAssociation is the discussion author's relationship to the repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Discussions REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/discussions/discussions?apiVersion=2022-11-28#get-a-discussion\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 discussion 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\nfunc (d *DiscussionCommentListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion](https://docs.github.com/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\nfunc (d *DiscussionListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\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 DismissalRestriction struct {\n\tAllowedActors []*DismissalRestrictionActor `json:\"allowed_actors,omitempty\"`\n\tEnabled       bool                         `json:\"enabled\"`\n}\n```\nDismissalRestriction represents the people, teams, or apps allowed to dismiss pull request reviews.\n\n```go\nfunc (d *DismissalRestriction) GetAllowedActors() []*DismissalRestrictionActor\n```\nGetAllowedActors returns the AllowedActors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DismissalRestriction) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\n\n```go\ntype DismissalRestrictionActor struct {\n\tID   int64                         `json:\"id\"`\n\tType DismissalRestrictionActorType `json:\"type\"`\n}\n```\nDismissalRestrictionActor represents an actor allowed to dismiss pull request reviews.\n\n```go\nfunc (d *DismissalRestrictionActor) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (d *DismissalRestrictionActor) GetType() DismissalRestrictionActorType\n```\nGetType returns the Type field.\n\n```go\ntype DismissalRestrictionActorType string\n```\nDismissalRestrictionActorType represents the type of actor allowed to dismiss pull request reviews.\n\n```go\nconst (\n\tDismissalRestrictionActorTypeUser                    DismissalRestrictionActorType = \"User\"\n\tDismissalRestrictionActorTypeTeam                    DismissalRestrictionActorType = \"Team\"\n\tDismissalRestrictionActorTypeIntegrationInstallation DismissalRestrictionActorType = \"IntegrationInstallation\"\n\tDismissalRestrictionActorTypeRepositoryRole          DismissalRestrictionActorType = \"RepositoryRole\"\n)\n```\nThis is the set of GitHub dismissal restriction actor types.\n\n```go\ntype DismissalRestrictions struct {\n\t// The list of users who can dismiss 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\nfunc (d *DismissalRestrictions) GetApps() []*App\n```\nGetApps returns the Apps slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DismissalRestrictions) GetTeams() []*Team\n```\nGetTeams returns the Teams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (d *DismissalRestrictions) GetUsers() []*User\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\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 dismiss 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\nfunc (d *DispatchRequestOptions) GetEventType() string\n```\nGetEventType returns the EventType field.\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\tDefaultBranch *EditDefaultBranch `json:\"default_branch,omitempty\"`\n\tTopics        *EditTopics        `json:\"topics,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) GetDefaultBranch() *EditDefaultBranch\n```\nGetDefaultBranch returns the DefaultBranch 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\nfunc (e *EditChange) GetTopics() *EditTopics\n```\nGetTopics returns the Topics field.\n\n```go\ntype EditDefaultBranch struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nEditDefaultBranch represents a change of repository's default branch name.\n\n```go\nfunc (e *EditDefaultBranch) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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 EditTopics struct {\n\tFrom []string `json:\"from,omitempty\"`\n}\n```\nEditTopics represents a change of repository topics.\n\n```go\nfunc (e *EditTopics) GetFrom() []string\n```\nGetFrom returns the From slice if it's non-nil, nil otherwise.\n\n```go\ntype EmojisService service\n```\nEmojisService provides access to emoji-related functions in the GitHub API.\n\n```go\nfunc (s *EmojisService) List(ctx context.Context) (map[string]string, *Response, error)\n```\nList returns the emojis available to use on GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/emojis/emojis?apiVersion=2022-11-28#get-emojis](https://docs.github.com/rest/emojis/emojis?apiVersion=2022-11-28#get-emojis)\n\n```go\ntype EmptyRuleParameters struct{}\n```\nEmptyRuleParameters represents the parameters for a rule with no options.\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\nfunc (e *EncryptedSecret) GetEncryptedValue() string\n```\nGetEncryptedValue returns the EncryptedValue field.\n\n```go\nfunc (e *EncryptedSecret) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (e *EncryptedSecret) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (e *EncryptedSecret) GetSelectedRepositoryIDs() SelectedRepoIDs\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs field.\n\n```go\nfunc (e *EncryptedSecret) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\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 EnterpriseAggregatedUsageItem struct {\n\tProduct          string  `json:\"product\"`\n\tSKU              string  `json:\"sku\"`\n\tModel            string  `json:\"model\"`\n\tUnitType         string  `json:\"unitType\"`\n\tPricePerUnit     float64 `json:\"pricePerUnit\"`\n\tGrossQuantity    float64 `json:\"grossQuantity\"`\n\tGrossAmount      float64 `json:\"grossAmount\"`\n\tDiscountQuantity float64 `json:\"discountQuantity\"`\n\tDiscountAmount   float64 `json:\"discountAmount\"`\n\tNetQuantity      float64 `json:\"netQuantity\"`\n\tNetAmount        float64 `json:\"netAmount\"`\n}\n```\nEnterpriseAggregatedUsageItem represents a single usage line item in an enterprise billing premium request or AI credit report.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetDiscountAmount() float64\n```\nGetDiscountAmount returns the DiscountAmount field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetDiscountQuantity() float64\n```\nGetDiscountQuantity returns the DiscountQuantity field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetGrossAmount() float64\n```\nGetGrossAmount returns the GrossAmount field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetGrossQuantity() float64\n```\nGetGrossQuantity returns the GrossQuantity field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetModel() string\n```\nGetModel returns the Model field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetNetAmount() float64\n```\nGetNetAmount returns the NetAmount field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetNetQuantity() float64\n```\nGetNetQuantity returns the NetQuantity field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetPricePerUnit() float64\n```\nGetPricePerUnit returns the PricePerUnit field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageItem) GetUnitType() string\n```\nGetUnitType returns the UnitType field.\n\n```go\ntype EnterpriseAggregatedUsageReport struct {\n\tTimePeriod   EnterpriseUsageTimePeriod        `json:\"timePeriod\"`\n\tEnterprise   string                           `json:\"enterprise\"`\n\tOrganization *string                          `json:\"organization,omitempty\"`\n\tUser         *string                          `json:\"user,omitempty\"`\n\tProduct      *string                          `json:\"product,omitempty\"`\n\tModel        *string                          `json:\"model,omitempty\"`\n\tCostCenter   *BillingCostCenter               `json:\"costCenter,omitempty\"`\n\tUsageItems   []*EnterpriseAggregatedUsageItem `json:\"usageItems\"`\n}\n```\nEnterpriseAggregatedUsageReport represents the aggregated billing usage report response for the premium request and AI credit endpoints.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetCostCenter() *BillingCostCenter\n```\nGetCostCenter returns the CostCenter field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetEnterprise() string\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetModel() string\n```\nGetModel returns the Model field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetOrganization() string\n```\nGetOrganization returns the Organization field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetProduct() string\n```\nGetProduct returns the Product field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetTimePeriod() EnterpriseUsageTimePeriod\n```\nGetTimePeriod returns the TimePeriod field.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetUsageItems() []*EnterpriseAggregatedUsageItem\n```\nGetUsageItems returns the UsageItems slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseAggregatedUsageReport) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\ntype EnterpriseBudget struct {\n\tID                  *string                   `json:\"id,omitempty\"`\n\tBudgetType          *string                   `json:\"budget_type,omitempty\"`\n\tBudgetProductSKU    *string                   `json:\"budget_product_sku,omitempty\"`\n\tBudgetScope         *string                   `json:\"budget_scope,omitempty\"`\n\tBudgetEntityName    *string                   `json:\"budget_entity_name,omitempty\"`\n\tBudgetAmount        *int                      `json:\"budget_amount,omitempty\"`\n\tPreventFurtherUsage *bool                     `json:\"prevent_further_usage,omitempty\"`\n\tBudgetAlerting      *EnterpriseBudgetAlerting `json:\"budget_alerting,omitempty\"`\n}\n```\nEnterpriseBudget represents a GitHub enterprise budget.\n\n```go\nfunc (e *EnterpriseBudget) GetBudgetAlerting() *EnterpriseBudgetAlerting\n```\nGetBudgetAlerting returns the BudgetAlerting field.\n\n```go\nfunc (e *EnterpriseBudget) GetBudgetAmount() int\n```\nGetBudgetAmount returns the BudgetAmount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudget) GetBudgetEntityName() string\n```\nGetBudgetEntityName returns the BudgetEntityName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudget) GetBudgetProductSKU() string\n```\nGetBudgetProductSKU returns the BudgetProductSKU field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudget) GetBudgetScope() string\n```\nGetBudgetScope returns the BudgetScope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudget) GetBudgetType() string\n```\nGetBudgetType returns the BudgetType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudget) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudget) GetPreventFurtherUsage() bool\n```\nGetPreventFurtherUsage returns the PreventFurtherUsage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (b EnterpriseBudget) String() string\n```\n\n```go\ntype EnterpriseBudgetAlerting struct {\n\tWillAlert       *bool    `json:\"will_alert,omitempty\"`\n\tAlertRecipients []string `json:\"alert_recipients,omitempty\"`\n}\n```\nEnterpriseBudgetAlerting represents alerting settings for a GitHub enterprise budget.\n\n```go\nfunc (e *EnterpriseBudgetAlerting) GetAlertRecipients() []string\n```\nGetAlertRecipients returns the AlertRecipients slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseBudgetAlerting) GetWillAlert() bool\n```\nGetWillAlert returns the WillAlert field if it's non-nil, zero value otherwise.\n\n```go\ntype EnterpriseBudgetUserState struct {\n\tUser             *string `json:\"user,omitempty\"`\n\tConsumedAmount   float64 `json:\"consumed_amount\"`\n\tTargetAmount     float64 `json:\"target_amount\"`\n\tOverrideBudgetID *string `json:\"override_budget_id,omitempty\"`\n}\n```\nEnterpriseBudgetUserState represents the budget status and consumption of an individual user.\n\n```go\nfunc (e *EnterpriseBudgetUserState) GetConsumedAmount() float64\n```\nGetConsumedAmount returns the ConsumedAmount field.\n\n```go\nfunc (e *EnterpriseBudgetUserState) GetOverrideBudgetID() string\n```\nGetOverrideBudgetID returns the OverrideBudgetID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseBudgetUserState) GetTargetAmount() float64\n```\nGetTargetAmount returns the TargetAmount field.\n\n```go\nfunc (e *EnterpriseBudgetUserState) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u EnterpriseBudgetUserState) String() string\n```\n\n```go\ntype EnterpriseBudgetUserStates struct {\n\tUserStates  []*EnterpriseBudgetUserState `json:\"user_states\"`\n\tHasNextPage bool                         `json:\"has_next_page\"`\n\tTotalCount  int                          `json:\"total_count\"`\n}\n```\nEnterpriseBudgetUserStates represents the response when retrieving user states for a budget.\n\n```go\nfunc (e *EnterpriseBudgetUserStates) GetHasNextPage() bool\n```\nGetHasNextPage returns the HasNextPage field.\n\n```go\nfunc (e *EnterpriseBudgetUserStates) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\nfunc (e *EnterpriseBudgetUserStates) GetUserStates() []*EnterpriseBudgetUserState\n```\nGetUserStates returns the UserStates slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u EnterpriseBudgetUserStates) String() string\n```\n\n```go\ntype EnterpriseConsumedLicenses struct {\n\tTotalSeatsConsumed  int                        `json:\"total_seats_consumed\"`\n\tTotalSeatsPurchased int                        `json:\"total_seats_purchased\"`\n\tUsers               []*EnterpriseLicensedUsers `json:\"users,omitempty\"`\n}\n```\nEnterpriseConsumedLicenses represents information about users with consumed enterprise licenses.\n\n```go\nfunc (e *EnterpriseConsumedLicenses) GetTotalSeatsConsumed() int\n```\nGetTotalSeatsConsumed returns the TotalSeatsConsumed field.\n\n```go\nfunc (e *EnterpriseConsumedLicenses) GetTotalSeatsPurchased() int\n```\nGetTotalSeatsPurchased returns the TotalSeatsPurchased field.\n\n```go\nfunc (e *EnterpriseConsumedLicenses) GetUsers() []*EnterpriseLicensedUsers\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\n\n```go\ntype EnterpriseCreateBudget struct {\n\tBudgetAmount        int                      `json:\"budget_amount\"`\n\tPreventFurtherUsage bool                     `json:\"prevent_further_usage\"`\n\tBudgetAlerting      EnterpriseBudgetAlerting `json:\"budget_alerting\"`\n\tBudgetScope         string                   `json:\"budget_scope\"`\n\tBudgetEntityName    *string                  `json:\"budget_entity_name,omitempty\"`\n\tBudgetType          string                   `json:\"budget_type\"`\n\tBudgetProductSKU    *string                  `json:\"budget_product_sku,omitempty\"`\n}\n```\nEnterpriseCreateBudget represents the payload to create a GitHub enterprise budget.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetBudgetAlerting() EnterpriseBudgetAlerting\n```\nGetBudgetAlerting returns the BudgetAlerting field.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetBudgetAmount() int\n```\nGetBudgetAmount returns the BudgetAmount field.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetBudgetEntityName() string\n```\nGetBudgetEntityName returns the BudgetEntityName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetBudgetProductSKU() string\n```\nGetBudgetProductSKU returns the BudgetProductSKU field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetBudgetScope() string\n```\nGetBudgetScope returns the BudgetScope field.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetBudgetType() string\n```\nGetBudgetType returns the BudgetType field.\n\n```go\nfunc (e *EnterpriseCreateBudget) GetPreventFurtherUsage() bool\n```\nGetPreventFurtherUsage returns the PreventFurtherUsage field.\n\n```go\ntype EnterpriseCreateOrUpdateBudgetResponse struct {\n\tMessage string            `json:\"message\"`\n\tBudget  *EnterpriseBudget `json:\"budget\"`\n}\n```\nEnterpriseCreateOrUpdateBudgetResponse represents the response when creating or updating a budget.\n\n```go\nfunc (e *EnterpriseCreateOrUpdateBudgetResponse) GetBudget() *EnterpriseBudget\n```\nGetBudget returns the Budget field.\n\n```go\nfunc (e *EnterpriseCreateOrUpdateBudgetResponse) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\ntype EnterpriseCustomPropertiesValues struct {\n\t// The Organization ID that the custom property values will be applied to.\n\tOrganizationID *int64 `json:\"organization_id,omitempty\"`\n\t// The names of organizations that the custom property values will be applied to.\n\tOrganizationLogin *string `json:\"organization_login,omitempty\"`\n\t// List of custom property names and associated values to apply to the organizations.\n\tProperties []*CustomPropertyValue `json:\"properties,omitempty\"`\n}\n```\nEnterpriseCustomPropertiesValues represents the custom properties values for an organization within an enterprise.\n\n```go\nfunc (e *EnterpriseCustomPropertiesValues) GetOrganizationID() int64\n```\nGetOrganizationID returns the OrganizationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseCustomPropertiesValues) GetOrganizationLogin() string\n```\nGetOrganizationLogin returns the OrganizationLogin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseCustomPropertiesValues) GetProperties() []*CustomPropertyValue\n```\nGetProperties returns the Properties slice if it's non-nil, nil otherwise.\n\n```go\ntype EnterpriseCustomPropertySchema struct {\n\t// An ordered list of the custom property defined in the enterprise.\n\tProperties []*CustomProperty `json:\"properties\"`\n}\n```\nEnterpriseCustomPropertySchema represents the schema response for GetEnterpriseCustomPropertiesSchema.\n\n```go\nfunc (e *EnterpriseCustomPropertySchema) GetProperties() []*CustomProperty\n```\nGetProperties returns the Properties slice if it's non-nil, nil otherwise.\n\n```go\ntype EnterpriseCustomPropertyValuesRequest struct {\n\t// The names of organizations that the custom property values will be applied to.\n\t// OrganizationLogins specifies the organization names when updating multiple organizations.\n\tOrganizationLogins []string `json:\"organization_logins\"`\n\t// List of custom property names and associated values to apply to the organizations.\n\tProperties []*CustomPropertyValue `json:\"properties\"`\n}\n```\nEnterpriseCustomPropertyValuesRequest represents the request to update custom property values for organizations within an enterprise.\n\n```go\nfunc (e *EnterpriseCustomPropertyValuesRequest) GetOrganizationLogins() []string\n```\nGetOrganizationLogins returns the OrganizationLogins slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseCustomPropertyValuesRequest) GetProperties() []*CustomPropertyValue\n```\nGetProperties returns the Properties slice if it's non-nil, nil otherwise.\n\n```go\ntype EnterpriseDeleteBudgetResponse struct {\n\tMessage string `json:\"message\"`\n\tID      string `json:\"id\"`\n}\n```\nEnterpriseDeleteBudgetResponse represents the response when deleting a budget.\n\n```go\nfunc (e *EnterpriseDeleteBudgetResponse) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (e *EnterpriseDeleteBudgetResponse) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\ntype EnterpriseGetUserStatesOptions struct {\n\tSortOrder           int     `url:\"sort_order,omitempty\"`\n\tUser                string  `url:\"user,omitempty\"`\n\tThresholdLowerBound float64 `url:\"threshold_lower_bound,omitempty\"`\n\tThresholdUpperBound float64 `url:\"threshold_upper_bound,omitempty\"`\n\n\tListOptions\n}\n```\nEnterpriseGetUserStatesOptions specifies the optional parameters to the EnterpriseService.GetUserStatesForBudget method.\n\n```go\nfunc (e *EnterpriseGetUserStatesOptions) GetSortOrder() int\n```\nGetSortOrder returns the SortOrder field.\n\n```go\nfunc (e *EnterpriseGetUserStatesOptions) GetThresholdLowerBound() float64\n```\nGetThresholdLowerBound returns the ThresholdLowerBound field.\n\n```go\nfunc (e *EnterpriseGetUserStatesOptions) GetThresholdUpperBound() float64\n```\nGetThresholdUpperBound returns the ThresholdUpperBound field.\n\n```go\nfunc (e *EnterpriseGetUserStatesOptions) GetUser() string\n```\nGetUser returns the User field.\n\n```go\ntype EnterpriseLicenseSyncStatus struct {\n\tTitle       string                    `json:\"title\"`\n\tDescription string                    `json:\"description\"`\n\tProperties  *ServerInstanceProperties `json:\"properties,omitempty\"`\n}\n```\nEnterpriseLicenseSyncStatus represents the synchronization status of GitHub Enterprise Server instances with an enterprise account.\n\n```go\nfunc (e *EnterpriseLicenseSyncStatus) GetDescription() string\n```\nGetDescription returns the Description field.\n\n```go\nfunc (e *EnterpriseLicenseSyncStatus) GetProperties() *ServerInstanceProperties\n```\nGetProperties returns the Properties field.\n\n```go\nfunc (e *EnterpriseLicenseSyncStatus) GetTitle() string\n```\nGetTitle returns the Title field.\n\n```go\ntype EnterpriseLicensedUsers struct {\n\tGithubComLogin                  string   `json:\"github_com_login\"`\n\tGithubComName                   *string  `json:\"github_com_name\"`\n\tEnterpriseServerUserIDs         []string `json:\"enterprise_server_user_ids,omitempty\"`\n\tGithubComUser                   bool     `json:\"github_com_user\"`\n\tEnterpriseServerUser            *bool    `json:\"enterprise_server_user\"`\n\tVisualStudioSubscriptionUser    bool     `json:\"visual_studio_subscription_user\"`\n\tLicenseType                     string   `json:\"license_type\"`\n\tGithubComProfile                *string  `json:\"github_com_profile\"`\n\tGithubComMemberRoles            []string `json:\"github_com_member_roles,omitempty\"`\n\tGithubComEnterpriseRoles        []string `json:\"github_com_enterprise_roles,omitempty\"`\n\tGithubComVerifiedDomainEmails   []string `json:\"github_com_verified_domain_emails,omitempty\"`\n\tGithubComSamlNameID             *string  `json:\"github_com_saml_name_id\"`\n\tGithubComOrgsWithPendingInvites []string `json:\"github_com_orgs_with_pending_invites,omitempty\"`\n\tGithubComTwoFactorAuth          *bool    `json:\"github_com_two_factor_auth\"`\n\tEnterpriseServerEmails          []string `json:\"enterprise_server_emails,omitempty\"`\n\tVisualStudioLicenseStatus       *string  `json:\"visual_studio_license_status\"`\n\tVisualStudioSubscriptionEmail   *string  `json:\"visual_studio_subscription_email\"`\n\tTotalUserAccounts               int      `json:\"total_user_accounts\"`\n}\n```\nEnterpriseLicensedUsers represents a user with license information in an enterprise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetEnterpriseServerEmails() []string\n```\nGetEnterpriseServerEmails returns the EnterpriseServerEmails slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetEnterpriseServerUser() bool\n```\nGetEnterpriseServerUser returns the EnterpriseServerUser field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetEnterpriseServerUserIDs() []string\n```\nGetEnterpriseServerUserIDs returns the EnterpriseServerUserIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComEnterpriseRoles() []string\n```\nGetGithubComEnterpriseRoles returns the GithubComEnterpriseRoles slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComLogin() string\n```\nGetGithubComLogin returns the GithubComLogin field.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComMemberRoles() []string\n```\nGetGithubComMemberRoles returns the GithubComMemberRoles slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComName() string\n```\nGetGithubComName returns the GithubComName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComOrgsWithPendingInvites() []string\n```\nGetGithubComOrgsWithPendingInvites returns the GithubComOrgsWithPendingInvites slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComProfile() string\n```\nGetGithubComProfile returns the GithubComProfile field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComSamlNameID() string\n```\nGetGithubComSamlNameID returns the GithubComSamlNameID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComTwoFactorAuth() bool\n```\nGetGithubComTwoFactorAuth returns the GithubComTwoFactorAuth field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComUser() bool\n```\nGetGithubComUser returns the GithubComUser field.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetGithubComVerifiedDomainEmails() []string\n```\nGetGithubComVerifiedDomainEmails returns the GithubComVerifiedDomainEmails slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetLicenseType() string\n```\nGetLicenseType returns the LicenseType field.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetTotalUserAccounts() int\n```\nGetTotalUserAccounts returns the TotalUserAccounts field.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetVisualStudioLicenseStatus() string\n```\nGetVisualStudioLicenseStatus returns the VisualStudioLicenseStatus field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetVisualStudioSubscriptionEmail() string\n```\nGetVisualStudioSubscriptionEmail returns the VisualStudioSubscriptionEmail field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseLicensedUsers) GetVisualStudioSubscriptionUser() bool\n```\nGetVisualStudioSubscriptionUser returns the VisualStudioSubscriptionUser field.\n\n```go\ntype EnterpriseListBudgets struct {\n\tBudgets     []*EnterpriseBudget `json:\"budgets\"`\n\tHasNextPage *bool               `json:\"has_next_page,omitempty\"`\n\tTotalCount  *int                `json:\"total_count,omitempty\"`\n}\n```\nEnterpriseListBudgets represents a collection of GitHub enterprise budgets.\n\n```go\nfunc (e *EnterpriseListBudgets) GetBudgets() []*EnterpriseBudget\n```\nGetBudgets returns the Budgets slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseListBudgets) GetHasNextPage() bool\n```\nGetHasNextPage returns the HasNextPage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseListBudgets) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype EnterpriseListBudgetsOptions struct {\n\tScope string `url:\"scope,omitempty\"`\n\tUser  string `url:\"user,omitempty\"`\n\n\tListOptions\n}\n```\nEnterpriseListBudgetsOptions specifies the optional parameters to the EnterpriseService.ListBudgets method.\n\n```go\nfunc (e *EnterpriseListBudgetsOptions) GetScope() string\n```\nGetScope returns the Scope field.\n\n```go\nfunc (e *EnterpriseListBudgetsOptions) GetUser() string\n```\nGetUser returns the User field.\n\n```go\ntype EnterprisePremiumRequestUsageReportOptions struct {\n\tEnterpriseUsageReportOptions\n\tOrganization string `url:\"organization,omitempty\"`\n\tUser         string `url:\"user,omitempty\"`\n\tModel        string `url:\"model,omitempty\"`\n\tProduct      string `url:\"product,omitempty\"`\n}\n```\nEnterprisePremiumRequestUsageReportOptions specifies optional parameters for the EnterpriseService.GetPremiumRequestUsageReport and EnterpriseService.GetAICreditUsage methods.\n\n```go\nfunc (e *EnterprisePremiumRequestUsageReportOptions) GetModel() string\n```\nGetModel returns the Model field.\n\n```go\nfunc (e *EnterprisePremiumRequestUsageReportOptions) GetOrganization() string\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (e *EnterprisePremiumRequestUsageReportOptions) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (e *EnterprisePremiumRequestUsageReportOptions) GetUser() string\n```\nGetUser returns the User field.\n\n```go\ntype EnterpriseRunnerGroup 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\tSelectedOrganizationsURL     *string  `json:\"selected_organizations_url,omitempty\"`\n\tRunnersURL                   *string  `json:\"runners_url,omitempty\"`\n\tHostedRunnersURL             *string  `json:\"hosted_runners_url,omitempty\"`\n\tNetworkConfigurationID       *string  `json:\"network_configuration_id,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```\nEnterpriseRunnerGroup represents a self-hosted runner group configured in an enterprise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetAllowsPublicRepositories() bool\n```\nGetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetDefault() bool\n```\nGetDefault returns the Default field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetHostedRunnersURL() string\n```\nGetHostedRunnersURL returns the HostedRunnersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetInherited() bool\n```\nGetInherited returns the Inherited field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetRestrictedToWorkflows() bool\n```\nGetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetRunnersURL() string\n```\nGetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetSelectedOrganizationsURL() string\n```\nGetSelectedOrganizationsURL returns the SelectedOrganizationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetSelectedWorkflows() []string\n```\nGetSelectedWorkflows returns the SelectedWorkflows slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroup) GetWorkflowRestrictionsReadOnly() bool\n```\nGetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise.\n\n```go\ntype EnterpriseRunnerGroups struct {\n\tTotalCount   *int                     `json:\"total_count,omitempty\"`\n\tRunnerGroups []*EnterpriseRunnerGroup `json:\"runner_groups\"`\n}\n```\nEnterpriseRunnerGroups represents a collection of self-hosted runner groups configured for an enterprise.\n\n```go\nfunc (e *EnterpriseRunnerGroups) GetRunnerGroups() []*EnterpriseRunnerGroup\n```\nGetRunnerGroups returns the RunnerGroups slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *EnterpriseRunnerGroups) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\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\tSecretScanningValidityChecksEnabled                   *bool   `json:\"secret_scanning_validity_checks_enabled,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\nfunc (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningValidityChecksEnabled() bool\n```\nGetSecretScanningValidityChecksEnabled returns the SecretScanningValidityChecksEnabled 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/rest/enterprise-admin?apiVersion=2022-11-28](https://docs.github.com/rest/enterprise-admin?apiVersion=2022-11-28)\n\n```go\nfunc (s *EnterpriseService) AddAssignment(ctx context.Context, enterprise, enterpriseTeam, org string) (*Organization, *Response, error)\n```\nAddAssignment assigns an enterprise team to an organizations.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#add-an-organization-assignment](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#add-an-organization-assignment)\n\n```go\nfunc (s *EnterpriseService) AddMultipleAssignments(ctx context.Context, enterprise, enterpriseTeam string, organizationSlugs []string) ([]*Organization, *Response, error)\n```\nAddMultipleAssignments assigns an enterprise team to multiple organizations.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#add-organization-assignments](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#add-organization-assignments)\n\n```go\nfunc (s *EnterpriseService) AddOrUpdateVisualStudioSubscriptionAssignment(ctx context.Context, enterprise, subscriptionID string, body VisualStudioSubscriptionAssignmentRequest) (*VisualStudioSubscriptionAssignment, *Response, error)\n```\nAddOrUpdateVisualStudioSubscriptionAssignment adds or updates a manual match between a user and a Visual Studio subscription.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#add-or-update-a-visual-studio-subscription-user-match](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#add-or-update-a-visual-studio-subscription-user-match)\n\n```go\nfunc (s *EnterpriseService) AddOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID, orgID int64) (*Response, error)\n```\nAddOrganizationAccessRunnerGroup adds an organization to the list of selected organizations 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/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) AddRepositoriesToAppInstallation(ctx context.Context, enterprise, org string, installationID int64, body AppInstallationRepositoriesRequest) ([]*AccessibleRepository, *Response, error)\n```\nAddRepositoriesToAppInstallation grants repository access for a GitHub App installation.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#grant-repository-access-to-an-organization-installation](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#grant-repository-access-to-an-organization-installation)\n\n```go\nfunc (s *EnterpriseService) AddResourcesToCostCenter(ctx context.Context, enterprise, costCenterID string, body CostCenterResourceRequest) (*AddResourcesToCostCenterResponse, *Response, error)\n```\nAddResourcesToCostCenter adds resources to a cost center.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#add-resources-to-a-cost-center](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#add-resources-to-a-cost-center)\n\n```go\nfunc (s *EnterpriseService) AddRunnerGroupRunners(ctx context.Context, enterprise string, groupID, runnerID int64) (*Response, error)\n```\nAddRunnerGroupRunners adds a self-hosted runner to a runner group configured in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-a-self-hosted-runner-to-a-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#add-a-self-hosted-runner-to-a-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) AddTeamMember(ctx context.Context, enterprise, enterpriseTeam, username string) (*User, *Response, error)\n```\nAddTeamMember adds a member to an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#add-team-member](https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#add-team-member)\n\n```go\nfunc (s *EnterpriseService) AttachCodeSecurityConfigurationToRepositories(ctx context.Context, enterprise string, configurationID int64, scope string) (*Response, error)\n```\nAttachCodeSecurityConfigurationToRepositories attaches an enterprise code security configuration to repositories. \\`scope\\` is the type of repositories to attach the configuration to. Can be one of: \\`all\\`, \\`all\\_without\\_configurations\\`.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#attach-an-enterprise-configuration-to-repositories](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#attach-an-enterprise-configuration-to-repositories)\n\n```go\nfunc (s *EnterpriseService) BulkAddTeamMembers(ctx context.Context, enterprise, enterpriseTeam string, username []string) ([]*User, *Response, error)\n```\nBulkAddTeamMembers adds multiple members to an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#bulk-add-team-members](https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#bulk-add-team-members)\n\n```go\nfunc (s *EnterpriseService) BulkRemoveTeamMembers(ctx context.Context, enterprise, enterpriseTeam string, username []string) ([]*User, *Response, error)\n```\nBulkRemoveTeamMembers removes multiple members from an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#bulk-remove-team-members](https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#bulk-remove-team-members)\n\n```go\nfunc (s *EnterpriseService) CheckSystemRequirements(ctx context.Context) (*SystemRequirements, *Response, error)\n```\nCheckSystemRequirements checks if GHES system nodes meet the system requirements.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-system-requirement-check-results-for-configured-cluster-nodes](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-system-requirement-check-results-for-configured-cluster-nodes)\n\n```go\nfunc (s *EnterpriseService) ClusterStatus(ctx context.Context) (*ClusterStatus, *Response, error)\n```\nClusterStatus gets the status of all services running on each cluster node.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-services-running-on-all-cluster-nodes](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-services-running-on-all-cluster-nodes)\n\n```go\nfunc (s *EnterpriseService) ConfigApply(ctx context.Context, body *ConfigApplyOptions) (*ConfigApplyOptions, *Response, error)\n```\nConfigApply triggers a configuration apply run on the GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#trigger-a-ghe-config-apply-run](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#trigger-a-ghe-config-apply-run)\n\n```go\nfunc (s *EnterpriseService) ConfigApplyEvents(ctx context.Context, opts *ConfigApplyEventsOptions) (*ConfigApplyEvents, *Response, error)\n```\nConfigApplyEvents gets events from the command ghe-config-apply.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#list-events-from-ghe-config-apply](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#list-events-from-ghe-config-apply)\n\n```go\nfunc (s *EnterpriseService) ConfigApplyStatus(ctx context.Context, opts *ConfigApplyOptions) (*ConfigApplyStatus, *Response, error)\n```\nConfigApplyStatus gets the status of a ghe-config-apply run on the GitHub Enterprise instance. You can request lat one or specific id one.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-a-ghe-config-apply-run](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-a-ghe-config-apply-run)\n\n```go\nfunc (s *EnterpriseService) CreateAuditLogStream(ctx context.Context, enterprise string, body AuditLogStreamConfig) (*AuditLogStream, *Response, error)\n```\nCreateAuditLogStream creates an audit log streaming configuration for an enterprise. Credentials in the config must be encrypted using the key returned by GetAuditLogStreamKey.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#create-an-audit-log-streaming-configuration-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#create-an-audit-log-streaming-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateBudget(ctx context.Context, enterprise string, body EnterpriseCreateBudget) (*EnterpriseCreateOrUpdateBudgetResponse, *Response, error)\n```\nCreateBudget creates a new budget for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#create-a-budget](https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#create-a-budget)\n\n```go\nfunc (s *EnterpriseService) CreateCodeSecurityConfiguration(ctx context.Context, enterprise string, body CodeSecurityConfiguration) (*CodeSecurityConfiguration, *Response, error)\n```\nCreateCodeSecurityConfiguration creates a code security configuration in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#create-a-code-security-configuration-for-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#create-a-code-security-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateCostCenter(ctx context.Context, enterprise string, body CostCenterRequest) (*CostCenter, *Response, error)\n```\nCreateCostCenter creates a new cost center for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#create-a-new-cost-center](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#create-a-new-cost-center)\n\n```go\nfunc (s *EnterpriseService) CreateEnterpriseNetworkConfiguration(ctx context.Context, enterprise string, body NetworkConfigurationRequest) (*NetworkConfiguration, *Response, error)\n```\nCreateEnterpriseNetworkConfiguration creates a hosted compute network configuration for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#create-a-hosted-compute-network-configuration-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#create-a-hosted-compute-network-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateEnterpriseRunnerGroup(ctx context.Context, enterprise string, body CreateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error)\n```\nCreateEnterpriseRunnerGroup creates a new self-hosted runner group for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#create-a-self-hosted-runner-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#create-a-self-hosted-runner-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateHostedRunner(ctx context.Context, enterprise string, body CreateHostedRunnerRequest) (*HostedRunner, *Response, error)\n```\nCreateHostedRunner creates a GitHub-hosted runner for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#create-a-github-hosted-runner-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#create-a-github-hosted-runner-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateJITConfig(ctx context.Context, enterprise string, body CreateJITConfigRequest) (*JITRunnerConfig, *Response, error)\n```\nCreateJITConfig creates a just-in-time configuration for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-configuration-for-a-just-in-time-runner-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateMaintenance(ctx context.Context, enable bool, body *MaintenanceOptions) ([]*MaintenanceOperationStatus, *Response, error)\n```\nCreateMaintenance sets the maintenance mode for the instance. With the enable parameter we can control to put instance into maintenance mode or not. With false we can disable the maintenance mode.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#set-the-status-of-maintenance-mode](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#set-the-status-of-maintenance-mode)\n\n```go\nfunc (s *EnterpriseService) CreateOrUpdateCustomProperties(ctx context.Context, enterprise string, properties []*CustomProperty) ([]*CustomProperty, *Response, error)\n```\nCreateOrUpdateCustomProperties creates new or updates existing custom properties that are defined for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#create-or-update-custom-properties-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#create-or-update-custom-properties-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateOrUpdateCustomProperty(ctx context.Context, enterprise, customPropertyName string, body *CustomProperty) (*CustomProperty, *Response, error)\n```\nCreateOrUpdateCustomProperty creates a new or updates an existing custom property that is defined for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#create-or-update-a-custom-property-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#create-or-update-a-custom-property-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateOrUpdateOrganizationCustomProperty(ctx context.Context, enterprise, customPropertyName string, body CustomProperty) (*Response, error)\n```\nCreateOrUpdateOrganizationCustomProperty creates a new or updates an existing organization custom property definition that is defined on an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-an-organization-custom-property-definition-on-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-an-organization-custom-property-definition-on-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateOrUpdateOrganizationCustomPropertySchema(ctx context.Context, enterprise string, body EnterpriseCustomPropertySchema) (*Response, error)\n```\nCreateOrUpdateOrganizationCustomPropertySchema creates new or updates existing organization custom properties defined on an enterprise in a batch.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-organization-custom-property-definitions-on-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-organization-custom-property-definitions-on-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateOrUpdateOrganizationCustomPropertyValues(ctx context.Context, enterprise string, body EnterpriseCustomPropertyValuesRequest) (*Response, error)\n```\nCreateOrUpdateOrganizationCustomPropertyValues creates or updates custom property values for organizations in an enterprise. To remove a custom property value from an organization, set the property value to null.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-custom-property-values-for-organizations-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-custom-property-values-for-organizations-in-an-enterprise)\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/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) CreateRepositoryRuleset(ctx context.Context, enterprise string, body RepositoryRuleset) (*RepositoryRuleset, *Response, error)\n```\nCreateRepositoryRuleset creates a repository ruleset for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#create-an-enterprise-repository-ruleset](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#create-an-enterprise-repository-ruleset)\n\n```go\nfunc (s *EnterpriseService) CreateSSHKey(ctx context.Context, key string) ([]*SSHKeyStatus, *Response, error)\n```\nCreateSSHKey adds a new SSH key to the instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#set-a-new-ssh-key](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#set-a-new-ssh-key)\n\n```go\nfunc (s *EnterpriseService) CreateTeam(ctx context.Context, enterprise string, body EnterpriseTeamCreateOrUpdateRequest) (*EnterpriseTeam, *Response, error)\n```\nCreateTeam creates a new team in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#create-an-enterprise-team](https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#create-an-enterprise-team)\n\n```go\nfunc (s *EnterpriseService) DeleteAuditLogStream(ctx context.Context, enterprise string, streamID int64) (*Response, error)\n```\nDeleteAuditLogStream deletes an audit log stream configuration for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#delete-an-audit-log-streaming-configuration-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#delete-an-audit-log-streaming-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteBudget(ctx context.Context, enterprise, budgetID string) (*EnterpriseDeleteBudgetResponse, *Response, error)\n```\nDeleteBudget deletes a budget by ID for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#delete-a-budget](https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#delete-a-budget)\n\n```go\nfunc (s *EnterpriseService) DeleteCodeSecurityConfiguration(ctx context.Context, enterprise string, configurationID int64) (*Response, error)\n```\nDeleteCodeSecurityConfiguration deletes a code security configuration from an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#delete-a-code-security-configuration-for-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#delete-a-code-security-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteCostCenter(ctx context.Context, enterprise, costCenterID string) (*DeleteCostCenterResponse, *Response, error)\n```\nDeleteCostCenter deletes a cost center.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#delete-a-cost-center](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#delete-a-cost-center)\n\n```go\nfunc (s *EnterpriseService) DeleteEnterpriseNetworkConfiguration(ctx context.Context, enterprise, networkID string) (*Response, error)\n```\nDeleteEnterpriseNetworkConfiguration deletes a hosted compute network configuration from an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#delete-a-hosted-compute-network-configuration-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#delete-a-hosted-compute-network-configuration-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64) (*Response, error)\n```\nDeleteEnterpriseRunnerGroup deletes a self-hosted runner group from an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#delete-a-self-hosted-runner-group-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#delete-a-self-hosted-runner-group-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteHostedRunner(ctx context.Context, enterprise string, runnerID int64) (*HostedRunner, *Response, error)\n```\nDeleteHostedRunner deletes GitHub-hosted runner from an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-github-hosted-runner-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-github-hosted-runner-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteHostedRunnerCustomImage(ctx context.Context, enterprise string, imageDefinitionID int64) (*Response, error)\n```\nDeleteHostedRunnerCustomImage deletes a custom image from the enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-custom-image-from-the-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-a-custom-image-from-the-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteHostedRunnerCustomImageVersion(ctx context.Context, enterprise string, imageDefinitionID int64, version string) (*Response, error)\n```\nDeleteHostedRunnerCustomImageVersion deletes an image version of a custom image from the enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-an-image-version-of-custom-image-from-the-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#delete-an-image-version-of-custom-image-from-the-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteOrganizationCustomProperty(ctx context.Context, enterprise, customPropertyName string) (*Response, error)\n```\nDeleteOrganizationCustomProperty removes an organization custom property definition that is defined on an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#remove-an-organization-custom-property-definition-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#remove-an-organization-custom-property-definition-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteRepositoryRuleset(ctx context.Context, enterprise string, rulesetID int64) (*Response, error)\n```\nDeleteRepositoryRuleset deletes a repository ruleset from the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#delete-an-enterprise-repository-ruleset](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#delete-an-enterprise-repository-ruleset)\n\n```go\nfunc (s *EnterpriseService) DeleteSCIMGroup(ctx context.Context, enterprise, scimGroupID string) (*Response, error)\n```\nDeleteSCIMGroup deletes a SCIM group from an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#delete-a-scim-group-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#delete-a-scim-group-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteSCIMUser(ctx context.Context, enterprise, scimUserID string) (*Response, error)\n```\nDeleteSCIMUser deletes a SCIM user from an enterprise.\n\nSuspends a SCIM user permanently from an enterprise. This action will: remove all the user's data, anonymize their login, email, and display name, erase all external identity SCIM attributes, delete the user's emails, avatar, PATs, SSH keys, OAuth authorizations, GPG keys, and SAML mappings. This action is irreversible.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#delete-a-scim-user-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#delete-a-scim-user-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) DeleteSSHKey(ctx context.Context, key string) ([]*SSHKeyStatus, *Response, error)\n```\nDeleteSSHKey deletes the SSH key from the instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#delete-a-ssh-key](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#delete-a-ssh-key)\n\n```go\nfunc (s *EnterpriseService) DeleteTeam(ctx context.Context, enterprise, teamSlug string) (*Response, error)\n```\nDeleteTeam deletes a team in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#delete-an-enterprise-team](https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#delete-an-enterprise-team)\n\n```go\nfunc (s *EnterpriseService) DeleteVisualStudioSubscriptionAssignment(ctx context.Context, enterprise, subscriptionID string) (*Response, error)\n```\nDeleteVisualStudioSubscriptionAssignment deletes a manual match between a user and a Visual Studio subscription.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#delete-a-visual-studio-subscription-user-match](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#delete-a-visual-studio-subscription-user-match)\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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#enable-or-disable-a-security-feature](https://docs.github.com/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) GetAICreditUsage(ctx context.Context, enterprise string, opts *EnterprisePremiumRequestUsageReportOptions) (*EnterpriseAggregatedUsageReport, *Response, error)\n```\nGetAICreditUsage returns a report of the AI credit usage for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-ai-credit-usage-report-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-ai-credit-usage-report-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetAllCustomProperties(ctx context.Context, enterprise string) ([]*CustomProperty, *Response, error)\n```\nGetAllCustomProperties gets all custom properties that are defined for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#get-custom-properties-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#get-custom-properties-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetAssignment(ctx context.Context, enterprise, enterpriseTeam, org string) (*Organization, *Response, error)\n```\nGetAssignment checks if an enterprise team is assigned to an organization.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#get-organization-assignment](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#get-organization-assignment)\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/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#get-the-audit-log-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#get-the-audit-log-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetAuditLogStream(ctx context.Context, enterprise string, streamID int64) (*AuditLogStream, *Response, error)\n```\nGetAuditLogStream gets a single audit log stream configuration for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#list-one-audit-log-streaming-configuration-via-a-stream-id](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#list-one-audit-log-streaming-configuration-via-a-stream-id)\n\n```go\nfunc (s *EnterpriseService) GetAuditLogStreamKey(ctx context.Context, enterprise string) (*AuditLogStreamKey, *Response, error)\n```\nGetAuditLogStreamKey retrieves the public key used to encrypt secrets for audit log streaming. Credentials must be encrypted with this key before being submitted via CreateAuditLogStream or UpdateAuditLogStream.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#get-the-audit-log-stream-key-for-encrypting-secrets](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#get-the-audit-log-stream-key-for-encrypting-secrets)\n\n```go\nfunc (s *EnterpriseService) GetBudget(ctx context.Context, enterprise, budgetID string) (*EnterpriseBudget, *Response, error)\n```\nGetBudget gets a budget by ID for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#get-a-budget-by-id](https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#get-a-budget-by-id)\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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#get-code-security-and-analysis-features-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/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) GetCodeSecurityConfiguration(ctx context.Context, enterprise string, configurationID int64) (*CodeSecurityConfiguration, *Response, error)\n```\nGetCodeSecurityConfiguration gets a code security configuration available in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#retrieve-a-code-security-configuration-of-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#retrieve-a-code-security-configuration-of-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetCostCenter(ctx context.Context, enterprise, costCenterID string) (*CostCenter, *Response, error)\n```\nGetCostCenter gets a cost center by ID for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#get-a-cost-center-by-id](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#get-a-cost-center-by-id)\n\n```go\nfunc (s *EnterpriseService) GetCustomProperty(ctx context.Context, enterprise, customPropertyName string) (*CustomProperty, *Response, error)\n```\nGetCustomProperty gets a custom property that is defined for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#get-a-custom-property-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#get-a-custom-property-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetEnterpriseNetworkConfiguration(ctx context.Context, enterprise, networkID string) (*NetworkConfiguration, *Response, error)\n```\nGetEnterpriseNetworkConfiguration gets a hosted compute network configuration configured in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-configuration-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetEnterpriseNetworkSettingsResource(ctx context.Context, enterprise, networkID string) (*NetworkSettingsResource, *Response, error)\n```\nGetEnterpriseNetworkSettingsResource gets a hosted compute network settings resource configured for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-settings-resource-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-settings-resource-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64) (*EnterpriseRunnerGroup, *Response, error)\n```\nGetEnterpriseRunnerGroup gets a specific self-hosted runner group for an enterprise using its RunnerGroup ID.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#get-a-self-hosted-runner-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#get-a-self-hosted-runner-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunner(ctx context.Context, enterprise string, runnerID int64) (*HostedRunner, *Response, error)\n```\nGetHostedRunner gets a GitHub-hosted runner in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-a-github-hosted-runner-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-a-github-hosted-runner-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerCustomImage(ctx context.Context, enterprise string, imageDefinitionID int64) (*HostedRunnerCustomImage, *Response, error)\n```\nGetHostedRunnerCustomImage gets a custom image definition for GitHub-hosted runners in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-an-enterprise-custom-image-definition-for-github-actions-hosted-runners](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-an-enterprise-custom-image-definition-for-github-actions-hosted-runners)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerCustomImageVersion(ctx context.Context, enterprise string, imageDefinitionID int64, version string) (*HostedRunnerCustomImageVersion, *Response, error)\n```\nGetHostedRunnerCustomImageVersion gets an image version of a custom image for GitHub-hosted runners in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-an-image-version-of-an-enterprise-custom-image-for-github-actions-hosted-runners](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-an-image-version-of-an-enterprise-custom-image-for-github-actions-hosted-runners)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerGitHubOwnedImages(ctx context.Context, enterprise string) (*HostedRunnerImages, *Response, error)\n```\nGetHostedRunnerGitHubOwnedImages gets the list of GitHub-owned images available for GitHub-hosted runners for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-owned-images-for-github-hosted-runners-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-owned-images-for-github-hosted-runners-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerLimits(ctx context.Context, enterprise string) (*HostedRunnerPublicIPLimits, *Response, error)\n```\nGetHostedRunnerLimits gets the GitHub-hosted runners Static public IP Limits for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-limits-on-github-hosted-runners-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-limits-on-github-hosted-runners-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerMachineSpecs(ctx context.Context, enterprise string) (*HostedRunnerMachineSpecs, *Response, error)\n```\nGetHostedRunnerMachineSpecs gets the list of machine specs available for GitHub-hosted runners for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-hosted-runners-machine-specs-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-github-hosted-runners-machine-specs-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerPartnerImages(ctx context.Context, enterprise string) (*HostedRunnerImages, *Response, error)\n```\nGetHostedRunnerPartnerImages gets the list of partner images available for GitHub-hosted runners for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-partner-images-for-github-hosted-runners-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-partner-images-for-github-hosted-runners-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetHostedRunnerPlatforms(ctx context.Context, enterprise string) (*HostedRunnerPlatforms, *Response, error)\n```\nGetHostedRunnerPlatforms gets list of platforms available for GitHub-hosted runners for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-platforms-for-github-hosted-runners-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#get-platforms-for-github-hosted-runners-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetLicenseSyncStatus(ctx context.Context, enterprise string) (*EnterpriseLicenseSyncStatus, *Response, error)\n```\nGetLicenseSyncStatus collects information about the status of a license sync job for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#get-a-license-sync-status](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#get-a-license-sync-status)\n\n```go\nfunc (s *EnterpriseService) GetMaintenanceStatus(ctx context.Context, opts *NodeQueryOptions) ([]*MaintenanceStatus, *Response, error)\n```\nGetMaintenanceStatus gets the status of maintenance mode for all nodes.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-maintenance-mode](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-maintenance-mode)\n\n```go\nfunc (s *EnterpriseService) GetNodeReleaseVersions(ctx context.Context, opts *NodeQueryOptions) ([]*NodeReleaseVersion, *Response, error)\n```\nGetNodeReleaseVersions gets the version information deployed to each node.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-all-ghes-release-versions-for-all-nodes](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-all-ghes-release-versions-for-all-nodes)\n\n```go\nfunc (s *EnterpriseService) GetOrganizationCustomProperty(ctx context.Context, enterprise, customPropertyName string) (*CustomProperty, *Response, error)\n```\nGetOrganizationCustomProperty retrieves a specific organization custom property definition from an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#get-an-organization-custom-property-definition-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#get-an-organization-custom-property-definition-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetOrganizationCustomPropertySchema(ctx context.Context, enterprise string) (*EnterpriseCustomPropertySchema, *Response, error)\n```\nGetOrganizationCustomPropertySchema gets all organization custom property definitions that are defined on an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#get-organization-custom-properties-schema-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#get-organization-custom-properties-schema-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetPremiumRequestUsageReport(ctx context.Context, enterprise string, opts *EnterprisePremiumRequestUsageReportOptions) (*EnterpriseAggregatedUsageReport, *Response, error)\n```\nGetPremiumRequestUsageReport returns a report of the premium request usage for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-premium-request-usage-report-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-premium-request-usage-report-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetProvisionedSCIMGroup(ctx context.Context, enterprise, scimGroupID string, opts *GetProvisionedSCIMGroupEnterpriseOptions) (*SCIMEnterpriseGroupAttributes, *Response, error)\n```\nGetProvisionedSCIMGroup gets information about a SCIM group.\n\nYou can use the \\`excludedAttributes\\` from \\`opts\\` and exclude the specified attributes from being returned in the results. Using this parameter can speed up response time.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-an-enterprise-group](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-an-enterprise-group)\n\n```go\nfunc (s *EnterpriseService) GetProvisionedSCIMUser(ctx context.Context, enterprise, scimUserID string) (*SCIMEnterpriseUserAttributes, *Response, error)\n```\nGetProvisionedSCIMUser gets information about a SCIM user.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-an-enterprise-user](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-an-enterprise-user)\n\n```go\nfunc (s *EnterpriseService) GetRepositoryRuleset(ctx context.Context, enterprise string, rulesetID int64) (*RepositoryRuleset, *Response, error)\n```\nGetRepositoryRuleset gets a repository ruleset for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#get-an-enterprise-repository-ruleset](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#get-an-enterprise-repository-ruleset)\n\n```go\nfunc (s *EnterpriseService) GetRunner(ctx context.Context, enterprise string, runnerID int64) (*Runner, *Response, error)\n```\nGetRunner gets a specific self-hosted runner configured in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#get-a-self-hosted-runner-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#get-a-self-hosted-runner-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetSSHKey(ctx context.Context) ([]*ClusterSSHKey, *Response, error)\n```\nGetSSHKey gets the SSH keys configured for the instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-configured-ssh-keys](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-configured-ssh-keys)\n\n```go\nfunc (s *EnterpriseService) GetTeam(ctx context.Context, enterprise, teamSlug string) (*EnterpriseTeam, *Response, error)\n```\nGetTeam retrieves a team in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#get-an-enterprise-team](https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#get-an-enterprise-team)\n\n```go\nfunc (s *EnterpriseService) GetTeamMembership(ctx context.Context, enterprise, enterpriseTeam, username string) (*User, *Response, error)\n```\nGetTeamMembership retrieves a team membership for a user in an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#get-enterprise-team-membership](https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#get-enterprise-team-membership)\n\n```go\nfunc (s *EnterpriseService) GetUsageReport(ctx context.Context, enterprise string, opts *EnterpriseUsageReportOptions) (*EnterpriseUsageReport, *Response, error)\n```\nGetUsageReport returns a report of the total usage for an enterprise using the enhanced billing platform.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetUsageSummary(ctx context.Context, enterprise string, opts *EnterpriseUsageSummaryOptions) (*EnterpriseUsageSummaryReport, *Response, error)\n```\nGetUsageSummary returns a summary report of usage for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-summary-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-summary-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) GetUserStatesForBudget(ctx context.Context, enterprise, budgetID string, opts *EnterpriseGetUserStatesOptions) (*EnterpriseBudgetUserStates, *Response, error)\n```\nGetUserStatesForBudget gets user states for a multi-user budget in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#get-user-states-for-a-multi-user-budget](https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#get-user-states-for-a-multi-user-budget)\n\n```go\nfunc (s *EnterpriseService) InitialConfig(ctx context.Context, license, password string) (*Response, error)\n```\nInitialConfig initializes the GitHub Enterprise instance with a license and password. After initializing the instance, you need to run an apply to apply the configuration.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#initialize-instance-configuration-with-license-and-password](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#initialize-instance-configuration-with-license-and-password)\n\n```go\nfunc (s *EnterpriseService) InstallApp(ctx context.Context, enterprise, org string, body InstallAppRequest) (*Installation, *Response, error)\n```\nInstallApp installs any valid GitHub app on the specified organization owned by the enterprise. If the app is already installed on the organization, and is suspended, it will be unsuspended. If the app has a pending installation request, they will all be approved.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#install-a-github-app-on-an-enterprise-owned-organization](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#install-a-github-app-on-an-enterprise-owned-organization)\n\n```go\nfunc (s *EnterpriseService) License(ctx context.Context) (*LicenseStatus, *Response, error)\n```\nLicense gets the current license information for the GitHub Enterprise instance.\n\nNOTE: The GitHub documentation incorrectly shows the return type as a list (\\[{...}]), but the actual response is a single object ({...}). TODO: Remove this note once GitHub corrects the schema documentation.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-enterprise-license-information](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-enterprise-license-information)\n\n```go\nfunc (s *EnterpriseService) LicenseStatus(ctx context.Context) ([]*LicenseCheck, *Response, error)\n```\nLicenseStatus gets the current license status for the GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#check-a-license](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#check-a-license)\n\n```go\nfunc (s *EnterpriseService) ListAppAccessibleOrganizationRepositories(ctx context.Context, enterprise, org string, opts *ListOptions) ([]*AccessibleRepository, *Response, error)\n```\nListAppAccessibleOrganizationRepositories lists the repositories accessible to an app in an enterprise-owned organization.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#get-repositories-belonging-to-an-enterprise-owned-organization](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#get-repositories-belonging-to-an-enterprise-owned-organization)\n\n```go\nfunc (s *EnterpriseService) ListAppAccessibleOrganizationRepositoriesIter(ctx context.Context, enterprise string, org string, opts *ListOptions) iter.Seq2[*AccessibleRepository, error]\n```\nListAppAccessibleOrganizationRepositoriesIter returns an iterator that paginates through all results of ListAppAccessibleOrganizationRepositories.\n\n```go\nfunc (s *EnterpriseService) ListAppInstallableOrganizations(ctx context.Context, enterprise string, opts *ListOptions) ([]*InstallableOrganization, *Response, error)\n```\nListAppInstallableOrganizations lists the organizations in an enterprise that are installable for an app.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#get-enterprise-owned-organizations-that-can-have-github-apps-installed](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#get-enterprise-owned-organizations-that-can-have-github-apps-installed)\n\n```go\nfunc (s *EnterpriseService) ListAppInstallableOrganizationsIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*InstallableOrganization, error]\n```\nListAppInstallableOrganizationsIter returns an iterator that paginates through all results of ListAppInstallableOrganizations.\n\n```go\nfunc (s *EnterpriseService) ListAppInstallations(ctx context.Context, enterprise, org string, opts *ListOptions) ([]*Installation, *Response, error)\n```\nListAppInstallations lists the GitHub app installations associated with the given enterprise-owned organization.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#list-github-apps-installed-on-an-enterprise-owned-organization](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#list-github-apps-installed-on-an-enterprise-owned-organization)\n\n```go\nfunc (s *EnterpriseService) ListAppInstallationsIter(ctx context.Context, enterprise string, org string, opts *ListOptions) iter.Seq2[*Installation, error]\n```\nListAppInstallationsIter returns an iterator that paginates through all results of ListAppInstallations.\n\n```go\nfunc (s *EnterpriseService) ListAssignments(ctx context.Context, enterprise, enterpriseTeam string, opts *ListOptions) ([]*Organization, *Response, error)\n```\nListAssignments gets all organizations assigned to an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#get-organization-assignments](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#get-organization-assignments)\n\n```go\nfunc (s *EnterpriseService) ListAssignmentsIter(ctx context.Context, enterprise string, enterpriseTeam string, opts *ListOptions) iter.Seq2[*Organization, error]\n```\nListAssignmentsIter returns an iterator that paginates through all results of ListAssignments.\n\n```go\nfunc (s *EnterpriseService) ListAuditLogStreams(ctx context.Context, enterprise string) ([]*AuditLogStream, *Response, error)\n```\nListAuditLogStreams lists the audit log stream configurations for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#list-audit-log-stream-configurations-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#list-audit-log-stream-configurations-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListBudgets(ctx context.Context, enterprise string, opts *EnterpriseListBudgetsOptions) (*EnterpriseListBudgets, *Response, error)\n```\nListBudgets gets all budgets for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#get-all-budgets](https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#get-all-budgets)\n\n```go\nfunc (s *EnterpriseService) ListBudgetsIter(ctx context.Context, enterprise string, opts *EnterpriseListBudgetsOptions) iter.Seq2[*EnterpriseBudget, error]\n```\nListBudgetsIter returns an iterator that paginates through all results of ListBudgets.\n\n```go\nfunc (s *EnterpriseService) ListCodeSecurityConfigurationRepositories(ctx context.Context, enterprise string, configurationID int64, opts *ListCodeSecurityConfigurationRepositoriesOptions) ([]*RepositoryAttachment, *Response, error)\n```\nListCodeSecurityConfigurationRepositories lists the repositories associated with an enterprise code security configuration.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-repositories-associated-with-an-enterprise-code-security-configuration](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-repositories-associated-with-an-enterprise-code-security-configuration)\n\n```go\nfunc (s *EnterpriseService) ListCodeSecurityConfigurationRepositoriesIter(ctx context.Context, enterprise string, configurationID int64, opts *ListCodeSecurityConfigurationRepositoriesOptions) iter.Seq2[*RepositoryAttachment, error]\n```\nListCodeSecurityConfigurationRepositoriesIter returns an iterator that paginates through all results of ListCodeSecurityConfigurationRepositories.\n\n```go\nfunc (s *EnterpriseService) ListCodeSecurityConfigurations(ctx context.Context, enterprise string, opts *ListEnterpriseCodeSecurityConfigurationOptions) ([]*CodeSecurityConfiguration, *Response, error)\n```\nListCodeSecurityConfigurations lists all code security configurations available in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-code-security-configurations-for-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-code-security-configurations-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListCodeSecurityConfigurationsIter(ctx context.Context, enterprise string, opts *ListEnterpriseCodeSecurityConfigurationOptions) iter.Seq2[*CodeSecurityConfiguration, error]\n```\nListCodeSecurityConfigurationsIter returns an iterator that paginates through all results of ListCodeSecurityConfigurations.\n\n```go\nfunc (s *EnterpriseService) ListConsumedLicenses(ctx context.Context, enterprise string, opts *ListOptions) (*EnterpriseConsumedLicenses, *Response, error)\n```\nListConsumedLicenses collect information about the number of consumed licenses and a collection with all the users with consumed enterprise licenses.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#list-enterprise-consumed-licenses](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#list-enterprise-consumed-licenses)\n\n```go\nfunc (s *EnterpriseService) ListConsumedLicensesIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*EnterpriseLicensedUsers, error]\n```\nListConsumedLicensesIter returns an iterator that paginates through all results of ListConsumedLicenses.\n\n```go\nfunc (s *EnterpriseService) ListCostCenters(ctx context.Context, enterprise string, opts *ListCostCenterOptions) (*CostCenters, *Response, error)\n```\nListCostCenters lists all cost centers for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#get-all-cost-centers-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#get-all-cost-centers-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListDefaultCodeSecurityConfigurations(ctx context.Context, enterprise string) ([]*CodeSecurityConfigurationWithDefaultForNewRepos, *Response, error)\n```\nListDefaultCodeSecurityConfigurations lists the default code security configurations for an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-default-code-security-configurations-for-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-default-code-security-configurations-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListEnterpriseNetworkConfigurations(ctx context.Context, enterprise string, opts *ListOptions) (*NetworkConfigurations, *Response, error)\n```\nListEnterpriseNetworkConfigurations lists all hosted compute network configurations configured in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#list-hosted-compute-network-configurations-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#list-hosted-compute-network-configurations-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListEnterpriseNetworkConfigurationsIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*NetworkConfiguration, error]\n```\nListEnterpriseNetworkConfigurationsIter returns an iterator that paginates through all results of ListEnterpriseNetworkConfigurations.\n\n```go\nfunc (s *EnterpriseService) ListHostedRunnerCustomImageVersions(ctx context.Context, enterprise string, imageDefinitionID int64) (*HostedRunnerCustomImageVersions, *Response, error)\n```\nListHostedRunnerCustomImageVersions lists image versions of a custom image for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#list-image-versions-of-a-custom-image-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#list-image-versions-of-a-custom-image-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListHostedRunnerCustomImages(ctx context.Context, enterprise string) (*HostedRunnerCustomImages, *Response, error)\n```\nListHostedRunnerCustomImages lists custom images for GitHub-hosted runners in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#list-custom-images-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#list-custom-images-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListHostedRunners(ctx context.Context, enterprise string, opts *ListOptions) (*HostedRunners, *Response, error)\n```\nListHostedRunners lists all the GitHub-hosted runners for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#list-github-hosted-runners-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#list-github-hosted-runners-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListHostedRunnersIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*HostedRunner, error]\n```\nListHostedRunnersIter returns an iterator that paginates through all results of ListHostedRunners.\n\n```go\nfunc (s *EnterpriseService) ListOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*ListOrganizations, *Response, error)\n```\nListOrganizationAccessRunnerGroup lists the organizations with access to a self-hosted runner group configured in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-organization-access-to-a-self-hosted-runner-group-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-organization-access-to-a-self-hosted-runner-group-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListOrganizationAccessRunnerGroupIter(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) iter.Seq2[*Organization, error]\n```\nListOrganizationAccessRunnerGroupIter returns an iterator that paginates through all results of ListOrganizationAccessRunnerGroup.\n\n```go\nfunc (s *EnterpriseService) ListOrganizationCustomPropertyValues(ctx context.Context, enterprise string, opts *ListOptions) ([]*EnterpriseCustomPropertiesValues, *Response, error)\n```\nListOrganizationCustomPropertyValues lists enterprise organizations with all of their custom property values. Returns a list of organizations and their custom property values defined in the enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#list-custom-property-values-for-organizations-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties-for-orgs?apiVersion=2022-11-28#list-custom-property-values-for-organizations-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListOrganizationCustomPropertyValuesIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*EnterpriseCustomPropertiesValues, error]\n```\nListOrganizationCustomPropertyValuesIter returns an iterator that paginates through all results of ListOrganizationCustomPropertyValues.\n\n```go\nfunc (s *EnterpriseService) ListProvisionedSCIMGroups(ctx context.Context, enterprise string, opts *ListProvisionedSCIMGroupsEnterpriseOptions) (*SCIMEnterpriseGroups, *Response, error)\n```\nListProvisionedSCIMGroups lists provisioned SCIM groups in an enterprise.\n\nYou can improve query search time by using the \\`excludedAttributes\\` and exclude the specified attributes, e.g. \\`members\\` to exclude members from the response.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-provisioned-scim-groups-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-provisioned-scim-groups-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListProvisionedSCIMUsers(ctx context.Context, enterprise string, opts *ListProvisionedSCIMUsersEnterpriseOptions) (*SCIMEnterpriseUsers, *Response, error)\n```\nListProvisionedSCIMUsers lists provisioned SCIM enterprise users.\n\nWhen members are part of the group provisioning payload, they're designated as external group members. Providers are responsible for maintaining a mapping between the \\`externalId\\` and \\`id\\` for each user.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-scim-provisioned-identities-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-scim-provisioned-identities-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRepositoriesForOrgAppInstallation(ctx context.Context, enterprise, org string, installationID int64, opts *ListOptions) ([]*AccessibleRepository, *Response, error)\n```\nListRepositoriesForOrgAppInstallation lists the repositories that an enterprise app installation has access to on an organization.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#get-the-repositories-accessible-to-a-given-github-app-installation](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#get-the-repositories-accessible-to-a-given-github-app-installation)\n\n```go\nfunc (s *EnterpriseService) ListRepositoriesForOrgAppInstallationIter(ctx context.Context, enterprise string, org string, installationID int64, opts *ListOptions) iter.Seq2[*AccessibleRepository, error]\n```\nListRepositoriesForOrgAppInstallationIter returns an iterator that paginates through all results of ListRepositoriesForOrgAppInstallation.\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/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*Runners, *Response, error)\n```\nListRunnerGroupRunners lists self-hosted runners that are in a specific enterprise group.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runners-in-a-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runners-in-a-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRunnerGroupRunnersIter(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) iter.Seq2[*Runner, error]\n```\nListRunnerGroupRunnersIter returns an iterator that paginates through all results of ListRunnerGroupRunners.\n\n```go\nfunc (s *EnterpriseService) ListRunnerGroups(ctx context.Context, enterprise string, opts *ListEnterpriseRunnerGroupOptions) (*EnterpriseRunnerGroups, *Response, error)\n```\nListRunnerGroups lists all self-hosted runner groups configured in an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runner-groups-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#list-self-hosted-runner-groups-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRunnerGroupsIter(ctx context.Context, enterprise string, opts *ListEnterpriseRunnerGroupOptions) iter.Seq2[*EnterpriseRunnerGroup, error]\n```\nListRunnerGroupsIter returns an iterator that paginates through all results of ListRunnerGroups.\n\n```go\nfunc (s *EnterpriseService) ListRunners(ctx context.Context, enterprise string, opts *ListRunnersOptions) (*Runners, *Response, error)\n```\nListRunners lists all the self-hosted runners for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListRunnersIter(ctx context.Context, enterprise string, opts *ListRunnersOptions) iter.Seq2[*Runner, error]\n```\nListRunnersIter returns an iterator that paginates through all results of ListRunners.\n\n```go\nfunc (s *EnterpriseService) ListTeamMembers(ctx context.Context, enterprise, enterpriseTeam string, opts *ListOptions) ([]*User, *Response, error)\n```\nListTeamMembers lists all members of an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#list-members-in-an-enterprise-team](https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#list-members-in-an-enterprise-team)\n\n```go\nfunc (s *EnterpriseService) ListTeamMembersIter(ctx context.Context, enterprise string, enterpriseTeam string, opts *ListOptions) iter.Seq2[*User, error]\n```\nListTeamMembersIter returns an iterator that paginates through all results of ListTeamMembers.\n\n```go\nfunc (s *EnterpriseService) ListTeams(ctx context.Context, enterprise string, opts *ListOptions) ([]*EnterpriseTeam, *Response, error)\n```\nListTeams lists all teams in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#list-enterprise-teams](https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#list-enterprise-teams)\n\n```go\nfunc (s *EnterpriseService) ListTeamsIter(ctx context.Context, enterprise string, opts *ListOptions) iter.Seq2[*EnterpriseTeam, error]\n```\nListTeamsIter returns an iterator that paginates through all results of ListTeams.\n\n```go\nfunc (s *EnterpriseService) ListUserStatesForBudgetIter(ctx context.Context, enterprise string, budgetID string, opts *EnterpriseGetUserStatesOptions) iter.Seq2[*EnterpriseBudgetUserState, error]\n```\nListUserStatesForBudgetIter returns an iterator that paginates through all results of GetUserStatesForBudget.\n\n```go\nfunc (s *EnterpriseService) ListVisualStudioSubscriptions(ctx context.Context, enterprise string, opts *ListVisualStudioSubscriptionsOptions) (*VisualStudioSubscriptions, *Response, error)\n```\nListVisualStudioSubscriptions gets a list of Visual Studio subscriptions for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#get-a-list-of-visual-studio-subscriptions-for-the-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/licensing?apiVersion=2022-11-28#get-a-list-of-visual-studio-subscriptions-for-the-enterprise)\n\n```go\nfunc (s *EnterpriseService) ListVisualStudioSubscriptionsIter(ctx context.Context, enterprise string, opts *ListVisualStudioSubscriptionsOptions) iter.Seq2[*VisualStudioSubscriptionAssignment, error]\n```\nListVisualStudioSubscriptionsIter returns an iterator that paginates through all results of ListVisualStudioSubscriptions.\n\n```go\nfunc (s *EnterpriseService) NodeMetadata(ctx context.Context, opts *NodeQueryOptions) (*NodeMetadataStatus, *Response, error)\n```\nNodeMetadata gets the metadata for all nodes in the GitHub Enterprise instance. This is required for clustered setups.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-ghes-node-metadata-for-all-nodes](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-ghes-node-metadata-for-all-nodes)\n\n```go\nfunc (s *EnterpriseService) ProvisionSCIMGroup(ctx context.Context, enterprise string, body SCIMEnterpriseGroupAttributes) (*SCIMEnterpriseGroupAttributes, *Response, error)\n```\nProvisionSCIMGroup creates a SCIM group for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#provision-a-scim-enterprise-group](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#provision-a-scim-enterprise-group)\n\n```go\nfunc (s *EnterpriseService) ProvisionSCIMUser(ctx context.Context, enterprise string, body SCIMEnterpriseUserAttributes) (*SCIMEnterpriseUserAttributes, *Response, error)\n```\nProvisionSCIMUser creates an external identity for a new SCIM enterprise user.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#provision-a-scim-enterprise-user](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#provision-a-scim-enterprise-user)\n\n```go\nfunc (s *EnterpriseService) RemoveAssignment(ctx context.Context, enterprise, enterpriseTeam, org string) (*Response, error)\n```\nRemoveAssignment unassigns an enterprise team from an organizations.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#delete-an-organization-assignment](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#delete-an-organization-assignment)\n\n```go\nfunc (s *EnterpriseService) RemoveCustomProperty(ctx context.Context, enterprise, customPropertyName string) (*Response, error)\n```\nRemoveCustomProperty removes a custom property that is defined for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#remove-a-custom-property-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/custom-properties?apiVersion=2022-11-28#remove-a-custom-property-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) RemoveMultipleAssignments(ctx context.Context, enterprise, enterpriseTeam string, organizationSlugs []string) ([]*Organization, *Response, error)\n```\nRemoveMultipleAssignments unassigns an enterprise team from multiple organizations.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#remove-organization-assignments](https://docs.github.com/rest/enterprise-teams/enterprise-team-organizations?apiVersion=2022-11-28#remove-organization-assignments)\n\n```go\nfunc (s *EnterpriseService) RemoveOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID, orgID int64) (*Response, error)\n```\nRemoveOrganizationAccessRunnerGroup removes an organization from the list of selected organizations 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/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) RemoveRepositoriesFromAppInstallation(ctx context.Context, enterprise, org string, installationID int64, body AppInstallationRepositoriesRequest) ([]*AccessibleRepository, *Response, error)\n```\nRemoveRepositoriesFromAppInstallation revokes repository access from a GitHub App installation.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#remove-repository-access-from-an-organization-installation](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#remove-repository-access-from-an-organization-installation)\n\n```go\nfunc (s *EnterpriseService) RemoveResourcesFromCostCenter(ctx context.Context, enterprise, costCenterID string, resources CostCenterResourceRequest) (*RemoveResourcesFromCostCenterResponse, *Response, error)\n```\nRemoveResourcesFromCostCenter removes resources from a cost center.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#remove-resources-from-a-cost-center](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#remove-resources-from-a-cost-center)\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/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) RemoveRunnerGroupRunners(ctx context.Context, enterprise string, groupID, runnerID int64) (*Response, error)\n```\nRemoveRunnerGroupRunners removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-a-self-hosted-runner-from-a-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#remove-a-self-hosted-runner-from-a-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) RemoveTeamMember(ctx context.Context, enterprise, enterpriseTeam, username string) (*Response, error)\n```\nRemoveTeamMember removes a member from an enterprise team.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#remove-team-membership](https://docs.github.com/rest/enterprise-teams/enterprise-team-members?apiVersion=2022-11-28#remove-team-membership)\n\n```go\nfunc (s *EnterpriseService) ReplicationStatus(ctx context.Context, opts *NodeQueryOptions) (*ClusterStatus, *Response, error)\n```\nReplicationStatus gets the status of all services running on each replica node.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-services-running-on-all-replica-nodes](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-status-of-services-running-on-all-replica-nodes)\n\n```go\nfunc (s *EnterpriseService) SetDefaultCodeSecurityConfiguration(ctx context.Context, enterprise string, configurationID int64, defaultForNewRepos string) (*CodeSecurityConfigurationWithDefaultForNewRepos, *Response, error)\n```\nSetDefaultCodeSecurityConfiguration sets a code security configuration as a default for an enterprise. \\`defaultForNewRepos\\` specifies which types of repository this security configuration should be applied to by default. Can be one of: \\`all\\`, \\`none\\`, \\`private\\_and\\_internal\\`, \\`public\\`.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#set-a-code-security-configuration-as-a-default-for-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#set-a-code-security-configuration-as-a-default-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) SetOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, body SetOrgAccessRunnerGroupRequest) (*Response, error)\n```\nSetOrganizationAccessRunnerGroup replaces the list of organizations that have access to a self-hosted runner group configured in an enterprise with a new List of organizations.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-organization-access-for-a-self-hosted-runner-group-in-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-organization-access-for-a-self-hosted-runner-group-in-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) SetProvisionedSCIMGroup(ctx context.Context, enterprise, scimGroupID string, body SCIMEnterpriseGroupAttributes) (*SCIMEnterpriseGroupAttributes, *Response, error)\n```\nSetProvisionedSCIMGroup replaces an existing provisioned group’s information.\n\nYou must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. To update only specific attributes, refer to the \\`Enterprise.UpdateSCIMGroupAttribute()\\` method.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#set-scim-information-for-a-provisioned-enterprise-group](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#set-scim-information-for-a-provisioned-enterprise-group)\n\n```go\nfunc (s *EnterpriseService) SetProvisionedSCIMUser(ctx context.Context, enterprise, scimUserID string, body SCIMEnterpriseUserAttributes) (*SCIMEnterpriseUserAttributes, *Response, error)\n```\nSetProvisionedSCIMUser replaces an existing provisioned user's information.\n\nYou must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update specific attributes only, refer to the \\`Enterprise.UpdateSCIMUserAttribute()\\` method.\n\n\\*\\*Warning\\*\\*: Setting \\`active: false\\` will suspend a user, and their handle and email will be obfuscated.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#set-scim-information-for-a-provisioned-enterprise-user](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#set-scim-information-for-a-provisioned-enterprise-user)\n\n```go\nfunc (s *EnterpriseService) SetRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, body SetRunnerGroupRunnersRequest) (*Response, error)\n```\nSetRunnerGroupRunners replaces the list of self-hosted runners that are part of an enterprise runner group with a new list of runners.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-self-hosted-runners-in-a-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#set-self-hosted-runners-in-a-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) Settings(ctx context.Context) (*ConfigSettings, *Response, error)\n```\nSettings gets the current configuration settings for the GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-ghes-settings](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#get-the-ghes-settings)\n\n```go\nfunc (s *EnterpriseService) UninstallApp(ctx context.Context, enterprise, org string, installationID int64) (*Response, error)\n```\nUninstallApp uninstalls a GitHub app from an organization. Any app installed on the organization can be removed.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#uninstall-a-github-app-from-an-enterprise-owned-organization](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#uninstall-a-github-app-from-an-enterprise-owned-organization)\n\n```go\nfunc (s *EnterpriseService) UpdateAppInstallationRepositories(ctx context.Context, enterprise, org string, installationID int64, body UpdateAppInstallationRepositoriesRequest) (*Installation, *Response, error)\n```\nUpdateAppInstallationRepositories changes a GitHub App installation's repository access between all repositories and a selected set.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#toggle-installation-repository-access-between-selected-and-all-repositories](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/organization-installations?apiVersion=2022-11-28#toggle-installation-repository-access-between-selected-and-all-repositories)\n\n```go\nfunc (s *EnterpriseService) UpdateAuditLogStream(ctx context.Context, enterprise string, streamID int64, body AuditLogStreamConfig) (*AuditLogStream, *Response, error)\n```\nUpdateAuditLogStream updates an existing audit log stream configuration for an enterprise. Credentials in the config must be encrypted using the key returned by GetAuditLogStreamKey.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#update-an-existing-audit-log-stream-configuration](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log?apiVersion=2022-11-28#update-an-existing-audit-log-stream-configuration)\n\n```go\nfunc (s *EnterpriseService) UpdateBudget(ctx context.Context, enterprise, budgetID string, body EnterpriseUpdateBudget) (*EnterpriseCreateOrUpdateBudgetResponse, *Response, error)\n```\nUpdateBudget updates an existing budget for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#update-a-budget](https://docs.github.com/enterprise-cloud@latest/rest/billing/budgets?apiVersion=2022-11-28#update-a-budget)\n\n```go\nfunc (s *EnterpriseService) UpdateCodeSecurityAndAnalysis(ctx context.Context, enterprise string, body *EnterpriseSecurityAnalysisSettings) (*Response, error)\n```\nUpdateCodeSecurityAndAnalysis updates code security and analysis features for new repositories in an enterprise.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#update-code-security-and-analysis-features-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis?apiVersion=2022-11-28#update-code-security-and-analysis-features-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) UpdateCodeSecurityConfiguration(ctx context.Context, enterprise string, configurationID int64, body CodeSecurityConfiguration) (*CodeSecurityConfiguration, *Response, error)\n```\nUpdateCodeSecurityConfiguration updates a code security configuration in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#update-a-custom-code-security-configuration-for-an-enterprise](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#update-a-custom-code-security-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) UpdateCostCenter(ctx context.Context, enterprise, costCenterID string, body CostCenterRequest) (*CostCenter, *Response, error)\n```\nUpdateCostCenter updates the name of a cost center.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#update-a-cost-center](https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#update-a-cost-center)\n\n```go\nfunc (s *EnterpriseService) UpdateEnterpriseNetworkConfiguration(ctx context.Context, enterprise, networkID string, body NetworkConfigurationRequest) (*NetworkConfiguration, *Response, error)\n```\nUpdateEnterpriseNetworkConfiguration updates a hosted compute network configuration for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#update-a-hosted-compute-network-configuration-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/network-configurations?apiVersion=2022-11-28#update-a-hosted-compute-network-configuration-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) UpdateEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64, body UpdateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error)\n```\nUpdateEnterpriseRunnerGroup updates a self-hosted runner group for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#update-a-self-hosted-runner-group-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#update-a-self-hosted-runner-group-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) UpdateHostedRunner(ctx context.Context, enterprise string, runnerID int64, body UpdateHostedRunnerRequest) (*HostedRunner, *Response, error)\n```\nUpdateHostedRunner updates a GitHub-hosted runner for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#update-a-github-hosted-runner-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/actions/hosted-runners?apiVersion=2022-11-28#update-a-github-hosted-runner-for-an-enterprise)\n\n```go\nfunc (s *EnterpriseService) UpdateRepositoryRuleset(ctx context.Context, enterprise string, rulesetID int64, body RepositoryRuleset) (*RepositoryRuleset, *Response, error)\n```\nUpdateRepositoryRuleset updates a repository ruleset for the specified enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#update-an-enterprise-repository-ruleset](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/rules?apiVersion=2022-11-28#update-an-enterprise-repository-ruleset)\n\n```go\nfunc (s *EnterpriseService) UpdateSCIMGroupAttribute(ctx context.Context, enterprise, scimGroupID string, body SCIMEnterpriseAttribute) (*SCIMEnterpriseGroupAttributes, *Response, error)\n```\nUpdateSCIMGroupAttribute updates a provisioned group’s individual attributes.\n\nThe \\`attribute\\` parameter must include at least one of the following Operations: \\`add\\`, \\`remove\\`, or \\`replace\\`.\n\nThe update function can also be used to add group memberships.\n\nYou can submit group memberships individually or in batches for improved efficiency.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-enterprise-group](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-enterprise-group)\n\n```go\nfunc (s *EnterpriseService) UpdateSCIMUserAttribute(ctx context.Context, enterprise, scimUserID string, body SCIMEnterpriseAttribute) (*SCIMEnterpriseUserAttributes, *Response, error)\n```\nUpdateSCIMUserAttribute updates a provisioned user's individual attributes.\n\nThe \\`attribute\\` parameter must include at least one of the following Operations: \\`add\\`, \\`remove\\`, or \\`replace\\`.\n\nNote: Complex SCIM path selectors that include filters are not supported. For example, a path selector defined as \\`\"path\": \"emails\\[type eq \\\\\"work\\\\\"]\"\\` will be ineffective.\n\nWarning: Setting \\`active: false\\` will suspend a user, and their handle and email will be obfuscated.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-enterprise-user](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-enterprise-user)\n\n```go\nfunc (s *EnterpriseService) UpdateSettings(ctx context.Context, body *ConfigSettings) (*Response, error)\n```\nUpdateSettings updates the configuration settings for the GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#set-settings](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#set-settings)\n\n```go\nfunc (s *EnterpriseService) UpdateTeam(ctx context.Context, enterprise, teamSlug string, body EnterpriseTeamCreateOrUpdateRequest) (*EnterpriseTeam, *Response, error)\n```\nUpdateTeam updates a team in an enterprise.\n\nGitHub API docs: [https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#update-an-enterprise-team](https://docs.github.com/rest/enterprise-teams/enterprise-teams?apiVersion=2022-11-28#update-an-enterprise-team)\n\n```go\nfunc (s *EnterpriseService) UploadLicense(ctx context.Context, license string) (*Response, error)\n```\nUploadLicense uploads a new license to the GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#upload-an-enterprise-license](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/manage-ghes#upload-an-enterprise-license)\n\n```go\ntype EnterpriseTeam struct {\n\tID                        int64     `json:\"id\"`\n\tURL                       string    `json:\"url\"`\n\tMemberURL                 string    `json:\"member_url\"`\n\tName                      string    `json:\"name\"`\n\tDescription               *string   `json:\"description,omitempty\"`\n\tHTMLURL                   string    `json:\"html_url\"`\n\tSlug                      string    `json:\"slug\"`\n\tCreatedAt                 Timestamp `json:\"created_at\"`\n\tUpdatedAt                 Timestamp `json:\"updated_at\"`\n\tGroupID                   string    `json:\"group_id\"`\n\tOrganizationSelectionType *string   `json:\"organization_selection_type,omitempty\"`\n}\n```\nEnterpriseTeam represent a team in a GitHub Enterprise.\n\n```go\nfunc (e *EnterpriseTeam) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (e *EnterpriseTeam) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseTeam) GetGroupID() string\n```\nGetGroupID returns the GroupID field.\n\n```go\nfunc (e *EnterpriseTeam) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field.\n\n```go\nfunc (e *EnterpriseTeam) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (e *EnterpriseTeam) GetMemberURL() string\n```\nGetMemberURL returns the MemberURL field.\n\n```go\nfunc (e *EnterpriseTeam) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (e *EnterpriseTeam) GetOrganizationSelectionType() string\n```\nGetOrganizationSelectionType returns the OrganizationSelectionType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseTeam) GetSlug() string\n```\nGetSlug returns the Slug field.\n\n```go\nfunc (e *EnterpriseTeam) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\nfunc (e *EnterpriseTeam) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field.\n\n```go\ntype EnterpriseTeamCreateOrUpdateRequest struct {\n\t// The name of the team.\n\tName string `json:\"name\"`\n\t// A description of the team.\n\tDescription *string `json:\"description,omitempty\"`\n\t// Specifies which organizations in the enterprise should have access to this team.\n\t// Possible values are \"disabled\" , \"all\" and \"selected\". If not specified, the default is \"disabled\".\n\tOrganizationSelectionType *string `json:\"organization_selection_type,omitempty\"`\n\t// The ID of the IdP group to assign team membership with.\n\tGroupID *string `json:\"group_id,omitempty\"`\n}\n```\nEnterpriseTeamCreateOrUpdateRequest is used to create or update an enterprise team.\n\n```go\nfunc (e *EnterpriseTeamCreateOrUpdateRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseTeamCreateOrUpdateRequest) GetGroupID() string\n```\nGetGroupID returns the GroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseTeamCreateOrUpdateRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (e *EnterpriseTeamCreateOrUpdateRequest) GetOrganizationSelectionType() string\n```\nGetOrganizationSelectionType returns the OrganizationSelectionType field if it's non-nil, zero value otherwise.\n\n```go\ntype EnterpriseUpdateBudget struct {\n\tBudgetAmount        *int                      `json:\"budget_amount,omitempty\"`\n\tPreventFurtherUsage *bool                     `json:\"prevent_further_usage,omitempty\"`\n\tBudgetAlerting      *EnterpriseBudgetAlerting `json:\"budget_alerting,omitempty\"`\n\tBudgetScope         *string                   `json:\"budget_scope,omitempty\"`\n\tBudgetEntityName    *string                   `json:\"budget_entity_name,omitempty\"`\n\tBudgetType          *string                   `json:\"budget_type,omitempty\"`\n\tBudgetProductSKU    *string                   `json:\"budget_product_sku,omitempty\"`\n}\n```\nEnterpriseUpdateBudget represents the payload to update a GitHub enterprise budget.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetBudgetAlerting() *EnterpriseBudgetAlerting\n```\nGetBudgetAlerting returns the BudgetAlerting field.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetBudgetAmount() int\n```\nGetBudgetAmount returns the BudgetAmount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetBudgetEntityName() string\n```\nGetBudgetEntityName returns the BudgetEntityName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetBudgetProductSKU() string\n```\nGetBudgetProductSKU returns the BudgetProductSKU field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetBudgetScope() string\n```\nGetBudgetScope returns the BudgetScope field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetBudgetType() string\n```\nGetBudgetType returns the BudgetType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUpdateBudget) GetPreventFurtherUsage() bool\n```\nGetPreventFurtherUsage returns the PreventFurtherUsage field if it's non-nil, zero value otherwise.\n\n```go\ntype EnterpriseUsageItem struct {\n\tDate             string  `json:\"date\"`\n\tProduct          string  `json:\"product\"`\n\tSKU              string  `json:\"sku\"`\n\tQuantity         float64 `json:\"quantity\"`\n\tUnitType         string  `json:\"unitType\"`\n\tPricePerUnit     float64 `json:\"pricePerUnit\"`\n\tGrossAmount      float64 `json:\"grossAmount\"`\n\tDiscountAmount   float64 `json:\"discountAmount\"`\n\tNetAmount        float64 `json:\"netAmount\"`\n\tOrganizationName string  `json:\"organizationName\"`\n\tRepositoryName   *string `json:\"repositoryName,omitempty\"`\n}\n```\nEnterpriseUsageItem represents a single usage line item in an enterprise billing platform report.\n\n```go\nfunc (e *EnterpriseUsageItem) GetDate() string\n```\nGetDate returns the Date field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetDiscountAmount() float64\n```\nGetDiscountAmount returns the DiscountAmount field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetGrossAmount() float64\n```\nGetGrossAmount returns the GrossAmount field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetNetAmount() float64\n```\nGetNetAmount returns the NetAmount field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetOrganizationName() string\n```\nGetOrganizationName returns the OrganizationName field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetPricePerUnit() float64\n```\nGetPricePerUnit returns the PricePerUnit field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetQuantity() float64\n```\nGetQuantity returns the Quantity field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetRepositoryName() string\n```\nGetRepositoryName returns the RepositoryName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageItem) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (e *EnterpriseUsageItem) GetUnitType() string\n```\nGetUnitType returns the UnitType field.\n\n```go\ntype EnterpriseUsageReport struct {\n\tUsageItems []*EnterpriseUsageItem `json:\"usageItems,omitempty\"`\n}\n```\nEnterpriseUsageReport represents the enterprise billing usage report response.\n\n```go\nfunc (e *EnterpriseUsageReport) GetUsageItems() []*EnterpriseUsageItem\n```\nGetUsageItems returns the UsageItems slice if it's non-nil, nil otherwise.\n\n```go\ntype EnterpriseUsageReportOptions struct {\n\tYear         int    `url:\"year,omitempty\"`\n\tMonth        int    `url:\"month,omitempty\"`\n\tDay          int    `url:\"day,omitempty\"`\n\tCostCenterID string `url:\"cost_center_id,omitempty\"`\n}\n```\nEnterpriseUsageReportOptions specifies optional parameters for the EnterpriseService.GetUsageReport method.\n\n```go\nfunc (e *EnterpriseUsageReportOptions) GetCostCenterID() string\n```\nGetCostCenterID returns the CostCenterID field.\n\n```go\nfunc (e *EnterpriseUsageReportOptions) GetDay() int\n```\nGetDay returns the Day field.\n\n```go\nfunc (e *EnterpriseUsageReportOptions) GetMonth() int\n```\nGetMonth returns the Month field.\n\n```go\nfunc (e *EnterpriseUsageReportOptions) GetYear() int\n```\nGetYear returns the Year field.\n\n```go\ntype EnterpriseUsageSummaryItem struct {\n\tProduct          string  `json:\"product\"`\n\tSKU              string  `json:\"sku\"`\n\tUnitType         string  `json:\"unitType\"`\n\tPricePerUnit     float64 `json:\"pricePerUnit\"`\n\tGrossQuantity    float64 `json:\"grossQuantity\"`\n\tGrossAmount      float64 `json:\"grossAmount\"`\n\tDiscountQuantity float64 `json:\"discountQuantity\"`\n\tDiscountAmount   float64 `json:\"discountAmount\"`\n\tNetQuantity      float64 `json:\"netQuantity\"`\n\tNetAmount        float64 `json:\"netAmount\"`\n}\n```\nEnterpriseUsageSummaryItem represents a single usage line item in an enterprise billing usage summary report.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetDiscountAmount() float64\n```\nGetDiscountAmount returns the DiscountAmount field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetDiscountQuantity() float64\n```\nGetDiscountQuantity returns the DiscountQuantity field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetGrossAmount() float64\n```\nGetGrossAmount returns the GrossAmount field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetGrossQuantity() float64\n```\nGetGrossQuantity returns the GrossQuantity field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetNetAmount() float64\n```\nGetNetAmount returns the NetAmount field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetNetQuantity() float64\n```\nGetNetQuantity returns the NetQuantity field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetPricePerUnit() float64\n```\nGetPricePerUnit returns the PricePerUnit field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (e *EnterpriseUsageSummaryItem) GetUnitType() string\n```\nGetUnitType returns the UnitType field.\n\n```go\ntype EnterpriseUsageSummaryOptions struct {\n\tEnterpriseUsageReportOptions\n\tOrganization string `url:\"organization,omitempty\"`\n\tRepository   string `url:\"repository,omitempty\"`\n\tProduct      string `url:\"product,omitempty\"`\n\tSKU          string `url:\"sku,omitempty\"`\n}\n```\nEnterpriseUsageSummaryOptions specifies optional parameters for the EnterpriseService.GetUsageSummary method.\n\n```go\nfunc (e *EnterpriseUsageSummaryOptions) GetOrganization() string\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (e *EnterpriseUsageSummaryOptions) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (e *EnterpriseUsageSummaryOptions) GetRepository() string\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (e *EnterpriseUsageSummaryOptions) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\ntype EnterpriseUsageSummaryReport struct {\n\tTimePeriod   EnterpriseUsageTimePeriod     `json:\"timePeriod\"`\n\tEnterprise   string                        `json:\"enterprise\"`\n\tOrganization *string                       `json:\"organization,omitempty\"`\n\tRepository   *string                       `json:\"repository,omitempty\"`\n\tProduct      *string                       `json:\"product,omitempty\"`\n\tSKU          *string                       `json:\"sku,omitempty\"`\n\tCostCenter   *BillingCostCenter            `json:\"costCenter,omitempty\"`\n\tUsageItems   []*EnterpriseUsageSummaryItem `json:\"usageItems\"`\n}\n```\nEnterpriseUsageSummaryReport represents the billing usage summary report response for the EnterpriseService.GetUsageSummary endpoint.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetCostCenter() *BillingCostCenter\n```\nGetCostCenter returns the CostCenter field.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetEnterprise() string\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetOrganization() string\n```\nGetOrganization returns the Organization field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetProduct() string\n```\nGetProduct returns the Product field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetRepository() string\n```\nGetRepository returns the Repository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetSKU() string\n```\nGetSKU returns the SKU field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetTimePeriod() EnterpriseUsageTimePeriod\n```\nGetTimePeriod returns the TimePeriod field.\n\n```go\nfunc (e *EnterpriseUsageSummaryReport) GetUsageItems() []*EnterpriseUsageSummaryItem\n```\nGetUsageItems returns the UsageItems slice if it's non-nil, nil otherwise.\n\n```go\ntype EnterpriseUsageTimePeriod struct {\n\tYear  int  `json:\"year\"`\n\tMonth *int `json:\"month,omitempty\"`\n\tDay   *int `json:\"day,omitempty\"`\n}\n```\nEnterpriseUsageTimePeriod represents a time period used in aggregated enterprise billing reports.\n\n```go\nfunc (e *EnterpriseUsageTimePeriod) GetDay() int\n```\nGetDay returns the Day field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageTimePeriod) GetMonth() int\n```\nGetMonth returns the Month field if it's non-nil, zero value otherwise.\n\n```go\nfunc (e *EnterpriseUsageTimePeriod) GetYear() int\n```\nGetYear returns the Year field.\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) GetEnvironments() []*Environment\n```\nGetEnvironments returns the Environments slice if it's non-nil, nil otherwise.\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) GetProtectionRules() []*ProtectionRule\n```\nGetProtectionRules returns the ProtectionRules slice if it's non-nil, nil 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) GetReviewers() []*EnvReviewers\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil 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/rest?apiVersion=2022-11-28#client-errors](https://docs.github.com/rest?apiVersion=2022-11-28#client-errors)\n\n```go\nfunc (e *Error) Error() string\n```\n\n```go\nfunc (e *Error) GetCode() string\n```\nGetCode returns the Code field.\n\n```go\nfunc (e *Error) GetField() string\n```\nGetField returns the Field field.\n\n```go\nfunc (e *Error) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\nfunc (e *Error) GetResource() string\n```\nGetResource returns the Resource field.\n\n```go\nfunc (e *Error) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements the json.Unmarshaler interface.\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\nfunc (e *ErrorBlock) GetReason() string\n```\nGetReason returns the Reason field.\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\t//nolint:sliceofpointers\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/rest?apiVersion=2022-11-28#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/rest?apiVersion=2022-11-28#client-errors](https://docs.github.com/rest?apiVersion=2022-11-28#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 (e *ErrorResponse) GetDocumentationURL() string\n```\nGetDocumentationURL returns the DocumentationURL field.\n\n```go\nfunc (e *ErrorResponse) GetErrors() []Error\n```\nGetErrors returns the Errors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *ErrorResponse) GetMessage() string\n```\nGetMessage returns the Message 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() (any, 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 any)\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) GetMembers() []*ExternalGroupMember\n```\nGetMembers returns the Members slice if it's non-nil, nil otherwise.\n\n```go\nfunc (e *ExternalGroup) GetTeams() []*ExternalGroupTeam\n```\nGetTeams returns the Teams slice if it's non-nil, nil 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\nfunc (e *ExternalGroupList) GetGroups() []*ExternalGroup\n```\nGetGroups returns the Groups slice if it's non-nil, nil otherwise.\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) GetCurrentUserOrganizations() []*FeedLink\n```\nGetCurrentUserOrganizations returns the CurrentUserOrganizations slice if it's non-nil, nil otherwise.\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) GetCurrentUserOrganizationURLs() []string\n```\nGetCurrentUserOrganizationURLs returns the CurrentUserOrganizationURLs slice if it's non-nil, nil 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 FieldValue struct {\n\tFieldNodeID   *string         `json:\"field_node_id,omitempty\"`\n\tFieldType     *string         `json:\"field_type,omitempty\"`\n\tFieldName     *string         `json:\"field_name,omitempty\"`\n\tProjectNumber *int64          `json:\"project_number,omitempty\"`\n\tFrom          json.RawMessage `json:\"from,omitempty\"`\n\tTo            json.RawMessage `json:\"to,omitempty\"`\n}\n```\nFieldValue represents an editing field value change.\n\n```go\nfunc (f *FieldValue) GetFieldName() string\n```\nGetFieldName returns the FieldName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FieldValue) GetFieldNodeID() string\n```\nGetFieldNodeID returns the FieldNodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FieldValue) GetFieldType() string\n```\nGetFieldType returns the FieldType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FieldValue) GetFrom() json.RawMessage\n```\nGetFrom returns the From field.\n\n```go\nfunc (f *FieldValue) GetProjectNumber() int64\n```\nGetProjectNumber returns the ProjectNumber field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FieldValue) GetTo() json.RawMessage\n```\nGetTo returns the To field.\n\n```go\ntype FileExtensionRestrictionBranchRule struct {\n\tBranchRuleMetadata\n\tParameters FileExtensionRestrictionRuleParameters `json:\"parameters\"`\n}\n```\nFileExtensionRestrictionBranchRule represents a file extension restriction branch rule.\n\n```go\nfunc (f *FileExtensionRestrictionBranchRule) GetParameters() FileExtensionRestrictionRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype FileExtensionRestrictionRuleParameters struct {\n\tRestrictedFileExtensions []string `json:\"restricted_file_extensions\"`\n}\n```\nFileExtensionRestrictionRuleParameters represents the file extension restriction rule parameters.\n\n```go\nfunc (f *FileExtensionRestrictionRuleParameters) GetRestrictedFileExtensions() []string\n```\nGetRestrictedFileExtensions returns the RestrictedFileExtensions slice if it's non-nil, nil otherwise.\n\n```go\ntype FilePathRestrictionBranchRule struct {\n\tBranchRuleMetadata\n\tParameters FilePathRestrictionRuleParameters `json:\"parameters\"`\n}\n```\nFilePathRestrictionBranchRule represents a file path restriction branch rule.\n\n```go\nfunc (f *FilePathRestrictionBranchRule) GetParameters() FilePathRestrictionRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype FilePathRestrictionRuleParameters struct {\n\tRestrictedFilePaths []string `json:\"restricted_file_paths\"`\n}\n```\nFilePathRestrictionRuleParameters represents the file path restriction rule parameters.\n\n```go\nfunc (f *FilePathRestrictionRuleParameters) GetRestrictedFilePaths() []string\n```\nGetRestrictedFilePaths returns the RestrictedFilePaths slice if it's non-nil, nil otherwise.\n\n```go\ntype FineGrainedPersonalAccessTokenRequest struct {\n\t// Unique identifier of the request for access via fine-grained personal access token.\n\tID int64 `json:\"id\"`\n\n\t// Reason is the reason for the request.\n\tReason string `json:\"reason\"`\n\n\t// Owner is the GitHub user associated with the token.\n\tOwner User `json:\"owner\"`\n\n\t// RepositorySelection is the type of repository selection requested.\n\t// Possible values are: \"none\", \"all\", \"subset\".\n\tRepositorySelection string `json:\"repository_selection\"`\n\n\t// URL to the list of repositories the fine-grained personal access token can access.\n\t// Only follow when `repository_selection` is `subset`.\n\tRepositoriesURL string `json:\"repositories_url\"`\n\n\t// Permissions are the permissions requested, categorized by type.\n\tPermissions PersonalAccessTokenPermissions `json:\"permissions\"`\n\n\t// Date and time when the request was created.\n\tCreatedAt *Timestamp `json:\"created_at\"`\n\n\t// Whether the associated fine-grained personal access token has expired.\n\tTokenExpired bool `json:\"token_expired\"`\n\n\t// Date and time when the associated fine-grained personal access token expires.\n\tTokenExpiresAt *Timestamp `json:\"token_expires_at\"`\n\n\t// TokenID\n\tTokenID int64 `json:\"token_id\"`\n\n\t// TokenName\n\tTokenName string `json:\"token_name\"`\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\"`\n}\n```\nFineGrainedPersonalAccessTokenRequest represents the details of a request to access organization resources via a fine-grained personal access token.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetOwner() User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetPermissions() PersonalAccessTokenPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetReason() string\n```\nGetReason returns the Reason field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetRepositoriesURL() string\n```\nGetRepositoriesURL returns the RepositoriesURL field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetTokenExpired() bool\n```\nGetTokenExpired returns the TokenExpired field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetTokenExpiresAt() Timestamp\n```\nGetTokenExpiresAt returns the TokenExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetTokenID() int64\n```\nGetTokenID returns the TokenID field.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetTokenLastUsedAt() Timestamp\n```\nGetTokenLastUsedAt returns the TokenLastUsedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (f *FineGrainedPersonalAccessTokenRequest) GetTokenName() string\n```\nGetTokenName returns the TokenName field.\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/developers/webhooks-and-events/webhook-events-and-payloads#fork](https://docs.github.com/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) GetEmails() []*GPGEmail\n```\nGetEmails returns the Emails slice if it's non-nil, nil 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 (g *GPGKey) GetSubkeys() []*GPGKey\n```\nGetSubkeys returns the Subkeys slice if it's non-nil, nil otherwise.\n\n```go\nfunc (k GPGKey) String() string\n```\nString stringifies a GPGKey.\n\n```go\ntype GenerateNotesRequest struct {\n\tTagName               string  `json:\"tag_name\"`\n\tPreviousTagName       *string `json:\"previous_tag_name,omitempty\"`\n\tTargetCommitish       *string `json:\"target_commitish,omitempty\"`\n\tConfigurationFilePath *string `json:\"configuration_file_path,omitempty\"`\n}\n```\nGenerateNotesRequest represents the request to generate release notes.\n\n```go\nfunc (g *GenerateNotesRequest) GetConfigurationFilePath() string\n```\nGetConfigurationFilePath returns the ConfigurationFilePath field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GenerateNotesRequest) GetPreviousTagName() string\n```\nGetPreviousTagName returns the PreviousTagName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GenerateNotesRequest) GetTagName() string\n```\nGetTagName returns the TagName field.\n\n```go\nfunc (g *GenerateNotesRequest) 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 GetCodeownersErrorsOptions struct {\n\t// A branch, tag or commit name used to determine which version of the CODEOWNERS file to use.\n\t// Default: the repository's default branch (e.g. main).\n\tRef string `url:\"ref,omitempty\"`\n}\n```\nGetCodeownersErrorsOptions specifies the optional parameters to the RepositoriesService.GetCodeownersErrors method.\n\n```go\nfunc (g *GetCodeownersErrorsOptions) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\ntype GetProjectItemOptions struct {\n\t// Fields restricts which field values are returned by numeric field IDs.\n\tFields []int64 `url:\"fields,omitempty,comma\"`\n}\n```\nGetProjectItemOptions specifies optional parameters when getting a project item.\n\n```go\nfunc (g *GetProjectItemOptions) GetFields() []int64\n```\nGetFields returns the Fields slice if it's non-nil, nil otherwise.\n\n```go\ntype GetProvisionedSCIMGroupEnterpriseOptions struct {\n\t// Excludes the specified attributes from being returned in the results.\n\tExcludedAttributes *string `url:\"excludedAttributes,omitempty\"`\n}\n```\nGetProvisionedSCIMGroupEnterpriseOptions represents query parameters for GetProvisionedSCIMGroup.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-an-enterprise-group](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-an-enterprise-group)\n\n```go\nfunc (g *GetProvisionedSCIMGroupEnterpriseOptions) GetExcludedAttributes() string\n```\nGetExcludedAttributes returns the ExcludedAttributes 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\nfunc (g *GistListOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\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/rest/gists?apiVersion=2022-11-28](https://docs.github.com/rest/gists?apiVersion=2022-11-28)\n\n```go\nfunc (s *GistsService) Create(ctx context.Context, body CreateGistRequest) (*Gist, *Response, error)\n```\nCreate a gist for authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#create-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#create-a-gist)\n\n```go\nfunc (s *GistsService) CreateComment(ctx context.Context, gistID string, body CreateGistCommentRequest) (*GistComment, *Response, error)\n```\nCreateComment creates a comment for a gist.\n\nGitHub API docs: [https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#create-a-gist-comment](https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#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/rest/gists/gists?apiVersion=2022-11-28#delete-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#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/rest/gists/comments?apiVersion=2022-11-28#delete-a-gist-comment](https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#delete-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/rest/gists/gists?apiVersion=2022-11-28#fork-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#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/rest/gists/gists?apiVersion=2022-11-28#get-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#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/rest/gists/comments?apiVersion=2022-11-28#get-a-gist-comment](https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#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/rest/gists/gists?apiVersion=2022-11-28#get-a-gist-revision](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#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/rest/gists/gists?apiVersion=2022-11-28#check-if-a-gist-is-starred](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#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/rest/gists/gists?apiVersion=2022-11-28#list-gists-for-a-user](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-gists-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-gists-for-the-authenticated-user](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-gists-for-the-authenticated-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/rest/gists/gists?apiVersion=2022-11-28#list-public-gists](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-public-gists)\n\n```go\nfunc (s *GistsService) ListAllIter(ctx context.Context, opts *GistListOptions) iter.Seq2[*Gist, error]\n```\nListAllIter returns an iterator that paginates through all results of ListAll.\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/rest/gists/comments?apiVersion=2022-11-28#list-gist-comments](https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#list-gist-comments)\n\n```go\nfunc (s *GistsService) ListCommentsIter(ctx context.Context, gistID string, opts *ListOptions) iter.Seq2[*GistComment, error]\n```\nListCommentsIter returns an iterator that paginates through all results of ListComments.\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/rest/gists/gists?apiVersion=2022-11-28#list-gist-commits](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-gist-commits)\n\n```go\nfunc (s *GistsService) ListCommitsIter(ctx context.Context, id string, opts *ListOptions) iter.Seq2[*GistCommit, error]\n```\nListCommitsIter returns an iterator that paginates through all results of ListCommits.\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/rest/gists/gists?apiVersion=2022-11-28#list-gist-forks](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-gist-forks)\n\n```go\nfunc (s *GistsService) ListForksIter(ctx context.Context, id string, opts *ListOptions) iter.Seq2[*GistFork, error]\n```\nListForksIter returns an iterator that paginates through all results of ListForks.\n\n```go\nfunc (s *GistsService) ListIter(ctx context.Context, user string, opts *GistListOptions) iter.Seq2[*Gist, error]\n```\nListIter returns an iterator that paginates through all results of List.\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/rest/gists/gists?apiVersion=2022-11-28#list-starred-gists](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#list-starred-gists)\n\n```go\nfunc (s *GistsService) ListStarredIter(ctx context.Context, opts *GistListOptions) iter.Seq2[*Gist, error]\n```\nListStarredIter returns an iterator that paginates through all results of ListStarred.\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/rest/gists/gists?apiVersion=2022-11-28#star-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#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/rest/gists/gists?apiVersion=2022-11-28#unstar-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#unstar-a-gist)\n\n```go\nfunc (s *GistsService) Update(ctx context.Context, id string, body UpdateGistRequest) (*Gist, *Response, error)\n```\nUpdate a gist.\n\nGitHub API docs: [https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#update-a-gist](https://docs.github.com/rest/gists/gists?apiVersion=2022-11-28#update-a-gist)\n\n```go\nfunc (s *GistsService) UpdateComment(ctx context.Context, gistID string, commentID int64, body UpdateGistCommentRequest) (*GistComment, *Response, error)\n```\nUpdateComment updates an existing gist comment.\n\nGitHub API docs: [https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#update-a-gist-comment](https://docs.github.com/rest/gists/comments?apiVersion=2022-11-28#update-a-gist-comment)\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/developers/webhooks-and-events/webhook-events-and-payloads#github\\_app\\_authorization](https://docs.github.com/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/rest/git?apiVersion=2022-11-28](https://docs.github.com/rest/git?apiVersion=2022-11-28)\n\n```go\nfunc (s *GitService) CreateBlob(ctx context.Context, owner, repo string, body Blob) (*Blob, *Response, error)\n```\nCreateBlob creates a blob object.\n\nGitHub API docs: [https://docs.github.com/rest/git/blobs?apiVersion=2022-11-28#create-a-blob](https://docs.github.com/rest/git/blobs?apiVersion=2022-11-28#create-a-blob)\n\n```go\nfunc (s *GitService) CreateCommit(ctx context.Context, owner, repo string, commit Commit, opts *CreateCommitOptions) (*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/rest/git/commits?apiVersion=2022-11-28#create-a-commit](https://docs.github.com/rest/git/commits?apiVersion=2022-11-28#create-a-commit)\n\n```go\nfunc (s *GitService) CreateRef(ctx context.Context, owner, repo string, body CreateRef) (*Reference, *Response, error)\n```\nCreateRef creates a new ref in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#create-a-reference](https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#create-a-reference)\n\n```go\nfunc (s *GitService) CreateTag(ctx context.Context, owner, repo string, body CreateTag) (*Tag, *Response, error)\n```\nCreateTag creates a tag object.\n\nGitHub API docs: [https://docs.github.com/rest/git/tags?apiVersion=2022-11-28#create-a-tag-object](https://docs.github.com/rest/git/tags?apiVersion=2022-11-28#create-a-tag-object)\n\n```go\nfunc (s *GitService) CreateTree(ctx context.Context, owner, repo, 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\nWhen baseTree is provided, entries are merged with that tree: paths not mentioned in entries are preserved from the base tree. If the same path appears multiple times in entries, the last entry wins. To delete an entry, include a [TreeEntry](#TreeEntry) with the path and both SHA and Content set to nil. Entire directories can be deleted this way.\n\nGitHub API docs: [https://docs.github.com/rest/git/trees?apiVersion=2022-11-28#create-a-tree](https://docs.github.com/rest/git/trees?apiVersion=2022-11-28#create-a-tree)\n\n```go\nfunc (s *GitService) DeleteRef(ctx context.Context, owner, repo, ref string) (*Response, error)\n```\nDeleteRef deletes a ref from a repository.\n\nGitHub API docs: [https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#delete-a-reference](https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#delete-a-reference)\n\n```go\nfunc (s *GitService) GetBlob(ctx context.Context, owner, repo, sha string) (*Blob, *Response, error)\n```\nGetBlob fetches a blob from a repo given a SHA.\n\nGitHub API docs: [https://docs.github.com/rest/git/blobs?apiVersion=2022-11-28#get-a-blob](https://docs.github.com/rest/git/blobs?apiVersion=2022-11-28#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/rest/git/blobs?apiVersion=2022-11-28#get-a-blob](https://docs.github.com/rest/git/blobs?apiVersion=2022-11-28#get-a-blob)\n\n```go\nfunc (s *GitService) GetCommit(ctx context.Context, owner, repo, sha string) (*Commit, *Response, error)\n```\nGetCommit fetches the Commit object for a given SHA.\n\nGitHub API docs: [https://docs.github.com/rest/git/commits?apiVersion=2022-11-28#get-a-commit-object](https://docs.github.com/rest/git/commits?apiVersion=2022-11-28#get-a-commit-object)\n\n```go\nfunc (s *GitService) GetRef(ctx context.Context, owner, repo, ref string) (*Reference, *Response, error)\n```\nGetRef fetches a single reference in a repository. The ref must be formatted as \\`heads/\\\u003cbranch name\u003e\\` for branches and \\`tags/\\\u003ctag name\u003e\\` for tags.\n\nGitHub API docs: [https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#get-a-reference](https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#get-a-reference)\n\n```go\nfunc (s *GitService) GetTag(ctx context.Context, owner, repo, sha string) (*Tag, *Response, error)\n```\nGetTag fetches a tag from a repo given a SHA.\n\nGitHub API docs: [https://docs.github.com/rest/git/tags?apiVersion=2022-11-28#get-a-tag](https://docs.github.com/rest/git/tags?apiVersion=2022-11-28#get-a-tag)\n\n```go\nfunc (s *GitService) GetTree(ctx context.Context, owner, repo, 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/rest/git/trees?apiVersion=2022-11-28#get-a-tree](https://docs.github.com/rest/git/trees?apiVersion=2022-11-28#get-a-tree)\n\n```go\nfunc (s *GitService) ListMatchingRefs(ctx context.Context, owner, repo, ref string) ([]*Reference, *Response, error)\n```\nListMatchingRefs lists references in a repository that match a supplied ref. The ref in the URL must be formatted as \\`heads/\\\u003cbranch name\u003e\\` for branches and \\`tags/\\\u003ctag name\u003e\\` for tags. If the ref doesn't exist in the repository, but existing refs start with ref, they will be returned as an array. Use an empty ref to list all references.\n\nGitHub API docs: [https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#list-matching-references](https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#list-matching-references)\n\n```go\nfunc (s *GitService) UpdateRef(ctx context.Context, owner, repo, ref string, body UpdateRef) (*Reference, *Response, error)\n```\nUpdateRef updates an existing ref in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#update-a-reference](https://docs.github.com/rest/git/refs?apiVersion=2022-11-28#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/rest/gitignore?apiVersion=2022-11-28](https://docs.github.com/rest/gitignore?apiVersion=2022-11-28)\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/rest/gitignore/gitignore?apiVersion=2022-11-28#get-a-gitignore-template](https://docs.github.com/rest/gitignore/gitignore?apiVersion=2022-11-28#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/rest/gitignore/gitignore?apiVersion=2022-11-28#get-all-gitignore-templates](https://docs.github.com/rest/gitignore/gitignore?apiVersion=2022-11-28#get-all-gitignore-templates)\n\n```go\ntype GlobalSecurityAdvisory struct {\n\tSecurityAdvisory\n\tID                    *int64                         `json:\"id,omitempty\"`\n\tRepositoryAdvisoryURL *string                        `json:\"repository_advisory_url,omitempty\"`\n\tType                  *string                        `json:\"type,omitempty\"`\n\tSourceCodeLocation    *string                        `json:\"source_code_location,omitempty\"`\n\tReferences            []string                       `json:\"references,omitempty\"`\n\tVulnerabilities       []*GlobalSecurityVulnerability `json:\"vulnerabilities,omitempty\"`\n\tGithubReviewedAt      *Timestamp                     `json:\"github_reviewed_at,omitempty\"`\n\tNVDPublishedAt        *Timestamp                     `json:\"nvd_published_at,omitempty\"`\n\tCredits               []*Credit                      `json:\"credits,omitempty\"`\n}\n```\nGlobalSecurityAdvisory represents the global security advisory object response.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetCredits() []*Credit\n```\nGetCredits returns the Credits slice if it's non-nil, nil otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetGithubReviewedAt() Timestamp\n```\nGetGithubReviewedAt returns the GithubReviewedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetNVDPublishedAt() Timestamp\n```\nGetNVDPublishedAt returns the NVDPublishedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetReferences() []string\n```\nGetReferences returns the References slice if it's non-nil, nil otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetRepositoryAdvisoryURL() string\n```\nGetRepositoryAdvisoryURL returns the RepositoryAdvisoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetSourceCodeLocation() string\n```\nGetSourceCodeLocation returns the SourceCodeLocation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityAdvisory) GetVulnerabilities() []*GlobalSecurityVulnerability\n```\nGetVulnerabilities returns the Vulnerabilities slice if it's non-nil, nil otherwise.\n\n```go\ntype GlobalSecurityVulnerability struct {\n\tPackage                *VulnerabilityPackage `json:\"package,omitempty\"`\n\tFirstPatchedVersion    *string               `json:\"first_patched_version,omitempty\"`\n\tVulnerableVersionRange *string               `json:\"vulnerable_version_range,omitempty\"`\n\tVulnerableFunctions    []string              `json:\"vulnerable_functions,omitempty\"`\n}\n```\nGlobalSecurityVulnerability represents a vulnerability for a global security advisory.\n\n```go\nfunc (g *GlobalSecurityVulnerability) GetFirstPatchedVersion() string\n```\nGetFirstPatchedVersion returns the FirstPatchedVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (g *GlobalSecurityVulnerability) GetPackage() *VulnerabilityPackage\n```\nGetPackage returns the Package field.\n\n```go\nfunc (g *GlobalSecurityVulnerability) GetVulnerableFunctions() []string\n```\nGetVulnerableFunctions returns the VulnerableFunctions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (g *GlobalSecurityVulnerability) GetVulnerableVersionRange() string\n```\nGetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#gollum](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (g *GollumEvent) GetPages() []*Page\n```\nGetPages returns the Pages slice if it's non-nil, nil otherwise.\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 GoogleCloudConfig struct {\n\tBucket                   string `json:\"bucket\"`\n\tKeyID                    string `json:\"key_id\"`\n\tEncryptedJSONCredentials string `json:\"encrypted_json_credentials\"`\n}\n```\nGoogleCloudConfig represents vendor-specific config for Google Cloud Storage.\n\n```go\nfunc (g *GoogleCloudConfig) GetBucket() string\n```\nGetBucket returns the Bucket field.\n\n```go\nfunc (g *GoogleCloudConfig) GetEncryptedJSONCredentials() string\n```\nGetEncryptedJSONCredentials returns the EncryptedJSONCredentials field.\n\n```go\nfunc (g *GoogleCloudConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID 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) GetScopes() []string\n```\nGetScopes returns the Scopes slice if it's non-nil, nil 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) GetAdded() []string\n```\nGetAdded returns the Added slice if it's non-nil, nil otherwise.\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) GetModified() []string\n```\nGetModified returns the Modified slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HeadCommit) GetRemoved() []string\n```\nGetRemoved returns the Removed slice if it's non-nil, nil 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 HecConfig struct {\n\tDomain         string `json:\"domain\"`\n\tPort           uint16 `json:\"port\"`\n\tKeyID          string `json:\"key_id\"`\n\tEncryptedToken string `json:\"encrypted_token\"`\n\tPath           string `json:\"path\"`\n\tSSLVerify      bool   `json:\"ssl_verify\"`\n}\n```\nHecConfig represents vendor-specific config for an HTTPS Event Collector (HEC) endpoint.\n\n```go\nfunc (h *HecConfig) GetDomain() string\n```\nGetDomain returns the Domain field.\n\n```go\nfunc (h *HecConfig) GetEncryptedToken() string\n```\nGetEncryptedToken returns the EncryptedToken field.\n\n```go\nfunc (h *HecConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (h *HecConfig) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\nfunc (h *HecConfig) GetPort() uint16\n```\nGetPort returns the Port field.\n\n```go\nfunc (h *HecConfig) GetSSLVerify() bool\n```\nGetSSLVerify returns the SSLVerify field.\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]any `json:\"last_response,omitempty\"`\n\n\t// Only the following fields are used when creating a hook.\n\t// Config is required.\n\tConfig *HookConfig `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) GetConfig() *HookConfig\n```\nGetConfig returns the Config field.\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) GetEvents() []string\n```\nGetEvents returns the Events slice if it's non-nil, nil 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) GetLastResponse() map[string]any\n```\nGetLastResponse returns the LastResponse map if it's non-nil, an empty map 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\t// The media type used to serialize the payloads\n\t// Possible values are `json` and `form`, the field is not specified the default is `form`\n\tContentType *string `json:\"content_type,omitempty\"`\n\t// The possible values are 0 and 1.\n\t// Setting it to 1 will allow skipping certificate verification for the host,\n\t// potentially exposing to MitM attacks: https://en.wikipedia.org/wiki/Man-in-the-middle_attack\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\tThrottledAt    *Timestamp `json:\"throttled_at,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/rest/webhooks/repo-deliveries?apiVersion=2022-11-28#list-deliveries-for-a-repository-webhook](https://docs.github.com/rest/webhooks/repo-deliveries?apiVersion=2022-11-28#list-deliveries-for-a-repository-webhook) - [https://docs.github.com/rest/webhooks/repo-deliveries?apiVersion=2022-11-28#get-a-delivery-for-a-repository-webhook](https://docs.github.com/rest/webhooks/repo-deliveries?apiVersion=2022-11-28#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 if it's non-nil, zero value otherwise.\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 (h *HookDelivery) GetThrottledAt() Timestamp\n```\nGetThrottledAt returns the ThrottledAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (d *HookDelivery) ParseRequestPayload() (any, 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 (r *HookRequest) GetHeader(key string) string\n```\nGetHeader gets the value associated with the given key (ignoring key case).\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 (r *HookResponse) GetHeader(key string) string\n```\nGetHeader gets the value associated with the given key (ignoring key case).\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 HostedRunner struct {\n\tID                 *int64                   `json:\"id,omitempty\"`\n\tName               *string                  `json:\"name,omitempty\"`\n\tRunnerGroupID      *int64                   `json:\"runner_group_id,omitempty\"`\n\tPlatform           *string                  `json:\"platform,omitempty\"`\n\tImageDetails       *HostedRunnerImageDetail `json:\"image_details,omitempty\"`\n\tMachineSizeDetails *HostedRunnerMachineSpec `json:\"machine_size_details,omitempty\"`\n\tStatus             *string                  `json:\"status,omitempty\"`\n\tMaximumRunners     *int64                   `json:\"maximum_runners,omitempty\"`\n\tPublicIPEnabled    *bool                    `json:\"public_ip_enabled,omitempty\"`\n\tPublicIPs          []*HostedRunnerPublicIP  `json:\"public_ips,omitempty\"`\n\tImageGen           *bool                    `json:\"image_gen,omitempty\"`\n\tLastActiveOn       *Timestamp               `json:\"last_active_on,omitempty\"`\n}\n```\nHostedRunner represents a single GitHub-hosted runner with additional details.\n\n```go\nfunc (h *HostedRunner) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetImageDetails() *HostedRunnerImageDetail\n```\nGetImageDetails returns the ImageDetails field.\n\n```go\nfunc (h *HostedRunner) GetImageGen() bool\n```\nGetImageGen returns the ImageGen field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetLastActiveOn() Timestamp\n```\nGetLastActiveOn returns the LastActiveOn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetMachineSizeDetails() *HostedRunnerMachineSpec\n```\nGetMachineSizeDetails returns the MachineSizeDetails field.\n\n```go\nfunc (h *HostedRunner) GetMaximumRunners() int64\n```\nGetMaximumRunners returns the MaximumRunners field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetPlatform() string\n```\nGetPlatform returns the Platform field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetPublicIPEnabled() bool\n```\nGetPublicIPEnabled returns the PublicIPEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetPublicIPs() []*HostedRunnerPublicIP\n```\nGetPublicIPs returns the PublicIPs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunner) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunner) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype HostedRunnerCustomImage struct {\n\tID                int64  `json:\"id\"`\n\tPlatform          string `json:\"platform\"`\n\tName              string `json:\"name\"`\n\tSource            string `json:\"source\"`\n\tVersionsCount     int    `json:\"versions_count\"`\n\tTotalVersionsSize int    `json:\"total_versions_size\"`\n\tLatestVersion     string `json:\"latest_version\"`\n\tState             string `json:\"state\"`\n}\n```\nHostedRunnerCustomImage represents a custom image definition for GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetLatestVersion() string\n```\nGetLatestVersion returns the LatestVersion field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetPlatform() string\n```\nGetPlatform returns the Platform field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetSource() string\n```\nGetSource returns the Source field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetTotalVersionsSize() int\n```\nGetTotalVersionsSize returns the TotalVersionsSize field.\n\n```go\nfunc (h *HostedRunnerCustomImage) GetVersionsCount() int\n```\nGetVersionsCount returns the VersionsCount field.\n\n```go\ntype HostedRunnerCustomImageVersion struct {\n\tVersion      string    `json:\"version\"`\n\tSizeGB       int       `json:\"size_gb\"`\n\tState        string    `json:\"state\"`\n\tStateDetails string    `json:\"state_details\"`\n\tCreatedOn    Timestamp `json:\"created_on\"`\n}\n```\nHostedRunnerCustomImageVersion represents a version of a custom image for GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerCustomImageVersion) GetCreatedOn() Timestamp\n```\nGetCreatedOn returns the CreatedOn field.\n\n```go\nfunc (h *HostedRunnerCustomImageVersion) GetSizeGB() int\n```\nGetSizeGB returns the SizeGB field.\n\n```go\nfunc (h *HostedRunnerCustomImageVersion) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (h *HostedRunnerCustomImageVersion) GetStateDetails() string\n```\nGetStateDetails returns the StateDetails field.\n\n```go\nfunc (h *HostedRunnerCustomImageVersion) GetVersion() string\n```\nGetVersion returns the Version field.\n\n```go\ntype HostedRunnerCustomImageVersions struct {\n\tTotalCount    int                               `json:\"total_count\"`\n\tImageVersions []*HostedRunnerCustomImageVersion `json:\"image_versions\"`\n}\n```\nHostedRunnerCustomImageVersions represents a collection of versions of a custom image.\n\n```go\nfunc (h *HostedRunnerCustomImageVersions) GetImageVersions() []*HostedRunnerCustomImageVersion\n```\nGetImageVersions returns the ImageVersions slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunnerCustomImageVersions) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype HostedRunnerCustomImages struct {\n\tTotalCount int                        `json:\"total_count\"`\n\tImages     []*HostedRunnerCustomImage `json:\"images\"`\n}\n```\nHostedRunnerCustomImages represents a collection of custom images for GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerCustomImages) GetImages() []*HostedRunnerCustomImage\n```\nGetImages returns the Images slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunnerCustomImages) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype HostedRunnerImage struct {\n\t// The unique identifier of the runner image.\n\tID string `json:\"id\"`\n\t// The source of the runner image. Can be one of: github, partner, custom.\n\tSource string `json:\"source\"`\n\t// The version of the runner image to deploy. This is relevant only for runners using custom images.\n\tVersion *string `json:\"version,omitempty\"`\n}\n```\nHostedRunnerImage represents the image of GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerImage) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (h *HostedRunnerImage) GetSource() string\n```\nGetSource returns the Source field.\n\n```go\nfunc (h *HostedRunnerImage) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype HostedRunnerImageDetail struct {\n\tID          *string `json:\"id\"`           // The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. Example: ubuntu-20.04\n\tSizeGB      *int64  `json:\"size_gb\"`      // Image size in GB. Example: 86\n\tDisplayName *string `json:\"display_name\"` // Display name for this image. Example: 20.04\n\tSource      *string `json:\"source\"`       // The image provider. Example: github, partner, custom\n\tVersion     *string `json:\"version\"`      // The image version of the hosted runner pool. Example: latest\n}\n```\nHostedRunnerImageDetail represents the image details of a GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerImageDetail) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunnerImageDetail) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunnerImageDetail) GetSizeGB() int64\n```\nGetSizeGB returns the SizeGB field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunnerImageDetail) GetSource() string\n```\nGetSource returns the Source field if it's non-nil, zero value otherwise.\n\n```go\nfunc (h *HostedRunnerImageDetail) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype HostedRunnerImageSpecs struct {\n\tID          string `json:\"id\"`\n\tPlatform    string `json:\"platform\"`\n\tSizeGB      int    `json:\"size_gb\"`\n\tDisplayName string `json:\"display_name\"`\n\tSource      string `json:\"source\"`\n}\n```\nHostedRunnerImageSpecs represents the details of a GitHub-hosted runner image.\n\n```go\nfunc (h *HostedRunnerImageSpecs) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field.\n\n```go\nfunc (h *HostedRunnerImageSpecs) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (h *HostedRunnerImageSpecs) GetPlatform() string\n```\nGetPlatform returns the Platform field.\n\n```go\nfunc (h *HostedRunnerImageSpecs) GetSizeGB() int\n```\nGetSizeGB returns the SizeGB field.\n\n```go\nfunc (h *HostedRunnerImageSpecs) GetSource() string\n```\nGetSource returns the Source field.\n\n```go\ntype HostedRunnerImages struct {\n\tTotalCount int                       `json:\"total_count\"`\n\tImages     []*HostedRunnerImageSpecs `json:\"images\"`\n}\n```\nHostedRunnerImages represents the response containing the total count and details of runner images.\n\n```go\nfunc (h *HostedRunnerImages) GetImages() []*HostedRunnerImageSpecs\n```\nGetImages returns the Images slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunnerImages) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype HostedRunnerMachineSpec struct {\n\tID        string `json:\"id\"`         // The ID used for the `size` parameter when creating a new runner. Example: 8-core\n\tCPUCores  int    `json:\"cpu_cores\"`  // The number of cores. Example: 8\n\tMemoryGB  int    `json:\"memory_gb\"`  // The available RAM for the machine spec. Example: 32\n\tStorageGB int    `json:\"storage_gb\"` // The available SSD storage for the machine spec. Example: 300\n}\n```\nHostedRunnerMachineSpec represents the details of a particular machine specification for GitHub-hosted runner.\n\n```go\nfunc (h *HostedRunnerMachineSpec) GetCPUCores() int\n```\nGetCPUCores returns the CPUCores field.\n\n```go\nfunc (h *HostedRunnerMachineSpec) GetID() string\n```\nGetID returns the ID field.\n\n```go\nfunc (h *HostedRunnerMachineSpec) GetMemoryGB() int\n```\nGetMemoryGB returns the MemoryGB field.\n\n```go\nfunc (h *HostedRunnerMachineSpec) GetStorageGB() int\n```\nGetStorageGB returns the StorageGB field.\n\n```go\ntype HostedRunnerMachineSpecs struct {\n\tTotalCount   int                        `json:\"total_count\"`\n\tMachineSpecs []*HostedRunnerMachineSpec `json:\"machine_specs\"`\n}\n```\nHostedRunnerMachineSpecs represents the response containing the total count and details of machine specs for GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerMachineSpecs) GetMachineSpecs() []*HostedRunnerMachineSpec\n```\nGetMachineSpecs returns the MachineSpecs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunnerMachineSpecs) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype HostedRunnerPlatforms struct {\n\tTotalCount int      `json:\"total_count\"`\n\tPlatforms  []string `json:\"platforms\"`\n}\n```\nHostedRunnerPlatforms represents the response containing the total count and platforms for GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerPlatforms) GetPlatforms() []string\n```\nGetPlatforms returns the Platforms slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunnerPlatforms) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype HostedRunnerPublicIP struct {\n\tEnabled bool   `json:\"enabled\"` // Whether public IP is enabled.\n\tPrefix  string `json:\"prefix\"`  // The prefix for the public IP. Example: 20.80.208.150\n\tLength  int    `json:\"length\"`  // The length of the IP prefix. Example: 28\n}\n```\nHostedRunnerPublicIP represents the details of a public IP for GitHub-hosted runner.\n\n```go\nfunc (h *HostedRunnerPublicIP) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\n\n```go\nfunc (h *HostedRunnerPublicIP) GetLength() int\n```\nGetLength returns the Length field.\n\n```go\nfunc (h *HostedRunnerPublicIP) GetPrefix() string\n```\nGetPrefix returns the Prefix field.\n\n```go\ntype HostedRunnerPublicIPLimits struct {\n\tPublicIPs *PublicIPUsage `json:\"public_ips\"`\n}\n```\nHostedRunnerPublicIPLimits represents the static public IP limits for GitHub-hosted runners.\n\n```go\nfunc (h *HostedRunnerPublicIPLimits) GetPublicIPs() *PublicIPUsage\n```\nGetPublicIPs returns the PublicIPs field.\n\n```go\ntype HostedRunners struct {\n\tTotalCount int             `json:\"total_count\"`\n\tRunners    []*HostedRunner `json:\"runners\"`\n}\n```\nHostedRunners represents a collection of GitHub-hosted runners for an organization.\n\n```go\nfunc (h *HostedRunners) GetRunners() []*HostedRunner\n```\nGetRunners returns the Runners slice if it's non-nil, nil otherwise.\n\n```go\nfunc (h *HostedRunners) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype Hovercard struct {\n\tContexts []*UserContext `json:\"contexts,omitempty\"`\n}\n```\nHovercard represents hovercard information about a user.\n\n```go\nfunc (h *Hovercard) GetContexts() []*UserContext\n```\nGetContexts returns the Contexts slice if it's non-nil, nil otherwise.\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\nfunc (h *HovercardOptions) GetSubjectID() string\n```\nGetSubjectID returns the SubjectID field.\n\n```go\nfunc (h *HovercardOptions) GetSubjectType() string\n```\nGetSubjectType returns the SubjectType field.\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\nfunc (i *IDPGroupList) GetGroups() []*IDPGroup\n```\nGetGroups returns the Groups slice if it's non-nil, nil otherwise.\n\n```go\ntype ImmutableReleasePolicy struct {\n\t// EnforcedRepositories specifies how immutable releases are enforced in the organization. Possible values include \"all\", \"none\", or \"selected\".\n\tEnforcedRepositories string `json:\"enforced_repositories\"`\n\t// An array of repository ids for which immutable releases enforcement should be applied.\n\t// You can only provide a list of repository ids when the enforced_repositories is set to \"selected\"\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitempty\"`\n}\n```\nImmutableReleasePolicy is for setting the immutable releases policy for repositories in an organization.\n\n```go\nfunc (i *ImmutableReleasePolicy) GetEnforcedRepositories() string\n```\nGetEnforcedRepositories returns the EnforcedRepositories field.\n\n```go\nfunc (i *ImmutableReleasePolicy) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\ntype ImmutableReleaseSettings struct {\n\t// EnforcedRepositories specifies how immutable releases are enforced in the organization. Possible values include \"all\", \"none\", or \"selected\".\n\tEnforcedRepositories *string `json:\"enforced_repositories,omitempty\"`\n\t// SelectedRepositoriesURL provides the API URL for managing the repositories\n\t// selected for immutable releases enforcement when EnforcedRepositories is set to \"selected\".\n\tSelectedRepositoriesURL *string `json:\"selected_repositories_url,omitempty\"`\n}\n```\nImmutableReleaseSettings represents the response from the immutable releases settings endpoint.\n\n```go\nfunc (i *ImmutableReleaseSettings) GetEnforcedRepositories() string\n```\nGetEnforcedRepositories returns the EnforcedRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *ImmutableReleaseSettings) GetSelectedRepositoriesURL() string\n```\nGetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise.\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//         UpdateImport 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) GetProjectChoices() []*Import\n```\nGetProjectChoices returns the ProjectChoices slice if it's non-nil, nil 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 InclusionSource string\n```\nInclusionSource represents whether the custom oidc property claim was defined at the organization or enterprise level.\n\n```go\nconst (\n\tInclusionSourceEnterprise   InclusionSource = \"enterprise\"\n\tInclusionSourceOrganization InclusionSource = \"organization\"\n)\n```\nInclusionSource constants represent whether the inclusion was defined at the organization or enterprise level.\n\n```go\ntype InitialConfigOptions struct {\n\tLicense  string `json:\"license\"`\n\tPassword string `json:\"password\"`\n}\n```\nInitialConfigOptions represents the payload for initializing instance configuration.\n\n```go\nfunc (i *InitialConfigOptions) GetLicense() string\n```\nGetLicense returns the License field.\n\n```go\nfunc (i *InitialConfigOptions) GetPassword() string\n```\nGetPassword returns the Password field.\n\n```go\ntype InstallAppRequest struct {\n\t// The Client ID of the GitHub App to install.\n\tClientID string `json:\"client_id\"`\n\t// The selection of repositories that the GitHub app can access.\n\t// Can be one of: all, selected, none\n\tRepositorySelection string `json:\"repository_selection\"`\n\t// A list of repository names that the GitHub App can access, if the repository_selection is set to selected.\n\tRepositories []string `json:\"repositories,omitempty\"`\n}\n```\nInstallAppRequest represents the request to install a GitHub app on an enterprise-owned organization.\n\n```go\nfunc (i *InstallAppRequest) GetClientID() string\n```\nGetClientID returns the ClientID field.\n\n```go\nfunc (i *InstallAppRequest) GetRepositories() []string\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *InstallAppRequest) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field.\n\n```go\ntype InstallableOrganization struct {\n\tID                        int64   `json:\"id\"`\n\tLogin                     string  `json:\"login\"`\n\tAccessibleRepositoriesURL *string `json:\"accessible_repositories_url,omitempty\"`\n}\n```\nInstallableOrganization represents an organization in an enterprise in which a GitHub app can be installed.\n\n```go\nfunc (i *InstallableOrganization) GetAccessibleRepositoriesURL() string\n```\nGetAccessibleRepositoriesURL returns the AccessibleRepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallableOrganization) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (i *InstallableOrganization) GetLogin() string\n```\nGetLogin returns the Login field.\n\n```go\ntype Installation struct {\n\tID                     *int64                   `json:\"id,omitempty\"`\n\tNodeID                 *string                  `json:\"node_id,omitempty\"`\n\tClientID               *string                  `json:\"client_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) GetClientID() string\n```\nGetClientID returns the ClientID 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) GetEvents() []string\n```\nGetEvents returns the Events slice if it's non-nil, nil 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) GetSingleFilePaths() []string\n```\nGetSingleFilePaths returns the SingleFilePaths slice if it's non-nil, nil 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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#installation](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (i *InstallationEvent) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\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\tActionsVariables                        *string `json:\"actions_variables,omitempty\"`\n\tAdministration                          *string `json:\"administration,omitempty\"`\n\tAttestations                            *string `json:\"attestations,omitempty\"`\n\tBlocking                                *string `json:\"blocking,omitempty\"`\n\tChecks                                  *string `json:\"checks,omitempty\"`\n\tCodespaces                              *string `json:\"codespaces,omitempty\"`\n\tCodespacesLifecycleAdmin                *string `json:\"codespaces_lifecycle_admin,omitempty\"`\n\tCodespacesMetadata                      *string `json:\"codespaces_metadata,omitempty\"`\n\tCodespacesSecrets                       *string `json:\"codespaces_secrets,omitempty\"`\n\tCodespacesUserSecrets                   *string `json:\"codespaces_user_secrets,omitempty\"`\n\tContents                                *string `json:\"contents,omitempty\"`\n\tContentReferences                       *string `json:\"content_references,omitempty\"`\n\tCopilotMessages                         *string `json:\"copilot_messages,omitempty\"`\n\tDependabotSecrets                       *string `json:\"dependabot_secrets,omitempty\"`\n\tDeployments                             *string `json:\"deployments,omitempty\"`\n\tDiscussions                             *string `json:\"discussions,omitempty\"`\n\tEmails                                  *string `json:\"emails,omitempty\"`\n\tEnterpriseAIControls                    *string `json:\"enterprise_ai_controls,omitempty\"`\n\tEnterpriseCopilotMetrics                *string `json:\"enterprise_copilot_metrics,omitempty\"`\n\tEnterpriseCredentials                   *string `json:\"enterprise_credentials,omitempty\"`\n\tEnterpriseCustomEnterpriseRoles         *string `json:\"enterprise_custom_enterprise_roles,omitempty\"`\n\tEnterpriseCustomOrgRoles                *string `json:\"enterprise_custom_org_roles,omitempty\"`\n\tEnterpriseCustomProperties              *string `json:\"enterprise_custom_properties,omitempty\"`\n\tEnterpriseCustomPropertiesForOrgs       *string `json:\"enterprise_custom_properties_for_organizations,omitempty\"`\n\tEnterpriseOrganizations                 *string `json:\"enterprise_organizations,omitempty\"`\n\tEnterpriseOrganizationInstallations     *string `json:\"enterprise_organization_installations,omitempty\"`\n\tEnterpriseOrgInstallationRepos          *string `json:\"enterprise_organization_installation_repositories,omitempty\"`\n\tEnterprisePeople                        *string `json:\"enterprise_people,omitempty\"`\n\tEnterpriseSSO                           *string `json:\"enterprise_sso,omitempty\"`\n\tEnterpriseTeams                         *string `json:\"enterprise_teams,omitempty\"`\n\tEnvironments                            *string `json:\"environments,omitempty\"`\n\tFollowers                               *string `json:\"followers,omitempty\"`\n\tGists                                   *string `json:\"gists,omitempty\"`\n\tGitSigningSSHPublicKeys                 *string `json:\"git_signing_ssh_public_keys,omitempty\"`\n\tGPGKeys                                 *string `json:\"gpg_keys,omitempty\"`\n\tInteractionLimits                       *string `json:\"interaction_limits,omitempty\"`\n\tIssues                                  *string `json:\"issues,omitempty\"`\n\tKeys                                    *string `json:\"keys,omitempty\"`\n\tMetadata                                *string `json:\"metadata,omitempty\"`\n\tMembers                                 *string `json:\"members,omitempty\"`\n\tMergeQueues                             *string `json:\"merge_queues,omitempty\"`\n\tOrganizationActionsVariables            *string `json:\"organization_actions_variables,omitempty\"`\n\tOrganizationAdministration              *string `json:\"organization_administration,omitempty\"`\n\tOrganizationAnnouncementBanners         *string `json:\"organization_announcement_banners,omitempty\"`\n\tOrganizationAPIInsights                 *string `json:\"organization_api_insights,omitempty\"`\n\tOrganizationCodespaces                  *string `json:\"organization_codespaces,omitempty\"`\n\tOrganizationCodespacesSecrets           *string `json:\"organization_codespaces_secrets,omitempty\"`\n\tOrganizationCodespacesSettings          *string `json:\"organization_codespaces_settings,omitempty\"`\n\tOrganizationCopilotMetrics              *string `json:\"organization_copilot_metrics,omitempty\"`\n\tOrganizationCopilotSeatManagement       *string `json:\"organization_copilot_seat_management,omitempty\"`\n\tOrganizationCustomProperties            *string `json:\"organization_custom_properties,omitempty\"`\n\tOrganizationCustomRoles                 *string `json:\"organization_custom_roles,omitempty\"`\n\tOrganizationCustomOrgRoles              *string `json:\"organization_custom_org_roles,omitempty\"`\n\tOrganizationDependabotSecrets           *string `json:\"organization_dependabot_secrets,omitempty\"`\n\tOrganizationEvents                      *string `json:\"organization_events,omitempty\"`\n\tOrganizationHooks                       *string `json:\"organization_hooks,omitempty\"`\n\tOrganizationKnowledgeBases              *string `json:\"organization_knowledge_bases,omitempty\"`\n\tOrganizationPackages                    *string `json:\"organization_packages,omitempty\"`\n\tOrganizationPersonalAccessTokens        *string `json:\"organization_personal_access_tokens,omitempty\"`\n\tOrganizationPersonalAccessTokenRequests *string `json:\"organization_personal_access_token_requests,omitempty\"`\n\tOrganizationPlan                        *string `json:\"organization_plan,omitempty\"`\n\tOrganizationPreReceiveHooks             *string `json:\"organization_pre_receive_hooks,omitempty\"`\n\tOrganizationPrivateRegistries           *string `json:\"organization_private_registries,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\tPlan                                    *string `json:\"plan,omitempty\"`\n\tProfile                                 *string `json:\"profile,omitempty\"`\n\tPullRequests                            *string `json:\"pull_requests,omitempty\"`\n\tRepositoryAdvisories                    *string `json:\"repository_advisories,omitempty\"`\n\tRepositoryCustomProperties              *string `json:\"repository_custom_properties,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\tStarring                                *string `json:\"starring,omitempty\"`\n\tStatuses                                *string `json:\"statuses,omitempty\"`\n\tTeamDiscussions                         *string `json:\"team_discussions,omitempty\"`\n\tUserEvents                              *string `json:\"user_events,omitempty\"`\n\tVulnerabilityAlerts                     *string `json:\"vulnerability_alerts,omitempty\"`\n\tWatching                                *string `json:\"watching,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/enterprise-server@3.22/rest/apps/apps#create-an-installation-access-token-for-an-app\n\thttps://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#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) GetActionsVariables() string\n```\nGetActionsVariables returns the ActionsVariables 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) GetAttestations() string\n```\nGetAttestations returns the Attestations 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) GetCodespaces() string\n```\nGetCodespaces returns the Codespaces field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetCodespacesLifecycleAdmin() string\n```\nGetCodespacesLifecycleAdmin returns the CodespacesLifecycleAdmin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetCodespacesMetadata() string\n```\nGetCodespacesMetadata returns the CodespacesMetadata field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetCodespacesSecrets() string\n```\nGetCodespacesSecrets returns the CodespacesSecrets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetCodespacesUserSecrets() string\n```\nGetCodespacesUserSecrets returns the CodespacesUserSecrets 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) GetCopilotMessages() string\n```\nGetCopilotMessages returns the CopilotMessages field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetDependabotSecrets() string\n```\nGetDependabotSecrets returns the DependabotSecrets 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) GetDiscussions() string\n```\nGetDiscussions returns the Discussions 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) GetEnterpriseAIControls() string\n```\nGetEnterpriseAIControls returns the EnterpriseAIControls field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseCopilotMetrics() string\n```\nGetEnterpriseCopilotMetrics returns the EnterpriseCopilotMetrics field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseCredentials() string\n```\nGetEnterpriseCredentials returns the EnterpriseCredentials field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseCustomEnterpriseRoles() string\n```\nGetEnterpriseCustomEnterpriseRoles returns the EnterpriseCustomEnterpriseRoles field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseCustomOrgRoles() string\n```\nGetEnterpriseCustomOrgRoles returns the EnterpriseCustomOrgRoles field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseCustomProperties() string\n```\nGetEnterpriseCustomProperties returns the EnterpriseCustomProperties field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseCustomPropertiesForOrgs() string\n```\nGetEnterpriseCustomPropertiesForOrgs returns the EnterpriseCustomPropertiesForOrgs field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseOrgInstallationRepos() string\n```\nGetEnterpriseOrgInstallationRepos returns the EnterpriseOrgInstallationRepos field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseOrganizationInstallations() string\n```\nGetEnterpriseOrganizationInstallations returns the EnterpriseOrganizationInstallations field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseOrganizations() string\n```\nGetEnterpriseOrganizations returns the EnterpriseOrganizations field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterprisePeople() string\n```\nGetEnterprisePeople returns the EnterprisePeople field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseSSO() string\n```\nGetEnterpriseSSO returns the EnterpriseSSO field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetEnterpriseTeams() string\n```\nGetEnterpriseTeams returns the EnterpriseTeams 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) GetGPGKeys() string\n```\nGetGPGKeys returns the GPGKeys field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetGists() string\n```\nGetGists returns the Gists field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetGitSigningSSHPublicKeys() string\n```\nGetGitSigningSSHPublicKeys returns the GitSigningSSHPublicKeys field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetInteractionLimits() string\n```\nGetInteractionLimits returns the InteractionLimits 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) GetKeys() string\n```\nGetKeys returns the Keys 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) GetMergeQueues() string\n```\nGetMergeQueues returns the MergeQueues 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) GetOrganizationAPIInsights() string\n```\nGetOrganizationAPIInsights returns the OrganizationAPIInsights field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationActionsVariables() string\n```\nGetOrganizationActionsVariables returns the OrganizationActionsVariables 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) GetOrganizationAnnouncementBanners() string\n```\nGetOrganizationAnnouncementBanners returns the OrganizationAnnouncementBanners field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCodespaces() string\n```\nGetOrganizationCodespaces returns the OrganizationCodespaces field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCodespacesSecrets() string\n```\nGetOrganizationCodespacesSecrets returns the OrganizationCodespacesSecrets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCodespacesSettings() string\n```\nGetOrganizationCodespacesSettings returns the OrganizationCodespacesSettings field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCopilotMetrics() string\n```\nGetOrganizationCopilotMetrics returns the OrganizationCopilotMetrics field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCopilotSeatManagement() string\n```\nGetOrganizationCopilotSeatManagement returns the OrganizationCopilotSeatManagement field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCustomOrgRoles() string\n```\nGetOrganizationCustomOrgRoles returns the OrganizationCustomOrgRoles field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationCustomProperties() string\n```\nGetOrganizationCustomProperties returns the OrganizationCustomProperties 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) GetOrganizationDependabotSecrets() string\n```\nGetOrganizationDependabotSecrets returns the OrganizationDependabotSecrets field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationEvents() string\n```\nGetOrganizationEvents returns the OrganizationEvents 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) GetOrganizationKnowledgeBases() string\n```\nGetOrganizationKnowledgeBases returns the OrganizationKnowledgeBases 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) GetOrganizationPersonalAccessTokenRequests() string\n```\nGetOrganizationPersonalAccessTokenRequests returns the OrganizationPersonalAccessTokenRequests field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetOrganizationPersonalAccessTokens() string\n```\nGetOrganizationPersonalAccessTokens returns the OrganizationPersonalAccessTokens 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) GetOrganizationPrivateRegistries() string\n```\nGetOrganizationPrivateRegistries returns the OrganizationPrivateRegistries 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) GetPlan() string\n```\nGetPlan returns the Plan field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetProfile() string\n```\nGetProfile returns the Profile 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) GetRepositoryAdvisories() string\n```\nGetRepositoryAdvisories returns the RepositoryAdvisories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationPermissions) GetRepositoryCustomProperties() string\n```\nGetRepositoryCustomProperties returns the RepositoryCustomProperties 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) GetStarring() string\n```\nGetStarring returns the Starring 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) GetUserEvents() string\n```\nGetUserEvents returns the UserEvents 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) GetWatching() string\n```\nGetWatching returns the Watching 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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#installation\\_repositories](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\n\n```go\nfunc (i *InstallationRepositoriesEvent) GetRepositoriesAdded() []*Repository\n```\nGetRepositoriesAdded returns the RepositoriesAdded slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *InstallationRepositoriesEvent) GetRepositoriesRemoved() []*Repository\n```\nGetRepositoriesRemoved returns the RepositoriesRemoved slice if it's non-nil, nil otherwise.\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 InstallationRequest struct {\n\tID        *int64     `json:\"id,omitempty\"`\n\tNodeID    *string    `json:\"node_id,omitempty\"`\n\tAccount   *User      `json:\"account,omitempty\"`\n\tRequester *User      `json:\"requester,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n}\n```\nInstallationRequest represents a pending GitHub App installation request.\n\n```go\nfunc (i *InstallationRequest) GetAccount() *User\n```\nGetAccount returns the Account field.\n\n```go\nfunc (i *InstallationRequest) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationRequest) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationRequest) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *InstallationRequest) GetRequester() *User\n```\nGetRequester returns the Requester 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/webhooks-and-events/webhooks/webhook-events-and-payloads#installation\\_target](https://docs.github.com/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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\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 InstallationTokenListRepoOptions 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\"`\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```\nInstallationTokenListRepoOptions allow restricting a token's access to a list of all repositories in an installation. It differs from InstallationTokenOptions as a parameter which does not omit RepositoryIDs if that field is nil or an empty array.\n\n```go\nfunc (i *InstallationTokenListRepoOptions) GetPermissions() *InstallationPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\nfunc (i *InstallationTokenListRepoOptions) GetRepositories() []string\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *InstallationTokenListRepoOptions) GetRepositoryIDs() []int64\n```\nGetRepositoryIDs returns the RepositoryIDs slice if it's non-nil, nil 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\nfunc (i *InstallationTokenOptions) GetRepositories() []string\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *InstallationTokenOptions) GetRepositoryIDs() []int64\n```\nGetRepositoryIDs returns the RepositoryIDs slice if it's non-nil, nil otherwise.\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/rest/interactions?apiVersion=2022-11-28](https://docs.github.com/rest/interactions?apiVersion=2022-11-28)\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/rest/interactions/orgs?apiVersion=2022-11-28#get-interaction-restrictions-for-an-organization](https://docs.github.com/rest/interactions/orgs?apiVersion=2022-11-28#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/rest/interactions/repos?apiVersion=2022-11-28#get-interaction-restrictions-for-a-repository](https://docs.github.com/rest/interactions/repos?apiVersion=2022-11-28#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/rest/interactions/orgs?apiVersion=2022-11-28#remove-interaction-restrictions-for-an-organization](https://docs.github.com/rest/interactions/orgs?apiVersion=2022-11-28#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/rest/interactions/repos?apiVersion=2022-11-28#remove-interaction-restrictions-for-a-repository](https://docs.github.com/rest/interactions/repos?apiVersion=2022-11-28#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/rest/interactions/orgs?apiVersion=2022-11-28#set-interaction-restrictions-for-an-organization](https://docs.github.com/rest/interactions/orgs?apiVersion=2022-11-28#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/rest/interactions/repos?apiVersion=2022-11-28#set-interaction-restrictions-for-a-repository](https://docs.github.com/rest/interactions/repos?apiVersion=2022-11-28#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\t// AuthorAssociation is the issue author's relationship to the repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Issues REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue\n\tAuthorAssociation *string  `json:\"author_association,omitempty\"`\n\tUser              *User    `json:\"user,omitempty\"`\n\tLabels            []*Label `json:\"labels,omitempty\"`\n\t// Deprecated: GitHub REST API version 2026-03-10 removed the singular assignee field.\n\t// Use Assignees instead.\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\tParentIssueURL           *string                   `json:\"parent_issue_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\tDraft                    *bool                     `json:\"draft,omitempty\"`\n\tType                     *IssueType                `json:\"type,omitempty\"`\n\tPinnedComment            *IssueComment             `json:\"pinned_comment,omitempty\"`\n\tPerformedViaGithubApp    *App                      `json:\"performed_via_github_app,omitempty\"`\n\tIssueDependenciesSummary *IssueDependenciesSummary `json:\"issue_dependencies_summary,omitempty\"`\n\tSubIssuesSummary         *SubIssuesSummary         `json:\"sub_issues_summary,omitempty\"`\n\tIssueFieldValues         []*IssueFieldValue        `json:\"issue_field_values,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/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) GetAssignees() []*User\n```\nGetAssignees returns the Assignees slice if it's non-nil, nil otherwise.\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) GetDraft() bool\n```\nGetDraft returns the Draft 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) GetIssueDependenciesSummary() *IssueDependenciesSummary\n```\nGetIssueDependenciesSummary returns the IssueDependenciesSummary field.\n\n```go\nfunc (i *Issue) GetIssueFieldValues() []*IssueFieldValue\n```\nGetIssueFieldValues returns the IssueFieldValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *Issue) GetLabels() []*Label\n```\nGetLabels returns the Labels slice if it's non-nil, nil 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) GetParentIssueURL() string\n```\nGetParentIssueURL returns the ParentIssueURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *Issue) GetPerformedViaGithubApp() *App\n```\nGetPerformedViaGithubApp returns the PerformedViaGithubApp field.\n\n```go\nfunc (i *Issue) GetPinnedComment() *IssueComment\n```\nGetPinnedComment returns the PinnedComment field.\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) GetSubIssuesSummary() *SubIssuesSummary\n```\nGetSubIssuesSummary returns the SubIssuesSummary field.\n\n```go\nfunc (i *Issue) GetTextMatches() []*TextMatch\n```\nGetTextMatches returns the TextMatches slice if it's non-nil, nil 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) GetType() *IssueType\n```\nGetType returns the Type field.\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\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Issue Comments REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#get-an-issue-comment\n\tAuthorAssociation     *string                `json:\"author_association,omitempty\"`\n\tPerformedViaGithubApp *App                   `json:\"performed_via_github_app,omitempty\"`\n\tPin                   *PinnedIssueComment    `json:\"pin,omitempty\"`\n\tMinimized             *MinimizedIssueComment `json:\"minimized,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) GetMinimized() *MinimizedIssueComment\n```\nGetMinimized returns the Minimized field.\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) GetPerformedViaGithubApp() *App\n```\nGetPerformedViaGithubApp returns the PerformedViaGithubApp field.\n\n```go\nfunc (i *IssueComment) GetPin() *PinnedIssueComment\n```\nGetPin returns the Pin field.\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/developers/webhooks-and-events/webhook-events-and-payloads#issue\\_comment](https://docs.github.com/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 IssueCommentRequest struct {\n\tBody string `json:\"body\"`\n}\n```\nIssueCommentRequest represents a request to create or update an issue comment.\n\n```go\nfunc (i *IssueCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\ntype IssueDependenciesSummary struct {\n\tBlockedBy      *int `json:\"blocked_by,omitempty\"`\n\tBlocking       *int `json:\"blocking,omitempty\"`\n\tTotalBlockedBy *int `json:\"total_blocked_by,omitempty\"`\n\tTotalBlocking  *int `json:\"total_blocking,omitempty\"`\n}\n```\nIssueDependenciesSummary represents a summary of issue dependency counts.\n\n```go\nfunc (i *IssueDependenciesSummary) GetBlockedBy() int\n```\nGetBlockedBy returns the BlockedBy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueDependenciesSummary) GetBlocking() int\n```\nGetBlocking returns the Blocking field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueDependenciesSummary) GetTotalBlockedBy() int\n```\nGetTotalBlockedBy returns the TotalBlockedBy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueDependenciesSummary) GetTotalBlocking() int\n```\nGetTotalBlocking returns the TotalBlocking field if it's non-nil, zero value otherwise.\n\n```go\ntype IssueDependencyRequest struct {\n\tIssueID int64 `json:\"issue_id\"`\n}\n```\nIssueDependencyRequest represents a request to add a dependency to an issue.\n\n```go\nfunc (i *IssueDependencyRequest) GetIssueID() int64\n```\nGetIssueID returns the IssueID 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// The action corresponding to the event.\n\tAction string `json:\"action,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 or RequestedTeam, 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\tRepository            *Repository      `json:\"repository,omitempty\"`\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\tDismissedReview       *DismissedReview `json:\"dismissed_review,omitempty\"`\n\tRequestedReviewer     *User            `json:\"requested_reviewer,omitempty\"`\n\tRequestedTeam         *Team            `json:\"requested_team,omitempty\"`\n\tReviewRequester       *User            `json:\"review_requester,omitempty\"`\n\tPerformedViaGithubApp *App             `json:\"performed_via_github_app,omitempty\"`\n}\n```\nIssueEvent represents an event that occurred around an Issue or Pull Request.\n\n```go\nfunc (i *IssueEvent) GetAction() string\n```\nGetAction returns the Action field.\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) GetPerformedViaGithubApp() *App\n```\nGetPerformedViaGithubApp returns the PerformedViaGithubApp field.\n\n```go\nfunc (i *IssueEvent) GetRename() *Rename\n```\nGetRename returns the Rename field.\n\n```go\nfunc (i *IssueEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (i *IssueEvent) GetRequestedReviewer() *User\n```\nGetRequestedReviewer returns the RequestedReviewer field.\n\n```go\nfunc (i *IssueEvent) GetRequestedTeam() *Team\n```\nGetRequestedTeam returns the RequestedTeam 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 IssueFieldValue struct {\n\tIssueFieldID       int64                              `json:\"issue_field_id\"`\n\tNodeID             string                             `json:\"node_id\"`\n\tDataType           string                             `json:\"data_type\"`\n\tValue              any                                `json:\"value\"`\n\tSingleSelectOption *IssueFieldValueSingleSelectOption `json:\"single_select_option,omitempty\"`\n}\n```\nIssueFieldValue represents a custom field value attached to an issue. The Value field contains a string for text, single\\_select, and date fields, or a number for numeric fields.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue)\n\n```go\nfunc (i *IssueFieldValue) GetDataType() string\n```\nGetDataType returns the DataType field.\n\n```go\nfunc (i *IssueFieldValue) GetIssueFieldID() int64\n```\nGetIssueFieldID returns the IssueFieldID field.\n\n```go\nfunc (i *IssueFieldValue) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (i *IssueFieldValue) GetSingleSelectOption() *IssueFieldValueSingleSelectOption\n```\nGetSingleSelectOption returns the SingleSelectOption field.\n\n```go\nfunc (i *IssueFieldValue) GetValue() any\n```\nGetValue returns the Value field.\n\n```go\ntype IssueFieldValueSingleSelectOption struct {\n\tID    int64  `json:\"id\"`\n\tName  string `json:\"name\"`\n\tColor string `json:\"color\"`\n}\n```\nIssueFieldValueSingleSelectOption represents a single-select option for an issue field value.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue)\n\n```go\nfunc (i *IssueFieldValueSingleSelectOption) GetColor() string\n```\nGetColor returns the Color field.\n\n```go\nfunc (i *IssueFieldValueSingleSelectOption) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (i *IssueFieldValueSingleSelectOption) GetName() string\n```\nGetName returns the Name field.\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) GetBody() string\n```\nGetBody returns the Body field.\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) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil 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) GetTitle() string\n```\nGetTitle returns the Title field.\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\nfunc (i *IssueImportRequest) GetComments() []*Comment\n```\nGetComments returns the Comments slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *IssueImportRequest) GetIssueImport() IssueImport\n```\nGetIssueImport returns the IssueImport field.\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) GetErrors() []*IssueImportError\n```\nGetErrors returns the Errors slice if it's non-nil, nil 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\nGitHub API docs: [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\nGitHub API docs: [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, body *IssueImportRequest) (*IssueImportResponse, *Response, error)\n```\nCreate a new imported issue on the specified repository.\n\nGitHub API docs: [https://gist.github.com/jonmagic/5282384165e0f86ef105#start-an-issue-import](https://gist.github.com/jonmagic/5282384165e0f86ef105#start-an-issue-import)\n\n```go\ntype IssueListByOrgOptions struct {\n\t// Filter specifies which issues to list. Possible values are: assigned,\n\t// created, mentioned, subscribed, repos, 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// Type can be the name of an issue type.\n\tType string `url:\"type,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```\nIssueListByOrgOptions specifies the optional parameters to the IssuesService.ListByOrg method.\n\n```go\nfunc (i *IssueListByOrgOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (i *IssueListByOrgOptions) GetFilter() string\n```\nGetFilter returns the Filter field.\n\n```go\nfunc (i *IssueListByOrgOptions) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *IssueListByOrgOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\n\n```go\nfunc (i *IssueListByOrgOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (i *IssueListByOrgOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (i *IssueListByOrgOptions) GetType() string\n```\nGetType returns the Type field.\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// Type can be the name of an issue type.\n\t// If the string * is passed, issues with any type are accepted.\n\t// If the string none is passed, issues without type are returned.\n\tType string `url:\"type,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\t// ListCursorOptions specifies the optional parameters for cursor pagination.\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```\nIssueListByRepoOptions specifies the optional parameters to the IssuesService.ListByRepo method.\n\n```go\nfunc (i *IssueListByRepoOptions) GetAssignee() string\n```\nGetAssignee returns the Assignee field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetCreator() string\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *IssueListByRepoOptions) GetMentioned() string\n```\nGetMentioned returns the Mentioned field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetMilestone() string\n```\nGetMilestone returns the Milestone field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (i *IssueListByRepoOptions) GetType() string\n```\nGetType returns the Type field.\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 IssueRequestFieldValue struct {\n\tFieldID int64 `json:\"field_id\"`\n\tValue   any   `json:\"value\"`\n}\n```\nIssueRequestFieldValue represents a custom field value to set on an issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#update-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#update-an-issue)\n\n```go\nfunc (i *IssueRequestFieldValue) GetFieldID() int64\n```\nGetFieldID returns the FieldID field.\n\n```go\nfunc (i *IssueRequestFieldValue) GetValue() any\n```\nGetValue returns the Value field.\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 IssueType 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\tColor       *string    `json:\"color,omitempty\"`\n\tIsEnabled   *bool      `json:\"is_enabled,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nIssueType represents the type of issue. For now it shows up when receiving an Issue event.\n\n```go\nfunc (i *IssueType) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetIsEnabled() bool\n```\nGetIsEnabled returns the IsEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (i *IssueType) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#issues](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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\tSearchType        *string  `json:\"search_type,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) GetIssues() []*Issue\n```\nGetIssues returns the Issues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (i *IssuesSearchResult) GetSearchType() string\n```\nGetSearchType returns the SearchType 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/rest/issues?apiVersion=2022-11-28](https://docs.github.com/rest/issues?apiVersion=2022-11-28)\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/rest/issues/assignees?apiVersion=2022-11-28#add-assignees-to-an-issue](https://docs.github.com/rest/issues/assignees?apiVersion=2022-11-28#add-assignees-to-an-issue)\n\n```go\nfunc (s *IssuesService) AddBlockedBy(ctx context.Context, owner, repo string, issueNumber int64, body IssueDependencyRequest) (*Issue, *Response, error)\n```\nAddBlockedBy adds a \"blocked by\" dependency to the specified issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#add-a-dependency-an-issue-is-blocked-by](https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#add-a-dependency-an-issue-is-blocked-by)\n\n```go\nfunc (s *IssuesService) AddLabelsToIssue(ctx context.Context, owner, repo string, number int, body []string) ([]*Label, *Response, error)\n```\nAddLabelsToIssue adds labels to an issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue)\n\n```go\nfunc (s *IssuesService) Create(ctx context.Context, owner, repo string, body CreateIssueRequest) (*Issue, *Response, error)\n```\nCreate a new issue on the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#create-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#create-an-issue)\n\n```go\nfunc (s *IssuesService) CreateComment(ctx context.Context, owner, repo string, number int, body IssueCommentRequest) (*IssueComment, *Response, error)\n```\nCreateComment creates a new comment on the specified issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment](https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment)\n\n```go\nfunc (s *IssuesService) CreateLabel(ctx context.Context, owner, repo string, body CreateIssueLabelRequest) (*Label, *Response, error)\n```\nCreateLabel creates a new label on the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#create-a-label](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#create-a-label)\n\n```go\nfunc (s *IssuesService) CreateMilestone(ctx context.Context, owner, repo string, body CreateMilestoneRequest) (*Milestone, *Response, error)\n```\nCreateMilestone creates a new milestone on the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#create-a-milestone](https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#create-a-milestone)\n\n```go\nfunc (s *IssuesService) DeleteComment(ctx context.Context, owner, repo string, commentID int64) (*Response, error)\n```\nDeleteComment deletes an issue comment.\n\nGitHub API docs: [https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#delete-an-issue-comment](https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#delete-an-issue-comment)\n\n```go\nfunc (s *IssuesService) DeleteLabel(ctx context.Context, owner, repo, name string) (*Response, error)\n```\nDeleteLabel deletes a label.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#delete-a-label](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#delete-a-label)\n\n```go\nfunc (s *IssuesService) DeleteMilestone(ctx context.Context, owner, repo string, number int) (*Response, error)\n```\nDeleteMilestone deletes a milestone.\n\nGitHub API docs: [https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#delete-a-milestone](https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#delete-a-milestone)\n\n```go\nfunc (s *IssuesService) Get(ctx context.Context, owner, repo string, number int) (*Issue, *Response, error)\n```\nGet a single issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#get-an-issue)\n\n```go\nfunc (s *IssuesService) GetComment(ctx context.Context, owner, repo string, commentID int64) (*IssueComment, *Response, error)\n```\nGetComment fetches the specified issue comment.\n\nGitHub API docs: [https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#get-an-issue-comment](https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#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/rest/issues/events?apiVersion=2022-11-28#get-an-issue-event](https://docs.github.com/rest/issues/events?apiVersion=2022-11-28#get-an-issue-event)\n\n```go\nfunc (s *IssuesService) GetLabel(ctx context.Context, owner, repo, name string) (*Label, *Response, error)\n```\nGetLabel gets a single label.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#get-a-label](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#get-a-label)\n\n```go\nfunc (s *IssuesService) GetMilestone(ctx context.Context, owner, repo string, number int) (*Milestone, *Response, error)\n```\nGetMilestone gets a single milestone.\n\nGitHub API docs: [https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#get-a-milestone](https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#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/rest/issues/assignees?apiVersion=2022-11-28#check-if-a-user-can-be-assigned](https://docs.github.com/rest/issues/assignees?apiVersion=2022-11-28#check-if-a-user-can-be-assigned)\n\n```go\nfunc (s *IssuesService) ListAllIssues(ctx context.Context, opts *ListAllIssuesOptions) ([]*Issue, *Response, error)\n```\nListAllIssues gets issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories. You can use the filter query parameter to fetch issues that are not necessarily assigned to you.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-issues-assigned-to-the-authenticated-user](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-issues-assigned-to-the-authenticated-user)\n\n```go\nfunc (s *IssuesService) ListAllIssuesIter(ctx context.Context, opts *ListAllIssuesOptions) iter.Seq2[*Issue, error]\n```\nListAllIssuesIter returns an iterator that paginates through all results of ListAllIssues.\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/rest/issues/assignees?apiVersion=2022-11-28#list-assignees](https://docs.github.com/rest/issues/assignees?apiVersion=2022-11-28#list-assignees)\n\n```go\nfunc (s *IssuesService) ListAssigneesIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*User, error]\n```\nListAssigneesIter returns an iterator that paginates through all results of ListAssignees.\n\n```go\nfunc (s *IssuesService) ListBlockedBy(ctx context.Context, owner, repo string, issueNumber int64, opts *ListOptions) ([]*Issue, *Response, error)\n```\nListBlockedBy lists the dependencies that block the specified issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#list-dependencies-an-issue-is-blocked-by](https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#list-dependencies-an-issue-is-blocked-by)\n\n```go\nfunc (s *IssuesService) ListBlockedByIter(ctx context.Context, owner string, repo string, issueNumber int64, opts *ListOptions) iter.Seq2[*Issue, error]\n```\nListBlockedByIter returns an iterator that paginates through all results of ListBlockedBy.\n\n```go\nfunc (s *IssuesService) ListBlocking(ctx context.Context, owner, repo string, issueNumber int64, opts *ListOptions) ([]*Issue, *Response, error)\n```\nListBlocking lists the issues that the specified issue is blocking.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#list-dependencies-an-issue-is-blocking](https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#list-dependencies-an-issue-is-blocking)\n\n```go\nfunc (s *IssuesService) ListBlockingIter(ctx context.Context, owner string, repo string, issueNumber int64, opts *ListOptions) iter.Seq2[*Issue, error]\n```\nListBlockingIter returns an iterator that paginates through all results of ListBlocking.\n\n```go\nfunc (s *IssuesService) ListByOrg(ctx context.Context, org string, opts *IssueListByOrgOptions) ([]*Issue, *Response, error)\n```\nListByOrg fetches the issues in the specified organization for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-organization-issues-assigned-to-the-authenticated-user](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-organization-issues-assigned-to-the-authenticated-user)\n\n```go\nfunc (s *IssuesService) ListByOrgIter(ctx context.Context, org string, opts *IssueListByOrgOptions) iter.Seq2[*Issue, error]\n```\nListByOrgIter returns an iterator that paginates through all results of ListByOrg.\n\n```go\nfunc (s *IssuesService) ListByRepo(ctx context.Context, owner, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error)\n```\nListByRepo lists the issues for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues)\n\n```go\nfunc (s *IssuesService) ListByRepoIter(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) iter.Seq2[*Issue, error]\n```\nListByRepoIter returns an iterator that paginates through all results of ListByRepo.\n\n```go\nfunc (s *IssuesService) ListComments(ctx context.Context, owner, 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/rest/issues/comments?apiVersion=2022-11-28#list-issue-comments](https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#list-issue-comments)\n\nGitHub API docs: [https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#list-issue-comments-for-a-repository](https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#list-issue-comments-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListCommentsIter(ctx context.Context, owner string, repo string, number int, opts *IssueListCommentsOptions) iter.Seq2[*IssueComment, error]\n```\nListCommentsIter returns an iterator that paginates through all results of ListComments.\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/rest/issues/events?apiVersion=2022-11-28#list-issue-events](https://docs.github.com/rest/issues/events?apiVersion=2022-11-28#list-issue-events)\n\n```go\nfunc (s *IssuesService) ListIssueEventsIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*IssueEvent, error]\n```\nListIssueEventsIter returns an iterator that paginates through all results of ListIssueEvents.\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/rest/issues/timeline?apiVersion=2022-11-28#list-timeline-events-for-an-issue](https://docs.github.com/rest/issues/timeline?apiVersion=2022-11-28#list-timeline-events-for-an-issue)\n\n```go\nfunc (s *IssuesService) ListIssueTimelineIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*Timeline, error]\n```\nListIssueTimelineIter returns an iterator that paginates through all results of ListIssueTimeline.\n\n```go\nfunc (s *IssuesService) ListLabels(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Label, *Response, error)\n```\nListLabels lists all labels for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-a-repository](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListLabelsByIssue(ctx context.Context, owner, 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/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-an-issue](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-an-issue)\n\n```go\nfunc (s *IssuesService) ListLabelsByIssueIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*Label, error]\n```\nListLabelsByIssueIter returns an iterator that paginates through all results of ListLabelsByIssue.\n\n```go\nfunc (s *IssuesService) ListLabelsForMilestone(ctx context.Context, owner, 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/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-issues-in-a-milestone](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-issues-in-a-milestone)\n\n```go\nfunc (s *IssuesService) ListLabelsForMilestoneIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*Label, error]\n```\nListLabelsForMilestoneIter returns an iterator that paginates through all results of ListLabelsForMilestone.\n\n```go\nfunc (s *IssuesService) ListLabelsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Label, error]\n```\nListLabelsIter returns an iterator that paginates through all results of ListLabels.\n\n```go\nfunc (s *IssuesService) ListMilestones(ctx context.Context, owner, repo string, opts *MilestoneListOptions) ([]*Milestone, *Response, error)\n```\nListMilestones lists all milestones for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#list-milestones](https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#list-milestones)\n\n```go\nfunc (s *IssuesService) ListMilestonesIter(ctx context.Context, owner string, repo string, opts *MilestoneListOptions) iter.Seq2[*Milestone, error]\n```\nListMilestonesIter returns an iterator that paginates through all results of ListMilestones.\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/rest/issues/events?apiVersion=2022-11-28#list-issue-events-for-a-repository](https://docs.github.com/rest/issues/events?apiVersion=2022-11-28#list-issue-events-for-a-repository)\n\n```go\nfunc (s *IssuesService) ListRepositoryEventsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*IssueEvent, error]\n```\nListRepositoryEventsIter returns an iterator that paginates through all results of ListRepositoryEvents.\n\n```go\nfunc (s *IssuesService) ListUserIssues(ctx context.Context, opts *ListUserIssuesOptions) ([]*Issue, *Response, error)\n```\nListUserIssues gets issues across owned and member repositories assigned to the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-user-account-issues-assigned-to-the-authenticated-user](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#list-user-account-issues-assigned-to-the-authenticated-user)\n\n```go\nfunc (s *IssuesService) ListUserIssuesIter(ctx context.Context, opts *ListUserIssuesOptions) iter.Seq2[*Issue, error]\n```\nListUserIssuesIter returns an iterator that paginates through all results of ListUserIssues.\n\n```go\nfunc (s *IssuesService) Lock(ctx context.Context, owner, repo string, number int, body LockIssueRequest) (*Response, error)\n```\nLock an issue's conversation.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#lock-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#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/rest/issues/assignees?apiVersion=2022-11-28#remove-assignees-from-an-issue](https://docs.github.com/rest/issues/assignees?apiVersion=2022-11-28#remove-assignees-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveBlockedBy(ctx context.Context, owner, repo string, issueNumber, blockingIssueID int64) (*Issue, *Response, error)\n```\nRemoveBlockedBy removes a \"blocked by\" dependency from the specified issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#remove-dependency-an-issue-is-blocked-by](https://docs.github.com/rest/issues/issue-dependencies?apiVersion=2022-11-28#remove-dependency-an-issue-is-blocked-by)\n\n```go\nfunc (s *IssuesService) RemoveLabelForIssue(ctx context.Context, owner, repo string, number int, label string) (*Response, error)\n```\nRemoveLabelForIssue removes a label for an issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#remove-a-label-from-an-issue](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#remove-a-label-from-an-issue)\n\n```go\nfunc (s *IssuesService) RemoveLabelsForIssue(ctx context.Context, owner, repo string, number int) (*Response, error)\n```\nRemoveLabelsForIssue removes all labels for an issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#remove-all-labels-from-an-issue](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#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```\nRemoveMilestone removes 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/rest/issues/issues?apiVersion=2022-11-28#update-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#update-an-issue)\n\n```go\nfunc (s *IssuesService) ReplaceLabelsForIssue(ctx context.Context, owner, repo string, number int, body []string) ([]*Label, *Response, error)\n```\nReplaceLabelsForIssue replaces all labels for an issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#set-labels-for-an-issue](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#set-labels-for-an-issue)\n\n```go\nfunc (s *IssuesService) Unlock(ctx context.Context, owner, repo string, number int) (*Response, error)\n```\nUnlock an issue's conversation.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#unlock-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#unlock-an-issue)\n\n```go\nfunc (s *IssuesService) Update(ctx context.Context, owner, repo string, number int, body UpdateIssueRequest) (*Issue, *Response, error)\n```\nUpdate an issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#update-an-issue](https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#update-an-issue)\n\n```go\nfunc (s *IssuesService) UpdateComment(ctx context.Context, owner, repo string, commentID int64, body IssueCommentRequest) (*IssueComment, *Response, error)\n```\nUpdateComment updates an issue comment.\n\nGitHub API docs: [https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#update-an-issue-comment](https://docs.github.com/rest/issues/comments?apiVersion=2022-11-28#update-an-issue-comment)\n\n```go\nfunc (s *IssuesService) UpdateLabel(ctx context.Context, owner, repo, name string, body UpdateIssueLabelRequest) (*Label, *Response, error)\n```\nUpdateLabel updates a label.\n\nGitHub API docs: [https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#update-a-label](https://docs.github.com/rest/issues/labels?apiVersion=2022-11-28#update-a-label)\n\n```go\nfunc (s *IssuesService) UpdateMilestone(ctx context.Context, owner, repo string, number int, body UpdateMilestoneRequest) (*Milestone, *Response, error)\n```\nUpdateMilestone updates a milestone.\n\nGitHub API docs: [https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#update-a-milestone](https://docs.github.com/rest/issues/milestones?apiVersion=2022-11-28#update-a-milestone)\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) GetJobs() []*WorkflowJob\n```\nGetJobs returns the Jobs slice if it's non-nil, nil otherwise.\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\tEnabled   *bool      `json:\"enabled,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) GetEnabled() bool\n```\nGetEnabled returns the Enabled 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\"`\n\tURL         string  `json:\"url\"`\n\tName        string  `json:\"name\"`\n\tColor       string  `json:\"color\"`\n\tDescription *string `json:\"description\"`\n\tDefault     bool    `json:\"default\"`\n\tNodeID      string  `json:\"node_id\"`\n}\n```\nLabel represents a GitHub label on an Issue.\n\n```go\nfunc (l *Label) GetColor() string\n```\nGetColor returns the Color field.\n\n```go\nfunc (l *Label) GetDefault() bool\n```\nGetDefault returns the Default field.\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.\n\n```go\nfunc (l *Label) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (l *Label) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (l *Label) GetURL() string\n```\nGetURL returns the URL field.\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/developers/webhooks-and-events/webhook-events-and-payloads#label](https://docs.github.com/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 if it's non-nil, zero value otherwise.\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) GetLabels() []*LabelResult\n```\nGetLabels returns the Labels slice if it's non-nil, nil 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/rest/migrations/source-imports?apiVersion=2022-11-28#get-large-files](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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 LastLicenseSync struct {\n\tType       string                     `json:\"type\"`\n\tProperties *LastLicenseSyncProperties `json:\"properties,omitempty\"`\n}\n```\nLastLicenseSync contains information about the most recent license synchronization attempt for a server instance.\n\n```go\nfunc (l *LastLicenseSync) GetProperties() *LastLicenseSyncProperties\n```\nGetProperties returns the Properties field.\n\n```go\nfunc (l *LastLicenseSync) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype LastLicenseSyncProperties struct {\n\tDate   *Timestamp `json:\"date,omitempty\"`\n\tStatus string     `json:\"status\"`\n\tError  string     `json:\"error\"`\n}\n```\nLastLicenseSyncProperties represents the details of the last synchronization attempt, including the date, status, and any error that occurred.\n\n```go\nfunc (l *LastLicenseSyncProperties) GetDate() Timestamp\n```\nGetDate returns the Date field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LastLicenseSyncProperties) GetError() string\n```\nGetError returns the Error field.\n\n```go\nfunc (l *LastLicenseSyncProperties) GetStatus() string\n```\nGetStatus returns the Status field.\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 LicenseCheck struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nLicenseCheck is a struct to hold the response from the LicenseStatus API.\n\n```go\nfunc (l *LicenseCheck) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype LicenseStatus struct {\n\tAdvancedSecurityEnabled      *bool      `json:\"advancedSecurityEnabled,omitempty\"`\n\tAdvancedSecuritySeats        *int       `json:\"advancedSecuritySeats,omitempty\"`\n\tClusterSupport               *bool      `json:\"clusterSupport,omitempty\"`\n\tCompany                      *string    `json:\"company,omitempty\"`\n\tCroquetSupport               *bool      `json:\"croquetSupport,omitempty\"`\n\tCustomTerms                  *bool      `json:\"customTerms,omitempty\"`\n\tEvaluation                   *bool      `json:\"evaluation,omitempty\"`\n\tExpireAt                     *Timestamp `json:\"expireAt,omitempty\"`\n\tInsightsEnabled              *bool      `json:\"insightsEnabled,omitempty\"`\n\tInsightsExpireAt             *Timestamp `json:\"insightsExpireAt,omitempty\"`\n\tLearningLabEvaluationExpires *Timestamp `json:\"learningLabEvaluationExpires,omitempty\"`\n\tLearningLabSeats             *int       `json:\"learningLabSeats,omitempty\"`\n\tPerpetual                    *bool      `json:\"perpetual,omitempty\"`\n\tReferenceNumber              *string    `json:\"referenceNumber,omitempty\"`\n\tSeats                        *int       `json:\"seats,omitempty\"`\n\tSSHAllowed                   *bool      `json:\"sshAllowed,omitempty\"`\n\t// SupportKey is documented as a string, but the actual response is a bool.\n\t// TODO: Remove this note once GitHub corrects the schema documentation.\n\tSupportKey       *bool `json:\"supportKey,omitempty\"`\n\tUnlimitedSeating *bool `json:\"unlimitedSeating,omitempty\"`\n}\n```\nLicenseStatus is a struct to hold the response from the License API.\n\n```go\nfunc (l *LicenseStatus) GetAdvancedSecurityEnabled() bool\n```\nGetAdvancedSecurityEnabled returns the AdvancedSecurityEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetAdvancedSecuritySeats() int\n```\nGetAdvancedSecuritySeats returns the AdvancedSecuritySeats field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetClusterSupport() bool\n```\nGetClusterSupport returns the ClusterSupport field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetCompany() string\n```\nGetCompany returns the Company field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetCroquetSupport() bool\n```\nGetCroquetSupport returns the CroquetSupport field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetCustomTerms() bool\n```\nGetCustomTerms returns the CustomTerms field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetEvaluation() bool\n```\nGetEvaluation returns the Evaluation field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetExpireAt() Timestamp\n```\nGetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetInsightsEnabled() bool\n```\nGetInsightsEnabled returns the InsightsEnabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetInsightsExpireAt() Timestamp\n```\nGetInsightsExpireAt returns the InsightsExpireAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetLearningLabEvaluationExpires() Timestamp\n```\nGetLearningLabEvaluationExpires returns the LearningLabEvaluationExpires field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetLearningLabSeats() int\n```\nGetLearningLabSeats returns the LearningLabSeats field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetPerpetual() bool\n```\nGetPerpetual returns the Perpetual field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetReferenceNumber() string\n```\nGetReferenceNumber returns the ReferenceNumber field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetSSHAllowed() bool\n```\nGetSSHAllowed returns the SSHAllowed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetSeats() int\n```\nGetSeats returns the Seats field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetSupportKey() bool\n```\nGetSupportKey returns the SupportKey field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *LicenseStatus) GetUnlimitedSeating() bool\n```\nGetUnlimitedSeating returns the UnlimitedSeating field if it's non-nil, zero value otherwise.\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/rest/licenses?apiVersion=2022-11-28](https://docs.github.com/rest/licenses?apiVersion=2022-11-28)\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/rest/licenses/licenses?apiVersion=2022-11-28#get-a-license](https://docs.github.com/rest/licenses/licenses?apiVersion=2022-11-28#get-a-license)\n\n```go\nfunc (s *LicensesService) List(ctx context.Context, opts *ListLicensesOptions) ([]*License, *Response, error)\n```\nList popular open source licenses.\n\nGitHub API docs: [https://docs.github.com/rest/licenses/licenses?apiVersion=2022-11-28#get-all-commonly-used-licenses](https://docs.github.com/rest/licenses/licenses?apiVersion=2022-11-28#get-all-commonly-used-licenses)\n\n```go\nfunc (s *LicensesService) ListIter(ctx context.Context, opts *ListLicensesOptions) iter.Seq2[*License, error]\n```\nListIter returns an iterator that paginates through all results of List.\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 ListAllIssuesOptions struct {\n\t// Filter specifies which issues to list. Possible values are: assigned,\n\t// created, mentioned, subscribed, repos, 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\tCollab bool `url:\"collab,omitempty\"`\n\tOrgs   bool `url:\"orgs,omitempty\"`\n\tOwned  bool `url:\"owned,omitempty\"`\n\tPulls  bool `url:\"pulls,omitempty\"`\n\n\tListOptions\n}\n```\nListAllIssuesOptions specifies the optional parameters to the IssuesService.ListAllIssues method.\n\n```go\nfunc (l *ListAllIssuesOptions) GetCollab() bool\n```\nGetCollab returns the Collab field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetFilter() string\n```\nGetFilter returns the Filter field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListAllIssuesOptions) GetOrgs() bool\n```\nGetOrgs returns the Orgs field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetOwned() bool\n```\nGetOwned returns the Owned field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetPulls() bool\n```\nGetPulls returns the Pulls field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (l *ListAllIssuesOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype ListArtifactsOptions struct {\n\t// Name represents the name field of an artifact.\n\t// When specified, only artifacts with this name will be returned.\n\tName *string `url:\"name,omitempty\"`\n\n\tListOptions\n}\n```\nListArtifactsOptions specifies the optional parameters to the ActionsService.ListArtifacts method.\n\n```go\nfunc (l *ListArtifactsOptions) GetName() string\n```\nGetName returns the Name 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) GetCheckRuns() []*CheckRun\n```\nGetCheckRuns returns the CheckRuns slice if it's non-nil, nil otherwise.\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     *int64  `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() int64\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) GetCheckSuites() []*CheckSuite\n```\nGetCheckSuites returns the CheckSuites slice if it's non-nil, nil otherwise.\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 ListCodeQualityFindingsOptions struct {\n\tState     string `url:\"state,omitempty\"`\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListCursorOptions\n}\n```\nListCodeQualityFindingsOptions specifies the optional parameters to CodeQualityService.ListFindings.\n\n```go\nfunc (l *ListCodeQualityFindingsOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (l *ListCodeQualityFindingsOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype ListCodeSecurityConfigurationRepositoriesOptions struct {\n\t// A cursor, as given in the Link header. If specified, the query only searches for repositories before this cursor.\n\tBefore string `url:\"before,omitempty\"`\n\n\t// A cursor, as given in the Link header. If specified, the query only searches for repositories after this cursor.\n\tAfter string `url:\"after,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// A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned.\n\t//\n\t// `status` defaults to all, can be one of `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` and also `detached` but only for the org endpoint.\n\tStatus string `url:\"status,omitempty\"`\n}\n```\nListCodeSecurityConfigurationRepositoriesOptions specifies optional parameters to list repositories for security configurations for orgs and enterprises.\n\nNote: Pagination is powered by before/after cursor-style pagination. After the initial call, inspect the returned \\*Response. Use resp.After as the opts.After value to request the next page, and resp.Before as the opts.Before value to request the previous page. Set either Before or After for a request; if both are supplied GitHub API will return an error. PerPage controls the number of items per page (max 100 per GitHub API docs).\n\n```go\nfunc (l *ListCodeSecurityConfigurationRepositoriesOptions) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (l *ListCodeSecurityConfigurationRepositoriesOptions) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (l *ListCodeSecurityConfigurationRepositoriesOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\nfunc (l *ListCodeSecurityConfigurationRepositoriesOptions) GetStatus() string\n```\nGetStatus returns the Status field.\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) GetCodespaces() []*Codespace\n```\nGetCodespaces returns the Codespaces slice if it's non-nil, nil otherwise.\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```\nListCodespacesOptions represents the options for listing codespaces for a user.\n\n```go\nfunc (l *ListCodespacesOptions) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field.\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\nfunc (l *ListCollaboratorsOptions) GetAffiliation() string\n```\nGetAffiliation returns the Affiliation field.\n\n```go\nfunc (l *ListCollaboratorsOptions) GetPermission() string\n```\nGetPermission returns the Permission field.\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\nfunc (l *ListContributorsOptions) GetAnon() string\n```\nGetAnon returns the Anon field.\n\n```go\ntype ListCopilotSeatsResponse struct {\n\tTotalSeats int64                 `json:\"total_seats\"`\n\tSeats      []*CopilotSeatDetails `json:\"seats\"`\n}\n```\nListCopilotSeatsResponse represents the Copilot for Business seat assignments for an organization.\n\n```go\nfunc (l *ListCopilotSeatsResponse) GetSeats() []*CopilotSeatDetails\n```\nGetSeats returns the Seats slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListCopilotSeatsResponse) GetTotalSeats() int64\n```\nGetTotalSeats returns the TotalSeats field.\n\n```go\ntype ListCostCenterOptions struct {\n\t// Set to `active` or `deleted` to only list cost centers in a specific state.\n\tState *string `url:\"state,omitempty\"`\n}\n```\nListCostCenterOptions specifies optional parameters to the EnterpriseService.ListCostCenters method.\n\n```go\nfunc (l *ListCostCenterOptions) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\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\nfunc (l *ListCursorOptions) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (l *ListCursorOptions) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (l *ListCursorOptions) GetCursor() string\n```\nGetCursor returns the Cursor field.\n\n```go\nfunc (l *ListCursorOptions) GetFirst() int\n```\nGetFirst returns the First field.\n\n```go\nfunc (l *ListCursorOptions) GetLast() int\n```\nGetLast returns the Last field.\n\n```go\nfunc (l *ListCursorOptions) GetPage() string\n```\nGetPage returns the Page field.\n\n```go\nfunc (l *ListCursorOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\ntype ListCustomDeploymentRuleIntegrationsResponse struct {\n\tTotalCount            *int                                 `json:\"total_count,omitempty\"`\n\tAvailableIntegrations []*CustomDeploymentProtectionRuleApp `json:\"available_custom_deployment_protection_rule_integrations,omitempty\"`\n}\n```\nListCustomDeploymentRuleIntegrationsResponse represents the slightly different response that comes back when you list custom deployment rule integrations.\n\n```go\nfunc (l *ListCustomDeploymentRuleIntegrationsResponse) GetAvailableIntegrations() []*CustomDeploymentProtectionRuleApp\n```\nGetAvailableIntegrations returns the AvailableIntegrations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListCustomDeploymentRuleIntegrationsResponse) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ListCustomPropertyValuesOptions struct {\n\tRepositoryQuery string `url:\"repository_query,omitempty\"`\n\tListOptions\n}\n```\nListCustomPropertyValuesOptions specifies the optional parameters to the OrganizationsService.ListCustomPropertyValues method.\n\n```go\nfunc (l *ListCustomPropertyValuesOptions) GetRepositoryQuery() string\n```\nGetRepositoryQuery returns the RepositoryQuery field.\n\n```go\ntype ListDeploymentProtectionRuleResponse struct {\n\tTotalCount      *int                              `json:\"total_count,omitempty\"`\n\tProtectionRules []*CustomDeploymentProtectionRule `json:\"custom_deployment_protection_rules,omitempty\"`\n}\n```\nListDeploymentProtectionRuleResponse represents the response that comes back when you list deployment protection rules.\n\n```go\nfunc (l *ListDeploymentProtectionRuleResponse) GetProtectionRules() []*CustomDeploymentProtectionRule\n```\nGetProtectionRules returns the ProtectionRules slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListDeploymentProtectionRuleResponse) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype ListEnterpriseCodeSecurityConfigurationOptions struct {\n\t// A cursor, as given in the Link header. If specified, the query only searches for security configurations before this cursor.\n\tBefore string `url:\"before,omitempty\"`\n\n\t// A cursor, as given in the Link header. If specified, the query only searches for security configurations after this cursor.\n\tAfter string `url:\"after,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```\nListEnterpriseCodeSecurityConfigurationOptions specifies optional parameters to get security configurations for enterprises.\n\nNote: Pagination is powered by before/after cursor-style pagination. After the initial call, inspect the returned \\*Response. Use resp.After as the opts.After value to request the next page, and resp.Before as the opts.Before value to request the previous page. Set either Before or After for a request; if both are supplied GitHub API will return an error. PerPage controls the number of items per page (max 100 per GitHub API docs).\n\n```go\nfunc (l *ListEnterpriseCodeSecurityConfigurationOptions) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (l *ListEnterpriseCodeSecurityConfigurationOptions) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (l *ListEnterpriseCodeSecurityConfigurationOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\ntype ListEnterpriseRunnerGroupOptions struct {\n\tListOptions\n\n\t// Only return runner groups that are allowed to be used by this organization.\n\tVisibleToOrganization string `url:\"visible_to_organization,omitempty\"`\n}\n```\nListEnterpriseRunnerGroupOptions extend ListOptions to have the optional parameters VisibleToOrganization.\n\n```go\nfunc (l *ListEnterpriseRunnerGroupOptions) GetVisibleToOrganization() string\n```\nGetVisibleToOrganization returns the VisibleToOrganization field.\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 ListFineGrainedPATOptions struct {\n\t// The property by which to sort the results.\n\t// Default: created_at\n\t// Value: created_at\n\tSort string `url:\"sort,omitempty\"`\n\n\t// The direction to sort the results by.\n\t// Default: desc\n\t// Value: asc, desc\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// A list of owner usernames to use to filter the results.\n\tOwner []string `url:\"-\"`\n\n\t// The name of the repository to use to filter the results.\n\tRepository string `url:\"repository,omitempty\"`\n\n\t// The permission to use to filter the results.\n\tPermission string `url:\"permission,omitempty\"`\n\n\t// Only show fine-grained personal access tokens used before the given time.\n\t// This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\n\tLastUsedBefore string `url:\"last_used_before,omitempty\"`\n\n\t// Only show fine-grained personal access tokens used after the given time.\n\t// This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\n\tLastUsedAfter string `url:\"last_used_after,omitempty\"`\n\n\t// TokenID filters results by the given fine-grained personal access token IDs.\n\tTokenID []int64 `url:\"-\"`\n\n\tListOptions\n}\n```\nListFineGrainedPATOptions specifies optional parameters to ListFineGrainedPersonalAccessTokens.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetLastUsedAfter() string\n```\nGetLastUsedAfter returns the LastUsedAfter field.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetLastUsedBefore() string\n```\nGetLastUsedBefore returns the LastUsedBefore field.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetOwner() []string\n```\nGetOwner returns the Owner slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetPermission() string\n```\nGetPermission returns the Permission field.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetRepository() string\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (l *ListFineGrainedPATOptions) GetTokenID() []int64\n```\nGetTokenID returns the TokenID slice if it's non-nil, nil otherwise.\n\n```go\ntype ListGlobalSecurityAdvisoriesOptions struct {\n\tListCursorOptions\n\n\t// If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.\n\tGHSAID *string `url:\"ghsa_id,omitempty\"`\n\n\t// If specified, only advisories of this type will be returned.\n\t// By default, a request with no other parameters defined will only return reviewed advisories that are not malware.\n\t// Default: reviewed\n\t// Can be one of: reviewed, malware, unreviewed\n\tType *string `url:\"type,omitempty\"`\n\n\t// If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.\n\tCVEID *string `url:\"cve_id,omitempty\"`\n\n\t// If specified, only advisories for these ecosystems will be returned.\n\t// Can be one of: actions, composer, erlang, go, maven, npm, nuget, other, pip, pub, rubygems, rust\n\tEcosystem *string `url:\"ecosystem,omitempty\"`\n\n\t// If specified, only advisories with these severities will be returned.\n\t// Can be one of: unknown, low, medium, high, critical\n\tSeverity *string `url:\"severity,omitempty\"`\n\n\t// If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.\n\t// Example: cwes=79,284,22 or cwes[]=79\u0026cwes[]=284\u0026cwes[]=22\n\tCWEs []string `url:\"cwes,omitempty\"`\n\n\t// Whether to only return advisories that have been withdrawn.\n\tIsWithdrawn *bool `url:\"is_withdrawn,omitempty\"`\n\n\t// If specified, only return advisories that affect any of package or package@version.\n\t// A maximum of 1000 packages can be specified. If the query parameter causes\n\t// the URL to exceed the maximum URL length supported by your client, you must specify fewer packages.\n\t// Example: affects=package1,package2@1.0.0,package3@^2.0.0 or affects[]=package1\u0026affects[]=package2@1.0.0\n\tAffects *string `url:\"affects,omitempty\"`\n\n\t// If specified, only return advisories that were published on a date or date range.\n\tPublished *string `url:\"published,omitempty\"`\n\n\t// If specified, only return advisories that were updated on a date or date range.\n\tUpdated *string `url:\"updated,omitempty\"`\n\n\t// If specified, only show advisories that were updated or published on a date or date range.\n\tModified *string `url:\"modified,omitempty\"`\n}\n```\nListGlobalSecurityAdvisoriesOptions specifies the optional parameters to list the global security advisories.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetAffects() string\n```\nGetAffects returns the Affects field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetCVEID() string\n```\nGetCVEID returns the CVEID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetCWEs() []string\n```\nGetCWEs returns the CWEs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetEcosystem() string\n```\nGetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetGHSAID() string\n```\nGetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetIsWithdrawn() bool\n```\nGetIsWithdrawn returns the IsWithdrawn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetModified() string\n```\nGetModified returns the Modified field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetPublished() string\n```\nGetPublished returns the Published field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetSeverity() string\n```\nGetSeverity returns the Severity field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListGlobalSecurityAdvisoriesOptions) GetUpdated() string\n```\nGetUpdated returns the Updated field if it's non-nil, zero value otherwise.\n\n```go\ntype ListIDPGroupsOptions struct {\n\t// Filters the results to return only those that begin with the value specified by this parameter.\n\tQuery string `url:\"q,omitempty\"`\n\n\tListCursorOptions\n}\n```\nListIDPGroupsOptions specifies the optional parameters to the ListIDPGroupsInOrganization method.\n\n```go\nfunc (l *ListIDPGroupsOptions) GetQuery() string\n```\nGetQuery returns the Query field.\n\n```go\ntype ListLicensesOptions struct {\n\tFeatured *bool `url:\"featured,omitempty\"`\n\n\tListOptions\n}\n```\nListLicensesOptions specifies the optional parameters to the LicensesService.List method.\n\n```go\nfunc (l *ListLicensesOptions) GetFeatured() bool\n```\nGetFeatured returns the Featured 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\nfunc (l *ListMembersOptions) GetFilter() string\n```\nGetFilter returns the Filter field.\n\n```go\nfunc (l *ListMembersOptions) GetPublicOnly() bool\n```\nGetPublicOnly returns the PublicOnly field.\n\n```go\nfunc (l *ListMembersOptions) GetRole() string\n```\nGetRole returns the Role field.\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\nfunc (l *ListOptions) GetPage() int\n```\nGetPage returns the Page field.\n\n```go\nfunc (l *ListOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\ntype ListOrgCodeSecurityConfigurationOptions struct {\n\t// A cursor, as given in the Link header. If specified, the query only searches for security configurations before this cursor.\n\tBefore string `url:\"before,omitempty\"`\n\n\t// A cursor, as given in the Link header. If specified, the query only searches for security configurations after this cursor.\n\tAfter string `url:\"after,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// The target type of the code security configurations to get.\n\t//\n\t// `target_type` defaults to all, can be one of `global`, `all`\n\tTargetType string `url:\"target_type,omitempty\"`\n}\n```\nListOrgCodeSecurityConfigurationOptions specifies optional parameters to get security configurations for orgs.\n\nNote: Pagination is powered by before/after cursor-style pagination. After the initial call, inspect the returned \\*Response. Use resp.After as the opts.After value to request the next page, and resp.Before as the opts.Before value to request the previous page. Set either Before or After for a request; if both are supplied GitHub API will return an error. PerPage controls the number of items per page (max 100 per GitHub API docs).\n\n```go\nfunc (l *ListOrgCodeSecurityConfigurationOptions) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (l *ListOrgCodeSecurityConfigurationOptions) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (l *ListOrgCodeSecurityConfigurationOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\nfunc (l *ListOrgCodeSecurityConfigurationOptions) GetTargetType() string\n```\nGetTargetType returns the TargetType field.\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\nfunc (l *ListOrgMembershipsOptions) GetState() string\n```\nGetState returns the State field.\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\nfunc (l *ListOrgRunnerGroupOptions) GetVisibleToRepository() string\n```\nGetVisibleToRepository returns the VisibleToRepository field.\n\n```go\ntype ListOrganizationCopilotCodingAgentRepositoriesResponse struct {\n\tTotalCount   int           `json:\"total_count\"`\n\tRepositories []*Repository `json:\"repositories\"`\n}\n```\nListOrganizationCopilotCodingAgentRepositoriesResponse represents the response from listing repositories enabled for the Copilot coding agent in an organization.\n\n```go\nfunc (l *ListOrganizationCopilotCodingAgentRepositoriesResponse) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListOrganizationCopilotCodingAgentRepositoriesResponse) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype ListOrganizations struct {\n\tTotalCount    *int            `json:\"total_count,omitempty\"`\n\tOrganizations []*Organization `json:\"organizations\"`\n}\n```\nListOrganizations represents the response from the list orgs endpoints.\n\n```go\nfunc (l *ListOrganizations) GetOrganizations() []*Organization\n```\nGetOrganizations returns the Organizations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListOrganizations) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\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\nfunc (l *ListOutsideCollaboratorsOptions) GetFilter() string\n```\nGetFilter returns the Filter field.\n\n```go\ntype ListPackageVersionsOptions struct {\n\t// State of package either \"active\" or \"deleted\".\n\tState string `url:\"state,omitempty\"`\n\n\tListOptions\n}\n```\nListPackageVersionsOptions specifies the optional parameters to the UsersService.ListPackageVersions.\n\n```go\nfunc (l *ListPackageVersionsOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype ListProjectItemsOptions struct {\n\t// Embed ListProjectsOptions to reuse pagination and query parameters.\n\tListProjectsOptions\n\t// Fields restricts which field values are returned by numeric field IDs.\n\tFields []int64 `url:\"fields,omitempty,comma\"`\n}\n```\nListProjectItemsOptions specifies optional parameters when listing project items. Note: Pagination uses before/after cursor-style pagination similar to ListProjectsOptions. \"Fields\" can be used to restrict which field values are returned (by their numeric IDs).\n\n```go\nfunc (l *ListProjectItemsOptions) GetFields() []int64\n```\nGetFields returns the Fields slice if it's non-nil, nil otherwise.\n\n```go\ntype ListProjectsOptions struct {\n\tListProjectsPaginationOptions\n\n\t// Q is an optional query string to limit results to projects of the specified type.\n\tQuery string `url:\"q,omitempty\"`\n}\n```\nListProjectsOptions specifies optional parameters to list projects for user / organization.\n\n```go\nfunc (l *ListProjectsOptions) GetQuery() string\n```\nGetQuery returns the Query field.\n\n```go\ntype ListProjectsPaginationOptions struct {\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 only searches for events after this cursor.\n\tAfter string `url:\"after,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```\nListProjectsPaginationOptions specifies optional parameters to list projects for user / organization.\n\nNote: Pagination is powered by before/after cursor-style pagination. After the initial call, inspect the returned \\*Response. Use resp.After as the opts.After value to request the next page, and resp.Before as the opts.Before value to request the previous page. Set either Before or After for a request; if both are supplied GitHub API will return an error. PerPage controls the number of items per page (max 100 per GitHub API docs).\n\n```go\nfunc (l *ListProjectsPaginationOptions) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (l *ListProjectsPaginationOptions) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (l *ListProjectsPaginationOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\ntype ListProvisionedSCIMGroupsEnterpriseOptions struct {\n\t// If specified, only results that match the specified filter will be returned.\n\t// Possible filters are `externalId`, `id`, and `displayName`. For example, `externalId eq \"a123\"`.\n\tFilter *string `url:\"filter,omitempty\"`\n\t// Excludes the specified attributes from being returned in the results.\n\tExcludedAttributes *string `url:\"excludedAttributes,omitempty\"`\n\t// Used for pagination: the starting index of the first result to return when paginating through values.\n\t// Default: 1.\n\tStartIndex *int `url:\"startIndex,omitempty\"`\n\t// Used for pagination: the number of results to return per page.\n\t// Default: 30.\n\tCount *int `url:\"count,omitempty\"`\n}\n```\nListProvisionedSCIMGroupsEnterpriseOptions represents query parameters for ListProvisionedSCIMGroups.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-provisioned-scim-groups-for-an-enterprise--parameters](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-provisioned-scim-groups-for-an-enterprise--parameters)\n\n```go\nfunc (l *ListProvisionedSCIMGroupsEnterpriseOptions) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListProvisionedSCIMGroupsEnterpriseOptions) GetExcludedAttributes() string\n```\nGetExcludedAttributes returns the ExcludedAttributes field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListProvisionedSCIMGroupsEnterpriseOptions) GetFilter() string\n```\nGetFilter returns the Filter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListProvisionedSCIMGroupsEnterpriseOptions) GetStartIndex() int\n```\nGetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise.\n\n```go\ntype ListProvisionedSCIMUsersEnterpriseOptions struct {\n\t// If specified, only results that match the specified filter will be returned.\n\t// Possible filters are `userName`, `externalId`, `id`, and `displayName`. For example, `externalId eq \"a123\"`.\n\tFilter *string `url:\"filter,omitempty\"`\n\t// Used for pagination: the starting index of the first result to return when paginating through values.\n\t// Default: 1.\n\tStartIndex *int `url:\"startIndex,omitempty\"`\n\t// Used for pagination: the number of results to return per page.\n\t// Default: 30.\n\tCount *int `url:\"count,omitempty\"`\n}\n```\nListProvisionedSCIMUsersEnterpriseOptions represents query parameters for ListProvisionedSCIMUsers.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-scim-provisioned-identities-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#list-scim-provisioned-identities-for-an-enterprise)\n\n```go\nfunc (l *ListProvisionedSCIMUsersEnterpriseOptions) GetCount() int\n```\nGetCount returns the Count field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListProvisionedSCIMUsersEnterpriseOptions) GetFilter() string\n```\nGetFilter returns the Filter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListProvisionedSCIMUsersEnterpriseOptions) GetStartIndex() int\n```\nGetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise.\n\n```go\ntype ListReactionOptions 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```\nListReactionOptions specifies the optional parameters to the list reactions endpoints.\n\n```go\nfunc (l *ListReactionOptions) GetContent() string\n```\nGetContent returns the Content field.\n\n```go\ntype ListRepoMachineTypesOptions struct {\n\t// Ref represent the branch or commit to check for prebuild availability and devcontainer restrictions.\n\tRef *string `url:\"ref,omitempty\"`\n\t// Location represent the location to check for available machines. Assigned by IP if not provided.\n\tLocation *string `url:\"location,omitempty\"`\n\t// ClientIP represent the IP for location auto-detection when proxying a request\n\tClientIP *string `url:\"client_ip,omitempty\"`\n}\n```\nListRepoMachineTypesOptions represent options for ListMachineTypesForRepository.\n\n```go\nfunc (l *ListRepoMachineTypesOptions) GetClientIP() string\n```\nGetClientIP returns the ClientIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListRepoMachineTypesOptions) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (l *ListRepoMachineTypesOptions) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\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 ListRepositoryActivityOptions struct {\n\t// The direction to sort the results by.\n\t// Default: desc\n\t// Can be one of: asc, desc\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// For paginated result sets, The number of results per page (max 100).\n\tPerPage int `url:\"per_page,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 only searches for events after this cursor.\n\tAfter string `url:\"after,omitempty\"`\n\n\t// The Git reference for the activities you want to list.\n\t// The ref for a branch can be formatted either as refs/heads/BRANCH_NAME or BRANCH_NAME, where BRANCH_NAME is the name of your branch.\n\tRef string `url:\"ref,omitempty\"`\n\n\t// The GitHub username to use to filter by the actor who performed the activity.\n\tActor string `url:\"actor,omitempty\"`\n\n\t// The time period to filter by.\n\t// For example, day will filter for activity that occurred in the past 24 hours, and week will filter for activity that occurred in the past 7 days (168 hours).\n\t// Can be one of: day, week, month, quarter, year\n\tTimePeriod string `url:\"time_period,omitempty\"`\n\n\t// The activity type to filter by.\n\t// For example, you can choose to filter by \"force_push\", to see all force pushes to the repository.\n\t// Can be one of: push, force_push, branch_creation, branch_deletion, pr_merge, merge_queue_merge\n\tActivityType string `url:\"activity_type,omitempty\"`\n}\n```\nListRepositoryActivityOptions specifies the optional parameters to the RepositoriesService.ListRepositoryActivities method.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetActivityType() string\n```\nGetActivityType returns the ActivityType field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetActor() string\n```\nGetActor returns the Actor field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (l *ListRepositoryActivityOptions) GetTimePeriod() string\n```\nGetTimePeriod returns the TimePeriod field.\n\n```go\ntype ListRepositorySecurityAdvisoriesOptions struct {\n\tListCursorOptions\n\n\t// Direction in which to sort advisories. Possible values are: asc, desc.\n\t// Default is \"asc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// Sort specifies how to sort advisories. Possible values are: created, updated,\n\t// and published. Default value is \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// State filters advisories based on their state. Possible values are: triage, draft, published, closed.\n\tState string `url:\"state,omitempty\"`\n}\n```\nListRepositorySecurityAdvisoriesOptions specifies the optional parameters to list the repository security advisories.\n\n```go\nfunc (l *ListRepositorySecurityAdvisoriesOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (l *ListRepositorySecurityAdvisoriesOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (l *ListRepositorySecurityAdvisoriesOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype ListRunnersOptions struct {\n\tName *string `url:\"name,omitempty\"`\n\tListOptions\n}\n```\nListRunnersOptions specifies the optional parameters to the ListRunners and ListOrganizationRunners methods.\n\n```go\nfunc (l *ListRunnersOptions) GetName() string\n```\nGetName returns the Name 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/rest/scim#list-scim-provisioned-identities--parameters](https://docs.github.com/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 ListUserIssuesOptions struct {\n\t// Filter specifies which issues to list. Possible values are: assigned,\n\t// created, mentioned, subscribed, repos, 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```\nListUserIssuesOptions specifies the optional parameters to the IssuesService.ListUserIssues method.\n\n```go\nfunc (l *ListUserIssuesOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (l *ListUserIssuesOptions) GetFilter() string\n```\nGetFilter returns the Filter field.\n\n```go\nfunc (l *ListUserIssuesOptions) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (l *ListUserIssuesOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\n\n```go\nfunc (l *ListUserIssuesOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (l *ListUserIssuesOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype ListVisualStudioSubscriptionsOptions struct {\n\tListOptions\n\n\t// IsUnmatchedOnly filters results to return only unmatched subscriptions.\n\tIsUnmatchedOnly bool `url:\"is_unmatched_only,omitempty\"`\n}\n```\nListVisualStudioSubscriptionsOptions specifies the optional parameters to EnterpriseService.ListVisualStudioSubscriptions.\n\n```go\nfunc (l *ListVisualStudioSubscriptionsOptions) GetIsUnmatchedOnly() bool\n```\nGetIsUnmatchedOnly returns the IsUnmatchedOnly field.\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\nfunc (l *ListWorkflowJobsOptions) GetFilter() string\n```\nGetFilter returns the Filter field.\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\nfunc (l *ListWorkflowRunsOptions) GetActor() string\n```\nGetActor returns the Actor field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetBranch() string\n```\nGetBranch returns the Branch field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetCheckSuiteID() int64\n```\nGetCheckSuiteID returns the CheckSuiteID field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetCreated() string\n```\nGetCreated returns the Created field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetEvent() string\n```\nGetEvent returns the Event field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetExcludePullRequests() bool\n```\nGetExcludePullRequests returns the ExcludePullRequests field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetHeadSHA() string\n```\nGetHeadSHA returns the HeadSHA field.\n\n```go\nfunc (l *ListWorkflowRunsOptions) GetStatus() string\n```\nGetStatus returns the Status field.\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 LockIssueRequest 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```\nLockIssueRequest represents a request to lock an issue.\n\n```go\nfunc (l *LockIssueRequest) GetLockReason() string\n```\nGetLockReason returns the LockReason field if it's non-nil, zero value otherwise.\n\n```go\ntype MaintenanceOperationStatus struct {\n\tHostname *string `json:\"hostname,omitempty\"`\n\tUUID     *string `json:\"uuid,omitempty\"`\n\tMessage  *string `json:\"message,omitempty\"`\n}\n```\nMaintenanceOperationStatus represents the message to be displayed when the instance gets a maintenance operation request.\n\n```go\nfunc (m *MaintenanceOperationStatus) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceOperationStatus) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceOperationStatus) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\ntype MaintenanceOptions struct {\n\tEnabled                bool     `json:\"enabled\"`\n\tUUID                   *string  `json:\"uuid,omitempty\"`\n\tWhen                   *string  `json:\"when,omitempty\"`\n\tIPExceptionList        []string `json:\"ip_exception_list,omitempty\"`\n\tMaintenanceModeMessage *string  `json:\"maintenance_mode_message,omitempty\"`\n}\n```\nMaintenanceOptions represents the options for setting the maintenance mode for the instance. When can be a string, so we can't use a Timestamp type.\n\n```go\nfunc (m *MaintenanceOptions) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\n\n```go\nfunc (m *MaintenanceOptions) GetIPExceptionList() []string\n```\nGetIPExceptionList returns the IPExceptionList slice if it's non-nil, nil otherwise.\n\n```go\nfunc (m *MaintenanceOptions) GetMaintenanceModeMessage() string\n```\nGetMaintenanceModeMessage returns the MaintenanceModeMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceOptions) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceOptions) GetWhen() string\n```\nGetWhen returns the When field if it's non-nil, zero value otherwise.\n\n```go\ntype MaintenanceStatus struct {\n\tHostname               *string                  `json:\"hostname,omitempty\"`\n\tUUID                   *string                  `json:\"uuid,omitempty\"`\n\tStatus                 *string                  `json:\"status,omitempty\"`\n\tScheduledTime          *Timestamp               `json:\"scheduled_time,omitempty\"`\n\tConnectionServices     []*ConnectionServiceItem `json:\"connection_services,omitempty\"`\n\tCanUnsetMaintenance    *bool                    `json:\"can_unset_maintenance,omitempty\"`\n\tIPExceptionList        []string                 `json:\"ip_exception_list,omitempty\"`\n\tMaintenanceModeMessage *string                  `json:\"maintenance_mode_message,omitempty\"`\n}\n```\nMaintenanceStatus represents the status of maintenance mode for all nodes.\n\n```go\nfunc (m *MaintenanceStatus) GetCanUnsetMaintenance() bool\n```\nGetCanUnsetMaintenance returns the CanUnsetMaintenance field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetConnectionServices() []*ConnectionServiceItem\n```\nGetConnectionServices returns the ConnectionServices slice if it's non-nil, nil otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetIPExceptionList() []string\n```\nGetIPExceptionList returns the IPExceptionList slice if it's non-nil, nil otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetMaintenanceModeMessage() string\n```\nGetMaintenanceModeMessage returns the MaintenanceModeMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetScheduledTime() Timestamp\n```\nGetScheduledTime returns the ScheduledTime field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MaintenanceStatus) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\ntype MarkdownOptions struct {\n\t// Mode identifies the rendering mode. Possible values are:\n\t//   markdown - render a document as plain Render, 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 Render method.\n\n```go\nfunc (m *MarkdownOptions) GetContext() string\n```\nGetContext returns the Context field.\n\n```go\nfunc (m *MarkdownOptions) GetMode() string\n```\nGetMode returns the Mode field.\n\n```go\ntype MarkdownService service\n```\nMarkdownService provides access to markdown-related functions in the GitHub API.\n\n```go\nfunc (s *MarkdownService) Render(ctx context.Context, text string, opts *MarkdownOptions) (string, *Response, error)\n```\nRender renders an arbitrary Render document.\n\nGitHub API docs: [https://docs.github.com/rest/markdown/markdown?apiVersion=2022-11-28#render-a-markdown-document](https://docs.github.com/rest/markdown/markdown?apiVersion=2022-11-28#render-a-markdown-document)\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#marketplace\\_purchase](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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/rest/apps?apiVersion=2022-11-28#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/rest/apps/marketplace?apiVersion=2022-11-28](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28)\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/rest/apps/marketplace?apiVersion=2022-11-28#get-a-subscription-plan-for-an-account](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#get-a-subscription-plan-for-an-account)\n\nGitHub API docs: [https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#get-a-subscription-plan-for-an-account-stubbed](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#get-a-subscription-plan-for-an-account-stubbed)\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/rest/apps/marketplace?apiVersion=2022-11-28#list-subscriptions-for-the-authenticated-user](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-subscriptions-for-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-subscriptions-for-the-authenticated-user-stubbed](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-subscriptions-for-the-authenticated-user-stubbed)\n\n```go\nfunc (s *MarketplaceService) ListMarketplacePurchasesForUserIter(ctx context.Context, opts *ListOptions) iter.Seq2[*MarketplacePurchase, error]\n```\nListMarketplacePurchasesForUserIter returns an iterator that paginates through all results of ListMarketplacePurchasesForUser.\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/rest/apps/marketplace?apiVersion=2022-11-28#list-accounts-for-a-plan](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-accounts-for-a-plan)\n\nGitHub API docs: [https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-accounts-for-a-plan-stubbed](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-accounts-for-a-plan-stubbed)\n\n```go\nfunc (s *MarketplaceService) ListPlanAccountsForPlanIter(ctx context.Context, planID int64, opts *ListOptions) iter.Seq2[*MarketplacePlanAccount, error]\n```\nListPlanAccountsForPlanIter returns an iterator that paginates through all results of ListPlanAccountsForPlan.\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/rest/apps/marketplace?apiVersion=2022-11-28#list-plans](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-plans)\n\nGitHub API docs: [https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-plans-stubbed](https://docs.github.com/rest/apps/marketplace?apiVersion=2022-11-28#list-plans-stubbed)\n\n```go\nfunc (s *MarketplaceService) ListPlansIter(ctx context.Context, opts *ListOptions) iter.Seq2[*MarketplacePlan, error]\n```\nListPlansIter returns an iterator that paginates through all results of ListPlans.\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) GetIndices() []int\n```\nGetIndices returns the Indices slice if it's non-nil, nil otherwise.\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 MaxFilePathLengthBranchRule struct {\n\tBranchRuleMetadata\n\tParameters MaxFilePathLengthRuleParameters `json:\"parameters\"`\n}\n```\nMaxFilePathLengthBranchRule represents a max file path length branch rule.\n\n```go\nfunc (m *MaxFilePathLengthBranchRule) GetParameters() MaxFilePathLengthRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype MaxFilePathLengthRuleParameters struct {\n\tMaxFilePathLength int `json:\"max_file_path_length\"`\n}\n```\nMaxFilePathLengthRuleParameters represents the max file path length rule parameters.\n\n```go\nfunc (m *MaxFilePathLengthRuleParameters) GetMaxFilePathLength() int\n```\nGetMaxFilePathLength returns the MaxFilePathLength field.\n\n```go\ntype MaxFileSizeBranchRule struct {\n\tBranchRuleMetadata\n\tParameters MaxFileSizeRuleParameters `json:\"parameters\"`\n}\n```\nMaxFileSizeBranchRule represents a max file size branch rule.\n\n```go\nfunc (m *MaxFileSizeBranchRule) GetParameters() MaxFileSizeRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype MaxFileSizeRuleParameters struct {\n\tMaxFileSize int64 `json:\"max_file_size\"`\n}\n```\nMaxFileSizeRuleParameters represents the max file size rule parameters.\n\n```go\nfunc (m *MaxFileSizeRuleParameters) GetMaxFileSize() int64\n```\nGetMaxFileSize returns the MaxFileSize field.\n\n```go\ntype MemberChanges struct {\n\tPermission *MemberChangesPermission `json:\"permission,omitempty\"`\n\tRoleName   *MemberChangesRoleName   `json:\"role_name,omitempty\"`\n}\n```\nMemberChanges represents changes to a repository collaborator's role or permission.\n\n```go\nfunc (m *MemberChanges) GetPermission() *MemberChangesPermission\n```\nGetPermission returns the Permission field.\n\n```go\nfunc (m *MemberChanges) GetRoleName() *MemberChangesRoleName\n```\nGetRoleName returns the RoleName field.\n\n```go\ntype MemberChangesPermission struct {\n\tFrom *string `json:\"from,omitempty\"`\n\tTo   *string `json:\"to,omitempty\"`\n}\n```\nMemberChangesPermission represents changes to a repository collaborator's permissions.\n\n```go\nfunc (m *MemberChangesPermission) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MemberChangesPermission) GetTo() string\n```\nGetTo returns the To field if it's non-nil, zero value otherwise.\n\n```go\ntype MemberChangesRoleName struct {\n\tFrom *string `json:\"from,omitempty\"`\n\tTo   *string `json:\"to,omitempty\"`\n}\n```\nMemberChangesRoleName represents changes to a repository collaborator's role.\n\n```go\nfunc (m *MemberChangesRoleName) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MemberChangesRoleName) GetTo() string\n```\nGetTo returns the To 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 values are: \"added\", \"edited\", \"removed\".\n\tAction  *string        `json:\"action,omitempty\"`\n\tMember  *User          `json:\"member,omitempty\"`\n\tChanges *MemberChanges `json:\"changes,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\tOrg *Organization `json:\"organization,omitempty\"`\n}\n```\nMemberEvent is triggered when a user's membership as a collaborator to a repository changes. The Webhook event name is \"member\".\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#member](https://docs.github.com/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) GetChanges() *MemberChanges\n```\nGetChanges returns the Changes field.\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) GetOrg() *Organization\n```\nGetOrg returns the Org 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/developers/webhooks-and-events/webhook-events-and-payloads#membership](https://docs.github.com/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 into which the merge group will be merged.\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. Possible values are: \"checks_requested\", \"destroyed\".\n\tAction *string `json:\"action,omitempty\"`\n\t// Reason is populated when the action is \"destroyed\". Possible values: \"merged\", \"invalidated\", \"dequeued\".\n\tReason *string `json:\"reason,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/developers/webhooks-and-events/webhook-events-and-payloads#merge\\_group](https://docs.github.com/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) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\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 MergeGroupingStrategy string\n```\nMergeGroupingStrategy models a GitHub merge grouping strategy.\n\n```go\nconst (\n\tMergeGroupingStrategyAllGreen  MergeGroupingStrategy = \"ALLGREEN\"\n\tMergeGroupingStrategyHeadGreen MergeGroupingStrategy = \"HEADGREEN\"\n)\n```\nThis is the set of GitHub merge grouping strategies.\n\n```go\ntype MergeQueueBranchRule struct {\n\tBranchRuleMetadata\n\tParameters MergeQueueRuleParameters `json:\"parameters\"`\n}\n```\nMergeQueueBranchRule represents a merge queue branch rule.\n\n```go\nfunc (m *MergeQueueBranchRule) GetParameters() MergeQueueRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype MergeQueueMergeMethod string\n```\nMergeQueueMergeMethod is used in MergeQueueRuleParameters, where the GitHub API expects uppercase merge method values: \"MERGE\", \"REBASE\", \"SQUASH\".\n\nNOTE: This type exists alongside PullRequestMergeMethod solely due to API casing inconsistencies. It enforces the correct usage by API context.\n\nTODO: Unify with PullRequestMergeMethod once the GitHub API uses consistent casing.\n\n```go\nconst (\n\tMergeQueueMergeMethodMerge  MergeQueueMergeMethod = \"MERGE\"\n\tMergeQueueMergeMethodRebase MergeQueueMergeMethod = \"REBASE\"\n\tMergeQueueMergeMethodSquash MergeQueueMergeMethod = \"SQUASH\"\n)\n```\n\n```go\ntype MergeQueueRuleParameters struct {\n\tCheckResponseTimeoutMinutes  int                   `json:\"check_response_timeout_minutes\"`\n\tGroupingStrategy             MergeGroupingStrategy `json:\"grouping_strategy\"`\n\tMaxEntriesToBuild            int                   `json:\"max_entries_to_build\"`\n\tMaxEntriesToMerge            int                   `json:\"max_entries_to_merge\"`\n\tMergeMethod                  MergeQueueMergeMethod `json:\"merge_method\"`\n\tMinEntriesToMerge            int                   `json:\"min_entries_to_merge\"`\n\tMinEntriesToMergeWaitMinutes int                   `json:\"min_entries_to_merge_wait_minutes\"`\n}\n```\nMergeQueueRuleParameters represents the merge\\_queue rule parameters.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetCheckResponseTimeoutMinutes() int\n```\nGetCheckResponseTimeoutMinutes returns the CheckResponseTimeoutMinutes field.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetGroupingStrategy() MergeGroupingStrategy\n```\nGetGroupingStrategy returns the GroupingStrategy field.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetMaxEntriesToBuild() int\n```\nGetMaxEntriesToBuild returns the MaxEntriesToBuild field.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetMaxEntriesToMerge() int\n```\nGetMaxEntriesToMerge returns the MaxEntriesToMerge field.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetMergeMethod() MergeQueueMergeMethod\n```\nGetMergeMethod returns the MergeMethod field.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetMinEntriesToMerge() int\n```\nGetMinEntriesToMerge returns the MinEntriesToMerge field.\n\n```go\nfunc (m *MergeQueueRuleParameters) GetMinEntriesToMergeWaitMinutes() int\n```\nGetMinEntriesToMergeWaitMinutes returns the MinEntriesToMergeWaitMinutes 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 MessageSigner interface {\n\tSign(w io.Writer, r io.Reader) error\n}\n```\nMessageSigner is used by GitService.CreateCommit to sign a commit.\n\nTo create a MessageSigner that signs a commit with a [golang.org/x/crypto/openpgp.Entity](/golang.org/x/crypto/openpgp#Entity), or [github.com/ProtonMail/go-crypto/openpgp.Entity](/github.com/ProtonMail/go-crypto/openpgp#Entity), use:\n\n\tcommit.Signer = github.MessageSignerFunc(func(w io.Writer, r io.Reader) error {\n\t\treturn openpgp.ArmoredDetachSign(w, openpgpEntity, r, nil)\n\t})\n\n```go\ntype MessageSignerFunc func(w io.Writer, r io.Reader) error\n```\nMessageSignerFunc is a single function implementation of MessageSigner.\n\n```go\nfunc (f MessageSignerFunc) Sign(w io.Writer, r io.Reader) error\n```\nSign implements the MessageSigner interface for MessageSignerFunc.\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/developers/webhooks-and-events/webhook-events-and-payloads#meta](https://docs.github.com/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 MetaService service\n```\nMetaService provides access to functions in the GitHub API that GitHub categorizes as \"meta\".\n\n```go\nfunc (s *MetaService) Get(ctx context.Context) (*APIMeta, *Response, error)\n```\nGet 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/rest/meta/meta?apiVersion=2022-11-28#get-github-meta-information](https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-github-meta-information)\n\n```go\nfunc (s *MetaService) ListAPIVersions(ctx context.Context) ([]string, *Response, error)\n```\nListAPIVersions returns the API versions supported by the GitHub REST API, as dates in the YYYY-MM-DD format.\n\nGitHub API docs: [https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-all-api-versions](https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-all-api-versions)\n\n```go\nfunc (s *MetaService) 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\nGitHub API docs: [https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-octocat](https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-octocat)\n\n```go\nfunc (s *MetaService) Zen(ctx context.Context) (string, *Response, error)\n```\nZen returns a random line from The Zen of GitHub.\n\nSee also: [https://warpspire.com/posts/taste/](https://warpspire.com/posts/taste/)\n\nGitHub API docs: [https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-the-zen-of-github](https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-the-zen-of-github)\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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil 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\t// ExcludeReleases indicates whether releases should be excluded from\n\t// the migration (to reduce migration archive file size).\n\tExcludeReleases bool\n\n\t// Exclude is a slice of related items to exclude from the response in order\n\t// to improve performance of the request. Supported values are: \"repositories\"\n\tExclude []string\n}\n```\nMigrationOptions specifies the optional parameters to Migration methods.\n\n```go\nfunc (m *MigrationOptions) GetExclude() []string\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (m *MigrationOptions) GetExcludeAttachments() bool\n```\nGetExcludeAttachments returns the ExcludeAttachments field.\n\n```go\nfunc (m *MigrationOptions) GetExcludeReleases() bool\n```\nGetExcludeReleases returns the ExcludeReleases field.\n\n```go\nfunc (m *MigrationOptions) GetLockRepositories() bool\n```\nGetLockRepositories returns the LockRepositories field.\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/rest/migrations?apiVersion=2022-11-28](https://docs.github.com/rest/migrations?apiVersion=2022-11-28)\n\n```go\nfunc (s *MigrationService) CancelImport(ctx context.Context, owner, repo string) (*Response, error)\n```\nCancelImport stops an import for a repository.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#cancel-an-import](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#get-commit-authors](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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/rest/migrations/orgs?apiVersion=2022-11-28#delete-an-organization-migration-archive](https://docs.github.com/rest/migrations/orgs?apiVersion=2022-11-28#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/rest/migrations/users?apiVersion=2022-11-28#delete-a-user-migration-archive](https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#get-an-import-status](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#get-large-files](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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/rest/migrations/orgs?apiVersion=2022-11-28#list-organization-migrations](https://docs.github.com/rest/migrations/orgs?apiVersion=2022-11-28#list-organization-migrations)\n\n```go\nfunc (s *MigrationService) ListMigrationsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Migration, error]\n```\nListMigrationsIter returns an iterator that paginates through all results of ListMigrations.\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/rest/migrations/users?apiVersion=2022-11-28#list-user-migrations](https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#list-user-migrations)\n\n```go\nfunc (s *MigrationService) ListUserMigrationsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*UserMigration, error]\n```\nListUserMigrationsIter returns an iterator that paginates through all results of ListUserMigrations.\n\n```go\nfunc (s *MigrationService) MapCommitAuthor(ctx context.Context, owner, repo string, id int64, body *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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#map-a-commit-author](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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/rest/migrations/orgs?apiVersion=2022-11-28#download-an-organization-migration-archive](https://docs.github.com/rest/migrations/orgs?apiVersion=2022-11-28#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/rest/migrations/orgs?apiVersion=2022-11-28#get-an-organization-migration-status](https://docs.github.com/rest/migrations/orgs?apiVersion=2022-11-28#get-an-organization-migration-status)\n\n```go\nfunc (s *MigrationService) SetLFSPreference(ctx context.Context, owner, repo string, body *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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#update-git-lfs-preference](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#update-git-lfs-preference)\n\n```go\nfunc (s *MigrationService) StartImport(ctx context.Context, owner, repo string, body *Import) (*Import, *Response, error)\n```\nStartImport initiates a repository import.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#start-an-import](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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/rest/migrations/orgs?apiVersion=2022-11-28#start-an-organization-migration](https://docs.github.com/rest/migrations/orgs?apiVersion=2022-11-28#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/rest/migrations/users?apiVersion=2022-11-28#start-a-user-migration](https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#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/rest/migrations/orgs?apiVersion=2022-11-28#unlock-an-organization-repository](https://docs.github.com/rest/migrations/orgs?apiVersion=2022-11-28#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/rest/migrations/users?apiVersion=2022-11-28#unlock-a-user-repository](https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#unlock-a-user-repository)\n\n```go\nfunc (s *MigrationService) UpdateImport(ctx context.Context, owner, repo string, body *Import) (*Import, *Response, error)\n```\nUpdateImport initiates a repository import.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#update-an-import](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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/rest/migrations/users?apiVersion=2022-11-28#download-a-user-migration-archive](https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#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/rest/migrations/users?apiVersion=2022-11-28#get-a-user-migration-status](https://docs.github.com/rest/migrations/users?apiVersion=2022-11-28#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/developers/webhooks-and-events/webhook-events-and-payloads#milestone](https://docs.github.com/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\nfunc (m *MilestoneListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (m *MilestoneListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (m *MilestoneListOptions) GetState() string\n```\nGetState returns the State field.\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 MinimizedIssueComment struct {\n\tReason *string `json:\"reason,omitempty\"`\n}\n```\nMinimizedIssueComment represents the minimized details of a minimized issue comment.\n\n```go\nfunc (m *MinimizedIssueComment) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\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\tCategory        *string   `json:\"category,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\tHTMLURL         *string   `json:\"html_url,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) GetCategory() string\n```\nGetCategory returns the Category field if it's non-nil, zero value otherwise.\n\n```go\nfunc (m *MostRecentInstance) GetClassifications() []string\n```\nGetClassifications returns the Classifications slice if it's non-nil, nil 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) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL 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 NetworkConfiguration struct {\n\tID                 *string         `json:\"id,omitempty\"`\n\tName               *string         `json:\"name,omitempty\"`\n\tComputeService     *ComputeService `json:\"compute_service,omitempty\"`\n\tNetworkSettingsIDs []string        `json:\"network_settings_ids,omitempty\"`\n\tCreatedOn          *Timestamp      `json:\"created_on\"`\n}\n```\nNetworkConfiguration represents a hosted compute network configurations. This type is identical for enterprise and organization endpoints.\n\n```go\nfunc (n *NetworkConfiguration) GetComputeService() *ComputeService\n```\nGetComputeService returns the ComputeService field.\n\n```go\nfunc (n *NetworkConfiguration) GetCreatedOn() Timestamp\n```\nGetCreatedOn returns the CreatedOn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkConfiguration) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkConfiguration) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkConfiguration) GetNetworkSettingsIDs() []string\n```\nGetNetworkSettingsIDs returns the NetworkSettingsIDs slice if it's non-nil, nil otherwise.\n\n```go\ntype NetworkConfigurationRequest struct {\n\tName               *string         `json:\"name,omitempty\"`\n\tComputeService     *ComputeService `json:\"compute_service,omitempty\"`\n\tNetworkSettingsIDs []string        `json:\"network_settings_ids,omitempty\"`\n}\n```\nNetworkConfigurationRequest represents a request to create or update a network configuration for an organization.\n\n```go\nfunc (n *NetworkConfigurationRequest) GetComputeService() *ComputeService\n```\nGetComputeService returns the ComputeService field.\n\n```go\nfunc (n *NetworkConfigurationRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkConfigurationRequest) GetNetworkSettingsIDs() []string\n```\nGetNetworkSettingsIDs returns the NetworkSettingsIDs slice if it's non-nil, nil otherwise.\n\n```go\ntype NetworkConfigurations struct {\n\tTotalCount            *int64                  `json:\"total_count,omitempty\"`\n\tNetworkConfigurations []*NetworkConfiguration `json:\"network_configurations,omitempty\"`\n}\n```\nNetworkConfigurations represents a hosted compute network configuration. This type is identical for enterprise and organization endpoints.\n\n```go\nfunc (n *NetworkConfigurations) GetNetworkConfigurations() []*NetworkConfiguration\n```\nGetNetworkConfigurations returns the NetworkConfigurations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (n *NetworkConfigurations) GetTotalCount() int64\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype NetworkSettingsResource struct {\n\tID                     *string `json:\"id,omitempty\"`\n\tNetworkConfigurationID *string `json:\"network_configuration_id,omitempty\"`\n\tName                   *string `json:\"name,omitempty\"`\n\tSubnetID               *string `json:\"subnet_id,omitempty\"`\n\tRegion                 *string `json:\"region,omitempty\"`\n}\n```\nNetworkSettingsResource represents a hosted compute network settings resource. This type is identical for enterprise and organization endpoints.\n\n```go\nfunc (n *NetworkSettingsResource) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkSettingsResource) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkSettingsResource) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkSettingsResource) GetRegion() string\n```\nGetRegion returns the Region field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NetworkSettingsResource) GetSubnetID() string\n```\nGetSubnetID returns the SubnetID field if it's non-nil, zero value otherwise.\n\n```go\ntype NodeDetails struct {\n\tHostname     *string  `json:\"hostname,omitempty\"`\n\tUUID         *string  `json:\"uuid,omitempty\"`\n\tClusterRoles []string `json:\"cluster_roles,omitempty\"`\n}\n```\nNodeDetails is a struct to hold the response from the NodeMetadata API.\n\n```go\nfunc (n *NodeDetails) GetClusterRoles() []string\n```\nGetClusterRoles returns the ClusterRoles slice if it's non-nil, nil otherwise.\n\n```go\nfunc (n *NodeDetails) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NodeDetails) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\ntype NodeMetadataStatus struct {\n\tTopology *string        `json:\"topology,omitempty\"`\n\tNodes    []*NodeDetails `json:\"nodes\"`\n}\n```\nNodeMetadataStatus is a struct to hold the response from the NodeMetadata API.\n\n```go\nfunc (n *NodeMetadataStatus) GetNodes() []*NodeDetails\n```\nGetNodes returns the Nodes slice if it's non-nil, nil otherwise.\n\n```go\nfunc (n *NodeMetadataStatus) GetTopology() string\n```\nGetTopology returns the Topology field if it's non-nil, zero value otherwise.\n\n```go\ntype NodeQueryOptions struct {\n\t// UUID filters issues based on the node UUID.\n\tUUID *string `url:\"uuid,omitempty\"`\n\n\t// ClusterRoles filters the cluster roles from the cluster configuration file.\n\tClusterRoles *string `url:\"cluster_roles,omitempty\"`\n}\n```\nNodeQueryOptions specifies the optional parameters to the EnterpriseService Node management APIs.\n\n```go\nfunc (n *NodeQueryOptions) GetClusterRoles() string\n```\nGetClusterRoles returns the ClusterRoles field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NodeQueryOptions) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\ntype NodeReleaseVersion struct {\n\tHostname *string         `json:\"hostname,omitempty\"`\n\tVersion  *ReleaseVersion `json:\"version\"`\n}\n```\nNodeReleaseVersion represents a response from the GetNodeReleaseVersions method.\n\n```go\nfunc (n *NodeReleaseVersion) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (n *NodeReleaseVersion) GetVersion() *ReleaseVersion\n```\nGetVersion returns the Version field.\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/rest/activity/notifications?apiVersion=2022-11-28#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\nfunc (n *NotificationListOptions) GetAll() bool\n```\nGetAll returns the All field.\n\n```go\nfunc (n *NotificationListOptions) GetBefore() time.Time\n```\nGetBefore returns the Before field.\n\n```go\nfunc (n *NotificationListOptions) GetParticipating() bool\n```\nGetParticipating returns the Participating field.\n\n```go\nfunc (n *NotificationListOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\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 OIDCCustomPropertyClaim struct {\n\tCustomPropertyName string `json:\"custom_property_name\"`\n}\n```\nOIDCCustomPropertyClaim represents an OIDC custom property claim for GitHub Actions.\n\n```go\nfunc (o *OIDCCustomPropertyClaim) GetCustomPropertyName() string\n```\nGetCustomPropertyName returns the CustomPropertyName field.\n\n```go\ntype OIDCCustomPropertyClaimResponse struct {\n\tOIDCCustomPropertyClaim\n\tInclusionSource InclusionSource `json:\"inclusion_source\"`\n}\n```\nOIDCCustomPropertyClaimResponse represents the OIDC custom property claim along with the inclusion source (enterprise or organization) for GitHub Actions.\n\n```go\nfunc (o *OIDCCustomPropertyClaimResponse) GetInclusionSource() InclusionSource\n```\nGetInclusionSource returns the InclusionSource field.\n\n```go\ntype OIDCSubjectClaimCustomTemplate struct {\n\tUseDefault          *bool    `json:\"use_default,omitempty\"`\n\tIncludeClaimKeys    []string `json:\"include_claim_keys,omitempty\"`\n\tUseImmutableSubject *bool    `json:\"use_immutable_subject,omitempty\"`\n\tSubClaimPrefix      *string  `json:\"sub_claim_prefix,omitempty\"`\n}\n```\nOIDCSubjectClaimCustomTemplate represents an OIDC subject claim customization template.\n\n```go\nfunc (o *OIDCSubjectClaimCustomTemplate) GetIncludeClaimKeys() []string\n```\nGetIncludeClaimKeys returns the IncludeClaimKeys slice if it's non-nil, nil otherwise.\n\n```go\nfunc (o *OIDCSubjectClaimCustomTemplate) GetSubClaimPrefix() string\n```\nGetSubClaimPrefix returns the SubClaimPrefix field if it's non-nil, zero value otherwise.\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\nfunc (o *OIDCSubjectClaimCustomTemplate) GetUseImmutableSubject() bool\n```\nGetUseImmutableSubject returns the UseImmutableSubject 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/developers/webhooks-and-events/webhook-events-and-payloads#org\\_block](https://docs.github.com/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 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\tArchivedAt                  *Timestamp `json:\"archived_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// DeployKeysEnabledForRepositories toggles whether deploy keys may be added and used for repositories in the organization.\n\tDeployKeysEnabledForRepositories *bool `json:\"deploy_keys_enabled_for_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\t// SecretScanningValidityChecksEnabled toggles whether secret scanning validity check is enabled.\n\tSecretScanningValidityChecksEnabled *bool `json:\"secret_scanning_validity_checks_enabled,omitempty\"`\n\t// SecretScanningPushProtectionCustomLinkEnabled toggles whether a custom link is shown to contributors blocked by secret scanning push protection.\n\tSecretScanningPushProtectionCustomLinkEnabled *bool `json:\"secret_scanning_push_protection_custom_link_enabled,omitempty\"`\n\t// SecretScanningPushProtectionCustomLink is the URL displayed to contributors blocked by secret scanning push protection.\n\tSecretScanningPushProtectionCustomLink *string `json:\"secret_scanning_push_protection_custom_link,omitempty\"`\n\t// MembersCanDeleteRepositories toggles whether members with admin permissions can delete a repository.\n\tMembersCanDeleteRepositories *bool `json:\"members_can_delete_repositories,omitempty\"`\n\t// MembersCanChangeRepoVisibility toggles whether members with admin permissions can change the visibility for a repository.\n\tMembersCanChangeRepoVisibility *bool `json:\"members_can_change_repo_visibility,omitempty\"`\n\t// MembersCanInviteOutsideCollaborators toggles whether members with admin permissions can invite outside collaborators.\n\tMembersCanInviteOutsideCollaborators *bool `json:\"members_can_invite_outside_collaborators,omitempty\"`\n\t// MembersCanDeleteIssues toggles whether members with admin permissions can delete issues.\n\tMembersCanDeleteIssues *bool `json:\"members_can_delete_issues,omitempty\"`\n\t// DisplayCommenterFullNameSettingEnabled toggles whether members can see the comment author's profile name in private repositories.\n\tDisplayCommenterFullNameSettingEnabled *bool `json:\"display_commenter_full_name_setting_enabled,omitempty\"`\n\t// ReadersCanCreateDiscussions toggles whether users with read access can create and comment on discussions.\n\tReadersCanCreateDiscussions *bool `json:\"readers_can_create_discussions,omitempty\"`\n\t// MembersCanCreateTeams toggles whether members of an organization can create new teams.\n\tMembersCanCreateTeams *bool `json:\"members_can_create_teams,omitempty\"`\n\t// MembersCanViewDependencyInsights toggles whether members may view dependency insights.\n\tMembersCanViewDependencyInsights *bool `json:\"members_can_view_dependency_insights,omitempty\"`\n\t// DefaultRepositoryBranch is the default branch for new repositories in the organization.\n\tDefaultRepositoryBranch *string `json:\"default_repository_branch,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) GetArchivedAt() Timestamp\n```\nGetArchivedAt returns the ArchivedAt 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) GetDefaultRepositoryBranch() string\n```\nGetDefaultRepositoryBranch returns the DefaultRepositoryBranch 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) GetDeployKeysEnabledForRepositories() bool\n```\nGetDeployKeysEnabledForRepositories returns the DeployKeysEnabledForRepositories 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) GetDisplayCommenterFullNameSettingEnabled() bool\n```\nGetDisplayCommenterFullNameSettingEnabled returns the DisplayCommenterFullNameSettingEnabled 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) GetMembersCanChangeRepoVisibility() bool\n```\nGetMembersCanChangeRepoVisibility returns the MembersCanChangeRepoVisibility 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) GetMembersCanCreateTeams() bool\n```\nGetMembersCanCreateTeams returns the MembersCanCreateTeams field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanDeleteIssues() bool\n```\nGetMembersCanDeleteIssues returns the MembersCanDeleteIssues field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanDeleteRepositories() bool\n```\nGetMembersCanDeleteRepositories returns the MembersCanDeleteRepositories 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) GetMembersCanInviteOutsideCollaborators() bool\n```\nGetMembersCanInviteOutsideCollaborators returns the MembersCanInviteOutsideCollaborators field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetMembersCanViewDependencyInsights() bool\n```\nGetMembersCanViewDependencyInsights returns the MembersCanViewDependencyInsights 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) GetReadersCanCreateDiscussions() bool\n```\nGetReadersCanCreateDiscussions returns the ReadersCanCreateDiscussions 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) GetSecretScanningPushProtectionCustomLink() string\n```\nGetSecretScanningPushProtectionCustomLink returns the SecretScanningPushProtectionCustomLink field if it's non-nil, zero value otherwise.\n\n```go\nfunc (o *Organization) GetSecretScanningPushProtectionCustomLinkEnabled() bool\n```\nGetSecretScanningPushProtectionCustomLinkEnabled returns the SecretScanningPushProtectionCustomLinkEnabled 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) GetSecretScanningValidityChecksEnabled() bool\n```\nGetSecretScanningValidityChecksEnabled returns the SecretScanningValidityChecksEnabled 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 OrganizationCustomPropertyValues struct {\n\t// List of custom property names and associated values to apply to the organization.\n\tProperties []*CustomPropertyValue `json:\"properties\"`\n}\n```\nOrganizationCustomPropertyValues represents the custom property values for an organization.\n\n```go\nfunc (o *OrganizationCustomPropertyValues) GetProperties() []*CustomPropertyValue\n```\nGetProperties returns the Properties slice if it's non-nil, nil otherwise.\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) GetCustomRepoRoles() []*CustomRepoRoles\n```\nGetCustomRepoRoles returns the CustomRepoRoles slice if it's non-nil, nil otherwise.\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 OrganizationCustomRoles struct {\n\tTotalCount      *int             `json:\"total_count,omitempty\"`\n\tCustomRepoRoles []*CustomOrgRole `json:\"roles,omitempty\"`\n}\n```\nOrganizationCustomRoles represents custom organization roles available in specified organization.\n\n```go\nfunc (o *OrganizationCustomRoles) GetCustomRepoRoles() []*CustomOrgRole\n```\nGetCustomRepoRoles returns the CustomRepoRoles slice if it's non-nil, nil otherwise.\n\n```go\nfunc (o *OrganizationCustomRoles) 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/developers/webhooks-and-events/webhook-events-and-payloads#organization](https://docs.github.com/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 OrganizationFineGrainedPermission struct {\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description\"`\n}\n```\nOrganizationFineGrainedPermission represents a fine-grained permission that protects organization resources.\n\n```go\nfunc (o *OrganizationFineGrainedPermission) GetDescription() string\n```\nGetDescription returns the Description field.\n\n```go\nfunc (o *OrganizationFineGrainedPermission) GetName() string\n```\nGetName returns the Name 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) GetInstallations() []*Installation\n```\nGetInstallations returns the Installations slice if it's non-nil, nil otherwise.\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// An organization ID. Only return organizations with an ID greater than this ID.\n\tSince int64 `url:\"since,omitempty\"`\n\n\t// The number of results per page (max 100).\n\tPerPage int `url:\"per_page,omitempty\"`\n}\n```\nOrganizationsListOptions specifies the optional parameters to the OrganizationsService.ListAll method.\n\n```go\nfunc (o *OrganizationsListOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\nfunc (o *OrganizationsListOptions) GetSince() int64\n```\nGetSince returns the Since field.\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/rest/orgs?apiVersion=2022-11-28](https://docs.github.com/rest/orgs?apiVersion=2022-11-28)\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\nDeprecated: Please use \\`client.Organizations.AssignOrgRoleToTeam\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/security-managers?apiVersion=2022-11-28#add-a-security-manager-team](https://docs.github.com/rest/orgs/security-managers?apiVersion=2022-11-28#add-a-security-manager-team)\n\n```go\nfunc (s *OrganizationsService) AssignOrgRoleToTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error)\n```\nAssignOrgRoleToTeam assigns an existing organization role to a team in this organization. In order to assign organization roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#assign-an-organization-role-to-a-team](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#assign-an-organization-role-to-a-team)\n\n```go\nfunc (s *OrganizationsService) AssignOrgRoleToUser(ctx context.Context, org, username string, roleID int64) (*Response, error)\n```\nAssignOrgRoleToUser assigns an existing organization role to a user in this organization. In order to assign organization roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#assign-an-organization-role-to-a-user](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#assign-an-organization-role-to-a-user)\n\n```go\nfunc (s *OrganizationsService) AttachCodeSecurityConfigurationToRepositories(ctx context.Context, org string, configurationID int64, scope string, repoIDs []int64) (*Response, error)\n```\nAttachCodeSecurityConfigurationToRepositories attaches code security configurations to repositories for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#attach-a-configuration-to-repositories](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#attach-a-configuration-to-repositories)\n\n```go\nfunc (s *OrganizationsService) BlockUser(ctx context.Context, org, user string) (*Response, error)\n```\nBlockUser blocks specified user from an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#block-a-user-from-an-organization](https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#block-a-user-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) CancelInvite(ctx context.Context, org string, invitationID int64) (*Response, error)\n```\nCancelInvite cancels an organization invitation.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#cancel-an-organization-invitation](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#cancel-an-organization-invitation)\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/rest/orgs/members?apiVersion=2022-11-28#remove-public-organization-membership-for-the-authenticated-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#remove-public-organization-membership-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) ConvertMemberToOutsideCollaborator(ctx context.Context, org, 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/rest/orgs/outside-collaborators?apiVersion=2022-11-28#convert-an-organization-member-to-outside-collaborator](https://docs.github.com/rest/orgs/outside-collaborators?apiVersion=2022-11-28#convert-an-organization-member-to-outside-collaborator)\n\n```go\nfunc (s *OrganizationsService) CreateArtifactDeploymentRecord(ctx context.Context, org string, body CreateArtifactDeploymentRequest) (*ArtifactDeploymentResponse, *Response, error)\n```\nCreateArtifactDeploymentRecord creates or updates deployment records for an artifact associated with an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#create-an-artifact-deployment-record](https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#create-an-artifact-deployment-record)\n\n```go\nfunc (s *OrganizationsService) CreateArtifactStorageRecord(ctx context.Context, org string, body CreateArtifactStorageRequest) (*ArtifactStorageResponse, *Response, error)\n```\nCreateArtifactStorageRecord creates metadata storage records for artifacts.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#create-artifact-metadata-storage-record](https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#create-artifact-metadata-storage-record)\n\n```go\nfunc (s *OrganizationsService) CreateCodeSecurityConfiguration(ctx context.Context, org string, body CodeSecurityConfiguration) (*CodeSecurityConfiguration, *Response, error)\n```\nCreateCodeSecurityConfiguration creates a code security configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#create-a-code-security-configuration](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#create-a-code-security-configuration)\n\n```go\nfunc (s *OrganizationsService) CreateCustomOrgRole(ctx context.Context, org string, body CreateCustomOrgRoleRequest) (*CustomOrgRole, *Response, error)\n```\nCreateCustomOrgRole creates a custom role in this organization. In order to create custom roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#create-a-custom-organization-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#create-a-custom-organization-role)\n\n```go\nfunc (s *OrganizationsService) CreateCustomRepoRole(ctx context.Context, org string, body CreateCustomRepoRoleRequest) (*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/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#create-a-custom-repository-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#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/rest/orgs/webhooks?apiVersion=2022-11-28#create-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#create-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) CreateIssueType(ctx context.Context, org string, body *CreateOrUpdateIssueTypesOptions) (*IssueType, *Response, error)\n```\nCreateIssueType creates a new issue type for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#create-issue-type-for-an-organization](https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#create-issue-type-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) CreateNetworkConfiguration(ctx context.Context, org string, body NetworkConfigurationRequest) (*NetworkConfiguration, *Response, error)\n```\nCreateNetworkConfiguration creates a hosted compute network configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#create-a-hosted-compute-network-configuration-for-an-organization](https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#create-a-hosted-compute-network-configuration-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) CreateOrUpdateCustomProperties(ctx context.Context, org string, properties []*CustomProperty) ([]*CustomProperty, *Response, error)\n```\nCreateOrUpdateCustomProperties creates new or updates existing custom properties that are defined for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#create-or-update-custom-properties-for-an-organization](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#create-or-update-custom-properties-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) CreateOrUpdateCustomProperty(ctx context.Context, org, customPropertyName string, body *CustomProperty) (*CustomProperty, *Response, error)\n```\nCreateOrUpdateCustomProperty creates a new or updates an existing custom property that is defined for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#create-or-update-a-custom-property-for-an-organization](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#create-or-update-a-custom-property-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) CreateOrUpdateOrganizationCustomPropertyValues(ctx context.Context, org string, body OrganizationCustomPropertyValues) (*Response, error)\n```\nCreateOrUpdateOrganizationCustomPropertyValues creates or updates custom property values for an organization. To remove a custom property value from an organization, set the property value to null.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-custom-property-values-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs?apiVersion=2022-11-28#create-or-update-custom-property-values-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) CreateOrUpdateRepoCustomPropertyValues(ctx context.Context, org string, repoNames []string, properties []*CustomPropertyValue) (*Response, error)\n```\nCreateOrUpdateRepoCustomPropertyValues creates new or updates existing custom property values across multiple repositories for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#create-or-update-custom-property-values-for-organization-repositories](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#create-or-update-custom-property-values-for-organization-repositories)\n\n```go\nfunc (s *OrganizationsService) CreateOrgInvitation(ctx context.Context, org string, body CreateOrgInvitationRequest) (*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/rest/orgs/members?apiVersion=2022-11-28#create-an-organization-invitation](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#create-an-organization-invitation)\n\n```go\nfunc (s *OrganizationsService) CreateRepositoryRuleset(ctx context.Context, org string, body RepositoryRuleset) (*RepositoryRuleset, *Response, error)\n```\nCreateRepositoryRuleset creates a repository ruleset for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-ruleset](https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-ruleset)\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/rest/orgs/orgs?apiVersion=2022-11-28#delete-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#delete-an-organization)\n\n```go\nfunc (s *OrganizationsService) DeleteCodeSecurityConfiguration(ctx context.Context, org string, configurationID int64) (*Response, error)\n```\nDeleteCodeSecurityConfiguration deletes a code security configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#delete-a-code-security-configuration](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#delete-a-code-security-configuration)\n\n```go\nfunc (s *OrganizationsService) DeleteCustomOrgRole(ctx context.Context, org string, roleID int64) (*Response, error)\n```\nDeleteCustomOrgRole deletes an existing custom role in this organization. In order to delete custom roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#delete-a-custom-organization-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#delete-a-custom-organization-role)\n\n```go\nfunc (s *OrganizationsService) DeleteCustomRepoRole(ctx context.Context, org string, roleID int64) (*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/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#delete-a-custom-repository-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#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/rest/orgs/webhooks?apiVersion=2022-11-28#delete-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#delete-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) DeleteIssueType(ctx context.Context, org string, issueTypeID int64) (*Response, error)\n```\nDeleteIssueType deletes an issue type for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#delete-issue-type-for-an-organization](https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#delete-issue-type-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) DeleteNetworkConfigurations(ctx context.Context, org, networkID string) (*Response, error)\n```\nDeleteNetworkConfigurations deletes a hosted compute network configuration from an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#delete-a-hosted-compute-network-configuration-from-an-organization](https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#delete-a-hosted-compute-network-configuration-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) DeletePackage(ctx context.Context, org, packageType, packageName string) (*Response, error)\n```\nDeletePackage deletes a package from an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) DeleteRepositoryRuleset(ctx context.Context, org string, rulesetID int64) (*Response, error)\n```\nDeleteRepositoryRuleset deletes a repository ruleset from the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#delete-an-organization-repository-ruleset](https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#delete-an-organization-repository-ruleset)\n\n```go\nfunc (s *OrganizationsService) DetachCodeSecurityConfigurationsFromRepositories(ctx context.Context, org string, repoIDs []int64) (*Response, error)\n```\nDetachCodeSecurityConfigurationsFromRepositories detaches code security configuration from an organization's repositories.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#detach-configurations-from-repositories](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#detach-configurations-from-repositories)\n\n```go\nfunc (s *OrganizationsService) DisableRepositoryForImmutableRelease(ctx context.Context, org string, repoID int64) (*Response, error)\n```\nDisableRepositoryForImmutableRelease removes a repository from the organization's selected list for immutable releases enforcement. It requires enforced\\_repositories to be set to \"selected\".\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#disable-a-selected-repository-for-immutable-releases-in-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#disable-a-selected-repository-for-immutable-releases-in-an-organization)\n\n```go\nfunc (s *OrganizationsService) Edit(ctx context.Context, name string, body *Organization) (*Organization, *Response, error)\n```\nEdit an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#update-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#update-an-organization)\n\n```go\nfunc (s *OrganizationsService) EditHook(ctx context.Context, org string, id int64, body *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#update-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#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/rest/orgs/members?apiVersion=2022-11-28#set-organization-membership-for-a-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#set-organization-membership-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#update-an-organization-membership-for-the-authenticated-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#update-an-organization-membership-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) EnableRepositoryForImmutableRelease(ctx context.Context, org string, repoID int64) (*Response, error)\n```\nEnableRepositoryForImmutableRelease enables a selected repository for immutable releases in an organization. It requires enforced\\_repositories to be set to \"selected\".\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#enable-a-selected-repository-for-immutable-releases-in-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#enable-a-selected-repository-for-immutable-releases-in-an-organization)\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/rest/orgs/orgs?apiVersion=2022-11-28#get-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#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\nDeprecated: please use \\`client.Actions.GetActionsAllowed\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-allowed-actions-and-reusable-workflows-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#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\nDeprecated: please use \\`client.Actions.GetActionsPermissions\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetAllCustomProperties(ctx context.Context, org string) ([]*CustomProperty, *Response, error)\n```\nGetAllCustomProperties gets all custom properties that are defined for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#get-all-custom-properties-for-an-organization](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#get-all-custom-properties-for-an-organization)\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/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#get-the-audit-log-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#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 \"GET /organizations/{organization\\_id}\".\n\n```go\nfunc (s *OrganizationsService) GetCodeSecurityConfiguration(ctx context.Context, org string, configurationID int64) (*CodeSecurityConfiguration, *Response, error)\n```\nGetCodeSecurityConfiguration gets a code security configuration available in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-a-code-security-configuration](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-a-code-security-configuration)\n\n```go\nfunc (s *OrganizationsService) GetCodeSecurityConfigurationForRepository(ctx context.Context, org, repo string) (*RepositoryCodeSecurityConfiguration, *Response, error)\n```\nGetCodeSecurityConfigurationForRepository gets code security configuration that manages a repository's code security settings.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-the-code-security-configuration-associated-with-a-repository](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-the-code-security-configuration-associated-with-a-repository)\n\n```go\nfunc (s *OrganizationsService) GetCustomProperty(ctx context.Context, org, name string) (*CustomProperty, *Response, error)\n```\nGetCustomProperty gets a custom property that is defined for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#get-a-custom-property-for-an-organization](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#get-a-custom-property-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetCustomRepoRole(ctx context.Context, org string, roleID int64) (*CustomRepoRoles, *Response, error)\n```\nGetCustomRepoRole gets a 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/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#get-a-custom-repository-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#get-a-custom-repository-role)\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/rest/orgs/webhooks?apiVersion=2022-11-28#get-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#get-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) GetHookConfiguration(ctx context.Context, org string, id int64) (*HookConfig, *Response, error)\n```\nGetHookConfiguration returns the configuration for the specified organization webhook.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#get-a-webhook-configuration-for-an-organization](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#get-a-webhook-configuration-for-an-organization)\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/rest/orgs/webhooks?apiVersion=2022-11-28#get-a-webhook-delivery-for-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#get-a-webhook-delivery-for-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) GetImmutableReleasesSettings(ctx context.Context, org string) (*ImmutableReleaseSettings, *Response, error)\n```\nGetImmutableReleasesSettings returns the immutable releases configuration that applies to repositories within the given organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#get-immutable-releases-settings-for-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#get-immutable-releases-settings-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetNetworkConfiguration(ctx context.Context, org, networkID string) (*NetworkConfiguration, *Response, error)\n```\nGetNetworkConfiguration gets a hosted compute network configuration configured in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-configuration-for-an-organization](https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-configuration-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetNetworkConfigurationResource(ctx context.Context, org, networkID string) (*NetworkSettingsResource, *Response, error)\n```\nGetNetworkConfigurationResource gets a hosted compute network settings resource configured for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-settings-resource-for-an-organization](https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#get-a-hosted-compute-network-settings-resource-for-an-organization)\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/rest/orgs/members?apiVersion=2022-11-28#get-an-organization-membership-for-the-authenticated-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#get-an-organization-membership-for-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#get-organization-membership-for-a-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#get-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) GetOrgRole(ctx context.Context, org string, roleID int64) (*CustomOrgRole, *Response, error)\n```\nGetOrgRole gets an organization role in this organization. In order to get organization roles in an organization, the authenticated user must be an organization owner, or have access via an organization role.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#get-an-organization-role](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#get-an-organization-role)\n\n```go\nfunc (s *OrganizationsService) GetOrganizationCustomPropertyValues(ctx context.Context, org string) ([]*CustomPropertyValue, *Response, error)\n```\nGetOrganizationCustomPropertyValues returns all custom property names and their values for an organization.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs?apiVersion=2022-11-28#get-all-custom-property-values-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs?apiVersion=2022-11-28#get-all-custom-property-values-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetPackage(ctx context.Context, org, packageType, packageName string) (*Package, *Response, error)\n```\nGetPackage gets a package by name from an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) GetRepositoryRuleset(ctx context.Context, org string, rulesetID int64) (*RepositoryRuleset, *Response, error)\n```\nGetRepositoryRuleset gets a repository ruleset for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#get-an-organization-repository-ruleset](https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#get-an-organization-repository-ruleset)\n\n```go\nfunc (s *OrganizationsService) IsBlocked(ctx context.Context, org, user string) (bool, *Response, error)\n```\nIsBlocked reports whether specified user is blocked from an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#check-if-a-user-is-blocked-by-an-organization](https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#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/rest/orgs/members?apiVersion=2022-11-28#check-organization-membership-for-a-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#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/rest/orgs/members?apiVersion=2022-11-28#check-public-organization-membership-for-a-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#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/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-a-user](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-the-authenticated-user](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-the-authenticated-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/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations)\n\n```go\nfunc (s *OrganizationsService) ListAllRepositoryRulesets(ctx context.Context, org string, opts *ListOptions) ([]*RepositoryRuleset, *Response, error)\n```\nListAllRepositoryRulesets gets all the repository rulesets for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#get-all-organization-repository-rulesets](https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#get-all-organization-repository-rulesets)\n\n```go\nfunc (s *OrganizationsService) ListAllRepositoryRulesetsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*RepositoryRuleset, error]\n```\nListAllRepositoryRulesetsIter returns an iterator that paginates through all results of ListAllRepositoryRulesets.\n\n```go\nfunc (s *OrganizationsService) ListArtifactDeploymentRecords(ctx context.Context, org, subjectDigest string) (*ArtifactDeploymentResponse, *Response, error)\n```\nListArtifactDeploymentRecords lists deployment records for an artifact metadata.\n\nsubjectDigest is SHA256 digest of the artifact, in the form sha256:HEX\\_DIGEST.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#list-artifact-deployment-records](https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#list-artifact-deployment-records)\n\n```go\nfunc (s *OrganizationsService) ListArtifactStorageRecords(ctx context.Context, org, subjectDigest string) (*ArtifactStorageResponse, *Response, error)\n```\nListArtifactStorageRecords lists artifact storage records with a given subject digest.\n\nsubjectDigest is SHA256 digest of the artifact, in the form sha256:HEX\\_DIGEST.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#list-artifact-storage-records](https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#list-artifact-storage-records)\n\n```go\nfunc (s *OrganizationsService) ListAttestations(ctx context.Context, org, subjectDigest string, opts *ListOptions) (*AttestationsResponse, *Response, error)\n```\nListAttestations returns a collection of artifact attestations with a given subject digest that are associated with repositories owned by an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/attestations?apiVersion=2022-11-28#list-attestations](https://docs.github.com/rest/orgs/attestations?apiVersion=2022-11-28#list-attestations)\n\n```go\nfunc (s *OrganizationsService) ListAttestationsIter(ctx context.Context, org string, subjectDigest string, opts *ListOptions) iter.Seq2[*Attestation, error]\n```\nListAttestationsIter returns an iterator that paginates through all results of ListAttestations.\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/rest/orgs/blocking?apiVersion=2022-11-28#list-users-blocked-by-an-organization](https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#list-users-blocked-by-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListBlockedUsersIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*User, error]\n```\nListBlockedUsersIter returns an iterator that paginates through all results of ListBlockedUsers.\n\n```go\nfunc (s *OrganizationsService) ListCodeSecurityConfigurationRepositories(ctx context.Context, org string, configurationID int64, opts *ListCodeSecurityConfigurationRepositoriesOptions) ([]*RepositoryAttachment, *Response, error)\n```\nListCodeSecurityConfigurationRepositories gets repositories associated with a code security configuration.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-repositories-associated-with-a-code-security-configuration](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-repositories-associated-with-a-code-security-configuration)\n\n```go\nfunc (s *OrganizationsService) ListCodeSecurityConfigurationRepositoriesIter(ctx context.Context, org string, configurationID int64, opts *ListCodeSecurityConfigurationRepositoriesOptions) iter.Seq2[*RepositoryAttachment, error]\n```\nListCodeSecurityConfigurationRepositoriesIter returns an iterator that paginates through all results of ListCodeSecurityConfigurationRepositories.\n\n```go\nfunc (s *OrganizationsService) ListCodeSecurityConfigurations(ctx context.Context, org string, opts *ListOrgCodeSecurityConfigurationOptions) ([]*CodeSecurityConfiguration, *Response, error)\n```\nListCodeSecurityConfigurations gets code security configurations for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-code-security-configurations-for-an-organization](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-code-security-configurations-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListCodeSecurityConfigurationsIter(ctx context.Context, org string, opts *ListOrgCodeSecurityConfigurationOptions) iter.Seq2[*CodeSecurityConfiguration, error]\n```\nListCodeSecurityConfigurationsIter returns an iterator that paginates through all results of ListCodeSecurityConfigurations.\n\n```go\nfunc (s *OrganizationsService) ListCredentialAuthorizations(ctx context.Context, org string, opts *CredentialAuthorizationsListOptions) ([]*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/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#list-saml-sso-authorizations-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#list-saml-sso-authorizations-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListCredentialAuthorizationsIter(ctx context.Context, org string, opts *CredentialAuthorizationsListOptions) iter.Seq2[*CredentialAuthorization, error]\n```\nListCredentialAuthorizationsIter returns an iterator that paginates through all results of ListCredentialAuthorizations.\n\n```go\nfunc (s *OrganizationsService) ListCustomPropertyValues(ctx context.Context, org string, opts *ListCustomPropertyValuesOptions) ([]*RepoCustomPropertyValue, *Response, error)\n```\nListCustomPropertyValues lists all custom property values for repositories in the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#list-custom-property-values-for-organization-repositories](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#list-custom-property-values-for-organization-repositories)\n\n```go\nfunc (s *OrganizationsService) ListCustomPropertyValuesIter(ctx context.Context, org string, opts *ListCustomPropertyValuesOptions) iter.Seq2[*RepoCustomPropertyValue, error]\n```\nListCustomPropertyValuesIter returns an iterator that paginates through all results of ListCustomPropertyValues.\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/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-custom-repository-roles-in-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-custom-repository-roles-in-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListDefaultCodeSecurityConfigurations(ctx context.Context, org string) ([]*CodeSecurityConfigurationWithDefaultForNewRepos, *Response, error)\n```\nListDefaultCodeSecurityConfigurations gets default code security configurations for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-default-code-security-configurations](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#get-default-code-security-configurations)\n\n```go\nfunc (s *OrganizationsService) ListFailedOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error)\n```\nListFailedOrgInvitations returns a list of failed invitations.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-failed-organization-invitations](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-failed-organization-invitations)\n\n```go\nfunc (s *OrganizationsService) ListFailedOrgInvitationsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Invitation, error]\n```\nListFailedOrgInvitationsIter returns an iterator that paginates through all results of ListFailedOrgInvitations.\n\n```go\nfunc (s *OrganizationsService) ListFineGrainedPermissions(ctx context.Context, org string) ([]*OrganizationFineGrainedPermission, *Response, error)\n```\nListFineGrainedPermissions lists the fine-grained permissions that can be used in custom organization roles for an organization.\n\nTo use this endpoint, the authenticated user must be one of:\n\n  - An administrator for the organization.\n  - A user, or a user on a team, with the fine-grained permissions of \\`read\\_organization\\_custom\\_org\\_role\\` in the organization.\n\nOAuth app tokens and personal access tokens (classic) need the \\`admin:org\\` scope to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#list-organization-fine-grained-permissions-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#list-organization-fine-grained-permissions-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListFineGrainedPersonalAccessTokenRequests(ctx context.Context, org string, opts *ListFineGrainedPATOptions) ([]*FineGrainedPersonalAccessTokenRequest, *Response, error)\n```\nListFineGrainedPersonalAccessTokenRequests lists requests to access organization resources via fine-grained personal access tokens. Only GitHub Apps can call this API, using the \\`Personal access tokens\\` organization permissions (read).\n\nGitHub API docs: [https://docs.github.com/rest/orgs/personal-access-tokens?apiVersion=2022-11-28#list-requests-to-access-organization-resources-with-fine-grained-personal-access-tokens](https://docs.github.com/rest/orgs/personal-access-tokens?apiVersion=2022-11-28#list-requests-to-access-organization-resources-with-fine-grained-personal-access-tokens)\n\n```go\nfunc (s *OrganizationsService) ListFineGrainedPersonalAccessTokenRequestsIter(ctx context.Context, org string, opts *ListFineGrainedPATOptions) iter.Seq2[*FineGrainedPersonalAccessTokenRequest, error]\n```\nListFineGrainedPersonalAccessTokenRequestsIter returns an iterator that paginates through all results of ListFineGrainedPersonalAccessTokenRequests.\n\n```go\nfunc (s *OrganizationsService) ListFineGrainedPersonalAccessTokens(ctx context.Context, org string, opts *ListFineGrainedPATOptions) ([]*PersonalAccessToken, *Response, error)\n```\nListFineGrainedPersonalAccessTokens lists approved fine-grained personal access tokens owned by organization members that can access organization resources. Only GitHub Apps can call this API, using the \\`Personal access tokens\\` organization permissions (read).\n\nGitHub API docs: [https://docs.github.com/rest/orgs/personal-access-tokens?apiVersion=2022-11-28#list-fine-grained-personal-access-tokens-with-access-to-organization-resources](https://docs.github.com/rest/orgs/personal-access-tokens?apiVersion=2022-11-28#list-fine-grained-personal-access-tokens-with-access-to-organization-resources)\n\n```go\nfunc (s *OrganizationsService) ListFineGrainedPersonalAccessTokensIter(ctx context.Context, org string, opts *ListFineGrainedPATOptions) iter.Seq2[*PersonalAccessToken, error]\n```\nListFineGrainedPersonalAccessTokensIter returns an iterator that paginates through all results of ListFineGrainedPersonalAccessTokens.\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/rest/orgs/webhooks?apiVersion=2022-11-28#list-deliveries-for-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#list-deliveries-for-an-organization-webhook)\n\n```go\nfunc (s *OrganizationsService) ListHookDeliveriesIter(ctx context.Context, org string, id int64, opts *ListCursorOptions) iter.Seq2[*HookDelivery, error]\n```\nListHookDeliveriesIter returns an iterator that paginates through all results of ListHookDeliveries.\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/rest/orgs/webhooks?apiVersion=2022-11-28#list-organization-webhooks](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#list-organization-webhooks)\n\n```go\nfunc (s *OrganizationsService) ListHooksIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Hook, error]\n```\nListHooksIter returns an iterator that paginates through all results of ListHooks.\n\n```go\nfunc (s *OrganizationsService) ListImmutableReleaseRepositories(ctx context.Context, org string, opts *ListOptions) (*ListRepositories, *Response, error)\n```\nListImmutableReleaseRepositories lists selected repositories for immutable releases enforcement in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-selected-repositories-for-immutable-releases-enforcement](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-selected-repositories-for-immutable-releases-enforcement)\n\n```go\nfunc (s *OrganizationsService) ListImmutableReleaseRepositoriesIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListImmutableReleaseRepositoriesIter returns an iterator that paginates through all results of ListImmutableReleaseRepositories.\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/rest/orgs/orgs?apiVersion=2022-11-28#list-app-installations-for-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#list-app-installations-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListInstallationsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Installation, error]\n```\nListInstallationsIter returns an iterator that paginates through all results of ListInstallations.\n\n```go\nfunc (s *OrganizationsService) ListIssueTypes(ctx context.Context, org string) ([]*IssueType, *Response, error)\n```\nListIssueTypes lists all issue types for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#list-issue-types-for-an-organization](https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#list-issue-types-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*Organization, error]\n```\nListIter returns an iterator that paginates through all results of List.\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/rest/orgs/members?apiVersion=2022-11-28#list-organization-members](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-organization-members)\n\nGitHub API docs: [https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-public-organization-members](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-public-organization-members)\n\n```go\nfunc (s *OrganizationsService) ListMembersIter(ctx context.Context, org string, opts *ListMembersOptions) iter.Seq2[*User, error]\n```\nListMembersIter returns an iterator that paginates through all results of ListMembers.\n\n```go\nfunc (s *OrganizationsService) ListNetworkConfigurations(ctx context.Context, org string, opts *ListOptions) (*NetworkConfigurations, *Response, error)\n```\nListNetworkConfigurations lists all hosted compute network configurations configured in an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#list-hosted-compute-network-configurations-for-an-organization](https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#list-hosted-compute-network-configurations-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListNetworkConfigurationsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*NetworkConfiguration, error]\n```\nListNetworkConfigurationsIter returns an iterator that paginates through all results of ListNetworkConfigurations.\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/rest/orgs/members?apiVersion=2022-11-28#list-organization-invitation-teams](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-organization-invitation-teams)\n\n```go\nfunc (s *OrganizationsService) ListOrgInvitationTeamsIter(ctx context.Context, org string, invitationID string, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListOrgInvitationTeamsIter returns an iterator that paginates through all results of ListOrgInvitationTeams.\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/rest/orgs/members?apiVersion=2022-11-28#list-organization-memberships-for-the-authenticated-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-organization-memberships-for-the-authenticated-user)\n\n```go\nfunc (s *OrganizationsService) ListOrgMembershipsIter(ctx context.Context, opts *ListOrgMembershipsOptions) iter.Seq2[*Membership, error]\n```\nListOrgMembershipsIter returns an iterator that paginates through all results of ListOrgMemberships.\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/rest/orgs/outside-collaborators?apiVersion=2022-11-28#list-outside-collaborators-for-an-organization](https://docs.github.com/rest/orgs/outside-collaborators?apiVersion=2022-11-28#list-outside-collaborators-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListOutsideCollaboratorsIter(ctx context.Context, org string, opts *ListOutsideCollaboratorsOptions) iter.Seq2[*User, error]\n```\nListOutsideCollaboratorsIter returns an iterator that paginates through all results of ListOutsideCollaborators.\n\n```go\nfunc (s *OrganizationsService) ListPackages(ctx context.Context, org string, opts *PackageListOptions) ([]*Package, *Response, error)\n```\nListPackages lists the packages for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListPackagesIter(ctx context.Context, org string, opts *PackageListOptions) iter.Seq2[*Package, error]\n```\nListPackagesIter returns an iterator that paginates through all results of ListPackages.\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/rest/orgs/members?apiVersion=2022-11-28#list-pending-organization-invitations](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#list-pending-organization-invitations)\n\n```go\nfunc (s *OrganizationsService) ListPendingOrgInvitationsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Invitation, error]\n```\nListPendingOrgInvitationsIter returns an iterator that paginates through all results of ListPendingOrgInvitations.\n\n```go\nfunc (s *OrganizationsService) ListRepositoryFineGrainedPermissions(ctx context.Context, org string) ([]*RepoFineGrainedPermission, *Response, error)\n```\nListRepositoryFineGrainedPermissions lists the fine-grained permissions that can be used in custom repository roles for an organization. The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#list-repository-fine-grained-permissions-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) ListRoles(ctx context.Context, org string) (*OrganizationCustomRoles, *Response, error)\n```\nListRoles lists the custom roles available in this organization. In order to see custom roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#get-all-organization-roles-for-an-organization](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#get-all-organization-roles-for-an-organization)\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\nDeprecated: Please use \\`client.Organizations.ListTeamsAssignedToOrgRole\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/security-managers?apiVersion=2022-11-28#list-security-manager-teams](https://docs.github.com/rest/orgs/security-managers?apiVersion=2022-11-28#list-security-manager-teams)\n\n```go\nfunc (s *OrganizationsService) ListTeamsAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*Team, *Response, error)\n```\nListTeamsAssignedToOrgRole returns all teams assigned to a specific organization role. In order to list teams assigned to an organization role, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#list-teams-that-are-assigned-to-an-organization-role](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#list-teams-that-are-assigned-to-an-organization-role)\n\n```go\nfunc (s *OrganizationsService) ListTeamsAssignedToOrgRoleIter(ctx context.Context, org string, roleID int64, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListTeamsAssignedToOrgRoleIter returns an iterator that paginates through all results of ListTeamsAssignedToOrgRole.\n\n```go\nfunc (s *OrganizationsService) ListUsersAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*User, *Response, error)\n```\nListUsersAssignedToOrgRole returns all users assigned to a specific organization role. In order to list users assigned to an organization role, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#list-users-that-are-assigned-to-an-organization-role](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#list-users-that-are-assigned-to-an-organization-role)\n\n```go\nfunc (s *OrganizationsService) ListUsersAssignedToOrgRoleIter(ctx context.Context, org string, roleID int64, opts *ListOptions) iter.Seq2[*User, error]\n```\nListUsersAssignedToOrgRoleIter returns an iterator that paginates through all results of ListUsersAssignedToOrgRole.\n\n```go\nfunc (s *OrganizationsService) PackageDeleteVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nPackageDeleteVersion deletes a package version from an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-package-version-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#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```\nPackageGetAllVersions gets all versions of a package in an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#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```\nPackageGetVersion gets a specific version of a package in an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-version-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#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```\nPackageRestoreVersion restores a package version to an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-package-version-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#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/rest/orgs/webhooks?apiVersion=2022-11-28#ping-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#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/rest/orgs/members?apiVersion=2022-11-28#set-public-organization-membership-for-the-authenticated-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#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/rest/orgs/webhooks?apiVersion=2022-11-28#redeliver-a-delivery-for-an-organization-webhook](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#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/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#remove-a-saml-sso-authorization-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs?apiVersion=2022-11-28#remove-a-saml-sso-authorization-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) RemoveCustomProperty(ctx context.Context, org, customPropertyName string) (*Response, error)\n```\nRemoveCustomProperty removes a custom property that is defined for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#remove-a-custom-property-for-an-organization](https://docs.github.com/rest/orgs/custom-properties?apiVersion=2022-11-28#remove-a-custom-property-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/rest/orgs/members?apiVersion=2022-11-28#remove-an-organization-member](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#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/rest/orgs/members?apiVersion=2022-11-28#remove-organization-membership-for-a-user](https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#remove-organization-membership-for-a-user)\n\n```go\nfunc (s *OrganizationsService) RemoveOrgRoleFromTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error)\n```\nRemoveOrgRoleFromTeam removes an existing organization role assignment from a team in this organization. In order to remove organization role assignments in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#remove-an-organization-role-from-a-team](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#remove-an-organization-role-from-a-team)\n\n```go\nfunc (s *OrganizationsService) RemoveOrgRoleFromUser(ctx context.Context, org, username string, roleID int64) (*Response, error)\n```\nRemoveOrgRoleFromUser removes an existing organization role assignment from a user in this organization. In order to remove organization role assignments in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#remove-an-organization-role-from-a-user](https://docs.github.com/rest/orgs/organization-roles?apiVersion=2022-11-28#remove-an-organization-role-from-a-user)\n\n```go\nfunc (s *OrganizationsService) RemoveOutsideCollaborator(ctx context.Context, org, 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/rest/orgs/outside-collaborators?apiVersion=2022-11-28#remove-outside-collaborator-from-an-organization](https://docs.github.com/rest/orgs/outside-collaborators?apiVersion=2022-11-28#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\nDeprecated: Please use \\`client.Organizations.RemoveOrgRoleFromTeam\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/security-managers?apiVersion=2022-11-28#remove-a-security-manager-team](https://docs.github.com/rest/orgs/security-managers?apiVersion=2022-11-28#remove-a-security-manager-team)\n\n```go\nfunc (s *OrganizationsService) RestorePackage(ctx context.Context, org, packageType, packageName string) (*Response, error)\n```\nRestorePackage restores a package to an organization.\n\nNote that packageName is escaped for the URL path so that you don't need to.\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-for-an-organization](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#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/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/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) SetClusterDeploymentRecords(ctx context.Context, org, cluster string, body ClusterDeploymentRecordsRequest) (*ArtifactDeploymentResponse, *Response, error)\n```\nSetClusterDeploymentRecords sets deployment records for a given cluster.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#set-cluster-deployment-records](https://docs.github.com/rest/orgs/artifact-metadata?apiVersion=2022-11-28#set-cluster-deployment-records)\n\n```go\nfunc (s *OrganizationsService) SetDefaultCodeSecurityConfiguration(ctx context.Context, org string, configurationID int64, newReposParam string) (*CodeSecurityConfigurationWithDefaultForNewRepos, *Response, error)\n```\nSetDefaultCodeSecurityConfiguration sets a code security configuration as the default for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#set-a-code-security-configuration-as-a-default-for-an-organization](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#set-a-code-security-configuration-as-a-default-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) SetImmutableReleaseRepositories(ctx context.Context, org string, repositoryIDs []int64) (*Response, error)\n```\nSetImmutableReleaseRepositories sets selected repositories for immutable releases enforcement. It requires the organization's immutable releases policy for enforced\\_repositories to be set to \"selected\".\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#set-selected-repositories-for-immutable-releases-enforcement](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#set-selected-repositories-for-immutable-releases-enforcement)\n\n```go\nfunc (s *OrganizationsService) UnblockUser(ctx context.Context, org, user string) (*Response, error)\n```\nUnblockUser unblocks specified user from an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#unblock-a-user-from-an-organization](https://docs.github.com/rest/orgs/blocking?apiVersion=2022-11-28#unblock-a-user-from-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error)\n```\nUpdateActionsAllowed sets the actions that are allowed in an organization.\n\nDeprecated: please use \\`client.Actions.UpdateActionsAllowed\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error)\n```\nUpdateActionsPermissions sets the permissions policy for repositories and allowed actions in an organization.\n\nDeprecated: please use \\`client.Actions.UpdateActionsPermissions\\` instead.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-organization](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateCodeSecurityConfiguration(ctx context.Context, org string, configurationID int64, body CodeSecurityConfiguration) (*CodeSecurityConfiguration, *Response, error)\n```\nUpdateCodeSecurityConfiguration updates a code security configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#update-a-code-security-configuration](https://docs.github.com/rest/code-security/configurations?apiVersion=2022-11-28#update-a-code-security-configuration)\n\n```go\nfunc (s *OrganizationsService) UpdateCustomOrgRole(ctx context.Context, org string, roleID int64, body UpdateCustomOrgRoleRequest) (*CustomOrgRole, *Response, error)\n```\nUpdateCustomOrgRole updates a custom role in this organization. In order to update custom roles in an organization, the authenticated user must be an organization owner.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#update-a-custom-organization-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/organization-roles?apiVersion=2022-11-28#update-a-custom-organization-role)\n\n```go\nfunc (s *OrganizationsService) UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, body UpdateCustomRepoRoleRequest) (*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/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#update-a-custom-repository-role](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles?apiVersion=2022-11-28#update-a-custom-repository-role)\n\n```go\nfunc (s *OrganizationsService) UpdateHookConfiguration(ctx context.Context, org string, id int64, body HookConfig) (*HookConfig, *Response, error)\n```\nUpdateHookConfiguration updates the configuration for the specified organization webhook.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#update-a-webhook-configuration-for-an-organization](https://docs.github.com/rest/orgs/webhooks?apiVersion=2022-11-28#update-a-webhook-configuration-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateImmutableReleasesSettings(ctx context.Context, org string, body ImmutableReleasePolicy) (*Response, error)\n```\nUpdateImmutableReleasesSettings sets immutable releases settings for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#set-immutable-releases-settings-for-an-organization](https://docs.github.com/rest/orgs/orgs?apiVersion=2022-11-28#set-immutable-releases-settings-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateIssueType(ctx context.Context, org string, issueTypeID int64, body *CreateOrUpdateIssueTypesOptions) (*IssueType, *Response, error)\n```\nUpdateIssueType updates GitHub Pages for the named repo.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#update-issue-type-for-an-organization](https://docs.github.com/rest/orgs/issue-types?apiVersion=2022-11-28#update-issue-type-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateNetworkConfiguration(ctx context.Context, org, networkID string, body NetworkConfigurationRequest) (*NetworkConfiguration, *Response, error)\n```\nUpdateNetworkConfiguration updates a hosted compute network configuration for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#update-a-hosted-compute-network-configuration-for-an-organization](https://docs.github.com/rest/orgs/network-configurations?apiVersion=2022-11-28#update-a-hosted-compute-network-configuration-for-an-organization)\n\n```go\nfunc (s *OrganizationsService) UpdateRepositoryRuleset(ctx context.Context, org string, rulesetID int64, body RepositoryRuleset) (*RepositoryRuleset, *Response, error)\n```\nUpdateRepositoryRuleset updates a repository ruleset for the specified organization.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#update-an-organization-repository-ruleset](https://docs.github.com/rest/orgs/rules?apiVersion=2022-11-28#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\"` // One of \"npm\", \"maven\", \"rubygems\", \"docker\", \"nuget\", \"container\". For webhook events \"container\" is \"CONTAINER\"\n\tHTMLURL     *string     `json:\"html_url,omitempty\"`\n\tVisibility  *string     `json:\"visibility,omitempty\"`\n\tOwner       *User       `json:\"owner,omitempty\"`\n\tRepository  *Repository `json:\"repository,omitempty\"`\n\tCreatedAt   *Timestamp  `json:\"created_at,omitempty\"`\n\tUpdatedAt   *Timestamp  `json:\"updated_at,omitempty\"`\n\n\t// The following are only populated for webhook events\n\tNamespace      *string          `json:\"namespace,omitempty\"`\n\tDescription    *string          `json:\"description,omitempty\"`\n\tEcosystem      *string          `json:\"ecosystem,omitempty\"`\n\tPackageVersion *PackageVersion  `json:\"package_version,omitempty\"`\n\tRegistry       *PackageRegistry `json:\"registry,omitempty\"`\n\n\t// The following are NOT populated for webhook events\n\tURL          *string `json:\"url,omitempty\"`\n\tVersionCount *int64  `json:\"version_count,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) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *Package) GetEcosystem() string\n```\nGetEcosystem returns the Ecosystem 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) GetNamespace() string\n```\nGetNamespace returns the Namespace 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 PackageContainerMetadata struct {\n\tTags []string `json:\"tags,omitempty\"`\n}\n```\nPackageContainerMetadata represents container metadata for docker container packages.\n\n```go\nfunc (p *PackageContainerMetadata) GetTags() []string\n```\nGetTags returns the Tags slice if it's non-nil, nil otherwise.\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 PackageEventContainerMetadata struct {\n\tLabels   map[string]any                    `json:\"labels,omitempty\"`\n\tManifest map[string]any                    `json:\"manifest,omitempty\"`\n\tTag      *PackageEventContainerMetadataTag `json:\"tag,omitempty\"`\n}\n```\nPackageEventContainerMetadata represents metadata for container packages as part of a webhook event. See also PackageContainerMetadata.\n\n```go\nfunc (p *PackageEventContainerMetadata) GetLabels() map[string]any\n```\nGetLabels returns the Labels map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageEventContainerMetadata) GetManifest() map[string]any\n```\nGetManifest returns the Manifest map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageEventContainerMetadata) GetTag() *PackageEventContainerMetadataTag\n```\nGetTag returns the Tag field.\n\n```go\nfunc (m PackageEventContainerMetadata) String() string\n```\n\n```go\ntype PackageEventContainerMetadataTag struct {\n\tName   *string `json:\"name,omitempty\"`\n\tDigest *string `json:\"digest,omitempty\"`\n}\n```\nPackageEventContainerMetadataTag represents a tag of a GitHub container package.\n\n```go\nfunc (p *PackageEventContainerMetadataTag) GetDigest() string\n```\nGetDigest returns the Digest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageEventContainerMetadataTag) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (mt PackageEventContainerMetadataTag) String() string\n```\n\n```go\ntype PackageExternalRef struct {\n\t// ReferenceCategory specifies the external reference categories such\n\t// SECURITY\", \"PACKAGE-MANAGER\", \"PERSISTENT-ID\", or \"OTHER\"\n\t// Example: \"PACKAGE-MANAGER\"\n\tReferenceCategory string `json:\"referenceCategory\"`\n\n\t// ReferenceType specifies the type of external reference.\n\t// For PACKAGE-MANAGER, it could be \"purl\"; other types include \"cpe22Type\", \"swid\", etc.\n\tReferenceType string `json:\"referenceType\"`\n\n\t// ReferenceLocator is the actual unique identifier or URI for the external reference.\n\t// Example: \"pkg:golang/github.com/spf13/cobra@1.8.1\"\n\tReferenceLocator string `json:\"referenceLocator\"`\n}\n```\nPackageExternalRef allows an Package to reference an external sources of additional information, like asset identifiers, or downloadable content that are relevant to the package, Example for identifiers (e.g., PURL/SWID/CPE) for a package in the SBOM. [https://spdx.github.io/spdx-spec/v2.3/package-information/#721-external-reference-field](https://spdx.github.io/spdx-spec/v2.3/package-information/#721-external-reference-field)\n\n```go\nfunc (p *PackageExternalRef) GetReferenceCategory() string\n```\nGetReferenceCategory returns the ReferenceCategory field.\n\n```go\nfunc (p *PackageExternalRef) GetReferenceLocator() string\n```\nGetReferenceLocator returns the ReferenceLocator field.\n\n```go\nfunc (p *PackageExternalRef) GetReferenceType() string\n```\nGetReferenceType returns the ReferenceType 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 PackageNPMMetadata struct {\n\tName                 *string           `json:\"name,omitempty\"`\n\tVersion              *string           `json:\"version,omitempty\"`\n\tNPMUser              *string           `json:\"npm_user,omitempty\"`\n\tAuthor               map[string]string `json:\"author,omitempty\"`\n\tBugs                 map[string]string `json:\"bugs,omitempty\"`\n\tDependencies         map[string]string `json:\"dependencies,omitempty\"`\n\tDevDependencies      map[string]string `json:\"dev_dependencies,omitempty\"`\n\tPeerDependencies     map[string]string `json:\"peer_dependencies,omitempty\"`\n\tOptionalDependencies map[string]string `json:\"optional_dependencies,omitempty\"`\n\tDescription          *string           `json:\"description,omitempty\"`\n\tDist                 map[string]string `json:\"dist,omitempty\"`\n\tGitHead              *string           `json:\"git_head,omitempty\"`\n\tHomepage             *string           `json:\"homepage,omitempty\"`\n\tLicense              *string           `json:\"license,omitempty\"`\n\tMain                 *string           `json:\"main,omitempty\"`\n\tRepository           map[string]string `json:\"repository,omitempty\"`\n\tScripts              map[string]any    `json:\"scripts,omitempty\"`\n\tID                   *string           `json:\"id,omitempty\"`\n\tNodeVersion          *string           `json:\"node_version,omitempty\"`\n\tNPMVersion           *string           `json:\"npm_version,omitempty\"`\n\tHasShrinkwrap        *bool             `json:\"has_shrinkwrap,omitempty\"`\n\tMaintainers          []any             `json:\"maintainers,omitempty\"`\n\tContributors         []any             `json:\"contributors,omitempty\"`\n\tEngines              map[string]string `json:\"engines,omitempty\"`\n\tKeywords             []string          `json:\"keywords,omitempty\"`\n\tFiles                []string          `json:\"files,omitempty\"`\n\tBin                  map[string]any    `json:\"bin,omitempty\"`\n\tMan                  map[string]any    `json:\"man,omitempty\"`\n\tDirectories          map[string]string `json:\"directories,omitempty\"`\n\tOS                   []string          `json:\"os,omitempty\"`\n\tCPU                  []string          `json:\"cpu,omitempty\"`\n\tReadme               *string           `json:\"readme,omitempty\"`\n\tInstallationCommand  *string           `json:\"installation_command,omitempty\"`\n\tReleaseID            *int64            `json:\"release_id,omitempty\"`\n\tCommitOID            *string           `json:\"commit_oid,omitempty\"`\n\tPublishedViaActions  *bool             `json:\"published_via_actions,omitempty\"`\n\tDeletedByID          *int64            `json:\"deleted_by_id,omitempty\"`\n}\n```\nPackageNPMMetadata represents NPM metadata for a GitHub package.\n\n```go\nfunc (p *PackageNPMMetadata) GetAuthor() map[string]string\n```\nGetAuthor returns the Author map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetBin() map[string]any\n```\nGetBin returns the Bin map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetBugs() map[string]string\n```\nGetBugs returns the Bugs map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetCPU() []string\n```\nGetCPU returns the CPU slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetCommitOID() string\n```\nGetCommitOID returns the CommitOID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetContributors() []any\n```\nGetContributors returns the Contributors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetDeletedByID() int64\n```\nGetDeletedByID returns the DeletedByID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetDependencies() map[string]string\n```\nGetDependencies returns the Dependencies map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetDevDependencies() map[string]string\n```\nGetDevDependencies returns the DevDependencies map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetDirectories() map[string]string\n```\nGetDirectories returns the Directories map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetDist() map[string]string\n```\nGetDist returns the Dist map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetEngines() map[string]string\n```\nGetEngines returns the Engines map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetFiles() []string\n```\nGetFiles returns the Files slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetGitHead() string\n```\nGetGitHead returns the GitHead field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetHasShrinkwrap() bool\n```\nGetHasShrinkwrap returns the HasShrinkwrap field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetHomepage() string\n```\nGetHomepage returns the Homepage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetInstallationCommand() string\n```\nGetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetKeywords() []string\n```\nGetKeywords returns the Keywords slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetLicense() string\n```\nGetLicense returns the License field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetMain() string\n```\nGetMain returns the Main field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetMaintainers() []any\n```\nGetMaintainers returns the Maintainers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetMan() map[string]any\n```\nGetMan returns the Man map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetNPMUser() string\n```\nGetNPMUser returns the NPMUser field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetNPMVersion() string\n```\nGetNPMVersion returns the NPMVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetNodeVersion() string\n```\nGetNodeVersion returns the NodeVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetOS() []string\n```\nGetOS returns the OS slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetOptionalDependencies() map[string]string\n```\nGetOptionalDependencies returns the OptionalDependencies map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetPeerDependencies() map[string]string\n```\nGetPeerDependencies returns the PeerDependencies map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetPublishedViaActions() bool\n```\nGetPublishedViaActions returns the PublishedViaActions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetReadme() string\n```\nGetReadme returns the Readme field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetReleaseID() int64\n```\nGetReleaseID returns the ReleaseID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetRepository() map[string]string\n```\nGetRepository returns the Repository map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetScripts() map[string]any\n```\nGetScripts returns the Scripts map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageNPMMetadata) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\nfunc (nm PackageNPMMetadata) String() string\n```\n\n```go\ntype PackageNugetMetadata struct {\n\tID    json.RawMessage `json:\"id,omitempty\"` // Can either be an int64 or string\n\tName  *string         `json:\"name,omitempty\"`\n\tValue json.RawMessage `json:\"value,omitempty\"` // Can either be a bool, string, integer or object\n}\n```\nPackageNugetMetadata represents nuget metadata for a GitHub package.\n\n```go\nfunc (p *PackageNugetMetadata) GetID() json.RawMessage\n```\nGetID returns the ID field.\n\n```go\nfunc (p *PackageNugetMetadata) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageNugetMetadata) GetValue() json.RawMessage\n```\nGetValue returns the Value field.\n\n```go\nfunc (nm PackageNugetMetadata) 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\tName           *string         `json:\"name,omitempty\"`\n\tURL            *string         `json:\"url,omitempty\"`\n\tPackageHTMLURL *string         `json:\"package_html_url,omitempty\"`\n\tLicense        *string         `json:\"license,omitempty\"`\n\tDescription    *string         `json:\"description,omitempty\"`\n\tCreatedAt      *Timestamp      `json:\"created_at,omitempty\"`\n\tUpdatedAt      *Timestamp      `json:\"updated_at,omitempty\"`\n\tMetadata       json.RawMessage `json:\"metadata,omitempty\"` // For webhook events this will be []interface, else it will be of type PackageMetadata\n\n\t// The following are only populated for webhook events\n\tVersion             *string                        `json:\"version,omitempty\"`\n\tSummary             *string                        `json:\"summary,omitempty\"`\n\tBody                json.RawMessage                `json:\"body,omitempty\"` // Can either be a string or of type PackageVersionBody\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\tContainerMetadata   *PackageEventContainerMetadata `json:\"container_metadata,omitempty\"`\n\tDockerMetadata      []any                          `json:\"docker_metadata,omitempty\"`\n\tNPMMetadata         *PackageNPMMetadata            `json:\"npm_metadata,omitempty\"`\n\tNugetMetadata       []*PackageNugetMetadata        `json:\"nuget_metadata,omitempty\"`\n\tRubyMetadata        map[string]any                 `json:\"ruby_metadata,omitempty\"`\n\tPackageFiles        []*PackageFile                 `json:\"package_files,omitempty\"`\n\tPackageURL          *string                        `json:\"package_url,omitempty\"`\n\tAuthor              *User                          `json:\"author,omitempty\"`\n\tSourceURL           *string                        `json:\"source_url,omitempty\"`\n\tInstallationCommand *string                        `json:\"installation_command,omitempty\"`\n\n\t// The following are NOT populated for webhook events\n\tDeletedAt *Timestamp `json:\"deleted_at,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 (pv *PackageVersion) GetBody() (body string, ok bool)\n```\nGetBody returns the body field as a string if it's valid.\n\n```go\nfunc (pv *PackageVersion) GetBodyAsPackageVersionBody() (body *PackageVersionBody, ok bool)\n```\nGetBodyAsPackageVersionBody returns the body field as a PackageVersionBody if it's valid.\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) GetContainerMetadata() *PackageEventContainerMetadata\n```\nGetContainerMetadata returns the ContainerMetadata field.\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) GetDeletedAt() Timestamp\n```\nGetDeletedAt returns the DeletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersion) GetDockerMetadata() []any\n```\nGetDockerMetadata returns the DockerMetadata slice if it's non-nil, nil 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) GetLicense() string\n```\nGetLicense returns the License 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 (pv *PackageVersion) GetMetadata() (metadata *PackageMetadata, ok bool)\n```\nGetMetadata returns the metadata field as PackageMetadata if it's valid.\n\n```go\nfunc (p *PackageVersion) GetNPMMetadata() *PackageNPMMetadata\n```\nGetNPMMetadata returns the NPMMetadata 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) GetNugetMetadata() []*PackageNugetMetadata\n```\nGetNugetMetadata returns the NugetMetadata slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PackageVersion) GetPackageFiles() []*PackageFile\n```\nGetPackageFiles returns the PackageFiles slice if it's non-nil, nil 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) GetPackageURL() string\n```\nGetPackageURL returns the PackageURL 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 (pv *PackageVersion) GetRawMetadata() json.RawMessage\n```\nGetRawMetadata returns the metadata field as a json.RawMessage.\n\n```go\nfunc (p *PackageVersion) GetRelease() *PackageRelease\n```\nGetRelease returns the Release field.\n\n```go\nfunc (p *PackageVersion) GetRubyMetadata() map[string]any\n```\nGetRubyMetadata returns the RubyMetadata map if it's non-nil, an empty map otherwise.\n\n```go\nfunc (p *PackageVersion) GetSourceURL() string\n```\nGetSourceURL returns the SourceURL field if it's non-nil, zero value otherwise.\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 PackageVersionBody struct {\n\tRepo *Repository             `json:\"repository,omitempty\"`\n\tInfo *PackageVersionBodyInfo `json:\"info,omitempty\"`\n}\n```\nPackageVersionBody represents the body field of a package version.\n\n```go\nfunc (p *PackageVersionBody) GetInfo() *PackageVersionBodyInfo\n```\nGetInfo returns the Info field.\n\n```go\nfunc (p *PackageVersionBody) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (b PackageVersionBody) String() string\n```\n\n```go\ntype PackageVersionBodyInfo struct {\n\tType       *string `json:\"type,omitempty\"`\n\tOID        *string `json:\"oid,omitempty\"`\n\tMode       *int64  `json:\"mode,omitempty\"`\n\tName       *string `json:\"name,omitempty\"`\n\tPath       *string `json:\"path,omitempty\"`\n\tSize       *int64  `json:\"size,omitempty\"`\n\tCollection *bool   `json:\"collection,omitempty\"`\n}\n```\nPackageVersionBodyInfo represents the info field of a PackageVersionBody.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetCollection() bool\n```\nGetCollection returns the Collection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetMode() int64\n```\nGetMode returns the Mode field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetOID() string\n```\nGetOID returns the OID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetSize() int64\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PackageVersionBodyInfo) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (bi PackageVersionBodyInfo) String() string\n```\n\n```go\ntype PackagesBilling struct {\n\tTotalGigabytesBandwidthUsed     int `json:\"total_gigabytes_bandwidth_used\"`\n\tTotalPaidGigabytesBandwidthUsed int `json:\"total_paid_gigabytes_bandwidth_used\"`\n\tIncludedGigabytesBandwidth      int `json:\"included_gigabytes_bandwidth\"`\n}\n```\nPackagesBilling represents billing of GitHub Packages .\n\n```go\nfunc (p *PackagesBilling) GetIncludedGigabytesBandwidth() int\n```\nGetIncludedGigabytesBandwidth returns the IncludedGigabytesBandwidth field.\n\n```go\nfunc (p *PackagesBilling) GetTotalGigabytesBandwidthUsed() int\n```\nGetTotalGigabytesBandwidthUsed returns the TotalGigabytesBandwidthUsed field.\n\n```go\nfunc (p *PackagesBilling) GetTotalPaidGigabytesBandwidthUsed() int\n```\nGetTotalPaidGigabytesBandwidthUsed returns the TotalPaidGigabytesBandwidthUsed field.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#page\\_build](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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) GetDomains() []string\n```\nGetDomains returns the Domains slice if it's non-nil, nil 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 PagesUpdateWithoutCNAME struct {\n\tBuildType     *string      `json:\"build_type,omitempty\"`\n\tSource        *PagesSource `json:\"source,omitempty\"`\n\tPublic        *bool        `json:\"public,omitempty\"`\n\tHTTPSEnforced *bool        `json:\"https_enforced,omitempty\"`\n}\n```\nPagesUpdateWithoutCNAME defines parameters for updating a GitHub Pages site on GitHub Enterprise Servers. Sending a request with a CNAME (any value, empty string, or null) results in a 400 error: \"Custom domains are not available for GitHub Pages\".\n\n```go\nfunc (p *PagesUpdateWithoutCNAME) GetBuildType() string\n```\nGetBuildType returns the BuildType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesUpdateWithoutCNAME) GetHTTPSEnforced() bool\n```\nGetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesUpdateWithoutCNAME) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PagesUpdateWithoutCNAME) GetSource() *PagesSource\n```\nGetSource returns the Source field.\n\n```go\ntype PatternBranchRule struct {\n\tBranchRuleMetadata\n\tParameters PatternRuleParameters `json:\"parameters\"`\n}\n```\nPatternBranchRule represents a pattern branch rule.\n\n```go\nfunc (p *PatternBranchRule) GetParameters() PatternRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype PatternRuleOperator string\n```\nPatternRuleOperator models a GitHub pattern rule operator.\n\n```go\nconst (\n\tPatternRuleOperatorStartsWith PatternRuleOperator = \"starts_with\"\n\tPatternRuleOperatorEndsWith   PatternRuleOperator = \"ends_with\"\n\tPatternRuleOperatorContains   PatternRuleOperator = \"contains\"\n\tPatternRuleOperatorRegex      PatternRuleOperator = \"regex\"\n)\n```\nThis is the set of GitHub pattern rule operators.\n\n```go\ntype PatternRuleParameters 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\tOperator PatternRuleOperator `json:\"operator\"`\n\tPattern  string              `json:\"pattern\"`\n}\n```\nPatternRuleParameters represents the parameters for a pattern rule.\n\n```go\nfunc (p *PatternRuleParameters) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PatternRuleParameters) GetNegate() bool\n```\nGetNegate returns the Negate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PatternRuleParameters) GetOperator() PatternRuleOperator\n```\nGetOperator returns the Operator field.\n\n```go\nfunc (p *PatternRuleParameters) GetPattern() string\n```\nGetPattern returns the Pattern field.\n\n```go\ntype PendingDeployment struct {\n\tEnvironment           *PendingDeploymentEnvironment `json:\"environment,omitempty\"`\n\tWaitTimer             *int64                        `json:\"wait_timer,omitempty\"`\n\tWaitTimerStartedAt    *Timestamp                    `json:\"wait_timer_started_at,omitempty\"`\n\tCurrentUserCanApprove *bool                         `json:\"current_user_can_approve,omitempty\"`\n\tReviewers             []*RequiredReviewer           `json:\"reviewers,omitempty\"`\n}\n```\nPendingDeployment represents the pending\\_deployments response.\n\n```go\nfunc (p *PendingDeployment) GetCurrentUserCanApprove() bool\n```\nGetCurrentUserCanApprove returns the CurrentUserCanApprove field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PendingDeployment) GetEnvironment() *PendingDeploymentEnvironment\n```\nGetEnvironment returns the Environment field.\n\n```go\nfunc (p *PendingDeployment) GetReviewers() []*RequiredReviewer\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PendingDeployment) GetWaitTimer() int64\n```\nGetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PendingDeployment) GetWaitTimerStartedAt() Timestamp\n```\nGetWaitTimerStartedAt returns the WaitTimerStartedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype PendingDeploymentEnvironment struct {\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}\n```\nPendingDeploymentEnvironment represents pending deployment environment properties.\n\n```go\nfunc (p *PendingDeploymentEnvironment) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PendingDeploymentEnvironment) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PendingDeploymentEnvironment) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PendingDeploymentEnvironment) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PendingDeploymentEnvironment) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\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\nfunc (p *PendingDeploymentsRequest) GetComment() string\n```\nGetComment returns the Comment field.\n\n```go\nfunc (p *PendingDeploymentsRequest) GetEnvironmentIDs() []int64\n```\nGetEnvironmentIDs returns the EnvironmentIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PendingDeploymentsRequest) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype PersonalAccessToken struct {\n\t// \"Unique identifier of the fine-grained personal access token.\n\t// The `pat_id` used to get details about an approved fine-grained personal access token.\n\tID *int64 `json:\"id\"`\n\n\t// Owner is the GitHub user associated with the token.\n\tOwner *User `json:\"owner\"`\n\n\t// RepositorySelection is the type of repository selection requested.\n\t// Possible values are: \"none\", \"all\", \"subset\".\n\tRepositorySelection *string `json:\"repository_selection\"`\n\n\t// URL to the list of repositories the fine-grained personal access token can access.\n\t// Only follow when `repository_selection` is `subset`.\n\tRepositoriesURL *string `json:\"repositories_url\"`\n\n\t// Permissions are the permissions requested, categorized by type.\n\tPermissions *PersonalAccessTokenPermissions `json:\"permissions\"`\n\n\t// Date and time when the fine-grained personal access token was approved to access the organization.\n\tAccessGrantedAt *Timestamp `json:\"access_granted_at\"`\n\n\t// Whether the associated fine-grained personal access token has expired.\n\tTokenExpired *bool `json:\"token_expired\"`\n\n\t// Date and time when the associated fine-grained personal access token expires.\n\tTokenExpiresAt *Timestamp `json:\"token_expires_at\"`\n\n\t// TokenID\n\tTokenID *int64 `json:\"token_id\"`\n\n\t// TokenName\n\tTokenName *string `json:\"token_name\"`\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\"`\n}\n```\nPersonalAccessToken represents the minimal representation of an organization programmatic access grant.\n\nGitHub API docs: [https://docs.github.com/rest/orgs/personal-access-tokens?apiVersion=2022-11-28](https://docs.github.com/rest/orgs/personal-access-tokens?apiVersion=2022-11-28)\n\n```go\nfunc (p *PersonalAccessToken) GetAccessGrantedAt() Timestamp\n```\nGetAccessGrantedAt returns the AccessGrantedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (p *PersonalAccessToken) GetPermissions() *PersonalAccessTokenPermissions\n```\nGetPermissions returns the Permissions field.\n\n```go\nfunc (p *PersonalAccessToken) GetRepositoriesURL() string\n```\nGetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetTokenExpired() bool\n```\nGetTokenExpired returns the TokenExpired field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetTokenExpiresAt() Timestamp\n```\nGetTokenExpiresAt returns the TokenExpiresAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetTokenID() int64\n```\nGetTokenID returns the TokenID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetTokenLastUsedAt() Timestamp\n```\nGetTokenLastUsedAt returns the TokenLastUsedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PersonalAccessToken) GetTokenName() string\n```\nGetTokenName returns the TokenName field if it's non-nil, zero value otherwise.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\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/webhooks-and-events/webhooks/webhook-events-and-payloads#personal\\_access\\_token\\_request](https://docs.github.com/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 PinnedIssueComment struct {\n\tPinnedAt *Timestamp `json:\"pinned_at,omitempty\"`\n\tPinnedBy *User      `json:\"pinned_by,omitempty\"`\n}\n```\nPinnedIssueComment represents the pin details of a pinned issue comment.\n\n```go\nfunc (p *PinnedIssueComment) GetPinnedAt() Timestamp\n```\nGetPinnedAt returns the PinnedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PinnedIssueComment) GetPinnedBy() *User\n```\nGetPinnedBy returns the PinnedBy field.\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 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\nfunc (p *PreferenceList) GetAutoTriggerChecks() []*AutoTriggerCheck\n```\nGetAutoTriggerChecks returns the AutoTriggerChecks slice if it's non-nil, nil otherwise.\n\n```go\ntype PremiumRequestUsageItem struct {\n\tProduct          string  `json:\"product\"`\n\tSKU              string  `json:\"sku\"`\n\tModel            string  `json:\"model\"`\n\tUnitType         string  `json:\"unitType\"`\n\tPricePerUnit     float64 `json:\"pricePerUnit\"`\n\tGrossQuantity    float64 `json:\"grossQuantity\"`\n\tGrossAmount      float64 `json:\"grossAmount\"`\n\tDiscountQuantity float64 `json:\"discountQuantity\"`\n\tDiscountAmount   float64 `json:\"discountAmount\"`\n\tNetQuantity      float64 `json:\"netQuantity\"`\n\tNetAmount        float64 `json:\"netAmount\"`\n}\n```\nPremiumRequestUsageItem represents a single usage line item in premium request usage reports.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetDiscountAmount() float64\n```\nGetDiscountAmount returns the DiscountAmount field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetDiscountQuantity() float64\n```\nGetDiscountQuantity returns the DiscountQuantity field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetGrossAmount() float64\n```\nGetGrossAmount returns the GrossAmount field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetGrossQuantity() float64\n```\nGetGrossQuantity returns the GrossQuantity field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetModel() string\n```\nGetModel returns the Model field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetNetAmount() float64\n```\nGetNetAmount returns the NetAmount field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetNetQuantity() float64\n```\nGetNetQuantity returns the NetQuantity field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetPricePerUnit() float64\n```\nGetPricePerUnit returns the PricePerUnit field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (p *PremiumRequestUsageItem) GetUnitType() string\n```\nGetUnitType returns the UnitType field.\n\n```go\ntype PremiumRequestUsageReport struct {\n\tTimePeriod PremiumRequestUsageTimePeriod `json:\"timePeriod\"`\n\t// Organization is only set for organization-level reports.\n\tOrganization *string `json:\"organization,omitempty\"`\n\t// User is only set for user-level reports.\n\tUser       *string                    `json:\"user,omitempty\"`\n\tProduct    *string                    `json:\"product,omitempty\"`\n\tModel      *string                    `json:\"model,omitempty\"`\n\tUsageItems []*PremiumRequestUsageItem `json:\"usageItems\"`\n}\n```\nPremiumRequestUsageReport represents the premium request usage report response.\n\n```go\nfunc (p *PremiumRequestUsageReport) GetModel() string\n```\nGetModel returns the Model field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReport) GetOrganization() string\n```\nGetOrganization returns the Organization field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReport) GetProduct() string\n```\nGetProduct returns the Product field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReport) GetTimePeriod() PremiumRequestUsageTimePeriod\n```\nGetTimePeriod returns the TimePeriod field.\n\n```go\nfunc (p *PremiumRequestUsageReport) GetUsageItems() []*PremiumRequestUsageItem\n```\nGetUsageItems returns the UsageItems slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReport) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\ntype PremiumRequestUsageReportOptions struct {\n\t// If specified, only return results for a single year.\n\t// The value of year is an integer with four digits representing a year. For example, 2025.\n\t// Default value is the current year.\n\tYear *int `url:\"year,omitempty\"`\n\n\t// If specified, only return results for a single month.\n\t// The value of month is an integer between 1 and 12. Default value is the current month.\n\t// If no year is specified the default year is used.\n\tMonth *int `url:\"month,omitempty\"`\n\n\t// If specified, only return results for a single day.\n\t// The value of day is an integer between 1 and 31.\n\t// If no year or month is specified, the default year and month are used.\n\tDay *int `url:\"day,omitempty\"`\n\n\t// The user name to query usage for. The name is not case-sensitive.\n\tUser *string `url:\"user,omitempty\"`\n\n\t// The model name to query usage for. The name is not case-sensitive.\n\tModel *string `url:\"model,omitempty\"`\n\n\t// The product name to query usage for. The name is not case-sensitive.\n\tProduct *string `url:\"product,omitempty\"`\n}\n```\nPremiumRequestUsageReportOptions specifies optional parameters for the enhanced billing platform premium request usage report.\n\n```go\nfunc (p *PremiumRequestUsageReportOptions) GetDay() int\n```\nGetDay returns the Day field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReportOptions) GetModel() string\n```\nGetModel returns the Model field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReportOptions) GetMonth() int\n```\nGetMonth returns the Month field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReportOptions) GetProduct() string\n```\nGetProduct returns the Product field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReportOptions) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageReportOptions) GetYear() int\n```\nGetYear returns the Year field if it's non-nil, zero value otherwise.\n\n```go\ntype PremiumRequestUsageTimePeriod struct {\n\tYear  int  `json:\"year\"`\n\tMonth *int `json:\"month,omitempty\"`\n\tDay   *int `json:\"day,omitempty\"`\n}\n```\nPremiumRequestUsageTimePeriod represents a time period for premium request usage reports.\n\n```go\nfunc (p *PremiumRequestUsageTimePeriod) GetDay() int\n```\nGetDay returns the Day field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageTimePeriod) GetMonth() int\n```\nGetMonth returns the Month field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PremiumRequestUsageTimePeriod) GetYear() int\n```\nGetYear returns the Year field.\n\n```go\ntype PrivateRegistries struct {\n\t// TotalCount is the total number of private registries.\n\tTotalCount *int `json:\"total_count,omitempty\"`\n\t// Configurations is the list of private registry configurations.\n\tConfigurations []*PrivateRegistry `json:\"configurations,omitempty\"`\n}\n```\nPrivateRegistries represents a list of private registries.\n\n```go\nfunc (p *PrivateRegistries) GetConfigurations() []*PrivateRegistry\n```\nGetConfigurations returns the Configurations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PrivateRegistries) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\ntype PrivateRegistriesService service\n```\nPrivateRegistriesService handles communication with the private registries methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries?apiVersion=2026-03-10](https://docs.github.com/rest/private-registries?apiVersion=2026-03-10)\n\n```go\nfunc (s *PrivateRegistriesService) CreateOrganizationPrivateRegistry(ctx context.Context, org string, body CreateOrganizationPrivateRegistry) (*PrivateRegistry, *Response, error)\n```\nCreateOrganizationPrivateRegistry creates a private registry configuration with an encrypted value for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#create-a-private-registry-for-an-organization](https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#create-a-private-registry-for-an-organization)\n\n```go\nfunc (s *PrivateRegistriesService) DeleteOrganizationPrivateRegistry(ctx context.Context, org, secretName string) (*Response, error)\n```\nDeleteOrganizationPrivateRegistry deletes a specific private registry for an organization. The \\`name\\` parameter is the name of the private registry to delete. It is the same as PrivateRegistry.Name.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#delete-a-private-registry-for-an-organization](https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#delete-a-private-registry-for-an-organization)\n\n```go\nfunc (s *PrivateRegistriesService) GetOrganizationPrivateRegistriesPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error)\n```\nGetOrganizationPrivateRegistriesPublicKey retrieves the public key for encrypting secrets for an organization's private registries.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#get-private-registries-public-key-for-an-organization](https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#get-private-registries-public-key-for-an-organization)\n\n```go\nfunc (s *PrivateRegistriesService) GetOrganizationPrivateRegistry(ctx context.Context, org, secretName string) (*PrivateRegistry, *Response, error)\n```\nGetOrganizationPrivateRegistry gets a specific private registry for an organization. The \\`name\\` parameter is the name of the private registry to retrieve. It is the same as PrivateRegistry.Name.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#get-a-private-registry-for-an-organization](https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#get-a-private-registry-for-an-organization)\n\n```go\nfunc (s *PrivateRegistriesService) ListOrganizationPrivateRegistries(ctx context.Context, org string, opts *ListOptions) (*PrivateRegistries, *Response, error)\n```\nListOrganizationPrivateRegistries lists private registries for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#list-private-registries-for-an-organization](https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#list-private-registries-for-an-organization)\n\n```go\nfunc (s *PrivateRegistriesService) ListOrganizationPrivateRegistriesIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*PrivateRegistry, error]\n```\nListOrganizationPrivateRegistriesIter returns an iterator that paginates through all results of ListOrganizationPrivateRegistries.\n\n```go\nfunc (s *PrivateRegistriesService) UpdateOrganizationPrivateRegistry(ctx context.Context, org, secretName string, body UpdateOrganizationPrivateRegistry) (*Response, error)\n```\nUpdateOrganizationPrivateRegistry updates a specific private registry for an organization. The \\`name\\` parameter is the name of the private registry to update. It is the same as PrivateRegistry.Name.\n\nGitHub API docs: [https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#update-a-private-registry-for-an-organization](https://docs.github.com/rest/private-registries/organization-configurations?apiVersion=2026-03-10#update-a-private-registry-for-an-organization)\n\n```go\ntype PrivateRegistry struct {\n\t// Name of the private registry.\n\tName *string `json:\"name,omitempty\"`\n\t// RegistryType is the type of private registry. You can find the list of supported types in PrivateRegistryType.\n\tRegistryType *PrivateRegistryType `json:\"registry_type,omitempty\"`\n\t// AuthType is the authentication type for the private registry.\n\tAuthType *PrivateRegistryAuthType `json:\"auth_type,omitempty\"`\n\t// URL is the URL of the private registry.\n\tURL *string `json:\"url,omitempty\"`\n\t// Username to use when authenticating with the private registry.\n\t// This field is omitted if the private registry does not require a username for authentication.\n\tUsername *string `json:\"username,omitempty\"`\n\t// ReplacesBase indicates whether this private registry should replace the base registry.\n\tReplacesBase *bool `json:\"replaces_base,omitempty\"`\n\t// Visibility is the visibility of the private registry. Possible values are: \"private\", \"all\", and \"selected\".\n\tVisibility *PrivateRegistryVisibility `json:\"visibility,omitempty\"`\n\t// SelectedRepositoryIDs is an array of repository IDs that can access the organization private registry.\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitempty\"`\n\t// TenantID is the tenant ID of the Azure AD application.\n\tTenantID *string `json:\"tenant_id,omitempty\"`\n\t// ClientID is the client ID of the Azure AD application.\n\tClientID *string `json:\"client_id,omitempty\"`\n\t// AWSRegion is the AWS region.\n\tAWSRegion *string `json:\"aws_region,omitempty\"`\n\t// AccountID is the AWS account ID.\n\tAccountID *string `json:\"account_id,omitempty\"`\n\t// RoleName is the AWS IAM role name.\n\tRoleName *string `json:\"role_name,omitempty\"`\n\t// Domain is the CodeArtifact domain.\n\tDomain *string `json:\"domain,omitempty\"`\n\t// DomainOwner is the CodeArtifact domain owner.\n\tDomainOwner *string `json:\"domain_owner,omitempty\"`\n\t// JFrogOIDCProviderName is the JFrog OIDC provider name.\n\tJFrogOIDCProviderName *string `json:\"jfrog_oidc_provider_name,omitempty\"`\n\t// Audience is the OIDC audience.\n\tAudience *string `json:\"audience,omitempty\"`\n\t// IdentityMappingName is the JFrog identity mapping name.\n\tIdentityMappingName *string `json:\"identity_mapping_name,omitempty\"`\n\t// CreatedAt is the timestamp when the private registry was created.\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\t// UpdatedAt is the timestamp when the private registry was last updated.\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nPrivateRegistry represents a private registry configuration.\n\n```go\nfunc (p *PrivateRegistry) GetAWSRegion() string\n```\nGetAWSRegion returns the AWSRegion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetAccountID() string\n```\nGetAccountID returns the AccountID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetAudience() string\n```\nGetAudience returns the Audience field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetAuthType() *PrivateRegistryAuthType\n```\nGetAuthType returns the AuthType field.\n\n```go\nfunc (p *PrivateRegistry) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetDomain() string\n```\nGetDomain returns the Domain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetDomainOwner() string\n```\nGetDomainOwner returns the DomainOwner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetIdentityMappingName() string\n```\nGetIdentityMappingName returns the IdentityMappingName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetJFrogOIDCProviderName() string\n```\nGetJFrogOIDCProviderName returns the JFrogOIDCProviderName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetRegistryType() *PrivateRegistryType\n```\nGetRegistryType returns the RegistryType field.\n\n```go\nfunc (p *PrivateRegistry) GetReplacesBase() bool\n```\nGetReplacesBase returns the ReplacesBase field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetRoleName() string\n```\nGetRoleName returns the RoleName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetTenantID() string\n```\nGetTenantID returns the TenantID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PrivateRegistry) GetVisibility() *PrivateRegistryVisibility\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype PrivateRegistryAuthType string\n```\nPrivateRegistryAuthType represents the authentication type for a private registry.\n\n```go\nconst (\n\tPrivateRegistryAuthTypeToken            PrivateRegistryAuthType = \"token\"\n\tPrivateRegistryAuthTypeUsernamePassword PrivateRegistryAuthType = \"username_password\"\n\tPrivateRegistryAuthTypeOIDCAzure        PrivateRegistryAuthType = \"oidc_azure\"\n\tPrivateRegistryAuthTypeOIDCAWS          PrivateRegistryAuthType = \"oidc_aws\"\n\tPrivateRegistryAuthTypeOIDCJFrog        PrivateRegistryAuthType = \"oidc_jfrog\"\n)\n```\n\n```go\ntype PrivateRegistryType string\n```\nPrivateRegistryType represents the type of private registry.\n\n```go\nconst (\n\tPrivateRegistryTypeMavenRepository    PrivateRegistryType = \"maven_repository\"\n\tPrivateRegistryTypeNugetFeed          PrivateRegistryType = \"nuget_feed\"\n\tPrivateRegistryTypeGoProxyServer      PrivateRegistryType = \"goproxy_server\"\n\tPrivateRegistryTypeNpmRegistry        PrivateRegistryType = \"npm_registry\"\n\tPrivateRegistryTypeRubygemsServer     PrivateRegistryType = \"rubygems_server\"\n\tPrivateRegistryTypeCargoRegistry      PrivateRegistryType = \"cargo_registry\"\n\tPrivateRegistryTypeComposerRepository PrivateRegistryType = \"composer_repository\"\n\tPrivateRegistryTypeDockerRegistry     PrivateRegistryType = \"docker_registry\"\n\tPrivateRegistryTypeGitSource          PrivateRegistryType = \"git_source\"\n\tPrivateRegistryTypeHelmRegistry       PrivateRegistryType = \"helm_registry\"\n\tPrivateRegistryTypeHexOrganization    PrivateRegistryType = \"hex_organization\"\n\tPrivateRegistryTypeHexRepository      PrivateRegistryType = \"hex_repository\"\n\tPrivateRegistryTypePubRepository      PrivateRegistryType = \"pub_repository\"\n\tPrivateRegistryTypePythonIndex        PrivateRegistryType = \"python_index\"\n\tPrivateRegistryTypeTerraformRegistry  PrivateRegistryType = \"terraform_registry\"\n)\n```\n\n```go\ntype PrivateRegistryVisibility string\n```\nPrivateRegistryVisibility represents the visibility of a private registry.\n\n```go\nconst (\n\tPrivateRegistryVisibilityPrivate  PrivateRegistryVisibility = \"private\"\n\tPrivateRegistryVisibilityAll      PrivateRegistryVisibility = \"all\"\n\tPrivateRegistryVisibilitySelected PrivateRegistryVisibility = \"selected\"\n)\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 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 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 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 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 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 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 ProjectV2 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\tState              *string                `json:\"state,omitempty\"`\n\tLatestStatusUpdate *ProjectV2StatusUpdate `json:\"latest_status_update,omitempty\"`\n\tIsTemplate         *bool                  `json:\"is_template,omitempty\"`\n\n\t// Fields migrated from the Project (classic) struct:\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\tOrganizationPermission *string `json:\"organization_permission,omitempty\"`\n\tPrivate                *bool   `json:\"private,omitempty\"`\n}\n```\nProjectV2 represents a v2 project.\n\n```go\nfunc (p *ProjectV2) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetClosedAt() Timestamp\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetColumnsURL() string\n```\nGetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *ProjectV2) GetDeletedAt() Timestamp\n```\nGetDeletedAt returns the DeletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetDeletedBy() *User\n```\nGetDeletedBy returns the DeletedBy field.\n\n```go\nfunc (p *ProjectV2) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetIsTemplate() bool\n```\nGetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetLatestStatusUpdate() *ProjectV2StatusUpdate\n```\nGetLatestStatusUpdate returns the LatestStatusUpdate field.\n\n```go\nfunc (p *ProjectV2) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetOrganizationPermission() string\n```\nGetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetOwner() *User\n```\nGetOwner returns the Owner field.\n\n```go\nfunc (p *ProjectV2) GetOwnerURL() string\n```\nGetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetPublic() bool\n```\nGetPublic returns the Public field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetShortDescription() string\n```\nGetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p ProjectV2) String() string\n```\n\n```go\ntype ProjectV2DraftIssue struct {\n\tID        *int64     `json:\"id,omitempty\"`\n\tNodeID    *string    `json:\"node_id,omitempty\"`\n\tTitle     *string    `json:\"title,omitempty\"`\n\tBody      *string    `json:\"body,omitempty\"`\n\tUser      *User      `json:\"user,omitempty\"`\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nProjectV2DraftIssue represents a draft issue in a project.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2DraftIssue) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype ProjectV2Event struct {\n\tAction     *string    `json:\"action,omitempty\"`\n\tProjectsV2 *ProjectV2 `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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects\\_v2](https://docs.github.com/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() *ProjectV2\n```\nGetProjectsV2 returns the ProjectsV2 field.\n\n```go\nfunc (p *ProjectV2Event) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype ProjectV2Field struct {\n\tID            *int64                       `json:\"id,omitempty\"`\n\tNodeID        *string                      `json:\"node_id,omitempty\"`\n\tName          *string                      `json:\"name,omitempty\"`\n\tDataType      *string                      `json:\"data_type,omitempty\"`\n\tProjectURL    *string                      `json:\"project_url,omitempty\"`\n\tOptions       []*ProjectV2FieldOption      `json:\"options,omitempty\"`\n\tConfiguration *ProjectV2FieldConfiguration `json:\"configuration,omitempty\"`\n\tCreatedAt     *Timestamp                   `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp                   `json:\"updated_at,omitempty\"`\n}\n```\nProjectV2Field represents a field in a GitHub Projects V2 project. Fields define the structure and data types for project items.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28)\n\n```go\nfunc (p *ProjectV2Field) GetConfiguration() *ProjectV2FieldConfiguration\n```\nGetConfiguration returns the Configuration field.\n\n```go\nfunc (p *ProjectV2Field) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetDataType() string\n```\nGetDataType returns the DataType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetOptions() []*ProjectV2FieldOption\n```\nGetOptions returns the Options slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetProjectURL() string\n```\nGetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2Field) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2FieldConfiguration struct {\n\tDuration   *int                       `json:\"duration,omitempty\"`   // The duration of the iteration field in seconds.\n\tStartDay   *int                       `json:\"start_day,omitempty\"`  // The start day for the iteration.\n\tIterations []*ProjectV2FieldIteration `json:\"iterations,omitempty\"` // The list of iterations associated with the configuration.\n}\n```\nProjectV2FieldConfiguration represents the configuration for a project field of type iteration. It defines settings such as duration and start day for iterations within the project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28)\n\n```go\nfunc (p *ProjectV2FieldConfiguration) GetDuration() int\n```\nGetDuration returns the Duration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldConfiguration) GetIterations() []*ProjectV2FieldIteration\n```\nGetIterations returns the Iterations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *ProjectV2FieldConfiguration) GetStartDay() int\n```\nGetStartDay returns the StartDay field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2FieldIteration struct {\n\tID        *string               `json:\"id,omitempty\"`         // The unique identifier for the iteration.\n\tTitle     *ProjectV2TextContent `json:\"title,omitempty\"`      // The title of the iteration.\n\tStartDate *string               `json:\"start_date,omitempty\"` // The start date of the iteration in ISO 8601 format.\n\tDuration  *int                  `json:\"duration,omitempty\"`   // The duration of the iteration in seconds.\n}\n```\nProjectV2FieldIteration represents an iteration within a project field of type iteration. It defines a specific time-bound period that can be associated with project items.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28)\n\n```go\nfunc (p *ProjectV2FieldIteration) GetDuration() int\n```\nGetDuration returns the Duration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldIteration) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldIteration) GetStartDate() string\n```\nGetStartDate returns the StartDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldIteration) GetTitle() *ProjectV2TextContent\n```\nGetTitle returns the Title field.\n\n```go\ntype ProjectV2FieldIterationConfiguration struct {\n\t// StartDate is the start date of the first iteration in ISO 8601 (YYYY-MM-DD) format.\n\tStartDate *string `json:\"start_date,omitempty\"`\n\t// Duration is the default duration for iterations in days.\n\tDuration *int `json:\"duration,omitempty\"`\n\t// Iterations holds zero or more iterations for the field.\n\tIterations []*ProjectV2FieldIterationConfigurationIteration `json:\"iterations,omitempty\"`\n}\n```\nProjectV2FieldIterationConfiguration represents the configuration to create an iteration project field.\n\n```go\nfunc (p *ProjectV2FieldIterationConfiguration) GetDuration() int\n```\nGetDuration returns the Duration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldIterationConfiguration) GetIterations() []*ProjectV2FieldIterationConfigurationIteration\n```\nGetIterations returns the Iterations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *ProjectV2FieldIterationConfiguration) GetStartDate() string\n```\nGetStartDate returns the StartDate field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2FieldIterationConfigurationIteration struct {\n\t// Title is the title of the iteration.\n\tTitle *string `json:\"title,omitempty\"`\n\t// StartDate is the start date of the iteration in ISO 8601 (YYYY-MM-DD) format.\n\tStartDate *string `json:\"start_date,omitempty\"`\n\t// Duration is the duration of the iteration in days.\n\tDuration *int `json:\"duration,omitempty\"`\n}\n```\nProjectV2FieldIterationConfigurationIteration represents a single iteration within a ProjectV2FieldIterationConfiguration.\n\n```go\nfunc (p *ProjectV2FieldIterationConfigurationIteration) GetDuration() int\n```\nGetDuration returns the Duration field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldIterationConfigurationIteration) GetStartDate() string\n```\nGetStartDate returns the StartDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldIterationConfigurationIteration) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2FieldOption struct {\n\tID          *string               `json:\"id,omitempty\"`          // The unique identifier for this option.\n\tColor       *string               `json:\"color,omitempty\"`       // The color associated with this option (e.g., \"blue\", \"red\").\n\tDescription *ProjectV2TextContent `json:\"description,omitempty\"` // An optional description for this option.\n\tName        *ProjectV2TextContent `json:\"name,omitempty\"`        // The display name of the option.\n}\n```\nProjectV2FieldOption represents an option for a project field of type single\\_select or multi\\_select. It defines the available choices that can be selected for dropdown-style fields.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28)\n\n```go\nfunc (p *ProjectV2FieldOption) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldOption) GetDescription() *ProjectV2TextContent\n```\nGetDescription returns the Description field.\n\n```go\nfunc (p *ProjectV2FieldOption) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldOption) GetName() *ProjectV2TextContent\n```\nGetName returns the Name field.\n\n```go\ntype ProjectV2FieldSingleSelectOption struct {\n\t// Name is the display name of the option.\n\tName string `json:\"name\"`\n\t// Color is the color associated with the option.\n\t// One of: BLUE, GRAY, GREEN, ORANGE, PINK, PURPLE, RED, YELLOW.\n\tColor *string `json:\"color,omitempty\"`\n\t// Description is an optional description of the option.\n\tDescription *string `json:\"description,omitempty\"`\n}\n```\nProjectV2FieldSingleSelectOption represents an option to create for a single\\_select project field.\n\n```go\nfunc (p *ProjectV2FieldSingleSelectOption) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldSingleSelectOption) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2FieldSingleSelectOption) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype ProjectV2Item struct {\n\tArchivedAt  *Timestamp                 `json:\"archived_at,omitempty\"`\n\tContent     *ProjectV2ItemContent      `json:\"content,omitempty\"`\n\tContentType *ProjectV2ItemContentType  `json:\"content_type,omitempty\"`\n\tCreatedAt   *Timestamp                 `json:\"created_at,omitempty\"`\n\tCreator     *User                      `json:\"creator,omitempty\"`\n\tFields      []*ProjectV2ItemFieldValue `json:\"fields,omitempty\"`\n\tID          *int64                     `json:\"id,omitempty\"`\n\tItemURL     *string                    `json:\"item_url,omitempty\"`\n\tNodeID      *string                    `json:\"node_id,omitempty\"`\n\tProjectURL  *string                    `json:\"project_url,omitempty\"`\n\tUpdatedAt   *Timestamp                 `json:\"updated_at,omitempty\"`\n\n\t// ProjectNodeID and ContentNodeID are used in ProjectsV2Item Webhook payloads.\n\t// They may not be populated in all API responses, but are included here for completeness.\n\t// See: https://docs.github.com/en/webhooks/webhook-events-and-payloads#projects_v2_item\n\tProjectNodeID *string `json:\"project_node_id,omitempty\"`\n\tContentNodeID *string `json:\"content_node_id,omitempty\"`\n}\n```\nProjectV2Item represents a full project item with field values. This type is used by Get, List, and Update operations which return field values. The Content field is automatically unmarshaled into the appropriate type based on ContentType.\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) GetContent() *ProjectV2ItemContent\n```\nGetContent returns the Content field.\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() *ProjectV2ItemContentType\n```\nGetContentType returns the ContentType field.\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) GetFields() []*ProjectV2ItemFieldValue\n```\nGetFields returns the Fields slice if it's non-nil, nil otherwise.\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) GetItemURL() string\n```\nGetItemURL returns the ItemURL 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) GetProjectURL() string\n```\nGetProjectURL returns the ProjectURL 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\nfunc (p *ProjectV2Item) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements custom unmarshaling for ProjectV2Item. It uses the ContentType field to determine how to unmarshal the Content field.\n\n```go\ntype ProjectV2ItemChange struct {\n\tArchivedAt *ArchivedAt `json:\"archived_at,omitempty\"`\n\tFieldValue *FieldValue `json:\"field_value,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\nfunc (p *ProjectV2ItemChange) GetFieldValue() *FieldValue\n```\nGetFieldValue returns the FieldValue field.\n\n```go\ntype ProjectV2ItemContent struct {\n\tIssue       *Issue               `json:\"-\"`\n\tPullRequest *PullRequest         `json:\"-\"`\n\tDraftIssue  *ProjectV2DraftIssue `json:\"-\"`\n}\n```\nProjectV2ItemContent is a union type that holds the content of a ProjectV2Item. The actual type depends on the ContentType field of the parent ProjectV2Item. Only one of the fields will be populated after unmarshaling.\n\n```go\nfunc (p *ProjectV2ItemContent) GetDraftIssue() *ProjectV2DraftIssue\n```\nGetDraftIssue returns the DraftIssue field.\n\n```go\nfunc (p *ProjectV2ItemContent) GetIssue() *Issue\n```\nGetIssue returns the Issue field.\n\n```go\nfunc (p *ProjectV2ItemContent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (c ProjectV2ItemContent) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements custom marshaling for ProjectV2ItemContent.\n\n```go\ntype ProjectV2ItemContentType string\n```\nProjectV2ItemContentType represents the type of content in a ProjectV2Item.\n\n```go\nconst (\n\tProjectV2ItemContentTypeDraftIssue  ProjectV2ItemContentType = \"DraftIssue\"\n\tProjectV2ItemContentTypeIssue       ProjectV2ItemContentType = \"Issue\"\n\tProjectV2ItemContentTypePullRequest ProjectV2ItemContentType = \"PullRequest\"\n)\n```\nThis is the set of possible content types for a ProjectV2Item.\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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects\\_v2\\_item](https://docs.github.com/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 ProjectV2ItemFieldValue struct {\n\tID       *int64  `json:\"id,omitempty\"`\n\tName     *string `json:\"name,omitempty\"`\n\tDataType *string `json:\"data_type,omitempty\"`\n\t// Value set for the field. The type depends on the field type:\n\t//   - text: string\n\t//   - number: float64\n\t//   - date: string (ISO 8601 date format, e.g. \"2023-06-23\") or null\n\t//   - single_select: object with \"id\", \"name\", \"color\", \"description\" fields or null\n\t//   - iteration: object with \"id\", \"title\", \"start_date\", \"duration\" fields or null\n\t//   - title: object with \"text\" field (read-only, reflects the item's title) or null\n\t//   - assignees: array of user objects with \"login\", \"id\", etc. or null\n\t//   - labels: array of label objects with \"id\", \"name\", \"color\", etc. or null\n\t//   - linked_pull_requests: array of pull request objects or null\n\t//   - milestone: milestone object with \"id\", \"title\", \"description\", etc. or null\n\t//   - repository: repository object with \"id\", \"name\", \"full_name\", etc. or null\n\t//   - reviewers: array of user objects or null\n\t//   - status: object with \"id\", \"name\", \"color\", \"description\" fields (same structure as single_select) or null\n\tValue any `json:\"value,omitempty\"`\n}\n```\nProjectV2ItemFieldValue represents a field value of a project item.\n\n```go\nfunc (p *ProjectV2ItemFieldValue) GetDataType() string\n```\nGetDataType returns the DataType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2ItemFieldValue) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2ItemFieldValue) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2ItemFieldValue) GetValue() any\n```\nGetValue returns the Value field.\n\n```go\ntype ProjectV2StatusUpdate struct {\n\tID            *int64     `json:\"id,omitempty\"`\n\tNodeID        *string    `json:\"node_id,omitempty\"`\n\tProjectNodeID *string    `json:\"project_node_id,omitempty\"`\n\tCreator       *User      `json:\"creator,omitempty\"`\n\tCreatedAt     *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt     *Timestamp `json:\"updated_at,omitempty\"`\n\t// Status can be one of: \"INACTIVE\", \"ON_TRACK\", \"AT_RISK\", \"OFF_TRACK\", \"COMPLETE\".\n\tStatus     *string `json:\"status,omitempty\"`\n\tStartDate  *string `json:\"start_date,omitempty\"`\n\tTargetDate *string `json:\"target_date,omitempty\"`\n\tBody       *string `json:\"body,omitempty\"`\n}\n```\nProjectV2StatusUpdate represents a status update for a project.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetCreator() *User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetProjectNodeID() string\n```\nGetProjectNodeID returns the ProjectNodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetStartDate() string\n```\nGetStartDate returns the StartDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetTargetDate() string\n```\nGetTargetDate returns the TargetDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2StatusUpdate) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2TextContent struct {\n\tHTML *string `json:\"html,omitempty\"`\n\tRaw  *string `json:\"raw,omitempty\"`\n}\n```\nProjectV2TextContent represents text content in a project field option or iteration. It includes both HTML and raw text representations.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28)\n\n```go\nfunc (p *ProjectV2TextContent) GetHTML() string\n```\nGetHTML returns the HTML field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2TextContent) GetRaw() string\n```\nGetRaw returns the Raw field if it's non-nil, zero value otherwise.\n\n```go\ntype ProjectV2View struct {\n\tID              int64                  `json:\"id\"`\n\tNumber          int                    `json:\"number\"`\n\tName            string                 `json:\"name\"`\n\tLayout          string                 `json:\"layout\"`\n\tNodeID          string                 `json:\"node_id\"`\n\tProjectURL      string                 `json:\"project_url\"`\n\tHTMLURL         string                 `json:\"html_url\"`\n\tCreator         User                   `json:\"creator\"`\n\tFilter          *string                `json:\"filter,omitempty\"`\n\tVisibleFields   []int64                `json:\"visible_fields\"`\n\tSortBy          []*ProjectV2ViewSortBy `json:\"sort_by\"`\n\tGroupBy         []int64                `json:\"group_by\"`\n\tVerticalGroupBy []int64                `json:\"vertical_group_by\"`\n\tCreatedAt       Timestamp              `json:\"created_at\"`\n\tUpdatedAt       Timestamp              `json:\"updated_at\"`\n}\n```\nProjectV2View represents a view in a project.\n\n```go\nfunc (p *ProjectV2View) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (p *ProjectV2View) GetCreator() User\n```\nGetCreator returns the Creator field.\n\n```go\nfunc (p *ProjectV2View) GetFilter() string\n```\nGetFilter returns the Filter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2View) GetGroupBy() []int64\n```\nGetGroupBy returns the GroupBy slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *ProjectV2View) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field.\n\n```go\nfunc (p *ProjectV2View) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (p *ProjectV2View) GetLayout() string\n```\nGetLayout returns the Layout field.\n\n```go\nfunc (p *ProjectV2View) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (p *ProjectV2View) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (p *ProjectV2View) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (p *ProjectV2View) GetProjectURL() string\n```\nGetProjectURL returns the ProjectURL field.\n\n```go\nfunc (p *ProjectV2View) GetSortBy() []*ProjectV2ViewSortBy\n```\nGetSortBy returns the SortBy slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *ProjectV2View) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field.\n\n```go\nfunc (p *ProjectV2View) GetVerticalGroupBy() []int64\n```\nGetVerticalGroupBy returns the VerticalGroupBy slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *ProjectV2View) GetVisibleFields() []int64\n```\nGetVisibleFields returns the VisibleFields slice if it's non-nil, nil otherwise.\n\n```go\ntype ProjectV2ViewSortBy struct {\n\t// FieldID is the ID of the field to sort by.\n\tFieldID *int64 `json:\"-\"`\n\t// Direction is the sort direction, one of \"asc\" or \"desc\".\n\tDirection *string `json:\"-\"`\n}\n```\nProjectV2ViewSortBy represents a single sort criterion of a project view.\n\nOn the wire it is encoded as a \\[field\\_id, direction] tuple rather than an object, so it has custom JSON (un)marshaling.\n\n```go\nfunc (p *ProjectV2ViewSortBy) GetDirection() string\n```\nGetDirection returns the Direction field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProjectV2ViewSortBy) GetFieldID() int64\n```\nGetFieldID returns the FieldID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s ProjectV2ViewSortBy) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements custom marshaling to the \\[field\\_id, direction] tuple.\n\n```go\nfunc (s *ProjectV2ViewSortBy) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements custom unmarshaling for the \\[field\\_id, direction] tuple. The field\\_id may be encoded as either a number or a string.\n\n```go\ntype ProjectsService service\n```\nProjectsService handles communication with the project V2 methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/projects?apiVersion=2022-11-28](https://docs.github.com/rest/projects?apiVersion=2022-11-28)\n\n```go\nfunc (s *ProjectsService) AddOrganizationProjectField(ctx context.Context, org string, projectNumber int, body AddProjectV2FieldRequest) (*ProjectV2Field, *Response, error)\n```\nAddOrganizationProjectField adds a field to an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#add-a-field-to-an-organization-owned-project](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#add-a-field-to-an-organization-owned-project)\n\n```go\nfunc (s *ProjectsService) AddOrganizationProjectItem(ctx context.Context, org string, projectNumber int, body AddProjectItemRequest) (*ProjectV2Item, *Response, error)\n```\nAddOrganizationProjectItem adds an issue or pull request item to an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#add-item-to-organization-owned-project](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#add-item-to-organization-owned-project)\n\n```go\nfunc (s *ProjectsService) AddUserProjectField(ctx context.Context, username string, projectNumber int, body AddProjectV2FieldRequest) (*ProjectV2Field, *Response, error)\n```\nAddUserProjectField adds a field to a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#add-field-to-user-owned-project](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#add-field-to-user-owned-project)\n\n```go\nfunc (s *ProjectsService) AddUserProjectItem(ctx context.Context, username string, projectNumber int, body AddProjectItemRequest) (*ProjectV2Item, *Response, error)\n```\nAddUserProjectItem adds an issue or pull request item to a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#add-item-to-user-owned-project](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#add-item-to-user-owned-project)\n\n```go\nfunc (s *ProjectsService) CreateOrganizationProjectDraftItem(ctx context.Context, org string, projectNumber int, body CreateProjectV2DraftItemRequest) (*ProjectV2Item, *Response, error)\n```\nCreateOrganizationProjectDraftItem creates a draft item in an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/drafts?apiVersion=2022-11-28#create-draft-item-for-organization-owned-project](https://docs.github.com/rest/projects/drafts?apiVersion=2022-11-28#create-draft-item-for-organization-owned-project)\n\n```go\nfunc (s *ProjectsService) CreateOrganizationProjectView(ctx context.Context, org string, projectNumber int, body CreateProjectV2ViewRequest) (*ProjectV2View, *Response, error)\n```\nCreateOrganizationProjectView creates a view for an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/views?apiVersion=2022-11-28#create-a-view-for-an-organization-owned-project](https://docs.github.com/rest/projects/views?apiVersion=2022-11-28#create-a-view-for-an-organization-owned-project)\n\n```go\nfunc (s *ProjectsService) CreateUserProjectDraftItem(ctx context.Context, userID int64, projectNumber int, body CreateProjectV2DraftItemRequest) (*ProjectV2Item, *Response, error)\n```\nCreateUserProjectDraftItem creates a draft item in a user owned project.\n\nNote: this endpoint identifies the user by their unique numeric ID (user\\_id) in the path, not by username, mirroring the GitHub REST API.\n\nGitHub API docs: [https://docs.github.com/rest/projects/drafts?apiVersion=2022-11-28#create-draft-item-for-user-owned-project](https://docs.github.com/rest/projects/drafts?apiVersion=2022-11-28#create-draft-item-for-user-owned-project)\n\n```go\nfunc (s *ProjectsService) CreateUserProjectView(ctx context.Context, userID int64, projectNumber int, body CreateProjectV2ViewRequest) (*ProjectV2View, *Response, error)\n```\nCreateUserProjectView creates a view for a user owned project.\n\nNote: this endpoint identifies the user by their unique numeric ID (user\\_id) in the path, not by username, mirroring the GitHub REST API.\n\nGitHub API docs: [https://docs.github.com/rest/projects/views?apiVersion=2022-11-28#create-a-view-for-a-user-owned-project](https://docs.github.com/rest/projects/views?apiVersion=2022-11-28#create-a-view-for-a-user-owned-project)\n\n```go\nfunc (s *ProjectsService) DeleteOrganizationProjectItem(ctx context.Context, org string, projectNumber int, itemID int64) (*Response, error)\n```\nDeleteOrganizationProjectItem deletes an item from an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#delete-project-item-for-organization](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#delete-project-item-for-organization)\n\n```go\nfunc (s *ProjectsService) DeleteUserProjectItem(ctx context.Context, username string, projectNumber int, itemID int64) (*Response, error)\n```\nDeleteUserProjectItem deletes an item from a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#delete-project-item-for-user](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#delete-project-item-for-user)\n\n```go\nfunc (s *ProjectsService) GetOrganizationProject(ctx context.Context, org string, projectNumber int) (*ProjectV2, *Response, error)\n```\nGetOrganizationProject gets a Projects V2 project for an organization by ID.\n\nGitHub API docs: [https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#get-project-for-organization](https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#get-project-for-organization)\n\n```go\nfunc (s *ProjectsService) GetOrganizationProjectField(ctx context.Context, org string, projectNumber int, fieldID int64) (*ProjectV2Field, *Response, error)\n```\nGetOrganizationProjectField gets a single project field from an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#get-project-field-for-organization](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#get-project-field-for-organization)\n\n```go\nfunc (s *ProjectsService) GetOrganizationProjectItem(ctx context.Context, org string, projectNumber int, itemID int64, opts *GetProjectItemOptions) (*ProjectV2Item, *Response, error)\n```\nGetOrganizationProjectItem gets a single item from an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#get-an-item-for-an-organization-owned-project](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#get-an-item-for-an-organization-owned-project)\n\n```go\nfunc (s *ProjectsService) GetUserProject(ctx context.Context, username string, projectNumber int) (*ProjectV2, *Response, error)\n```\nGetUserProject gets a Projects V2 project for a user by ID.\n\nGitHub API docs: [https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#get-project-for-user](https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#get-project-for-user)\n\n```go\nfunc (s *ProjectsService) GetUserProjectField(ctx context.Context, user string, projectNumber int, fieldID int64) (*ProjectV2Field, *Response, error)\n```\nGetUserProjectField gets a single project field from a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#get-project-field-for-user](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#get-project-field-for-user)\n\n```go\nfunc (s *ProjectsService) GetUserProjectItem(ctx context.Context, username string, projectNumber int, itemID int64, opts *GetProjectItemOptions) (*ProjectV2Item, *Response, error)\n```\nGetUserProjectItem gets a single item from a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#get-an-item-for-a-user-owned-project](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#get-an-item-for-a-user-owned-project)\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectFields(ctx context.Context, org string, projectNumber int, opts *ListProjectsOptions) ([]*ProjectV2Field, *Response, error)\n```\nListOrganizationProjectFields lists Projects V2 for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#list-project-fields-for-organization](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#list-project-fields-for-organization)\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectFieldsIter(ctx context.Context, org string, projectNumber int, opts *ListProjectsOptions) iter.Seq2[*ProjectV2Field, error]\n```\nListOrganizationProjectFieldsIter returns an iterator that paginates through all results of ListOrganizationProjectFields.\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectItems(ctx context.Context, org string, projectNumber int, opts *ListProjectItemsOptions) ([]*ProjectV2Item, *Response, error)\n```\nListOrganizationProjectItems lists items for an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-an-organization-owned-project](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-an-organization-owned-project)\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectItemsIter(ctx context.Context, org string, projectNumber int, opts *ListProjectItemsOptions) iter.Seq2[*ProjectV2Item, error]\n```\nListOrganizationProjectItemsIter returns an iterator that paginates through all results of ListOrganizationProjectItems.\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectViewItems(ctx context.Context, org string, projectNumber, viewNumber int, opts *ListProjectItemsOptions) ([]*ProjectV2Item, *Response, error)\n```\nListOrganizationProjectViewItems lists the items of a view in an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-an-organization-project-view](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-an-organization-project-view)\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectViewItemsIter(ctx context.Context, org string, projectNumber int, viewNumber int, opts *ListProjectItemsOptions) iter.Seq2[*ProjectV2Item, error]\n```\nListOrganizationProjectViewItemsIter returns an iterator that paginates through all results of ListOrganizationProjectViewItems.\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjects(ctx context.Context, org string, opts *ListProjectsOptions) ([]*ProjectV2, *Response, error)\n```\nListOrganizationProjects lists Projects V2 for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#list-projects-for-organization](https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#list-projects-for-organization)\n\n```go\nfunc (s *ProjectsService) ListOrganizationProjectsIter(ctx context.Context, org string, opts *ListProjectsOptions) iter.Seq2[*ProjectV2, error]\n```\nListOrganizationProjectsIter returns an iterator that paginates through all results of ListOrganizationProjects.\n\n```go\nfunc (s *ProjectsService) ListUserProjectFields(ctx context.Context, user string, projectNumber int, opts *ListProjectsOptions) ([]*ProjectV2Field, *Response, error)\n```\nListUserProjectFields lists Projects V2 for a user.\n\nGitHub API docs: [https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#list-project-fields-for-user](https://docs.github.com/rest/projects/fields?apiVersion=2022-11-28#list-project-fields-for-user)\n\n```go\nfunc (s *ProjectsService) ListUserProjectFieldsIter(ctx context.Context, user string, projectNumber int, opts *ListProjectsOptions) iter.Seq2[*ProjectV2Field, error]\n```\nListUserProjectFieldsIter returns an iterator that paginates through all results of ListUserProjectFields.\n\n```go\nfunc (s *ProjectsService) ListUserProjectItems(ctx context.Context, username string, projectNumber int, opts *ListProjectItemsOptions) ([]*ProjectV2Item, *Response, error)\n```\nListUserProjectItems lists items for a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-a-user-owned-project](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-a-user-owned-project)\n\n```go\nfunc (s *ProjectsService) ListUserProjectItemsIter(ctx context.Context, username string, projectNumber int, opts *ListProjectItemsOptions) iter.Seq2[*ProjectV2Item, error]\n```\nListUserProjectItemsIter returns an iterator that paginates through all results of ListUserProjectItems.\n\n```go\nfunc (s *ProjectsService) ListUserProjectViewItems(ctx context.Context, username string, projectNumber, viewNumber int, opts *ListProjectItemsOptions) ([]*ProjectV2Item, *Response, error)\n```\nListUserProjectViewItems lists the items of a view in a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-a-user-project-view](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#list-items-for-a-user-project-view)\n\n```go\nfunc (s *ProjectsService) ListUserProjectViewItemsIter(ctx context.Context, username string, projectNumber int, viewNumber int, opts *ListProjectItemsOptions) iter.Seq2[*ProjectV2Item, error]\n```\nListUserProjectViewItemsIter returns an iterator that paginates through all results of ListUserProjectViewItems.\n\n```go\nfunc (s *ProjectsService) ListUserProjects(ctx context.Context, username string, opts *ListProjectsOptions) ([]*ProjectV2, *Response, error)\n```\nListUserProjects lists Projects V2 for a user.\n\nGitHub API docs: [https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#list-projects-for-user](https://docs.github.com/rest/projects/projects?apiVersion=2022-11-28#list-projects-for-user)\n\n```go\nfunc (s *ProjectsService) ListUserProjectsIter(ctx context.Context, username string, opts *ListProjectsOptions) iter.Seq2[*ProjectV2, error]\n```\nListUserProjectsIter returns an iterator that paginates through all results of ListUserProjects.\n\n```go\nfunc (s *ProjectsService) UpdateOrganizationProjectItem(ctx context.Context, org string, projectNumber int, itemID int64, body UpdateProjectItemRequest) (*ProjectV2Item, *Response, error)\n```\nUpdateOrganizationProjectItem updates an item in an organization owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#update-project-item-for-organization](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#update-project-item-for-organization)\n\n```go\nfunc (s *ProjectsService) UpdateUserProjectItem(ctx context.Context, username string, projectNumber int, itemID int64, body UpdateProjectItemRequest) (*ProjectV2Item, *Response, error)\n```\nUpdateUserProjectItem updates an item in a user owned project.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#update-project-item-for-user](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#update-project-item-for-user)\n\n```go\ntype PropertyValueType string\n```\nPropertyValueType represents the type of a custom property value.\n\n```go\nconst (\n\tPropertyValueTypeString       PropertyValueType = \"string\"\n\tPropertyValueTypeSingleSelect PropertyValueType = \"single_select\"\n\tPropertyValueTypeMultiSelect  PropertyValueType = \"multi_select\"\n\tPropertyValueTypeTrueFalse    PropertyValueType = \"true_false\"\n\tPropertyValueTypeURL          PropertyValueType = \"url\"\n)\n```\nValid values for CustomProperty.ValueType.\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\tRequireLastPushApproval                  *RequireLastPushApprovalChanges                  `json:\"require_last_push_approval,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) GetRequireLastPushApproval() *RequireLastPushApprovalChanges\n```\nGetRequireLastPushApproval returns the RequireLastPushApproval 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) GetEnforceAdmins() bool\n```\nGetEnforceAdmins returns the EnforceAdmins field.\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\tPreventSelfReview *bool               `json:\"prevent_self_review,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) GetPreventSelfReview() bool\n```\nGetPreventSelfReview returns the PreventSelfReview field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *ProtectionRule) GetReviewers() []*RequiredReviewer\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil 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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#public](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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 PublicIPUsage struct {\n\tMaximum      int64 `json:\"maximum\"`       // The maximum number of static public IP addresses that can be used for Hosted Runners. Example: 50\n\tCurrentUsage int64 `json:\"current_usage\"` // The current number of static public IP addresses in use by Hosted Runners. Example: 17\n}\n```\nPublicIPUsage provides details of static public IP limits for GitHub-hosted runners.\n\n```go\nfunc (p *PublicIPUsage) GetCurrentUsage() int64\n```\nGetCurrentUsage returns the CurrentUsage field.\n\n```go\nfunc (p *PublicIPUsage) GetMaximum() int64\n```\nGetMaximum returns the Maximum field.\n\n```go\ntype PublicKey struct {\n\t// KeyID is the identifier for the key.\n\tKeyID *string `json:\"key_id\"`\n\t// Key is the Base64 encoded public key.\n\tKey *string `json:\"key\"`\n\t// ID is the unique identifier of the key.\n\tID *int64 `json:\"id,omitempty\"`\n\t// URL is the API URL for the key.\n\tURL *string `json:\"url,omitempty\"`\n\t// Title is the title of the key.\n\tTitle *string `json:\"title,omitempty\"`\n\t// CreatedAt is the time when the key was created.\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n}\n```\nPublicKey represents the public key that should be used to encrypt secrets.\n\n```go\nfunc (p *PublicKey) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PublicKey) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\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) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PublicKey) GetURL() string\n```\nGetURL returns the URL 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 PublishCodespaceRequest struct {\n\t// Name represents the name of the new repository.\n\tName *string `json:\"name,omitempty\"`\n\t// Private represents whether the new repository is private. Defaults to false.\n\tPrivate *bool `json:\"private,omitempty\"`\n}\n```\nPublishCodespaceRequest represents a request to create a repository from an unpublished codespace.\n\n```go\nfunc (p *PublishCodespaceRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PublishCodespaceRequest) GetPrivate() bool\n```\nGetPrivate returns the Private field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequest struct {\n\tID                *int64     `json:\"id,omitempty\"`\n\tNumber            *int       `json:\"number,omitempty\"`\n\tState             *string    `json:\"state,omitempty\"`\n\tLocked            *bool      `json:\"locked,omitempty\"`\n\tTitle             *string    `json:\"title,omitempty\"`\n\tBody              *string    `json:\"body,omitempty\"`\n\tCreatedAt         *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\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\t// Deprecated: GitHub REST API version 2026-03-10 removed the singular assignee field.\n\t// Use Assignees instead.\n\tAssignee  *User      `json:\"assignee,omitempty\"`\n\tAssignees []*User    `json:\"assignees,omitempty\"`\n\tMilestone *Milestone `json:\"milestone,omitempty\"`\n\t// AuthorAssociation is the pull request author's relationship to the repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Pull Requests REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request\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// These fields are not populated by the List operation.\n\tMerged              *bool   `json:\"merged,omitempty\"`\n\tMergeable           *bool   `json:\"mergeable,omitempty\"`\n\tMergeableState      *string `json:\"mergeable_state,omitempty\"`\n\tRebaseable          *bool   `json:\"rebaseable,omitempty\"`\n\tMergedBy            *User   `json:\"merged_by,omitempty\"`\n\tMergeCommitSHA      *string `json:\"merge_commit_sha,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\tMaintainerCanModify *bool   `json:\"maintainer_can_modify,omitempty\"`\n\tReviewComments      *int    `json:\"review_comments,omitempty\"`\n\n\t// RequestedTeams is populated as part of the PullRequestEvent.\n\t// See, https://docs.github.com/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\tStack *PullRequestStack  `json:\"stack,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) GetAssignees() []*User\n```\nGetAssignees returns the Assignees slice if it's non-nil, nil otherwise.\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) GetLabels() []*Label\n```\nGetLabels returns the Labels slice if it's non-nil, nil 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) GetRequestedReviewers() []*User\n```\nGetRequestedReviewers returns the RequestedReviewers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PullRequest) GetRequestedTeams() []*Team\n```\nGetRequestedTeams returns the RequestedTeams slice if it's non-nil, nil 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) GetStack() *PullRequestStack\n```\nGetStack returns the Stack field.\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 PullRequestAddToStackRequest struct {\n\t// PullRequests is an ordered list of pull request numbers to append from the current top upward.\n\tPullRequests []int `json:\"pull_requests\"`\n}\n```\nPullRequestAddToStackRequest represents a request to append pull requests to a stack.\n\n```go\nfunc (p *PullRequestAddToStackRequest) GetPullRequests() []int\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\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 PullRequestBranchRule struct {\n\tBranchRuleMetadata\n\tParameters PullRequestRuleParameters `json:\"parameters\"`\n}\n```\nPullRequestBranchRule represents a pull request branch rule.\n\n```go\nfunc (p *PullRequestBranchRule) GetParameters() PullRequestRuleParameters\n```\nGetParameters returns the Parameters field.\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\tBodyHTML            *string    `json:\"body_html,omitempty\"`\n\tBodyText            *string    `json:\"body_text,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\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Pull Request Comments REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#get-a-review-comment-for-a-pull-request\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\tLinks             *PullRequestCommentLinks `json:\"_links,omitempty\"`\n\t// Can be one of: LINE, FILE from https://docs.github.com/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) GetBodyHTML() string\n```\nGetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestComment) GetBodyText() string\n```\nGetBodyText returns the BodyText 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) GetLinks() *PullRequestCommentLinks\n```\nGetLinks returns the Links field.\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 PullRequestCommentLinks struct {\n\tSelf        *PRLink `json:\"self,omitempty\"`\n\tHTML        *PRLink `json:\"html,omitempty\"`\n\tPullRequest *PRLink `json:\"pull_request,omitempty\"`\n}\n```\nPullRequestCommentLinks represents the \"\\_links\" object in a pull request review comment.\n\n```go\nfunc (p *PullRequestCommentLinks) GetHTML() *PRLink\n```\nGetHTML returns the HTML field.\n\n```go\nfunc (p *PullRequestCommentLinks) GetPullRequest() *PRLink\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestCommentLinks) GetSelf() *PRLink\n```\nGetSelf returns the Self field.\n\n```go\ntype PullRequestCreateStackRequest struct {\n\t// PullRequests is an ordered list of pull request numbers from the bottom of the stack to the top.\n\tPullRequests []int `json:\"pull_requests\"`\n}\n```\nPullRequestCreateStackRequest represents a request to create a pull request stack.\n\n```go\nfunc (p *PullRequestCreateStackRequest) GetPullRequests() []int\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\n\n```go\ntype PullRequestDismissReviewRequest struct {\n\tMessage string  `json:\"message\"`\n\tEvent   *string `json:\"event,omitempty\"`\n}\n```\nPullRequestDismissReviewRequest represents a request to dismiss a review.\n\n```go\nfunc (p *PullRequestDismissReviewRequest) GetEvent() string\n```\nGetEvent returns the Event field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestDismissReviewRequest) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\nfunc (r PullRequestDismissReviewRequest) 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\tReason        *string       `json:\"reason,omitempty\"` // Populated in \"dequeued\" 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\t// The following will be populated if the event was performed by an App\n\tPerformedViaGithubApp *App `json:\"performed_via_github_app,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/developers/webhooks-and-events/github-event-types#pullrequestevent](https://docs.github.com/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) GetPerformedViaGithubApp() *App\n```\nGetPerformedViaGithubApp returns the PerformedViaGithubApp field.\n\n```go\nfunc (p *PullRequestEvent) GetPullRequest() *PullRequest\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (p *PullRequestEvent) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\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\tMergedAt *Timestamp `json:\"merged_at,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) GetMergedAt() Timestamp\n```\nGetMergedAt returns the MergedAt 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\nfunc (p *PullRequestListCommentsOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (p *PullRequestListCommentsOptions) GetSince() time.Time\n```\nGetSince returns the Since field.\n\n```go\nfunc (p *PullRequestListCommentsOptions) GetSort() string\n```\nGetSort returns the Sort field.\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\nfunc (p *PullRequestListOptions) GetBase() string\n```\nGetBase returns the Base field.\n\n```go\nfunc (p *PullRequestListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (p *PullRequestListOptions) GetHead() string\n```\nGetHead returns the Head field.\n\n```go\nfunc (p *PullRequestListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (p *PullRequestListOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype PullRequestListStacksOptions struct {\n\t// PullRequest filters stacks to the stack containing this pull request number.\n\tPullRequest int `url:\"pull_request,omitempty\"`\n\n\tListOptions\n}\n```\nPullRequestListStacksOptions specifies the optional parameters to the PullRequestsService.ListStacks method.\n\n```go\nfunc (p *PullRequestListStacksOptions) GetPullRequest() int\n```\nGetPullRequest returns the PullRequest field.\n\n```go\ntype PullRequestMergeAsyncDetails struct {\n\tMessage         *string `json:\"message,omitempty\"`\n\tUUID            *string `json:\"uuid,omitempty\"`\n\tMergeMethod     *string `json:\"merge_method,omitempty\"`\n\tMergeAction     *string `json:\"merge_action,omitempty\"`\n\tExpectedHeadSHA *string `json:\"expected_head_sha,omitempty\"`\n\tSHA             *string `json:\"sha,omitempty\"`\n}\n```\nPullRequestMergeAsyncDetails represents details for the current state of a PullRequestMergeAsyncResult.\n\n```go\nfunc (p *PullRequestMergeAsyncDetails) GetExpectedHeadSHA() string\n```\nGetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncDetails) GetMergeAction() string\n```\nGetMergeAction returns the MergeAction field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncDetails) GetMergeMethod() string\n```\nGetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncDetails) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncDetails) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncDetails) GetUUID() string\n```\nGetUUID returns the UUID field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestMergeAsyncRequest struct {\n\t// MergeMethod is the merge method: merge, squash, or rebase. Not supported on merge_queue actions.\n\tMergeMethod *string `json:\"merge_method,omitempty\"`\n\t// MergeAction is how to merge: default, direct_merge, or merge_queue.\n\tMergeAction *string `json:\"merge_action,omitempty\"`\n\t// CommitTitle is the title for the automatic commit message. Not supported on merge_queue actions.\n\tCommitTitle *string `json:\"commit_title,omitempty\"`\n\t// CommitMessage is extra detail to append to the automatic commit message. Not supported on merge_queue actions.\n\tCommitMessage *string `json:\"commit_message,omitempty\"`\n\t// SHA that the pull request head must match to allow the merge.\n\tSHA *string `json:\"sha,omitempty\"`\n}\n```\nPullRequestMergeAsyncRequest represents a request to merge a pull request asynchronously.\n\n```go\nfunc (p *PullRequestMergeAsyncRequest) GetCommitMessage() string\n```\nGetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncRequest) GetCommitTitle() string\n```\nGetCommitTitle returns the CommitTitle field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncRequest) GetMergeAction() string\n```\nGetMergeAction returns the MergeAction field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncRequest) GetMergeMethod() string\n```\nGetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestMergeAsyncRequest) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestMergeAsyncResult struct {\n\tStatus  *string                       `json:\"status,omitempty\"`\n\tDetails *PullRequestMergeAsyncDetails `json:\"details,omitempty\"`\n}\n```\nPullRequestMergeAsyncResult represents the current state of an asynchronous merge request.\n\n```go\nfunc (p *PullRequestMergeAsyncResult) GetDetails() *PullRequestMergeAsyncDetails\n```\nGetDetails returns the Details field.\n\n```go\nfunc (p *PullRequestMergeAsyncResult) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestMergeMethod string\n```\nPullRequestMergeMethod is used in PullRequestRuleParameters, where the GitHub API expects lowercase merge method values: \"merge\", \"rebase\", \"squash\".\n\nNOTE: GitHub's API inconsistently uses different casing for the same logical values across different rules.\n\nTODO: Unify with MergeQueueMergeMethod once the GitHub API uses consistent casing.\n\n```go\nconst (\n\tPullRequestMergeMethodMerge  PullRequestMergeMethod = \"merge\"\n\tPullRequestMergeMethodRebase PullRequestMergeMethod = \"rebase\"\n\tPullRequestMergeMethodSquash PullRequestMergeMethod = \"squash\"\n)\n```\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\nfunc (p *PullRequestOptions) GetCommitTitle() string\n```\nGetCommitTitle returns the CommitTitle field.\n\n```go\nfunc (p *PullRequestOptions) GetDontDefaultIfBlank() bool\n```\nGetDontDefaultIfBlank returns the DontDefaultIfBlank field.\n\n```go\nfunc (p *PullRequestOptions) GetMergeMethod() string\n```\nGetMergeMethod returns the MergeMethod field.\n\n```go\nfunc (p *PullRequestOptions) GetSHA() string\n```\nGetSHA returns the SHA field.\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 review author's relationship to the repository.\n\t// Possible values are \"COLLABORATOR\", \"CONTRIBUTOR\", \"FIRST_TIMER\", \"FIRST_TIME_CONTRIBUTOR\", \"MEMBER\", \"OWNER\", or \"NONE\".\n\t//\n\t// Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.\n\t// Use the Pull Request Reviews REST API endpoint to retrieve this information.\n\t// See: https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#get-a-review-for-a-pull-request\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#pull\\_request\\_review\\_comment](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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 PullRequestReviewEvent struct {\n\t// Action is the action that was performed on the review.\n\t// Possible values are: \"submitted\", \"edited\", \"dismissed\".\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\t// Changes is populated in \"edited\" event deliveries.\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```\nPullRequestReviewEvent is triggered when a review on a pull request is submitted, edited, or dismissed. The Webhook event name is \"pull\\_request\\_review\".\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#pull\\_request\\_review](https://docs.github.com/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) GetChanges() *EditChange\n```\nGetChanges returns the Changes field.\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) GetComments() []*DraftReviewComment\n```\nGetComments returns the Comments slice if it's non-nil, nil 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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#pull\\_request\\_review\\_thread](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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) GetDismissStaleReviews() bool\n```\nGetDismissStaleReviews returns the DismissStaleReviews field.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions\n```\nGetDismissalRestrictions returns the DismissalRestrictions field.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetRequireCodeOwnerReviews() bool\n```\nGetRequireCodeOwnerReviews returns the RequireCodeOwnerReviews field.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetRequireLastPushApproval() bool\n```\nGetRequireLastPushApproval returns the RequireLastPushApproval field.\n\n```go\nfunc (p *PullRequestReviewsEnforcement) GetRequiredApprovingReviewCount() int\n```\nGetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount 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) GetDismissStaleReviews() bool\n```\nGetDismissStaleReviews returns the DismissStaleReviews field.\n\n```go\nfunc (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest\n```\nGetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field.\n\n```go\nfunc (p *PullRequestReviewsEnforcementRequest) GetRequireCodeOwnerReviews() bool\n```\nGetRequireCodeOwnerReviews returns the RequireCodeOwnerReviews 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\nfunc (p *PullRequestReviewsEnforcementRequest) GetRequiredApprovingReviewCount() int\n```\nGetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field.\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\nfunc (p *PullRequestReviewsEnforcementUpdate) GetRequiredApprovingReviewCount() int\n```\nGetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field.\n\n```go\ntype PullRequestRuleParameters struct {\n\tAllowedMergeMethods            []PullRequestMergeMethod   `json:\"allowed_merge_methods,omitempty\"`\n\tDismissalRestriction           *DismissalRestriction      `json:\"dismissal_restriction,omitempty\"`\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\tRequiredReviewers              []*RulesetRequiredReviewer `json:\"required_reviewers,omitempty\"`\n\tRequiredReviewThreadResolution bool                       `json:\"required_review_thread_resolution\"`\n}\n```\nPullRequestRuleParameters represents the pull\\_request rule parameters.\n\n```go\nfunc (p *PullRequestRuleParameters) GetAllowedMergeMethods() []PullRequestMergeMethod\n```\nGetAllowedMergeMethods returns the AllowedMergeMethods slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PullRequestRuleParameters) GetDismissStaleReviewsOnPush() bool\n```\nGetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field.\n\n```go\nfunc (p *PullRequestRuleParameters) GetDismissalRestriction() *DismissalRestriction\n```\nGetDismissalRestriction returns the DismissalRestriction field.\n\n```go\nfunc (p *PullRequestRuleParameters) GetRequireCodeOwnerReview() bool\n```\nGetRequireCodeOwnerReview returns the RequireCodeOwnerReview field.\n\n```go\nfunc (p *PullRequestRuleParameters) GetRequireLastPushApproval() bool\n```\nGetRequireLastPushApproval returns the RequireLastPushApproval field.\n\n```go\nfunc (p *PullRequestRuleParameters) GetRequiredApprovingReviewCount() int\n```\nGetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field.\n\n```go\nfunc (p *PullRequestRuleParameters) GetRequiredReviewThreadResolution() bool\n```\nGetRequiredReviewThreadResolution returns the RequiredReviewThreadResolution field.\n\n```go\nfunc (p *PullRequestRuleParameters) GetRequiredReviewers() []*RulesetRequiredReviewer\n```\nGetRequiredReviewers returns the RequiredReviewers slice if it's non-nil, nil otherwise.\n\n```go\ntype PullRequestStack struct {\n\t// Base is the base of the stack: the branch the entire stack ultimately targets.\n\tBase *PullRequestStackBase `json:\"base\"`\n\t// Size is the total number of pull requests in the stack.\n\tSize *int `json:\"size,omitempty\"`\n\t// Position is the one-based position of this pull request within the stack,\n\t// where 1 is the bottom of the stack.\n\tPosition *int `json:\"position,omitempty\"`\n\t// ID is the ID of the stack that this pull request belongs to.\n\tID *int64 `json:\"id,omitempty\"`\n\t// Number is the number of the stack that this pull request belongs to.\n\tNumber *int `json:\"number,omitempty\"`\n}\n```\nPullRequestStack represents the stack a pull request belongs to, in repositories that use stacked pull requests. Base reports the branch the entire stack ultimately targets, which can differ from the pull request's own Base branch (the branch below it in the stack).\n\n```go\nfunc (p *PullRequestStack) GetBase() *PullRequestStackBase\n```\nGetBase returns the Base field.\n\n```go\nfunc (p *PullRequestStack) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestStack) GetNumber() int\n```\nGetNumber returns the Number field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestStack) GetPosition() int\n```\nGetPosition returns the Position field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestStack) GetSize() int\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\ntype PullRequestStackBase struct {\n\tRef string `json:\"ref\"`\n\tSHA string `json:\"sha\"`\n}\n```\nPullRequestStackBase represents the base of a stacked pull request's stack: the branch the entire stack ultimately targets.\n\n```go\nfunc (p *PullRequestStackBase) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (p *PullRequestStackBase) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\ntype PullRequestStackBranch struct {\n\t// Ref is the name of the branch.\n\tRef string `json:\"ref\"`\n\t// SHA is the SHA of the most recent commit on the branch.\n\tSHA string `json:\"sha\"`\n\t// Repo is the repository the branch belongs to.\n\tRepo *PullRequestStackRepository `json:\"repo\"`\n}\n```\nPullRequestStackBranch represents the head or base branch of a pull request returned by the stacked pull request endpoints.\n\n```go\nfunc (p *PullRequestStackBranch) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (p *PullRequestStackBranch) GetRepo() *PullRequestStackRepository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (p *PullRequestStackBranch) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\ntype PullRequestStackDetails struct {\n\t// ID is the ID of the stack.\n\tID int64 `json:\"id\"`\n\t// Number is the number of the stack.\n\tNumber int `json:\"number\"`\n\t// NodeID is the global node ID of the stack.\n\tNodeID string `json:\"node_id\"`\n\t// URL is the API URL of the stack.\n\tURL string `json:\"url\"`\n\t// Base is the branch the entire stack ultimately targets.\n\tBase *PullRequestStackRef `json:\"base\"`\n\t// Open reports whether the stack contains any open pull requests.\n\tOpen bool `json:\"open\"`\n\t// CreatedAt is the time the stack was created.\n\tCreatedAt Timestamp `json:\"created_at\"`\n\t// PullRequests contains the pull requests in the stack, from bottom to top.\n\tPullRequests []*PullRequestStackEntry `json:\"pull_requests\"`\n}\n```\nPullRequestStackDetails represents a pull request stack returned by PullRequestsService.CreateStack, GetStack, AddToStack, and Unstack.\n\n```go\nfunc (p *PullRequestStackDetails) GetBase() *PullRequestStackRef\n```\nGetBase returns the Base field.\n\n```go\nfunc (p *PullRequestStackDetails) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (p *PullRequestStackDetails) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (p *PullRequestStackDetails) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (p *PullRequestStackDetails) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (p *PullRequestStackDetails) GetOpen() bool\n```\nGetOpen returns the Open field.\n\n```go\nfunc (p *PullRequestStackDetails) GetPullRequests() []*PullRequestStackEntry\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PullRequestStackDetails) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\ntype PullRequestStackEntry struct {\n\t// ID is the ID of the pull request.\n\tID int64 `json:\"id\"`\n\t// Number is the number of the pull request.\n\tNumber int `json:\"number\"`\n\t// NodeID is the global node ID of the pull request.\n\tNodeID string `json:\"node_id\"`\n\t// URL is the API URL of the pull request.\n\tURL string `json:\"url\"`\n\t// HTMLURL is the web URL of the pull request.\n\tHTMLURL string `json:\"html_url\"`\n\t// Title is the title of the pull request.\n\tTitle string `json:\"title\"`\n\t// State is the state of the pull request. Possible values are: \"open\" and \"closed\".\n\tState string `json:\"state\"`\n\t// Draft reports whether the pull request is a draft.\n\tDraft bool `json:\"draft\"`\n\t// MergedAt is the time the pull request was merged, or nil if it is unmerged.\n\tMergedAt *Timestamp `json:\"merged_at\"`\n\t// User is the author of the pull request.\n\tUser *User `json:\"user\"`\n\t// Head is the branch the pull request merges from.\n\tHead *PullRequestStackBranch `json:\"head\"`\n\t// Base is the branch the pull request merges into, which is the pull\n\t// request below it in the stack.\n\tBase *PullRequestStackBranch `json:\"base\"`\n}\n```\nPullRequestStackEntry represents a pull request in a stack returned by PullRequestsService.CreateStack, GetStack, AddToStack, and Unstack.\n\n```go\nfunc (p *PullRequestStackEntry) GetBase() *PullRequestStackBranch\n```\nGetBase returns the Base field.\n\n```go\nfunc (p *PullRequestStackEntry) GetDraft() bool\n```\nGetDraft returns the Draft field.\n\n```go\nfunc (p *PullRequestStackEntry) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field.\n\n```go\nfunc (p *PullRequestStackEntry) GetHead() *PullRequestStackBranch\n```\nGetHead returns the Head field.\n\n```go\nfunc (p *PullRequestStackEntry) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (p *PullRequestStackEntry) GetMergedAt() Timestamp\n```\nGetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestStackEntry) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (p *PullRequestStackEntry) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (p *PullRequestStackEntry) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (p *PullRequestStackEntry) GetTitle() string\n```\nGetTitle returns the Title field.\n\n```go\nfunc (p *PullRequestStackEntry) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\nfunc (p *PullRequestStackEntry) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype PullRequestStackMinimal struct {\n\t// ID is the ID of the stack.\n\tID int64 `json:\"id\"`\n\t// Number is the number of the stack.\n\tNumber int `json:\"number\"`\n\t// NodeID is the global node ID of the stack.\n\tNodeID string `json:\"node_id\"`\n\t// URL is the API URL of the stack.\n\tURL string `json:\"url\"`\n\t// Base is the branch the entire stack ultimately targets.\n\tBase *PullRequestStackRef `json:\"base\"`\n\t// Open reports whether the stack contains any open pull requests.\n\tOpen bool `json:\"open\"`\n\t// CreatedAt is the time the stack was created.\n\tCreatedAt Timestamp `json:\"created_at\"`\n\t// PullRequests contains the pull requests in the stack, from bottom to top.\n\tPullRequests []*PullRequestStackMinimalEntry `json:\"pull_requests\"`\n}\n```\nPullRequestStackMinimal represents a pull request stack returned by PullRequestsService.ListStacks. This endpoint returns less detail about each pull request in the stack than PullRequestStackDetails carries.\n\n```go\nfunc (p *PullRequestStackMinimal) GetBase() *PullRequestStackRef\n```\nGetBase returns the Base field.\n\n```go\nfunc (p *PullRequestStackMinimal) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (p *PullRequestStackMinimal) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (p *PullRequestStackMinimal) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (p *PullRequestStackMinimal) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (p *PullRequestStackMinimal) GetOpen() bool\n```\nGetOpen returns the Open field.\n\n```go\nfunc (p *PullRequestStackMinimal) GetPullRequests() []*PullRequestStackMinimalEntry\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\n\n```go\nfunc (p *PullRequestStackMinimal) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\ntype PullRequestStackMinimalEntry struct {\n\t// Number is the number of the pull request.\n\tNumber int `json:\"number\"`\n\t// State is the state of the pull request. Possible values are: \"open\" and \"closed\".\n\tState string `json:\"state\"`\n\t// Draft reports whether the pull request is a draft.\n\tDraft bool `json:\"draft\"`\n\t// MergedAt is the time the pull request was merged, or nil if it is unmerged.\n\tMergedAt *Timestamp `json:\"merged_at\"`\n\t// Head is the branch the pull request merges from.\n\tHead *PullRequestStackMinimalHead `json:\"head\"`\n}\n```\nPullRequestStackMinimalEntry represents a pull request in a stack returned by PullRequestsService.ListStacks.\n\n```go\nfunc (p *PullRequestStackMinimalEntry) GetDraft() bool\n```\nGetDraft returns the Draft field.\n\n```go\nfunc (p *PullRequestStackMinimalEntry) GetHead() *PullRequestStackMinimalHead\n```\nGetHead returns the Head field.\n\n```go\nfunc (p *PullRequestStackMinimalEntry) GetMergedAt() Timestamp\n```\nGetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestStackMinimalEntry) GetNumber() int\n```\nGetNumber returns the Number field.\n\n```go\nfunc (p *PullRequestStackMinimalEntry) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype PullRequestStackMinimalHead struct {\n\t// Ref is the name of the branch.\n\tRef string `json:\"ref\"`\n\t// SHA is the SHA of the most recent commit on the branch.\n\tSHA string `json:\"sha\"`\n}\n```\nPullRequestStackMinimalHead represents the head branch of a pull request returned by PullRequestsService.ListStacks.\n\n```go\nfunc (p *PullRequestStackMinimalHead) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (p *PullRequestStackMinimalHead) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\ntype PullRequestStackRef struct {\n\t// Ref is the name of the branch the entire stack ultimately targets.\n\tRef string `json:\"ref\"`\n}\n```\nPullRequestStackRef represents the branch a pull request stack ultimately targets. The stacked pull request endpoints return the ref alone, unlike PullRequestStackBase, which the pull request endpoints return with a SHA.\n\n```go\nfunc (p *PullRequestStackRef) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\ntype PullRequestStackRepository struct {\n\t// ID is the ID of the repository.\n\tID int64 `json:\"id\"`\n\t// URL is the API URL of the repository.\n\tURL string `json:\"url\"`\n\t// Name is the name of the repository.\n\tName string `json:\"name\"`\n}\n```\nPullRequestStackRepository represents the repository a stacked pull request's branch belongs to.\n\n```go\nfunc (p *PullRequestStackRepository) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (p *PullRequestStackRepository) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (p *PullRequestStackRepository) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\ntype PullRequestSubmitReviewRequest struct {\n\tBody  *string `json:\"body,omitempty\"`\n\tEvent string  `json:\"event\"`\n}\n```\nPullRequestSubmitReviewRequest represents a request to submit a review.\n\n```go\nfunc (p *PullRequestSubmitReviewRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PullRequestSubmitReviewRequest) GetEvent() string\n```\nGetEvent returns the Event field.\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\t// The following will be populated if the event was performed by an App\n\tPerformedViaGithubApp *App `json:\"performed_via_github_app,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/actions/events-that-trigger-workflows#pull\\_request\\_target](https://docs.github.com/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) GetPerformedViaGithubApp() *App\n```\nGetPerformedViaGithubApp returns the PerformedViaGithubApp 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) GetComments() []*PullRequestComment\n```\nGetComments returns the Comments slice if it's non-nil, nil otherwise.\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/rest/pulls?apiVersion=2022-11-28](https://docs.github.com/rest/pulls?apiVersion=2022-11-28)\n\n```go\nfunc (s *PullRequestsService) AddToStack(ctx context.Context, owner, repo string, stackNumber int, body PullRequestAddToStackRequest) (*PullRequestStackDetails, *Response, error)\n```\nAddToStack appends pull requests to a pull request stack.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#add-pull-requests-to-a-pull-request-stack](https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#add-pull-requests-to-a-pull-request-stack)\n\n```go\nfunc (s *PullRequestsService) Create(ctx context.Context, owner, repo string, body CreatePullRequest) (*PullRequest, *Response, error)\n```\nCreate a new pull request on the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#create-a-pull-request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#create-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateComment(ctx context.Context, owner, repo string, number int, body CreatePullRequestCommentRequest) (*PullRequestComment, *Response, error)\n```\nCreateComment creates a new comment on the specified pull request.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#create-a-review-comment-for-a-pull-request](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#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/rest/pulls/comments?apiVersion=2022-11-28#create-a-review-comment-for-a-pull-request](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#create-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateReview(ctx context.Context, owner, repo string, number int, body *PullRequestReviewRequest) (*PullRequestReview, *Response, error)\n```\nCreateReview creates a new review on the specified 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\nGitHub API docs: [https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#create-a-review-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#create-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) CreateStack(ctx context.Context, owner, repo string, body PullRequestCreateStackRequest) (*PullRequestStackDetails, *Response, error)\n```\nCreateStack creates a pull request stack from an ordered list of pull request numbers.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#create-a-pull-request-stack](https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#create-a-pull-request-stack)\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/rest/pulls/comments?apiVersion=2022-11-28#delete-a-review-comment-for-a-pull-request](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#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/rest/pulls/reviews?apiVersion=2022-11-28#delete-a-pending-review-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#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, body PullRequestDismissReviewRequest) (*PullRequestReview, *Response, error)\n```\nDismissReview dismisses a specified review on the specified pull request.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#dismiss-a-review-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#dismiss-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) Edit(ctx context.Context, owner, 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/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) Get(ctx context.Context, owner, repo string, number int) (*PullRequest, *Response, error)\n```\nGet a single pull request.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#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/rest/pulls/comments?apiVersion=2022-11-28#get-a-review-comment-for-a-pull-request](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#get-a-review-comment-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetMergeAsyncResult(ctx context.Context, owner, repo string, number int, uuid string) (*PullRequestMergeAsyncResult, *Response, error)\n```\nGetMergeAsyncResult fetches the current result of an asynchronous merge request, identified by the uuid returned when the merge was submitted via MergeAsync. Poll this method until the returned status is no longer \"pending\". Results are retained for 24 hours after their most recent update.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#get-the-result-of-an-asynchronous-merge](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#get-the-result-of-an-asynchronous-merge)\n\n```go\nfunc (s *PullRequestsService) GetRaw(ctx context.Context, owner, 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/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#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/rest/pulls/reviews?apiVersion=2022-11-28#get-a-review-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#get-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) GetStack(ctx context.Context, owner, repo string, stackNumber int) (*PullRequestStackDetails, *Response, error)\n```\nGetStack gets a pull request stack by its stack number.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#get-a-pull-request-stack](https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#get-a-pull-request-stack)\n\n```go\nfunc (s *PullRequestsService) IsMerged(ctx context.Context, owner, 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/rest/pulls/pulls?apiVersion=2022-11-28#check-if-a-pull-request-has-been-merged](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#check-if-a-pull-request-has-been-merged)\n\n```go\nfunc (s *PullRequestsService) List(ctx context.Context, owner, repo string, opts *PullRequestListOptions) ([]*PullRequest, *Response, error)\n```\nList the pull requests for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#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/rest/pulls/comments?apiVersion=2022-11-28#list-review-comments-in-a-repository](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#list-review-comments-in-a-repository)\n\nGitHub API docs: [https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#list-review-comments-on-a-pull-request](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#list-review-comments-on-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListCommentsIter(ctx context.Context, owner string, repo string, number int, opts *PullRequestListCommentsOptions) iter.Seq2[*PullRequestComment, error]\n```\nListCommentsIter returns an iterator that paginates through all results of ListComments.\n\n```go\nfunc (s *PullRequestsService) ListCommits(ctx context.Context, owner, 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/rest/pulls/pulls?apiVersion=2022-11-28#list-commits-on-a-pull-request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#list-commits-on-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListCommitsIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*RepositoryCommit, error]\n```\nListCommitsIter returns an iterator that paginates through all results of ListCommits.\n\n```go\nfunc (s *PullRequestsService) ListFiles(ctx context.Context, owner, 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/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests-files](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests-files)\n\n```go\nfunc (s *PullRequestsService) ListFilesIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*CommitFile, error]\n```\nListFilesIter returns an iterator that paginates through all results of ListFiles.\n\n```go\nfunc (s *PullRequestsService) ListIter(ctx context.Context, owner string, repo string, opts *PullRequestListOptions) iter.Seq2[*PullRequest, error]\n```\nListIter returns an iterator that paginates through all results of List.\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 or branch name.\n\nThe results may include open and closed pull requests. If the commit SHA is not present in the repository's default branch, the result will only include open pull requests.\n\nGitHub API docs: [https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#list-pull-requests-associated-with-a-commit](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#list-pull-requests-associated-with-a-commit)\n\n```go\nfunc (s *PullRequestsService) ListPullRequestsWithCommitIter(ctx context.Context, owner string, repo string, sha string, opts *ListOptions) iter.Seq2[*PullRequest, error]\n```\nListPullRequestsWithCommitIter returns an iterator that paginates through all results of ListPullRequestsWithCommit.\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/rest/pulls/reviews?apiVersion=2022-11-28#list-comments-for-a-pull-request-review](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#list-comments-for-a-pull-request-review)\n\n```go\nfunc (s *PullRequestsService) ListReviewCommentsIter(ctx context.Context, owner string, repo string, number int, reviewID int64, opts *ListOptions) iter.Seq2[*PullRequestComment, error]\n```\nListReviewCommentsIter returns an iterator that paginates through all results of ListReviewComments.\n\n```go\nfunc (s *PullRequestsService) ListReviewers(ctx context.Context, owner, repo string, number int) (*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/rest/pulls/review-requests?apiVersion=2022-11-28#get-all-requested-reviewers-for-a-pull-request](https://docs.github.com/rest/pulls/review-requests?apiVersion=2022-11-28#get-all-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/rest/pulls/reviews?apiVersion=2022-11-28#list-reviews-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#list-reviews-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) ListReviewsIter(ctx context.Context, owner string, repo string, number int, opts *ListOptions) iter.Seq2[*PullRequestReview, error]\n```\nListReviewsIter returns an iterator that paginates through all results of ListReviews.\n\n```go\nfunc (s *PullRequestsService) ListStacks(ctx context.Context, owner, repo string, opts *PullRequestListStacksOptions) ([]*PullRequestStackMinimal, *Response, error)\n```\nListStacks lists pull request stacks in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#list-pull-request-stacks](https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#list-pull-request-stacks)\n\n```go\nfunc (s *PullRequestsService) ListStacksIter(ctx context.Context, owner string, repo string, opts *PullRequestListStacksOptions) iter.Seq2[*PullRequestStackMinimal, error]\n```\nListStacksIter returns an iterator that paginates through all results of ListStacks.\n\n```go\nfunc (s *PullRequestsService) Merge(ctx context.Context, owner, 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/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) MergeAsync(ctx context.Context, owner, repo string, number int, body PullRequestMergeAsyncRequest) (*PullRequestMergeAsyncResult, *Response, error)\n```\nMergeAsync merges a pull request asynchronously. For stacked pull requests, this also merges everything below it in the stack. This is the required method for merging stacked pull requests; the legacy Merge method cannot be used for stacks.\n\nThis endpoint typically returns a 202 Accepted status along with the initial AsyncMergeResult, since the merge is processed asynchronously. Because this is an explicitly asynchronous call, the returned status code is not treated as an error here.\n\nA pending response includes a UUID in PullRequestMergeAsyncResult.Details.UUID that must be passed to GetMergeAsyncResult to poll for the outcome.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request-asynchronously](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request-asynchronously)\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/rest/pulls/review-requests?apiVersion=2022-11-28#remove-requested-reviewers-from-a-pull-request](https://docs.github.com/rest/pulls/review-requests?apiVersion=2022-11-28#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/rest/pulls/review-requests?apiVersion=2022-11-28#request-reviewers-for-a-pull-request](https://docs.github.com/rest/pulls/review-requests?apiVersion=2022-11-28#request-reviewers-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, body PullRequestSubmitReviewRequest) (*PullRequestReview, *Response, error)\n```\nSubmitReview submits a specified review on the specified pull request.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#submit-a-review-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#submit-a-review-for-a-pull-request)\n\n```go\nfunc (s *PullRequestsService) Unstack(ctx context.Context, owner, repo string, stackNumber int) (*PullRequestStackDetails, *Response, error)\n```\nUnstack removes the unmerged pull requests from a pull request stack. It returns nil when no pull requests remain and the stack is dissolved.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#remove-pull-requests-from-a-pull-request-stack](https://docs.github.com/rest/pulls/stacks?apiVersion=2022-11-28#remove-pull-requests-from-a-pull-request-stack)\n\n```go\nfunc (s *PullRequestsService) UpdateBranch(ctx context.Context, owner, repo string, number int, body UpdatePullRequestBranchRequest) (*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/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request-branch](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request-branch)\n\n```go\nfunc (s *PullRequestsService) UpdateComment(ctx context.Context, owner, repo string, commentID int64, body UpdatePullRequestCommentRequest) (*PullRequestComment, *Response, error)\n```\nUpdateComment updates a pull request comment.\n\nGitHub API docs: [https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#update-a-review-comment-for-a-pull-request](https://docs.github.com/rest/pulls/comments?apiVersion=2022-11-28#update-a-review-comment-for-a-pull-request)\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/rest/pulls/reviews?apiVersion=2022-11-28#update-a-review-for-a-pull-request](https://docs.github.com/rest/pulls/reviews?apiVersion=2022-11-28#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\tMergeablePulls   *int `json:\"mergeable_pulls,omitempty\"`\n\tUnmergeablePulls *int `json:\"unmergeable_pulls,omitempty\"`\n}\n```\nPullStats represents the number of total, merged, mergeable and unmergeable pull-requests.\n\n```go\nfunc (p *PullStats) GetMergeablePulls() int\n```\nGetMergeablePulls returns the MergeablePulls 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) GetUnmergeablePulls() int\n```\nGetUnmergeablePulls returns the UnmergeablePulls 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\t// Size is the number of commits in the push.\n\t//\n\t// Deprecated: GitHub will remove commit counts from Events API payloads on October 7, 2025.\n\t// Use the Commits REST API endpoint to get commit information.\n\t// See: https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#list-commits\n\tSize *int `json:\"size,omitempty\"`\n\t// Commits is the list of commits in the push event.\n\t//\n\t// This field is only populated for webhook events.\n\t// It has been removed from Events API payloads on October 7, 2025.\n\t// Use the Commits REST API endpoint to get detailed commit information.\n\t// See: https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#list-commits\n\tCommits []*HeadCommit `json:\"commits,omitempty\"`\n\tBefore  *string       `json:\"before,omitempty\"`\n\t// DistinctSize is the number of distinct commits in the push.\n\t//\n\t// Deprecated: GitHub will remove commit counts from Events API payloads on October 7, 2025.\n\t// Use the Compare REST API endpoint to get detailed comparison information.\n\t// See: https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits\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       *CommitAuthor        `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/developers/webhooks-and-events/webhook-events-and-payloads#push](https://docs.github.com/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() *CommitAuthor\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\tCustomProperties map[string]any `json:\"custom_properties,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) GetCustomProperties() map[string]any\n```\nGetCustomProperties returns the CustomProperties map if it's non-nil, an empty map 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) GetTopics() []string\n```\nGetTopics returns the Topics slice if it's non-nil, nil 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 PushProtectionBypass struct {\n\t// The reason for bypassing push protection.\n\tReason string `json:\"reason\"`\n\t// The time that the bypass will expire in ISO 8601 format.\n\tExpireAt *Timestamp `json:\"expire_at\"`\n\t// The token type this bypass is for.\n\tTokenType string `json:\"token_type\"`\n}\n```\nPushProtectionBypass represents the response from CreatePushProtectionBypass.\n\n```go\nfunc (p *PushProtectionBypass) GetExpireAt() Timestamp\n```\nGetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (p *PushProtectionBypass) GetReason() string\n```\nGetReason returns the Reason field.\n\n```go\nfunc (p *PushProtectionBypass) GetTokenType() string\n```\nGetTokenType returns the TokenType field.\n\n```go\ntype PushProtectionBypassRequest struct {\n\t// The reason for bypassing push protection.\n\t// Can be one of: false_positive, used_in_tests, will_fix_later\n\tReason string `json:\"reason\"`\n\t// PlaceholderID is an identifier used for the bypass request.\n\t// GitHub Secret Scanning provides you with a unique PlaceholderID associated with that specific blocked push.\n\tPlaceholderID string `json:\"placeholder_id\"`\n}\n```\nPushProtectionBypassRequest represents the parameters for CreatePushProtectionBypass.\n\n```go\nfunc (p *PushProtectionBypassRequest) GetPlaceholderID() string\n```\nGetPlaceholderID returns the PlaceholderID field.\n\n```go\nfunc (p *PushProtectionBypassRequest) GetReason() string\n```\nGetReason returns the Reason field.\n\n```go\ntype Rate struct {\n\t// The maximum number of requests that you can make per hour.\n\tLimit int `json:\"limit\"`\n\n\t// The number of requests remaining in the current rate limit window.\n\tRemaining int `json:\"remaining\"`\n\n\t// The number of requests you have made in the current rate limit window.\n\tUsed int `json:\"used\"`\n\n\t// The time at which the current rate limit window resets, in UTC epoch seconds.\n\tReset Timestamp `json:\"reset\"`\n\n\t// The rate limit resource that the request counted against.\n\t// For more information about the different resources, see REST API endpoints for rate limits.\n\t// GitHub API docs: https://docs.github.com/rest/rate-limit/rate-limit?apiVersion=2022-11-28#get-rate-limit-status-for-the-authenticated-user\n\tResource string `json:\"resource,omitempty\"`\n}\n```\nRate represents the rate limit for the current client.\n\n```go\nfunc (r *Rate) GetLimit() int\n```\nGetLimit returns the Limit field.\n\n```go\nfunc (r *Rate) GetRemaining() int\n```\nGetRemaining returns the Remaining field.\n\n```go\nfunc (r *Rate) GetReset() Timestamp\n```\nGetReset returns the Reset field.\n\n```go\nfunc (r *Rate) GetResource() string\n```\nGetResource returns the Resource field.\n\n```go\nfunc (r *Rate) GetUsed() int\n```\nGetUsed returns the Used field.\n\n```go\nfunc (r Rate) String() string\n```\n\n```go\ntype RateLimitCategory uint8\n```\nRateLimitCategory represents the enumeration of rate limit categories.\n\n```go\nconst (\n\tCoreCategory RateLimitCategory = iota\n\tSearchCategory\n\tGraphqlCategory\n\tIntegrationManifestCategory\n\tSourceImportCategory\n\tCodeScanningUploadCategory\n\tActionsRunnerRegistrationCategory\n\tScimCategory\n\tDependencySnapshotsCategory\n\tCodeSearchCategory\n\tAuditLogCategory\n\tDependencySBOMCategory\n\n\tCategories // An array of this length will be able to contain all rate limit categories.\n)\n```\n\n```go\nfunc GetRateLimitCategory(method, path string) RateLimitCategory\n```\nGetRateLimitCategory returns the rate limit RateLimitCategory of the endpoint, determined by HTTP method and Request.URL.Path.\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) GetMessage() string\n```\nGetMessage returns the Message field.\n\n```go\nfunc (r *RateLimitError) GetRate() Rate\n```\nGetRate returns the Rate field.\n\n```go\nfunc (r *RateLimitError) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\n\n```go\ntype RateLimitService service\n```\nRateLimitService provides access to rate limit functions in the GitHub API.\n\n```go\nfunc (s *RateLimitService) Get(ctx context.Context) (*RateLimits, *Response, error)\n```\nGet returns the rate limits for the current client.\n\nGitHub API docs: [https://docs.github.com/rest/rate-limit/rate-limit?apiVersion=2022-11-28#get-rate-limit-status-for-the-authenticated-user](https://docs.github.com/rest/rate-limit/rate-limit?apiVersion=2022-11-28#get-rate-limit-status-for-the-authenticated-user)\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/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#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/rest/search?apiVersion=2022-11-28#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 docs: https://docs.github.com/rest/rate-limit?apiVersion=2022-11-28\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\tDependencySnapshots       *Rate `json:\"dependency_snapshots\"`\n\tCodeSearch                *Rate `json:\"code_search\"`\n\tAuditLog                  *Rate `json:\"audit_log\"`\n\tDependencySBOM            *Rate `json:\"dependency_sbom\"`\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) GetAuditLog() *Rate\n```\nGetAuditLog returns the AuditLog field.\n\n```go\nfunc (r *RateLimits) GetCodeScanningUpload() *Rate\n```\nGetCodeScanningUpload returns the CodeScanningUpload field.\n\n```go\nfunc (r *RateLimits) GetCodeSearch() *Rate\n```\nGetCodeSearch returns the CodeSearch field.\n\n```go\nfunc (r *RateLimits) GetCore() *Rate\n```\nGetCore returns the Core field.\n\n```go\nfunc (r *RateLimits) GetDependencySBOM() *Rate\n```\nGetDependencySBOM returns the DependencySBOM field.\n\n```go\nfunc (r *RateLimits) GetDependencySnapshots() *Rate\n```\nGetDependencySnapshots returns the DependencySnapshots 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\nfunc (r *RawOptions) GetType() RawType\n```\nGetType returns the Type field.\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\tCreatedAt *Timestamp `json:\"created_at,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) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt 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/rest/reactions?apiVersion=2022-11-28](https://docs.github.com/rest/reactions?apiVersion=2022-11-28)\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/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-a-commit-comment](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-an-issue-comment](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-an-issue](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-a-pull-request-review-comment](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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```\nCreateReleaseReaction creates 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/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-a-release](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment-legacy](https://docs.github.com/enterprise-server@3.13/rest/reactions/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion-legacy](https://docs.github.com/enterprise-server@3.13/rest/reactions/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/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-commit-comment-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-commit-comment-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-an-issue-comment-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-an-issue-comment-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-an-issue-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-an-issue-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-pull-request-comment-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#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/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-pull-request-comment-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-pull-request-comment-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteReleaseReaction(ctx context.Context, owner, repo string, releaseID, reactionID int64) (*Response, error)\n```\nDeleteReleaseReaction deletes the reaction for a release.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-release-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-release-reaction)\n\n```go\nfunc (s *ReactionsService) DeleteReleaseReactionByID(ctx context.Context, repoID, releaseID, reactionID int64) (*Response, error)\n```\nDeleteReleaseReactionByID deletes the reaction for a release by repository ID.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-release-reaction](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#delete-a-release-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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#delete-team-discussion-comment-reaction](https://docs.github.com/enterprise-server@3.13/rest/reactions/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment](https://docs.github.com/enterprise-server@3.13/rest/reactions/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#delete-team-discussion-reaction](https://docs.github.com/enterprise-server@3.13/rest/reactions/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion)\n\n```go\nfunc (s *ReactionsService) ListCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListCommentReactions lists the reactions for a commit comment.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-a-commit-comment](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-a-commit-comment)\n\n```go\nfunc (s *ReactionsService) ListCommentReactionsIter(ctx context.Context, owner string, repo string, id int64, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListCommentReactionsIter returns an iterator that paginates through all results of ListCommentReactions.\n\n```go\nfunc (s *ReactionsService) ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListIssueCommentReactions lists the reactions for an issue comment.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-an-issue-comment](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-an-issue-comment)\n\n```go\nfunc (s *ReactionsService) ListIssueCommentReactionsIter(ctx context.Context, owner string, repo string, id int64, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListIssueCommentReactionsIter returns an iterator that paginates through all results of ListIssueCommentReactions.\n\n```go\nfunc (s *ReactionsService) ListIssueReactions(ctx context.Context, owner, repo string, number int, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListIssueReactions lists the reactions for an issue.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-an-issue](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-an-issue)\n\n```go\nfunc (s *ReactionsService) ListIssueReactionsIter(ctx context.Context, owner string, repo string, number int, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListIssueReactionsIter returns an iterator that paginates through all results of ListIssueReactions.\n\n```go\nfunc (s *ReactionsService) ListPullRequestCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListPullRequestCommentReactions lists the reactions for a pull request review comment.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-a-pull-request-review-comment](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-a-pull-request-review-comment)\n\n```go\nfunc (s *ReactionsService) ListPullRequestCommentReactionsIter(ctx context.Context, owner string, repo string, id int64, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListPullRequestCommentReactionsIter returns an iterator that paginates through all results of ListPullRequestCommentReactions.\n\n```go\nfunc (s *ReactionsService) ListReleaseReactions(ctx context.Context, owner, repo string, releaseID int64, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListReleaseReactions lists the reactions for a release.\n\nGitHub API docs: [https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-a-release](https://docs.github.com/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-a-release)\n\n```go\nfunc (s *ReactionsService) ListReleaseReactionsIter(ctx context.Context, owner string, repo string, releaseID int64, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListReleaseReactionsIter returns an iterator that paginates through all results of ListReleaseReactions.\n\n```go\nfunc (s *ReactionsService) ListTeamDiscussionCommentReactions(ctx context.Context, teamID int64, discussionNumber, commentNumber int, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListTeamDiscussionCommentReactions lists the reactions for a team discussion comment.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment-legacy](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment-legacy)\n\n```go\nfunc (s *ReactionsService) ListTeamDiscussionCommentReactionsIter(ctx context.Context, teamID int64, discussionNumber int, commentNumber int, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListTeamDiscussionCommentReactionsIter returns an iterator that paginates through all results of ListTeamDiscussionCommentReactions.\n\n```go\nfunc (s *ReactionsService) ListTeamDiscussionReactions(ctx context.Context, teamID int64, discussionNumber int, opts *ListReactionOptions) ([]*Reaction, *Response, error)\n```\nListTeamDiscussionReactions lists the reactions for a team discussion.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-legacy](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-legacy)\n\n```go\nfunc (s *ReactionsService) ListTeamDiscussionReactionsIter(ctx context.Context, teamID int64, discussionNumber int, opts *ListReactionOptions) iter.Seq2[*Reaction, error]\n```\nListTeamDiscussionReactionsIter returns an iterator that paginates through all results of ListTeamDiscussionReactions.\n\n```go\ntype ReassignedResource struct {\n\tResourceType       *string `json:\"resource_type,omitempty\"`\n\tName               *string `json:\"name,omitempty\"`\n\tPreviousCostCenter *string `json:\"previous_cost_center,omitempty\"`\n}\n```\nReassignedResource represents a resource that was reassigned from another cost center.\n\n```go\nfunc (r *ReassignedResource) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReassignedResource) GetPreviousCostCenter() string\n```\nGetPreviousCostCenter returns the PreviousCostCenter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReassignedResource) GetResourceType() string\n```\nGetResourceType returns the ResourceType field if it's non-nil, zero value otherwise.\n\n```go\ntype RedirectionError struct {\n\tResponse   *http.Response // HTTP response that caused this error\n\tStatusCode int\n\tLocation   *url.URL // location header of the redirection if present\n}\n```\nRedirectionError represents a response that returned a redirect status code:\n\n\t301 (Moved Permanently)\n\t302 (Found)\n\t303 (See Other)\n\t307 (Temporary Redirect)\n\t308 (Permanent Redirect)\n\nIf there was a valid Location header included, it will be parsed to a URL. You should use \\`BaseURL.ResolveReference()\\` to enrich it with the correct hostname where needed.\n\n```go\nfunc (r *RedirectionError) Error() string\n```\n\n```go\nfunc (r *RedirectionError) GetStatusCode() int\n```\nGetStatusCode returns the StatusCode field.\n\n```go\nfunc (r *RedirectionError) Is(target error) bool\n```\nIs returns whether the provided error equals this error.\n\n```go\ntype Reference struct {\n\t// The name of the fully qualified reference, i.e.: `refs/heads/master`.\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 ReferencedWorkflow struct {\n\tPath *string `json:\"path,omitempty\"`\n\tSHA  *string `json:\"sha,omitempty\"`\n\tRef  *string `json:\"ref,omitempty\"`\n}\n```\nReferencedWorkflow represents a referenced workflow in a workflow run.\n\n```go\nfunc (r *ReferencedWorkflow) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReferencedWorkflow) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReferencedWorkflow) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\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 RegistryPackageEvent struct {\n\t// Action is the action that was performed.\n\t// Can be \"published\" or \"updated\".\n\tAction          *string       `json:\"action,omitempty\"`\n\tRegistryPackage *Package      `json:\"registry_package,omitempty\"`\n\tRepository      *Repository   `json:\"repository,omitempty\"`\n\tOrganization    *Organization `json:\"organization,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```\nRegistryPackageEvent represents activity related to GitHub Packages. The Webhook event name is \"registry\\_package\".\n\nThis event is triggered when a GitHub Package is published or updated.\n\nGitHub API docs: [https://docs.github.com/en/webhooks/webhook-events-and-payloads#registry\\_package](https://docs.github.com/en/webhooks/webhook-events-and-payloads#registry_package)\n\n```go\nfunc (r *RegistryPackageEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RegistryPackageEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (r *RegistryPackageEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *RegistryPackageEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (r *RegistryPackageEvent) GetRegistryPackage() *Package\n```\nGetRegistryPackage returns the RegistryPackage field.\n\n```go\nfunc (r *RegistryPackageEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (r *RegistryPackageEvent) GetSender() *User\n```\nGetSender returns the Sender field.\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\tDigest             *string    `json:\"digest,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) GetDigest() string\n```\nGetDigest returns the Digest 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 ReleaseChangeFrom struct {\n\tFrom string `json:\"from\"`\n}\n```\nReleaseChangeFrom represents a release string field change containing the previous value.\n\n```go\nfunc (r *ReleaseChangeFrom) GetFrom() string\n```\nGetFrom returns the From field.\n\n```go\ntype ReleaseChangeToBool struct {\n\tTo bool `json:\"to\"`\n}\n```\nReleaseChangeToBool represents a boolean release field change containing the new value.\n\n```go\nfunc (r *ReleaseChangeToBool) GetTo() bool\n```\nGetTo returns the To field.\n\n```go\ntype ReleaseChanges struct {\n\tBody       *ReleaseChangeFrom   `json:\"body,omitempty\"`\n\tName       *ReleaseChangeFrom   `json:\"name,omitempty\"`\n\tTagName    *ReleaseChangeFrom   `json:\"tag_name,omitempty\"`\n\tMakeLatest *ReleaseChangeToBool `json:\"make_latest,omitempty\"`\n}\n```\nReleaseChanges represents changes made to a release.\n\n```go\nfunc (r *ReleaseChanges) GetBody() *ReleaseChangeFrom\n```\nGetBody returns the Body field.\n\n```go\nfunc (r *ReleaseChanges) GetMakeLatest() *ReleaseChangeToBool\n```\nGetMakeLatest returns the MakeLatest field.\n\n```go\nfunc (r *ReleaseChanges) GetName() *ReleaseChangeFrom\n```\nGetName returns the Name field.\n\n```go\nfunc (r *ReleaseChanges) GetTagName() *ReleaseChangeFrom\n```\nGetTagName returns the TagName field.\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\", \"prereleased\", or \"released\".\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\t// Changes is populated in \"edited\" event deliveries.\n\tChanges      *ReleaseChanges `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\tOrg *Organization `json:\"organization,omitempty\"`\n\n\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an enterprise.\n\tEnterprise *Enterprise `json:\"enterprise,omitempty\"`\n}\n```\nReleaseEvent is triggered when a release is published, unpublished, created, edited, deleted, prereleased, or released. The Webhook event name is \"release\".\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#release](https://docs.github.com/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) GetChanges() *ReleaseChanges\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (r *ReleaseEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (r *ReleaseEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *ReleaseEvent) GetOrg() *Organization\n```\nGetOrg returns the Org 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 ReleaseVersion struct {\n\tVersion   *string `json:\"version,omitempty\"`\n\tPlatform  *string `json:\"platform,omitempty\"`\n\tBuildID   *string `json:\"build_id,omitempty\"`\n\tBuildDate *string `json:\"build_date,omitempty\"`\n}\n```\nReleaseVersion holds the release version information of the node.\n\n```go\nfunc (r *ReleaseVersion) GetBuildDate() string\n```\nGetBuildDate returns the BuildDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseVersion) GetBuildID() string\n```\nGetBuildID returns the BuildID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseVersion) GetPlatform() string\n```\nGetPlatform returns the Platform field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *ReleaseVersion) GetVersion() string\n```\nGetVersion returns the Version field if it's non-nil, zero value otherwise.\n\n```go\ntype RemoveResourcesFromCostCenterResponse struct {\n\tMessage *string `json:\"message,omitempty\"`\n}\n```\nRemoveResourcesFromCostCenterResponse represents a response from removing resources from a cost center.\n\n```go\nfunc (r *RemoveResourcesFromCostCenterResponse) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\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 RepoAdvisoryCredit struct {\n\tLogin *string `json:\"login,omitempty\"`\n\tType  *string `json:\"type,omitempty\"`\n}\n```\nRepoAdvisoryCredit represents the credit object for a repository Security Advisory.\n\n```go\nfunc (r *RepoAdvisoryCredit) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoAdvisoryCredit) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoAdvisoryCreditDetailed struct {\n\tUser  *User   `json:\"user,omitempty\"`\n\tType  *string `json:\"type,omitempty\"`\n\tState *string `json:\"state,omitempty\"`\n}\n```\nRepoAdvisoryCreditDetailed represents a credit given to a user for a repository Security Advisory.\n\n```go\nfunc (r *RepoAdvisoryCreditDetailed) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoAdvisoryCreditDetailed) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoAdvisoryCreditDetailed) GetUser() *User\n```\nGetUser returns the User field.\n\n```go\ntype RepoCustomPropertyValue struct {\n\tRepositoryID       int64                  `json:\"repository_id\"`\n\tRepositoryName     string                 `json:\"repository_name\"`\n\tRepositoryFullName string                 `json:\"repository_full_name\"`\n\tProperties         []*CustomPropertyValue `json:\"properties\"`\n}\n```\nRepoCustomPropertyValue represents a repository custom property value.\n\n```go\nfunc (r *RepoCustomPropertyValue) GetProperties() []*CustomPropertyValue\n```\nGetProperties returns the Properties slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepoCustomPropertyValue) GetRepositoryFullName() string\n```\nGetRepositoryFullName returns the RepositoryFullName field.\n\n```go\nfunc (r *RepoCustomPropertyValue) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field.\n\n```go\nfunc (r *RepoCustomPropertyValue) GetRepositoryName() string\n```\nGetRepositoryName returns the RepositoryName field.\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\tExternalRefs     []*PackageExternalRef `json:\"externalRefs,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) GetExternalRefs() []*PackageExternalRef\n```\nGetExternalRefs returns the ExternalRefs slice if it's non-nil, nil 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 RepoFineGrainedPermission struct {\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description\"`\n}\n```\nRepoFineGrainedPermission represents a fine-grained permission that can be used in a custom repository role.\n\n```go\nfunc (r *RepoFineGrainedPermission) GetDescription() string\n```\nGetDescription returns the Description field.\n\n```go\nfunc (r *RepoFineGrainedPermission) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype RepoImmutableReleasesStatus struct {\n\tEnabled         *bool `json:\"enabled,omitempty\"`\n\tEnforcedByOwner *bool `json:\"enforced_by_owner,omitempty\"`\n}\n```\nRepoImmutableReleasesStatus represents the immutable releases status for a repository.\n\n```go\nfunc (r *RepoImmutableReleasesStatus) GetEnabled() bool\n```\nGetEnabled returns the Enabled field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepoImmutableReleasesStatus) GetEnforcedByOwner() bool\n```\nGetEnforcedByOwner returns the EnforcedByOwner field if it's non-nil, zero value otherwise.\n\n```go\ntype RepoMergeUpstreamRequest struct {\n\tBranch string `json:\"branch\"`\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.\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 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\t// Required indicates whether this status is required for merging. Only\n\t// populated in combined status responses; nil means the API did not include\n\t// the field (e.g. when not part of a branch-protection rule).\n\tRequired *bool `json:\"required,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) GetRequired() bool\n```\nGetRequired returns the Required 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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil 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/rest/repos?apiVersion=2022-11-28](https://docs.github.com/rest/repos?apiVersion=2022-11-28)\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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-admin-branch-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) AddAppRestrictions(ctx context.Context, owner, repo, branch string, body []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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#add-app-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#add-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) AddCollaborator(ctx context.Context, owner, repo, user string, body AddCollaboratorRequest) (*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/rest/collaborators/collaborators?apiVersion=2022-11-28#add-a-repository-collaborator](https://docs.github.com/rest/collaborators/collaborators?apiVersion=2022-11-28#add-a-repository-collaborator)\n\n```go\nfunc (s *RepositoriesService) AddTeamRestrictions(ctx context.Context, owner, repo, branch string, body []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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#add-team-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#add-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) AddUserRestrictions(ctx context.Context, owner, repo, branch string, body []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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#add-user-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#add-user-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) AreImmutableReleasesEnabled(ctx context.Context, owner, repo string) (*RepoImmutableReleasesStatus, *Response, error)\n```\nAreImmutableReleasesEnabled checks if immutable releases are enabled for the repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#check-if-immutable-releases-are-enabled-for-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#check-if-immutable-releases-are-enabled-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) CompareCommits(ctx context.Context, owner, repo, 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/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#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/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits)\n\n```go\nfunc (s *RepositoriesService) Create(ctx context.Context, org string, body CreateRepositoryRequest) (*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\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/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-for-the-authenticated-user](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-for-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#create-an-organization-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#create-an-organization-repository)\n\n```go\nfunc (s *RepositoriesService) CreateAutolink(ctx context.Context, owner, repo string, body CreateAutolinkRequest) (*Autolink, *Response, error)\n```\nCreateAutolink 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/rest/repos/autolinks?apiVersion=2022-11-28#create-an-autolink-reference-for-a-repository](https://docs.github.com/rest/repos/autolinks?apiVersion=2022-11-28#create-an-autolink-reference-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) CreateComment(ctx context.Context, owner, repo, sha string, body CreateCommitCommentRequest) (*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/rest/commits/comments?apiVersion=2022-11-28#create-a-commit-comment](https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#create-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) CreateCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, body *CustomDeploymentProtectionRuleRequest) (*CustomDeploymentProtectionRule, *Response, error)\n```\nCreateCustomDeploymentProtectionRule creates a custom deployment protection rule on an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#create-a-custom-deployment-protection-rule-on-an-environment](https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#create-a-custom-deployment-protection-rule-on-an-environment)\n\n```go\nfunc (s *RepositoriesService) CreateDeployment(ctx context.Context, owner, repo string, body DeploymentRequest) (*Deployment, *Response, error)\n```\nCreateDeployment creates a new deployment for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deployment](https://docs.github.com/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deployment)\n\n```go\nfunc (s *RepositoriesService) CreateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, body CreateDeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error)\n```\nCreateDeploymentBranchPolicy creates a deployment branch policy for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#create-a-deployment-branch-policy](https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#create-a-deployment-branch-policy)\n\n```go\nfunc (s *RepositoriesService) CreateDeploymentStatus(ctx context.Context, owner, repo string, deploymentID int64, body DeploymentStatusRequest) (*DeploymentStatus, *Response, error)\n```\nCreateDeploymentStatus creates a new status for a deployment.\n\nGitHub API docs: [https://docs.github.com/rest/deployments/statuses?apiVersion=2022-11-28#create-a-deployment-status](https://docs.github.com/rest/deployments/statuses?apiVersion=2022-11-28#create-a-deployment-status)\n\n```go\nfunc (s *RepositoriesService) CreateFile(ctx context.Context, owner, repo, path string, body *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/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents)\n\n```go\nfunc (s *RepositoriesService) CreateFork(ctx context.Context, owner, repo string, body CreateForkRequest) (*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/rest/repos/forks?apiVersion=2022-11-28#create-a-fork](https://docs.github.com/rest/repos/forks?apiVersion=2022-11-28#create-a-fork)\n\n```go\nfunc (s *RepositoriesService) CreateFromTemplate(ctx context.Context, templateOwner, templateRepo string, body TemplateRepoRequest) (*Repository, *Response, error)\n```\nCreateFromTemplate generates a repository from a template.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-using-a-template](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/rest/repos/webhooks?apiVersion=2022-11-28#create-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#create-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) CreateKey(ctx context.Context, owner, repo string, body CreateDeployKeyRequest) (*Key, *Response, error)\n```\nCreateKey adds a deploy key for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#create-a-deploy-key](https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#create-a-deploy-key)\n\n```go\nfunc (s *RepositoriesService) CreateOrUpdateCustomProperties(ctx context.Context, org, repo string, customPropertyValues []*CustomPropertyValue) (*Response, error)\n```\nCreateOrUpdateCustomProperties creates new or updates existing custom property values for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/custom-properties?apiVersion=2022-11-28#create-or-update-custom-property-values-for-a-repository](https://docs.github.com/rest/repos/custom-properties?apiVersion=2022-11-28#create-or-update-custom-property-values-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) CreateRelease(ctx context.Context, owner, repo string, body CreateReleaseRequest) (*RepositoryRelease, *Response, error)\n```\nCreateRelease adds a new release for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#create-a-release](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#create-a-release)\n\n```go\nfunc (s *RepositoriesService) CreateRuleset(ctx context.Context, owner, repo string, body RepositoryRuleset) (*RepositoryRuleset, *Response, error)\n```\nCreateRuleset creates a repository ruleset for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#create-a-repository-ruleset](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#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. The ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [https://docs.github.com/rest/commits/statuses?apiVersion=2022-11-28#create-a-commit-status](https://docs.github.com/rest/commits/statuses?apiVersion=2022-11-28#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\nDeprecated: This operation is deprecated and will be removed after August 30, 2024. Use the \"Repository Rulesets\" endpoint instead: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#create-a-repository-ruleset](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#create-a-repository-ruleset)\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.20/rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository](https://docs.github.com/enterprise-server@3.20/rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) CreateUpdateEnvironment(ctx context.Context, owner, repo, name string, body *CreateUpdateEnvironment) (*Environment, *Response, error)\n```\nCreateUpdateEnvironment create or update a new environment for a repository.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#create-or-update-an-environment](https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#delete-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/rest/repos/autolinks?apiVersion=2022-11-28#delete-an-autolink-reference-from-a-repository](https://docs.github.com/rest/repos/autolinks?apiVersion=2022-11-28#delete-an-autolink-reference-from-a-repository)\n\n```go\nfunc (s *RepositoriesService) DeleteComment(ctx context.Context, owner, repo string, commentID int64) (*Response, error)\n```\nDeleteComment deletes a single comment from a repository.\n\nGitHub API docs: [https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#delete-a-commit-comment](https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#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/rest/deployments/deployments?apiVersion=2022-11-28#delete-a-deployment](https://docs.github.com/rest/deployments/deployments?apiVersion=2022-11-28#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\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#delete-a-deployment-branch-policy](https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#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\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#delete-an-environment](https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#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/rest/repos/contents?apiVersion=2022-11-28#delete-a-file](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#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/rest/repos/webhooks?apiVersion=2022-11-28#delete-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#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/rest/collaborators/invitations?apiVersion=2022-11-28#delete-a-repository-invitation](https://docs.github.com/rest/collaborators/invitations?apiVersion=2022-11-28#delete-a-repository-invitation)\n\n```go\nfunc (s *RepositoriesService) DeleteKey(ctx context.Context, owner, repo string, id int64) (*Response, error)\n```\nDeleteKey deletes a deploy key.\n\nGitHub API docs: [https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#delete-a-deploy-key](https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#remove-pre-receive-hook-enforcement-for-a-repository](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#remove-pre-receive-hook-enforcement-for-a-repository)\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/rest/releases/releases?apiVersion=2022-11-28#delete-a-release](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#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/rest/releases/assets?apiVersion=2022-11-28#delete-a-release-asset](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#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 repository ruleset for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#delete-a-repository-ruleset](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#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\nDeprecated: This operation is deprecated and will be removed after August 30, 2024. Use the \"Repository Rulesets\" endpoint instead: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#delete-a-repository-ruleset](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#delete-a-repository-ruleset)\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.20/rest/repos/tags#closing-down---delete-a-tag-protection-state-for-a-repository](https://docs.github.com/enterprise-server@3.20/rest/repos/tags#closing-down---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/rest/repos/repos?apiVersion=2022-11-28#disable-dependabot-security-updates](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#disable-dependabot-security-updates)\n\n```go\nfunc (s *RepositoriesService) DisableCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, protectionRuleID int64) (*Response, error)\n```\nDisableCustomDeploymentProtectionRule disables a custom deployment protection rule for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#disable-a-custom-protection-rule-for-an-environment](https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#disable-a-custom-protection-rule-for-an-environment)\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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-pull-request-review-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) DisableImmutableReleases(ctx context.Context, owner, repo string) (*Response, error)\n```\nDisableImmutableReleases disables immutable releases for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#disable-immutable-releases](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#disable-immutable-releases)\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/enterprise-cloud@latest/rest/repos/lfs?apiVersion=2022-11-28#disable-git-lfs-for-a-repository](https://docs.github.com/enterprise-cloud@latest/rest/repos/lfs?apiVersion=2022-11-28#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/rest/pages/pages?apiVersion=2022-11-28#delete-a-github-pages-site](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#delete-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) DisablePrivateReporting(ctx context.Context, owner, repo string) (*Response, error)\n```\nDisablePrivateReporting disables private reporting of vulnerabilities for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#disable-private-vulnerability-reporting-for-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#disable-private-vulnerability-reporting-for-a-repository)\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/rest/repos/repos?apiVersion=2022-11-28#disable-vulnerability-alerts](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-dispatch-event](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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\nDownloadContents returns [ErrContentsDirectory](#ErrContentsDirectory) if the path references a directory, [ErrContentsSubmodule](#ErrContentsSubmodule) if the path references a submodule, and [ErrContentsNoDownloadURL](#ErrContentsNoDownloadURL) if the file's download URL is empty.\n\nGitHub API docs: [https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#get-repository-content](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#get-repository-content)\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\nDownloadContentsWithMeta returns [ErrContentsDirectory](#ErrContentsDirectory) if the path references a directory, [ErrContentsSubmodule](#ErrContentsSubmodule) if the path references a submodule, and [ErrContentsNoDownloadURL](#ErrContentsNoDownloadURL) if the file's download URL is empty.\n\nGitHub API docs: [https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#get-repository-content](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#get-repository-content)\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. The redirect target is typically a pre-signed third-party URL (for example S3), so http.DefaultClient is recommended. The client's own credentials reach only its configured API and upload origins, so they are not attached to the redirected request in any case; supply a client that adds its own credentials only if the redirect target requires them. If nil is passed the redirectURL will be returned instead.\n\nGitHub API docs: [https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#get-a-release-asset](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#get-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) Edit(ctx context.Context, owner, repo string, body *Repository) (*Repository, *Response, error)\n```\nEdit updates a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#update-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#update-a-repository)\n\n```go\nfunc (s *RepositoriesService) EditActionsAccessLevel(ctx context.Context, owner, repo string, body 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/rest/actions/permissions?apiVersion=2022-11-28#set-the-level-of-access-for-workflows-outside-of-the-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-the-level-of-access-for-workflows-outside-of-the-repository)\n\n```go\nfunc (s *RepositoriesService) EditActionsAllowed(ctx context.Context, org, repo string, body ActionsAllowed) (*ActionsAllowed, *Response, error)\n```\nEditActionsAllowed sets the allowed actions and reusable workflows for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) EditHook(ctx context.Context, owner, repo string, id int64, body *Hook) (*Hook, *Response, error)\n```\nEditHook updates a specified Hook.\n\nGitHub API docs: [https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#update-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#update-a-repository-webhook)\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/rest/repos/repos?apiVersion=2022-11-28#enable-dependabot-security-updates](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#enable-dependabot-security-updates)\n\n```go\nfunc (s *RepositoriesService) EnableImmutableReleases(ctx context.Context, owner, repo string) (*Response, error)\n```\nEnableImmutableReleases enables immutable releases for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#enable-immutable-releases](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#enable-immutable-releases)\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/enterprise-cloud@latest/rest/repos/lfs?apiVersion=2022-11-28#enable-git-lfs-for-a-repository](https://docs.github.com/enterprise-cloud@latest/rest/repos/lfs?apiVersion=2022-11-28#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/rest/pages/pages?apiVersion=2022-11-28#create-a-github-pages-site](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#create-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) EnablePrivateReporting(ctx context.Context, owner, repo string) (*Response, error)\n```\nEnablePrivateReporting enables private reporting of vulnerabilities for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#enable-private-vulnerability-reporting-for-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#enable-private-vulnerability-reporting-for-a-repository)\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/rest/repos/repos?apiVersion=2022-11-28#enable-vulnerability-alerts](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#enable-vulnerability-alerts)\n\n```go\nfunc (s *RepositoriesService) GenerateReleaseNotes(ctx context.Context, owner, repo string, body GenerateNotesRequest) (*RepositoryReleaseNotes, *Response, error)\n```\nGenerateReleaseNotes generates the release notes for the given tag.\n\nGitHub API docs: [https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#generate-release-notes-content-for-a-release](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#get-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/rest/actions/permissions?apiVersion=2022-11-28#get-the-level-of-access-for-workflows-outside-of-the-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#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/rest/actions/permissions?apiVersion=2022-11-28#get-allowed-actions-and-reusable-workflows-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#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/rest/actions/permissions?apiVersion=2022-11-28#get-github-actions-permissions-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-admin-branch-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-admin-branch-protection)\n\n```go\nfunc (s *RepositoriesService) GetAllCustomPropertyValues(ctx context.Context, org, repo string) ([]*CustomPropertyValue, *Response, error)\n```\nGetAllCustomPropertyValues gets all custom property values that are set for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/custom-properties?apiVersion=2022-11-28#get-all-custom-property-values-for-a-repository](https://docs.github.com/rest/repos/custom-properties?apiVersion=2022-11-28#get-all-custom-property-values-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetAllDeploymentProtectionRules(ctx context.Context, owner, repo, environment string) (*ListDeploymentProtectionRuleResponse, *Response, error)\n```\nGetAllDeploymentProtectionRules gets all the deployment protection rules for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#get-all-deployment-protection-rules-for-an-environment](https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#get-all-deployment-protection-rules-for-an-environment)\n\n```go\nfunc (s *RepositoriesService) GetAllRulesets(ctx context.Context, owner, repo string, opts *RepositoryListRulesetsOptions) ([]*RepositoryRuleset, *Response, error)\n```\nGetAllRulesets gets all the repository rulesets for the specified repository. By default, this endpoint will include rulesets configured at the organization or enterprise level that apply to the repository. To exclude those rulesets, set the \\`RepositoryListRulesetsOptions.IncludesParents\\` parameter to \\`false\\`.\n\nGitHub API docs: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-all-repository-rulesets](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-all-repository-rulesets)\n\n```go\nfunc (s *RepositoriesService) GetArchiveLink(ctx context.Context, owner, repo string, archiveformat ArchiveFormat, opts *RepositoryContentGetOptions, maxRedirects int) (*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/rest/repos/contents?apiVersion=2022-11-28#download-a-repository-archive-tar](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#download-a-repository-archive-tar)\n\nGitHub API docs: [https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#download-a-repository-archive-zip](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#download-a-repository-archive-zip)\n\n```go\nfunc (s *RepositoriesService) GetArtifactAndLogRetentionPeriod(ctx context.Context, owner, repo string) (*ArtifactPeriod, *Response, error)\n```\nGetArtifactAndLogRetentionPeriod gets the artifact and log retention period for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-artifact-and-log-retention-settings-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-artifact-and-log-retention-settings-for-a-repository)\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/rest/repos/autolinks?apiVersion=2022-11-28#get-an-autolink-reference-of-a-repository](https://docs.github.com/rest/repos/autolinks?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#check-if-dependabot-security-updates-are-enabled-for-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#check-if-dependabot-security-updates-are-enabled-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetBranch(ctx context.Context, owner, repo, branch string, maxRedirects int) (*Branch, *Response, error)\n```\nGetBranch gets the specified branch for a repository.\n\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#get-a-branch](https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-branch-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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 \"GET /repositories/{repository\\_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/rest/codes-of-conduct?apiVersion=2022-11-28#about-the-codes-of-conduct-api](https://docs.github.com/rest/codes-of-conduct?apiVersion=2022-11-28#about-the-codes-of-conduct-api) says to use the GET /repos/{owner}/{repo} endpoint.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#get-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#get-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetCodeownersErrors(ctx context.Context, owner, repo string, opts *GetCodeownersErrorsOptions) (*CodeownersErrors, *Response, error)\n```\nGetCodeownersErrors lists any syntax errors that are detected in the CODEOWNERS file.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-codeowners-errors](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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. The ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [https://docs.github.com/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference](https://docs.github.com/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference)\n\n```go\nfunc (s *RepositoriesService) GetComment(ctx context.Context, owner, repo string, commentID int64) (*RepositoryComment, *Response, error)\n```\nGetComment gets a single comment from a repository.\n\nGitHub API docs: [https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#get-a-commit-comment](https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#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/rest/commits/commits?apiVersion=2022-11-28#get-a-commit](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#get-a-commit)\n\n```go\nfunc (s *RepositoriesService) GetCommitRaw(ctx context.Context, owner, repo, 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/rest/commits/commits?apiVersion=2022-11-28#get-a-commit](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#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/rest/commits/commits?apiVersion=2022-11-28#get-a-commit](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#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/rest/metrics/community?apiVersion=2022-11-28#get-community-profile-metrics](https://docs.github.com/rest/metrics/community?apiVersion=2022-11-28#get-community-profile-metrics)\n\n```go\nfunc (s *RepositoriesService) GetContents(ctx context.Context, owner, repo, path string, opts *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, resp *Response, err error)\n```\nGetContents can return either the metadata and content of a single file (when path references a file) or the metadata of all the files and/or subdirectories of a directory (when path references a directory). To make it easy to distinguish between both result types and to mimic the API as much as possible, both result types will be returned but only one will contain a value and the other will be nil.\n\nGitHub API docs: [https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#get-repository-content](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#get-repository-content)\n\n```go\nfunc (s *RepositoriesService) GetCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, protectionRuleID int64) (*CustomDeploymentProtectionRule, *Response, error)\n```\nGetCustomDeploymentProtectionRule gets a custom deployment protection rule for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#get-a-custom-deployment-protection-rule](https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#get-a-custom-deployment-protection-rule)\n\n```go\nfunc (s *RepositoriesService) GetDefaultWorkflowPermissions(ctx context.Context, owner, repo string) (*DefaultWorkflowPermissionRepository, *Response, error)\n```\nGetDefaultWorkflowPermissions gets the GitHub Actions default workflow permissions in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-default-workflow-permissions-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-default-workflow-permissions-for-a-repository)\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/rest/deployments/deployments?apiVersion=2022-11-28#get-a-deployment](https://docs.github.com/rest/deployments/deployments?apiVersion=2022-11-28#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\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#get-a-deployment-branch-policy](https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#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/rest/deployments/statuses?apiVersion=2022-11-28#get-a-deployment-status](https://docs.github.com/rest/deployments/statuses?apiVersion=2022-11-28#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\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#get-an-environment](https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#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/rest/repos/webhooks?apiVersion=2022-11-28#get-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#get-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) GetHookConfiguration(ctx context.Context, owner, repo string, id int64) (*HookConfig, *Response, error)\n```\nGetHookConfiguration returns the configuration for the specified repository webhook.\n\nGitHub API docs: [https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#get-a-webhook-configuration-for-a-repository](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#get-a-webhook-configuration-for-a-repository)\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/rest/repos/webhooks?apiVersion=2022-11-28#get-a-delivery-for-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#get-a-delivery-for-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) GetKey(ctx context.Context, owner, repo string, id int64) (*Key, *Response, error)\n```\nGetKey fetches a single deploy key.\n\nGitHub API docs: [https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#get-a-deploy-key](https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#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/rest/pages/pages?apiVersion=2022-11-28#get-latest-pages-build](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#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/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#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/rest/pages/pages?apiVersion=2022-11-28#get-github-pages-build](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#get-github-pages-build)\n\n```go\nfunc (s *RepositoriesService) GetPageHealthCheck(ctx context.Context, owner, repo string) (*PagesHealthCheckResponse, *Response, error)\n```\nGetPageHealthCheck gets a DNS health check for the CNAME record configured for a repository's GitHub Pages.\n\nGitHub API docs: [https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#get-a-dns-health-check-for-github-pages](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#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/rest/pages/pages?apiVersion=2022-11-28#get-a-github-pages-site](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#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/rest/collaborators/collaborators?apiVersion=2022-11-28#get-repository-permissions-for-a-user](https://docs.github.com/rest/collaborators/collaborators?apiVersion=2022-11-28#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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#get-a-pre-receive-hook-for-a-repository](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#get-a-pre-receive-hook-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) GetPrivateRepoForkPRWorkflowSettings(ctx context.Context, owner, repo string) (*WorkflowsPermissions, *Response, error)\n```\nGetPrivateRepoForkPRWorkflowSettings gets the settings for whether workflows from fork pull requests can run on a private repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-private-repo-fork-pr-workflow-settings-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#get-private-repo-fork-pr-workflow-settings-for-a-repository)\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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-pull-request-review-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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/rest/repos/contents?apiVersion=2022-11-28#get-a-repository-readme](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#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/rest/releases/releases?apiVersion=2022-11-28#get-a-release](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#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/rest/releases/assets?apiVersion=2022-11-28#get-a-release-asset](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#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/rest/releases/releases?apiVersion=2022-11-28#get-a-release-by-tag-name](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-status-checks-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-status-checks-protection)\n\n```go\nfunc (s *RepositoriesService) GetRuleset(ctx context.Context, owner, repo string, rulesetID int64, includesParents bool) (*RepositoryRuleset, *Response, error)\n```\nGetRuleset gets a repository ruleset for the specified repository. If includesParents is true, rulesets configured at the organization or enterprise level that apply to the repository will be returned.\n\nGitHub API docs: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-a-repository-ruleset](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-commit-signature-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#check-if-vulnerability-alerts-are-enabled-for-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/rest/collaborators/collaborators?apiVersion=2022-11-28#check-if-a-user-is-a-repository-collaborator](https://docs.github.com/rest/collaborators/collaborators?apiVersion=2022-11-28#check-if-a-user-is-a-repository-collaborator)\n\n```go\nfunc (s *RepositoriesService) IsPrivateReportingEnabled(ctx context.Context, owner, repo string) (bool, *Response, error)\n```\nIsPrivateReportingEnabled checks if private vulnerability reporting is enabled for the repository and returns a boolean indicating the status.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#check-if-private-vulnerability-reporting-is-enabled-for-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#check-if-private-vulnerability-reporting-is-enabled-for-a-repository)\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/rest/licenses/licenses?apiVersion=2022-11-28#get-the-license-for-a-repository](https://docs.github.com/rest/licenses/licenses?apiVersion=2022-11-28#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 calls either RepositoriesService.ListByUser or RepositoriesService.ListByAuthenticatedUser depending on whether user is empty.\n\nDeprecated: Use RepositoriesService.ListByUser or RepositoriesService.ListByAuthenticatedUser instead.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-user](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-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/rest/repos/repos?apiVersion=2022-11-28#list-public-repositories](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-public-repositories)\n\n```go\nfunc (s *RepositoriesService) ListAllTopics(ctx context.Context, owner, repo string, opts *ListOptions) ([]string, *Response, error)\n```\nListAllTopics lists topics for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#get-all-repository-topics](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#get-all-repository-topics)\n\n```go\nfunc (s *RepositoriesService) ListAllTopicsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[string, error]\n```\nListAllTopicsIter returns an iterator that paginates through all results of ListAllTopics.\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\nNote: This is a wrapper around ListApps so a naming convention with ListUserRestrictions and ListTeamRestrictions is preserved.\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-apps-with-access-to-the-protected-branch](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-apps-with-access-to-the-protected-branch)\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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nDeprecated: Please use ListAppRestrictions instead.\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-apps-with-access-to-the-protected-branch](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-apps-with-access-to-the-protected-branch)\n\n```go\nfunc (s *RepositoriesService) ListAttestations(ctx context.Context, owner, repo, subjectDigest string, opts *ListOptions) (*AttestationsResponse, *Response, error)\n```\nListAttestations returns a collection of artifact attestations with a given subject digest that are associated with a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/attestations?apiVersion=2022-11-28#list-attestations](https://docs.github.com/rest/repos/attestations?apiVersion=2022-11-28#list-attestations)\n\n```go\nfunc (s *RepositoriesService) ListAttestationsIter(ctx context.Context, owner string, repo string, subjectDigest string, opts *ListOptions) iter.Seq2[*Attestation, error]\n```\nListAttestationsIter returns an iterator that paginates through all results of ListAttestations.\n\n```go\nfunc (s *RepositoriesService) ListAutolinks(ctx context.Context, owner, repo string) ([]*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/rest/repos/autolinks?apiVersion=2022-11-28#get-all-autolinks-of-a-repository](https://docs.github.com/rest/repos/autolinks?apiVersion=2022-11-28#get-all-autolinks-of-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListBranches(ctx context.Context, owner, repo string, opts *BranchListOptions) ([]*Branch, *Response, error)\n```\nListBranches lists branches for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#list-branches](https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#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/rest/commits/commits?apiVersion=2022-11-28#list-branches-for-head-commit](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#list-branches-for-head-commit)\n\n```go\nfunc (s *RepositoriesService) ListBranchesIter(ctx context.Context, owner string, repo string, opts *BranchListOptions) iter.Seq2[*Branch, error]\n```\nListBranchesIter returns an iterator that paginates through all results of ListBranches.\n\n```go\nfunc (s *RepositoriesService) ListByAuthenticatedUser(ctx context.Context, opts *RepositoryListByAuthenticatedUserOptions) ([]*Repository, *Response, error)\n```\nListByAuthenticatedUser lists repositories for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-user](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-user)\n\n```go\nfunc (s *RepositoriesService) ListByAuthenticatedUserIter(ctx context.Context, opts *RepositoryListByAuthenticatedUserOptions) iter.Seq2[*Repository, error]\n```\nListByAuthenticatedUserIter returns an iterator that paginates through all results of ListByAuthenticatedUser.\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/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories)\n\n```go\nfunc (s *RepositoriesService) ListByOrgIter(ctx context.Context, org string, opts *RepositoryListByOrgOptions) iter.Seq2[*Repository, error]\n```\nListByOrgIter returns an iterator that paginates through all results of ListByOrg.\n\n```go\nfunc (s *RepositoriesService) ListByUser(ctx context.Context, user string, opts *RepositoryListByUserOptions) ([]*Repository, *Response, error)\n```\nListByUser lists public repositories for the specified user.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user)\n\n```go\nfunc (s *RepositoriesService) ListByUserIter(ctx context.Context, user string, opts *RepositoryListByUserOptions) iter.Seq2[*Repository, error]\n```\nListByUserIter returns an iterator that paginates through all results of ListByUser.\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/rest/metrics/statistics?apiVersion=2022-11-28#get-the-weekly-commit-activity](https://docs.github.com/rest/metrics/statistics?apiVersion=2022-11-28#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/rest/collaborators/collaborators?apiVersion=2022-11-28#list-repository-collaborators](https://docs.github.com/rest/collaborators/collaborators?apiVersion=2022-11-28#list-repository-collaborators)\n\n```go\nfunc (s *RepositoriesService) ListCollaboratorsIter(ctx context.Context, owner string, repo string, opts *ListCollaboratorsOptions) iter.Seq2[*User, error]\n```\nListCollaboratorsIter returns an iterator that paginates through all results of ListCollaborators.\n\n```go\nfunc (s *RepositoriesService) ListCombinedStatusIter(ctx context.Context, owner string, repo string, ref string, opts *ListOptions) iter.Seq2[*RepoStatus, error]\n```\nListCombinedStatusIter returns an iterator that paginates through all results of GetCombinedStatus.\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/rest/commits/comments?apiVersion=2022-11-28#list-commit-comments-for-a-repository](https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#list-commit-comments-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListCommentsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*RepositoryComment, error]\n```\nListCommentsIter returns an iterator that paginates through all results of ListComments.\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/rest/metrics/statistics?apiVersion=2022-11-28#get-the-last-year-of-commit-activity](https://docs.github.com/rest/metrics/statistics?apiVersion=2022-11-28#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/rest/commits/comments?apiVersion=2022-11-28#list-commit-comments](https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#list-commit-comments)\n\n```go\nfunc (s *RepositoriesService) ListCommitCommentsIter(ctx context.Context, owner string, repo string, sha string, opts *ListOptions) iter.Seq2[*RepositoryComment, error]\n```\nListCommitCommentsIter returns an iterator that paginates through all results of ListCommitComments.\n\n```go\nfunc (s *RepositoriesService) ListCommitComparisonFilesIter(ctx context.Context, owner string, repo string, base string, head string, opts *ListOptions) iter.Seq2[*CommitFile, error]\n```\nListCommitComparisonFilesIter returns an iterator that paginates through all results of CompareCommits.\n\n```go\nfunc (s *RepositoriesService) ListCommitFilesIter(ctx context.Context, owner string, repo string, sha string, opts *ListOptions) iter.Seq2[*CommitFile, error]\n```\nListCommitFilesIter returns an iterator that paginates through all results of GetCommit.\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/rest/commits/commits?apiVersion=2022-11-28#list-commits](https://docs.github.com/rest/commits/commits?apiVersion=2022-11-28#list-commits)\n\n```go\nfunc (s *RepositoriesService) ListCommitsIter(ctx context.Context, owner string, repo string, opts *CommitsListOptions) iter.Seq2[*RepositoryCommit, error]\n```\nListCommitsIter returns an iterator that paginates through all results of ListCommits.\n\n```go\nfunc (s *RepositoriesService) ListContributors(ctx context.Context, owner, repository string, opts *ListContributorsOptions) ([]*Contributor, *Response, error)\n```\nListContributors lists contributors for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-contributors](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-contributors)\n\n```go\nfunc (s *RepositoriesService) ListContributorsIter(ctx context.Context, owner string, repository string, opts *ListContributorsOptions) iter.Seq2[*Contributor, error]\n```\nListContributorsIter returns an iterator that paginates through all results of ListContributors.\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/rest/metrics/statistics?apiVersion=2022-11-28#get-all-contributor-commit-activity](https://docs.github.com/rest/metrics/statistics?apiVersion=2022-11-28#get-all-contributor-commit-activity)\n\n```go\nfunc (s *RepositoriesService) ListCustomDeploymentRuleIntegrations(ctx context.Context, owner, repo, environment string, opts *ListOptions) (*ListCustomDeploymentRuleIntegrationsResponse, *Response, error)\n```\nListCustomDeploymentRuleIntegrations lists the custom deployment rule integrations for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#list-custom-deployment-rule-integrations-available-for-an-environment](https://docs.github.com/rest/deployments/protection-rules?apiVersion=2022-11-28#list-custom-deployment-rule-integrations-available-for-an-environment)\n\n```go\nfunc (s *RepositoriesService) ListCustomDeploymentRuleIntegrationsIter(ctx context.Context, owner string, repo string, environment string, opts *ListOptions) iter.Seq2[*CustomDeploymentProtectionRuleApp, error]\n```\nListCustomDeploymentRuleIntegrationsIter returns an iterator that paginates through all results of ListCustomDeploymentRuleIntegrations.\n\n```go\nfunc (s *RepositoriesService) ListDeploymentBranchPolicies(ctx context.Context, owner, repo, environment string, opts *ListOptions) (*DeploymentBranchPolicyResponse, *Response, error)\n```\nListDeploymentBranchPolicies lists the deployment branch policies for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#list-deployment-branch-policies](https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#list-deployment-branch-policies)\n\n```go\nfunc (s *RepositoriesService) ListDeploymentBranchPoliciesIter(ctx context.Context, owner string, repo string, environment string, opts *ListOptions) iter.Seq2[*DeploymentBranchPolicy, error]\n```\nListDeploymentBranchPoliciesIter returns an iterator that paginates through all results of ListDeploymentBranchPolicies.\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/rest/deployments/statuses?apiVersion=2022-11-28#list-deployment-statuses](https://docs.github.com/rest/deployments/statuses?apiVersion=2022-11-28#list-deployment-statuses)\n\n```go\nfunc (s *RepositoriesService) ListDeploymentStatusesIter(ctx context.Context, owner string, repo string, deployment int64, opts *ListOptions) iter.Seq2[*DeploymentStatus, error]\n```\nListDeploymentStatusesIter returns an iterator that paginates through all results of ListDeploymentStatuses.\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/rest/deployments/deployments?apiVersion=2022-11-28#list-deployments](https://docs.github.com/rest/deployments/deployments?apiVersion=2022-11-28#list-deployments)\n\n```go\nfunc (s *RepositoriesService) ListDeploymentsIter(ctx context.Context, owner string, repo string, opts *DeploymentsListOptions) iter.Seq2[*Deployment, error]\n```\nListDeploymentsIter returns an iterator that paginates through all results of ListDeployments.\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/rest/deployments/environments?apiVersion=2022-11-28#list-environments](https://docs.github.com/rest/deployments/environments?apiVersion=2022-11-28#list-environments)\n\n```go\nfunc (s *RepositoriesService) ListEnvironmentsIter(ctx context.Context, owner string, repo string, opts *EnvironmentListOptions) iter.Seq2[*Environment, error]\n```\nListEnvironmentsIter returns an iterator that paginates through all results of ListEnvironments.\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/rest/repos/forks?apiVersion=2022-11-28#list-forks](https://docs.github.com/rest/repos/forks?apiVersion=2022-11-28#list-forks)\n\n```go\nfunc (s *RepositoriesService) ListForksIter(ctx context.Context, owner string, repo string, opts *RepositoryListForksOptions) iter.Seq2[*Repository, error]\n```\nListForksIter returns an iterator that paginates through all results of ListForks.\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/rest/repos/webhooks?apiVersion=2022-11-28#list-deliveries-for-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#list-deliveries-for-a-repository-webhook)\n\n```go\nfunc (s *RepositoriesService) ListHookDeliveriesIter(ctx context.Context, owner string, repo string, id int64, opts *ListCursorOptions) iter.Seq2[*HookDelivery, error]\n```\nListHookDeliveriesIter returns an iterator that paginates through all results of ListHookDeliveries.\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/rest/repos/webhooks?apiVersion=2022-11-28#list-repository-webhooks](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#list-repository-webhooks)\n\n```go\nfunc (s *RepositoriesService) ListHooksIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Hook, error]\n```\nListHooksIter returns an iterator that paginates through all results of ListHooks.\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/rest/collaborators/invitations?apiVersion=2022-11-28#list-repository-invitations](https://docs.github.com/rest/collaborators/invitations?apiVersion=2022-11-28#list-repository-invitations)\n\n```go\nfunc (s *RepositoriesService) ListInvitationsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*RepositoryInvitation, error]\n```\nListInvitationsIter returns an iterator that paginates through all results of ListInvitations.\n\n```go\nfunc (s *RepositoriesService) ListIter(ctx context.Context, user string, opts *RepositoryListOptions) iter.Seq2[*Repository, error]\n```\nListIter returns an iterator that paginates through all results of List.\n\n```go\nfunc (s *RepositoriesService) ListKeys(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Key, *Response, error)\n```\nListKeys lists the deploy keys for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#list-deploy-keys](https://docs.github.com/rest/deploy-keys/deploy-keys?apiVersion=2022-11-28#list-deploy-keys)\n\n```go\nfunc (s *RepositoriesService) ListKeysIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Key, error]\n```\nListKeysIter returns an iterator that paginates through all results of ListKeys.\n\n```go\nfunc (s *RepositoriesService) ListLanguages(ctx context.Context, owner, 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/rest/repos/repos?apiVersion=2022-11-28#list-repository-languages](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/rest/pages/pages?apiVersion=2022-11-28#list-github-pages-builds](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#list-github-pages-builds)\n\n```go\nfunc (s *RepositoriesService) ListPagesBuildsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*PagesBuild, error]\n```\nListPagesBuildsIter returns an iterator that paginates through all results of ListPagesBuilds.\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/rest/metrics/statistics?apiVersion=2022-11-28#get-the-weekly-commit-count](https://docs.github.com/rest/metrics/statistics?apiVersion=2022-11-28#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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#list-pre-receive-hooks-for-a-repository](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#list-pre-receive-hooks-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListPreReceiveHooksIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*PreReceiveHook, error]\n```\nListPreReceiveHooksIter returns an iterator that paginates through all results of ListPreReceiveHooks.\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/rest/metrics/statistics?apiVersion=2022-11-28#get-the-hourly-commit-count-for-each-day](https://docs.github.com/rest/metrics/statistics?apiVersion=2022-11-28#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/rest/releases/assets?apiVersion=2022-11-28#list-release-assets](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#list-release-assets)\n\n```go\nfunc (s *RepositoriesService) ListReleaseAssetsIter(ctx context.Context, owner string, repo string, id int64, opts *ListOptions) iter.Seq2[*ReleaseAsset, error]\n```\nListReleaseAssetsIter returns an iterator that paginates through all results of ListReleaseAssets.\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/rest/releases/releases?apiVersion=2022-11-28#list-releases](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#list-releases)\n\n```go\nfunc (s *RepositoriesService) ListReleasesIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*RepositoryRelease, error]\n```\nListReleasesIter returns an iterator that paginates through all results of ListReleases.\n\n```go\nfunc (s *RepositoriesService) ListRepositoryActivities(ctx context.Context, owner, repo string, opts *ListRepositoryActivityOptions) ([]*RepositoryActivity, *Response, error)\n```\nListRepositoryActivities lists the activities for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-activities](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-activities)\n\n```go\nfunc (s *RepositoriesService) ListRepositoryActivitiesIter(ctx context.Context, owner string, repo string, opts *ListRepositoryActivityOptions) iter.Seq2[*RepositoryActivity, error]\n```\nListRepositoryActivitiesIter returns an iterator that paginates through all results of ListRepositoryActivities.\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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-all-status-check-contexts](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-all-status-check-contexts)\n\n```go\nfunc (s *RepositoriesService) ListRulesForBranch(ctx context.Context, owner, repo, branch string, opts *ListOptions) (*BranchRules, *Response, error)\n```\nListRulesForBranch gets all the repository rules that apply to the specified branch.\n\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-rules-for-a-branch](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-rules-for-a-branch)\n\n```go\nfunc (s *RepositoriesService) ListRulesForBranchIter(ctx context.Context, owner, repo, branch string, opts *ListOptions) iter.Seq2[any, error]\n```\nListRulesForBranchIter returns an iterator that paginates through all results of ListRulesForBranch.\n\nNote that since [BranchRules](#BranchRules) contains a large number of slices, this iterator returns type \\`any\\` and it is therefore the responsibility of the caller to perform a type switch to determine what item is being returned for each iteration.\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. The ref can be a SHA, a branch name, or a tag name.\n\nGitHub API docs: [https://docs.github.com/rest/commits/statuses?apiVersion=2022-11-28#list-commit-statuses-for-a-reference](https://docs.github.com/rest/commits/statuses?apiVersion=2022-11-28#list-commit-statuses-for-a-reference)\n\n```go\nfunc (s *RepositoriesService) ListStatusesIter(ctx context.Context, owner string, repo string, ref string, opts *ListOptions) iter.Seq2[*RepoStatus, error]\n```\nListStatusesIter returns an iterator that paginates through all results of ListStatuses.\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\nDeprecated: This operation is deprecated and will be removed after August 30, 2024. Use the \"Repository Rulesets\" endpoint instead: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-all-repository-rulesets](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#get-all-repository-rulesets)\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.20/rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository](https://docs.github.com/enterprise-server@3.20/rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) ListTags(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryTag, *Response, error)\n```\nListTags lists tags for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-tags](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-tags)\n\n```go\nfunc (s *RepositoriesService) ListTagsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*RepositoryTag, error]\n```\nListTagsIter returns an iterator that paginates through all results of ListTags.\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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-teams-with-access-to-the-protected-branch](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-teams-with-access-to-the-protected-branch)\n\n```go\nfunc (s *RepositoriesService) ListTeams(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Team, *Response, error)\n```\nListTeams lists the teams for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-teams](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#list-repository-teams)\n\n```go\nfunc (s *RepositoriesService) ListTeamsIter(ctx context.Context, owner string, repo string, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListTeamsIter returns an iterator that paginates through all results of ListTeams.\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/rest/metrics/traffic?apiVersion=2022-11-28#get-repository-clones](https://docs.github.com/rest/metrics/traffic?apiVersion=2022-11-28#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/rest/metrics/traffic?apiVersion=2022-11-28#get-top-referral-paths](https://docs.github.com/rest/metrics/traffic?apiVersion=2022-11-28#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/rest/metrics/traffic?apiVersion=2022-11-28#get-top-referral-sources](https://docs.github.com/rest/metrics/traffic?apiVersion=2022-11-28#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/rest/metrics/traffic?apiVersion=2022-11-28#get-page-views](https://docs.github.com/rest/metrics/traffic?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-users-with-access-to-the-protected-branch](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#get-users-with-access-to-the-protected-branch)\n\n```go\nfunc (s *RepositoriesService) Merge(ctx context.Context, owner, repo string, body RepositoryMergeRequest) (*RepositoryCommit, *Response, error)\n```\nMerge a branch in the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#merge-a-branch](https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#merge-a-branch)\n\n```go\nfunc (s *RepositoriesService) MergeUpstream(ctx context.Context, owner, repo string, body 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/rest/branches/branches?apiVersion=2022-11-28#sync-a-fork-branch-with-the-upstream-repository](https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#delete-commit-signature-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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/rest/repos/webhooks?apiVersion=2022-11-28#ping-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#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/rest/repos/webhooks?apiVersion=2022-11-28#redeliver-a-delivery-for-a-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#delete-admin-branch-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#remove-app-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#delete-branch-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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/rest/collaborators/collaborators?apiVersion=2022-11-28#remove-a-repository-collaborator](https://docs.github.com/rest/collaborators/collaborators?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#delete-pull-request-review-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#remove-status-check-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#remove-team-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#remove-user-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#remove-user-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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#rename-a-branch](https://docs.github.com/rest/branches/branches?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#replace-all-repository-topics](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#replace-all-repository-topics)\n\n```go\nfunc (s *RepositoriesService) ReplaceAppRestrictions(ctx context.Context, owner, repo, branch string, body []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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-app-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-app-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) ReplaceTeamRestrictions(ctx context.Context, owner, repo, branch string, body []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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-team-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-team-access-restrictions)\n\n```go\nfunc (s *RepositoriesService) ReplaceUserRestrictions(ctx context.Context, owner, repo, branch string, body []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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-user-access-restrictions](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#set-user-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/rest/pages/pages?apiVersion=2022-11-28#request-a-github-pages-build](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#create-commit-signature-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#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/webhooks/about-webhooks-for-repositories#pubsubhubbub](https://docs.github.com/webhooks/about-webhooks-for-repositories#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/rest/repos/webhooks?apiVersion=2022-11-28#test-the-push-repository-webhook](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#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/rest/repos/repos?apiVersion=2022-11-28#transfer-a-repository](https://docs.github.com/rest/repos/repos?apiVersion=2022-11-28#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/webhooks/about-webhooks-for-repositories#pubsubhubbub](https://docs.github.com/webhooks/about-webhooks-for-repositories#pubsubhubbub)\n\n```go\nfunc (s *RepositoriesService) UpdateActionsPermissions(ctx context.Context, owner, repo string, body ActionsPermissionsRepository) (*ActionsPermissionsRepository, *Response, error)\n```\nUpdateActionsPermissions sets the permissions policy for repositories and allowed actions in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) UpdateArtifactAndLogRetentionPeriod(ctx context.Context, owner, repo string, body ArtifactPeriodOpt) (*Response, error)\n```\nUpdateArtifactAndLogRetentionPeriod sets the artifact and log retention period for a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) UpdateBranchProtection(ctx context.Context, owner, repo, branch string, body *ProtectionRequest) (*Protection, *Response, error)\n```\nUpdateBranchProtection updates the protection of a given branch.\n\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-branch-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-branch-protection)\n\n```go\nfunc (s *RepositoriesService) UpdateComment(ctx context.Context, owner, repo string, commentID int64, body UpdateCommitCommentRequest) (*RepositoryComment, *Response, error)\n```\nUpdateComment updates the body of a single comment.\n\nGitHub API docs: [https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#update-a-commit-comment](https://docs.github.com/rest/commits/comments?apiVersion=2022-11-28#update-a-commit-comment)\n\n```go\nfunc (s *RepositoriesService) UpdateDefaultWorkflowPermissions(ctx context.Context, owner, repo string, body DefaultWorkflowPermissionRepository) (*DefaultWorkflowPermissionRepository, *Response, error)\n```\nUpdateDefaultWorkflowPermissions sets the GitHub Actions default workflow permissions in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) UpdateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64, body UpdateDeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error)\n```\nUpdateDeploymentBranchPolicy updates a deployment branch policy for an environment.\n\nNote: the environment name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#update-a-deployment-branch-policy](https://docs.github.com/rest/deployments/branch-policies?apiVersion=2022-11-28#update-a-deployment-branch-policy)\n\n```go\nfunc (s *RepositoriesService) UpdateFile(ctx context.Context, owner, repo, path string, body *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/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents](https://docs.github.com/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents)\n\n```go\nfunc (s *RepositoriesService) UpdateHookConfiguration(ctx context.Context, owner, repo string, id int64, body HookConfig) (*HookConfig, *Response, error)\n```\nUpdateHookConfiguration updates the configuration for the specified repository webhook.\n\nGitHub API docs: [https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#update-a-webhook-configuration-for-a-repository](https://docs.github.com/rest/repos/webhooks?apiVersion=2022-11-28#update-a-webhook-configuration-for-a-repository)\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/rest/collaborators/invitations?apiVersion=2022-11-28#update-a-repository-invitation](https://docs.github.com/rest/collaborators/invitations?apiVersion=2022-11-28#update-a-repository-invitation)\n\n```go\nfunc (s *RepositoriesService) UpdatePages(ctx context.Context, owner, repo string, body *PagesUpdate) (*Response, error)\n```\nUpdatePages updates GitHub Pages for the named repo.\n\nGitHub API docs: [https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#update-information-about-a-github-pages-site](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#update-information-about-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) UpdatePagesGHES(ctx context.Context, owner, repo string, body *PagesUpdateWithoutCNAME) (*Response, error)\n```\nUpdatePagesGHES updates GitHub Pages for the named repo in GitHub Enterprise Servers.\n\nGitHub API docs: [https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#update-information-about-a-github-pages-site](https://docs.github.com/rest/pages/pages?apiVersion=2022-11-28#update-information-about-a-github-pages-site)\n\n```go\nfunc (s *RepositoriesService) UpdatePreReceiveHook(ctx context.Context, owner, repo string, id int64, body UpdatePreReceiveHookRequest) (*PreReceiveHook, *Response, error)\n```\nUpdatePreReceiveHook updates a specified pre-receive hook.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#update-pre-receive-hook-enforcement-for-a-repository](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/repo-pre-receive-hooks#update-pre-receive-hook-enforcement-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) UpdatePrivateRepoForkPRWorkflowSettings(ctx context.Context, owner, repo string, body *WorkflowsPermissionsOpt) (*Response, error)\n```\nUpdatePrivateRepoForkPRWorkflowSettings sets the settings for whether workflows from fork pull requests can run on a private repository.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-a-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-a-repository)\n\n```go\nfunc (s *RepositoriesService) UpdatePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string, body *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\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-pull-request-review-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-pull-request-review-protection)\n\n```go\nfunc (s *RepositoriesService) UpdateRelease(ctx context.Context, owner, repo string, id int64, body UpdateReleaseRequest) (*RepositoryRelease, *Response, error)\n```\nUpdateRelease updates a repository release.\n\nGitHub API docs: [https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#update-a-release](https://docs.github.com/rest/releases/releases?apiVersion=2022-11-28#update-a-release)\n\n```go\nfunc (s *RepositoriesService) UpdateReleaseAsset(ctx context.Context, owner, repo string, id int64, body UpdateReleaseAssetRequest) (*ReleaseAsset, *Response, error)\n```\nUpdateReleaseAsset updates a repository release asset.\n\nGitHub API docs: [https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#update-a-release-asset](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#update-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) UpdateRequiredStatusChecks(ctx context.Context, owner, repo, branch string, body *RequiredStatusChecksRequest) (*RequiredStatusChecks, *Response, error)\n```\nUpdateRequiredStatusChecks updates the required status checks for a given protected branch.\n\nNote: the branch name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-status-check-protection](https://docs.github.com/rest/branches/branch-protection?apiVersion=2022-11-28#update-status-check-protection)\n\n```go\nfunc (s *RepositoriesService) UpdateRuleset(ctx context.Context, owner, repo string, rulesetID int64, body RepositoryRuleset) (*RepositoryRuleset, *Response, error)\n```\nUpdateRuleset updates a repository ruleset for the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#update-a-repository-ruleset](https://docs.github.com/rest/repos/rules?apiVersion=2022-11-28#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/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset)\n\n```go\nfunc (s *RepositoriesService) UploadReleaseAssetFromRelease(\n\tctx context.Context,\n\trelease *RepositoryRelease,\n\topts *UploadOptions,\n\treader io.Reader,\n\tsize int64,\n) (*ReleaseAsset, *Response, error)\n```\nUploadReleaseAssetFromRelease uploads an asset using the UploadURL that's embedded in a RepositoryRelease object.\n\nThis is a convenience wrapper that extracts the release.UploadURL (which is usually templated like \"[https://uploads.github.com/.../assets{?name,label}](https://uploads.github.com/.../assets{?name,label})\") and uploads the provided data (reader + size) using the existing upload helpers.\n\nBecause release is normally the object an API call returned, its UploadURL is a value the server chose rather than one the caller did. A release whose UploadURL names an origin the client was not configured for is refused with [ErrUntrustedDestination](#ErrUntrustedDestination) rather than uploaded to, so that a response cannot take the artifact to a host of its own choosing. This function performs no host check of its own: the refusal comes from [Client.NewUploadRequest](#Client.NewUploadRequest), which every upload here is built through. Configure a legitimate alternate upload host with [WithURLs](#WithURLs) or [WithEnterpriseURLs](#WithEnterpriseURLs).\n\nGitHub API docs: [https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset](https://docs.github.com/rest/releases/assets?apiVersion=2022-11-28#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               *RepositoryPermissions `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\tCustomProperties          map[string]any         `json:\"custom_properties,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\tHasPullRequests           *bool   `json:\"has_pull_requests,omitempty\"`\n\tPullRequestCreationPolicy *string `json:\"pull_request_creation_policy,omitempty\"` // Can be one of: \"all\", \"collaborators_only\"\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/rest/search?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#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) GetCustomProperties() map[string]any\n```\nGetCustomProperties returns the CustomProperties map if it's non-nil, an empty map 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) GetHasPullRequests() bool\n```\nGetHasPullRequests returns the HasPullRequests 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() *RepositoryPermissions\n```\nGetPermissions returns the Permissions field.\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) GetPullRequestCreationPolicy() string\n```\nGetPullRequestCreationPolicy returns the PullRequestCreationPolicy 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) GetTextMatches() []*TextMatch\n```\nGetTextMatches returns the TextMatches slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *Repository) GetTopics() []string\n```\nGetTopics returns the Topics slice if it's non-nil, nil otherwise.\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\"`\n}\n```\nRepositoryActionsAccessLevel represents the repository actions access level.\n\nGitHub API docs: [https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#set-the-level-of-access-for-workflows-outside-of-the-repository](https://docs.github.com/rest/actions/permissions?apiVersion=2022-11-28#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.\n\n```go\ntype RepositoryActiveCommitters struct {\n\tName                                string                                 `json:\"name\"`\n\tAdvancedSecurityCommitters          int                                    `json:\"advanced_security_committers\"`\n\tAdvancedSecurityCommittersBreakdown []*AdvancedSecurityCommittersBreakdown `json:\"advanced_security_committers_breakdown\"`\n}\n```\nRepositoryActiveCommitters represents active committers on each repository.\n\n```go\nfunc (r *RepositoryActiveCommitters) GetAdvancedSecurityCommitters() int\n```\nGetAdvancedSecurityCommitters returns the AdvancedSecurityCommitters field.\n\n```go\nfunc (r *RepositoryActiveCommitters) GetAdvancedSecurityCommittersBreakdown() []*AdvancedSecurityCommittersBreakdown\n```\nGetAdvancedSecurityCommittersBreakdown returns the AdvancedSecurityCommittersBreakdown slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryActiveCommitters) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype RepositoryActivity struct {\n\tID           int64            `json:\"id\"`\n\tNodeID       string           `json:\"node_id\"`\n\tBefore       string           `json:\"before\"`\n\tAfter        string           `json:\"after\"`\n\tRef          string           `json:\"ref\"`\n\tTimestamp    *Timestamp       `json:\"timestamp\"`\n\tActivityType string           `json:\"activity_type\"`\n\tActor        *RepositoryActor `json:\"actor,omitempty\"`\n}\n```\nRepositoryActivity represents a repository activity.\n\n```go\nfunc (r *RepositoryActivity) GetActivityType() string\n```\nGetActivityType returns the ActivityType field.\n\n```go\nfunc (r *RepositoryActivity) GetActor() *RepositoryActor\n```\nGetActor returns the Actor field.\n\n```go\nfunc (r *RepositoryActivity) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (r *RepositoryActivity) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (r *RepositoryActivity) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (r *RepositoryActivity) GetNodeID() string\n```\nGetNodeID returns the NodeID field.\n\n```go\nfunc (r *RepositoryActivity) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (r *RepositoryActivity) GetTimestamp() Timestamp\n```\nGetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryActor 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\tUserViewType      *string `json:\"user_view_type,omitempty\"`\n\tSiteAdmin         *bool   `json:\"site_admin,omitempty\"`\n}\n```\nRepositoryActor represents a repository actor.\n\n```go\nfunc (r *RepositoryActor) GetAvatarURL() string\n```\nGetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetEventsURL() string\n```\nGetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetFollowersURL() string\n```\nGetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetFollowingURL() string\n```\nGetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetGistsURL() string\n```\nGetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetGravatarID() string\n```\nGetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetLogin() string\n```\nGetLogin returns the Login field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetOrganizationsURL() string\n```\nGetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetReceivedEventsURL() string\n```\nGetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetReposURL() string\n```\nGetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetSiteAdmin() bool\n```\nGetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetStarredURL() string\n```\nGetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetSubscriptionsURL() string\n```\nGetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryActor) GetUserViewType() string\n```\nGetUserViewType returns the UserViewType field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryAttachment struct {\n\tStatus     *string     `json:\"status\"`\n\tRepository *Repository `json:\"repository\"`\n}\n```\nRepositoryAttachment represents a repository attachment to a code security configuration.\n\n```go\nfunc (r *RepositoryAttachment) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (r *RepositoryAttachment) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryCodeSecurityConfiguration struct {\n\tState         *string                    `json:\"state,omitempty\"`\n\tConfiguration *CodeSecurityConfiguration `json:\"configuration,omitempty\"`\n}\n```\nRepositoryCodeSecurityConfiguration represents a code security configuration for a repository.\n\n```go\nfunc (r *RepositoryCodeSecurityConfiguration) GetConfiguration() *CodeSecurityConfiguration\n```\nGetConfiguration returns the Configuration field.\n\n```go\nfunc (r *RepositoryCodeSecurityConfiguration) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\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\tAuthorAssociation *string    `json:\"author_association,omitempty\"`\n\tReactions         *Reactions `json:\"reactions,omitempty\"`\n\tCreatedAt         *Timestamp `json:\"created_at,omitempty\"`\n\tUpdatedAt         *Timestamp `json:\"updated_at,omitempty\"`\n\tBody              *string    `json:\"body,omitempty\"`\n\tPath              *string    `json:\"path,omitempty\"`\n\tPosition          *int       `json:\"position,omitempty\"`\n\tLine              *int       `json:\"line,omitempty\"`\n}\n```\nRepositoryComment represents a comment for a commit, file, or line in a repository.\n\n```go\nfunc (r *RepositoryComment) GetAuthorAssociation() string\n```\nGetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.\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) GetLine() int\n```\nGetLine returns the Line 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) GetFiles() []*CommitFile\n```\nGetFiles returns the Files slice if it's non-nil, nil otherwise.\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) GetParents() []*Commit\n```\nGetParents returns the Parents slice if it's non-nil, nil 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) GetContent() []byte\n```\nGetContent returns the Content slice if it's non-nil, nil otherwise.\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. E.g., \\`6540c41b\\`, \\`heads/main\\`, \\`tags/v1.0\\`.\n\n```go\nfunc (r *RepositoryContentGetOptions) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\ntype RepositoryContentResponse struct {\n\tContent *RepositoryContent `json:\"content,omitempty\"`\n\tCommit  `json:\"commit\"`\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 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/developers/webhooks-and-events/webhook-events-and-payloads#repository\\_dispatch](https://docs.github.com/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) GetClientPayload() json.RawMessage\n```\nGetClientPayload returns the ClientPayload field.\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 triggered 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/developers/webhooks-and-events/webhook-events-and-payloads#repository](https://docs.github.com/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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository\\_import](https://docs.github.com/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\tExpired     *bool      `json:\"expired,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) GetExpired() bool\n```\nGetExpired returns the Expired 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\nfunc (r *RepositoryListAllOptions) GetSince() int64\n```\nGetSince returns the Since field.\n\n```go\ntype RepositoryListByAuthenticatedUserOptions struct {\n\t// Limit results to repositories with the specified visibility.\n\t// Default: all\n\t// Can be one of: all, public, private\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// Limit results to repositories of the specified type. Will cause a 422 error if\n\t// used in the same request as visibility or affiliation.\n\t// Default: all\n\t// Can be one of: all, owner, public, private, member\n\tType string `url:\"type,omitempty\"`\n\n\t// The property to sort the results by.\n\t// Default: full_name\n\t// Can be one of: created, updated, pushed, 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```\nRepositoryListByAuthenticatedUserOptions specifies the optional parameters to the RepositoriesService.ListByAuthenticatedUser method.\n\n```go\nfunc (r *RepositoryListByAuthenticatedUserOptions) GetAffiliation() string\n```\nGetAffiliation returns the Affiliation field.\n\n```go\nfunc (r *RepositoryListByAuthenticatedUserOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (r *RepositoryListByAuthenticatedUserOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (r *RepositoryListByAuthenticatedUserOptions) GetType() string\n```\nGetType returns the Type field.\n\n```go\nfunc (r *RepositoryListByAuthenticatedUserOptions) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\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\nfunc (r *RepositoryListByOrgOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (r *RepositoryListByOrgOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (r *RepositoryListByOrgOptions) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype RepositoryListByUserOptions struct {\n\t// Limit results to repositories of the specified type.\n\t// Default: owner\n\t// Can be one of: all, owner, member\n\tType string `url:\"type,omitempty\"`\n\n\t// The property to sort the results by.\n\t// Default: full_name\n\t// Can be one of: created, updated, pushed, full_name\n\tSort string `url:\"sort,omitempty\"`\n\n\t// The order to sort by.\n\t// Default: asc when using full_name; otherwise, desc.\n\t// Can be one of: asc, desc\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListByUserOptions specifies the optional parameters to the RepositoriesService.ListByUser method.\n\n```go\nfunc (r *RepositoryListByUserOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (r *RepositoryListByUserOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (r *RepositoryListByUserOptions) GetType() string\n```\nGetType returns the Type field.\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\nfunc (r *RepositoryListForksOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\ntype RepositoryListOptions struct {\n\t// See RepositoryListByAuthenticatedUserOptions.Visibility\n\tVisibility string `url:\"visibility,omitempty\"`\n\n\t// See RepositoryListByAuthenticatedUserOptions.Affiliation\n\tAffiliation string `url:\"affiliation,omitempty\"`\n\n\t// See RepositoryListByUserOptions.Type or RepositoryListByAuthenticatedUserOptions.Type\n\tType string `url:\"type,omitempty\"`\n\n\t// See RepositoryListByUserOptions.Sort or RepositoryListByAuthenticatedUserOptions.Sort\n\tSort string `url:\"sort,omitempty\"`\n\n\t// See RepositoryListByUserOptions.Direction or RepositoryListByAuthenticatedUserOptions.Direction\n\tDirection string `url:\"direction,omitempty\"`\n\n\tListOptions\n}\n```\nRepositoryListOptions specifies the optional parameters to the RepositoriesService.List method.\n\n```go\nfunc (r *RepositoryListOptions) GetAffiliation() string\n```\nGetAffiliation returns the Affiliation field.\n\n```go\nfunc (r *RepositoryListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (r *RepositoryListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (r *RepositoryListOptions) GetType() string\n```\nGetType returns the Type field.\n\n```go\nfunc (r *RepositoryListOptions) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype RepositoryListRulesetsOptions struct {\n\t// IncludesParents indicates whether to include rulesets configured at the organization or enterprise level that apply to the repository.\n\tIncludesParents *bool `url:\"includes_parents,omitempty\"`\n\tListOptions\n}\n```\nRepositoryListRulesetsOptions specifies optional parameters to the RepositoriesService.GetAllRulesets method.\n\n```go\nfunc (r *RepositoryListRulesetsOptions) GetIncludesParents() bool\n```\nGetIncludesParents returns the IncludesParents field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryMergeRequest struct {\n\tBase          string  `json:\"base\"`\n\tHead          string  `json:\"head\"`\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.\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.\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 themselves.\n\n```go\nfunc (r *RepositoryParticipation) GetAll() []int\n```\nGetAll returns the All slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryParticipation) GetOwner() []int\n```\nGetOwner returns the Owner slice if it's non-nil, nil otherwise.\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\tRoleName *string `json:\"role_name,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) GetRoleName() string\n```\nGetRoleName returns the RoleName 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 RepositoryPermissions struct {\n\tAdmin    *bool `json:\"admin,omitempty\"`\n\tMaintain *bool `json:\"maintain,omitempty\"`\n\tPush     *bool `json:\"push,omitempty\"`\n\tTriage   *bool `json:\"triage,omitempty\"`\n\tPull     *bool `json:\"pull,omitempty\"`\n}\n```\nRepositoryPermissions represents the permissions a user has for a repository.\n\n```go\nfunc (r *RepositoryPermissions) GetAdmin() bool\n```\nGetAdmin returns the Admin field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryPermissions) GetMaintain() bool\n```\nGetMaintain returns the Maintain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryPermissions) GetPull() bool\n```\nGetPull returns the Pull field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryPermissions) GetPush() bool\n```\nGetPush returns the Push field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryPermissions) GetTriage() bool\n```\nGetTriage returns the Triage field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryRelease struct {\n\tTagName         string          `json:\"tag_name\"`\n\tTargetCommitish string          `json:\"target_commitish\"`\n\tName            *string         `json:\"name\"`\n\tBody            *string         `json:\"body,omitempty\"`\n\tDraft           bool            `json:\"draft\"`\n\tPrerelease      bool            `json:\"prerelease\"`\n\tImmutable       *bool           `json:\"immutable,omitempty\"`\n\tID              int64           `json:\"id\"`\n\tCreatedAt       Timestamp       `json:\"created_at\"`\n\tPublishedAt     *Timestamp      `json:\"published_at\"`\n\tUpdatedAt       *Timestamp      `json:\"updated_at,omitempty\"`\n\tURL             string          `json:\"url\"`\n\tHTMLURL         string          `json:\"html_url\"`\n\tAssetsURL       string          `json:\"assets_url\"`\n\tAssets          []*ReleaseAsset `json:\"assets\"`\n\tUploadURL       string          `json:\"upload_url\"`\n\tZipballURL      *string         `json:\"zipball_url\"`\n\tTarballURL      *string         `json:\"tarball_url\"`\n\tAuthor          *User           `json:\"author\"`\n\tNodeID          string          `json:\"node_id\"`\n\tBodyHTML        *string         `json:\"body_html,omitempty\"`\n\tBodyText        *string         `json:\"body_text,omitempty\"`\n\tMentionsCount   *int            `json:\"mentions_count,omitempty\"`\n\tDiscussionURL   *string         `json:\"discussion_url,omitempty\"`\n\tReactions       *Reactions      `json:\"reactions,omitempty\"`\n}\n```\nRepositoryRelease represents a GitHub release in a repository.\n\n```go\nfunc (r *RepositoryRelease) GetAssets() []*ReleaseAsset\n```\nGetAssets returns the Assets slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetAssetsURL() string\n```\nGetAssetsURL returns the AssetsURL field.\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) GetBodyHTML() string\n```\nGetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetBodyText() string\n```\nGetBodyText returns the BodyText field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (r *RepositoryRelease) GetDiscussionURL() string\n```\nGetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetDraft() bool\n```\nGetDraft returns the Draft field.\n\n```go\nfunc (r *RepositoryRelease) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field.\n\n```go\nfunc (r *RepositoryRelease) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (r *RepositoryRelease) GetImmutable() bool\n```\nGetImmutable returns the Immutable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetMentionsCount() int\n```\nGetMentionsCount returns the MentionsCount 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.\n\n```go\nfunc (r *RepositoryRelease) GetPrerelease() bool\n```\nGetPrerelease returns the Prerelease field.\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) GetReactions() *Reactions\n```\nGetReactions returns the Reactions field.\n\n```go\nfunc (r *RepositoryRelease) GetTagName() string\n```\nGetTagName returns the TagName field.\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.\n\n```go\nfunc (r *RepositoryRelease) GetURL() string\n```\nGetURL returns the URL field.\n\n```go\nfunc (r *RepositoryRelease) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRelease) GetUploadURL() string\n```\nGetUploadURL returns the UploadURL field.\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\nfunc (r *RepositoryReleaseNotes) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\nfunc (r *RepositoryReleaseNotes) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype RepositoryRule struct {\n\tType       RepositoryRuleType `json:\"type\"`\n\tParameters any                `json:\"parameters,omitempty\"`\n}\n```\nRepositoryRule represents a GitHub ruleset rule object.\n\n```go\nfunc (r *RepositoryRule) GetParameters() any\n```\nGetParameters returns the Parameters field.\n\n```go\nfunc (r *RepositoryRule) GetType() RepositoryRuleType\n```\nGetType returns the Type field.\n\n```go\nfunc (r *RepositoryRule) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON is a custom JSON unmarshaler for RulesetRule.\n\n```go\ntype RepositoryRuleType string\n```\nRepositoryRuleType represents a GitHub ruleset rule type.\n\n```go\nconst (\n\t// Branch or tag target rules.\n\tRulesetRuleTypeBranchNamePattern        RepositoryRuleType = \"branch_name_pattern\"\n\tRulesetRuleTypeCodeCoverage             RepositoryRuleType = \"code_coverage\"\n\tRulesetRuleTypeCodeScanning             RepositoryRuleType = \"code_scanning\"\n\tRulesetRuleTypeCommitAuthorEmailPattern RepositoryRuleType = \"commit_author_email_pattern\"\n\tRulesetRuleTypeCommitMessagePattern     RepositoryRuleType = \"commit_message_pattern\"\n\tRulesetRuleTypeCommitterEmailPattern    RepositoryRuleType = \"committer_email_pattern\"\n\tRulesetRuleTypeCopilotCodeReview        RepositoryRuleType = \"copilot_code_review\"\n\tRulesetRuleTypeCreation                 RepositoryRuleType = \"creation\"\n\tRulesetRuleTypeDeletion                 RepositoryRuleType = \"deletion\"\n\tRulesetRuleTypeMergeQueue               RepositoryRuleType = \"merge_queue\"\n\tRulesetRuleTypeNonFastForward           RepositoryRuleType = \"non_fast_forward\"\n\tRulesetRuleTypePullRequest              RepositoryRuleType = \"pull_request\"\n\tRulesetRuleTypeRequiredDeployments      RepositoryRuleType = \"required_deployments\"\n\tRulesetRuleTypeRequiredLinearHistory    RepositoryRuleType = \"required_linear_history\"\n\tRulesetRuleTypeRequiredSignatures       RepositoryRuleType = \"required_signatures\"\n\tRulesetRuleTypeRequiredStatusChecks     RepositoryRuleType = \"required_status_checks\"\n\tRulesetRuleTypeTagNamePattern           RepositoryRuleType = \"tag_name_pattern\"\n\tRulesetRuleTypeUpdate                   RepositoryRuleType = \"update\"\n\tRulesetRuleTypeWorkflows                RepositoryRuleType = \"workflows\"\n\n\t// Push target rules.\n\tRulesetRuleTypeFileExtensionRestriction RepositoryRuleType = \"file_extension_restriction\"\n\tRulesetRuleTypeFilePathRestriction      RepositoryRuleType = \"file_path_restriction\"\n\tRulesetRuleTypeMaxFilePathLength        RepositoryRuleType = \"max_file_path_length\"\n\tRulesetRuleTypeMaxFileSize              RepositoryRuleType = \"max_file_size\"\n\n\t// Repository target rules.\n\tRulesetRuleTypeRepositoryCreate     RepositoryRuleType = \"repository_create\"\n\tRulesetRuleTypeRepositoryDelete     RepositoryRuleType = \"repository_delete\"\n\tRulesetRuleTypeRepositoryName       RepositoryRuleType = \"repository_name\"\n\tRulesetRuleTypeRepositoryTransfer   RepositoryRuleType = \"repository_transfer\"\n\tRulesetRuleTypeRepositoryVisibility RepositoryRuleType = \"repository_visibility\"\n)\n```\nThis is the set of GitHub ruleset rule types.\n\n```go\ntype RepositoryRuleset struct {\n\tID                   *int64                       `json:\"id,omitempty\"`\n\tName                 string                       `json:\"name\"`\n\tTarget               *RulesetTarget               `json:\"target,omitempty\"`\n\tSourceType           *RulesetSourceType           `json:\"source_type,omitempty\"`\n\tSource               string                       `json:\"source\"`\n\tEnforcement          RulesetEnforcement           `json:\"enforcement\"`\n\tBypassActors         []*BypassActor               `json:\"bypass_actors,omitzero\"`\n\tCurrentUserCanBypass *BypassMode                  `json:\"current_user_can_bypass,omitempty\"`\n\tNodeID               *string                      `json:\"node_id,omitempty\"`\n\tLinks                *RepositoryRulesetLinks      `json:\"_links,omitempty\"`\n\tConditions           *RepositoryRulesetConditions `json:\"conditions,omitempty\"`\n\tRules                *RepositoryRulesetRules      `json:\"rules,omitempty\"`\n\tUpdatedAt            *Timestamp                   `json:\"updated_at,omitempty\"`\n\tCreatedAt            *Timestamp                   `json:\"created_at,omitempty\"`\n}\n```\nRepositoryRuleset represents a GitHub ruleset object.\n\n```go\nfunc (r *RepositoryRuleset) GetBypassActors() []*BypassActor\n```\nGetBypassActors returns the BypassActors slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRuleset) GetConditions() *RepositoryRulesetConditions\n```\nGetConditions returns the Conditions field.\n\n```go\nfunc (r *RepositoryRuleset) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRuleset) GetCurrentUserCanBypass() *BypassMode\n```\nGetCurrentUserCanBypass returns the CurrentUserCanBypass field.\n\n```go\nfunc (r *RepositoryRuleset) GetEnforcement() RulesetEnforcement\n```\nGetEnforcement returns the Enforcement field.\n\n```go\nfunc (r *RepositoryRuleset) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRuleset) GetLinks() *RepositoryRulesetLinks\n```\nGetLinks returns the Links field.\n\n```go\nfunc (r *RepositoryRuleset) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (r *RepositoryRuleset) GetNodeID() string\n```\nGetNodeID returns the NodeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRuleset) GetRules() *RepositoryRulesetRules\n```\nGetRules returns the Rules field.\n\n```go\nfunc (r *RepositoryRuleset) GetSource() string\n```\nGetSource returns the Source field.\n\n```go\nfunc (r *RepositoryRuleset) GetSourceType() *RulesetSourceType\n```\nGetSourceType returns the SourceType field.\n\n```go\nfunc (r *RepositoryRuleset) GetTarget() *RulesetTarget\n```\nGetTarget returns the Target field.\n\n```go\nfunc (r *RepositoryRuleset) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryRulesetChangeSource struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nRepositoryRulesetChangeSource represents a source change for the ruleset.\n\n```go\nfunc (r *RepositoryRulesetChangeSource) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryRulesetChangeSources struct {\n\tFrom []string `json:\"from,omitempty\"`\n}\n```\nRepositoryRulesetChangeSources represents multiple source changes for the ruleset.\n\n```go\nfunc (r *RepositoryRulesetChangeSources) GetFrom() []string\n```\nGetFrom returns the From slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetChangedConditions struct {\n\tAdded   []*RepositoryRulesetConditions        `json:\"added,omitempty\"`\n\tDeleted []*RepositoryRulesetConditions        `json:\"deleted,omitempty\"`\n\tUpdated []*RepositoryRulesetUpdatedConditions `json:\"updated,omitempty\"`\n}\n```\nRepositoryRulesetChangedConditions holds changes to conditions in a ruleset.\n\n```go\nfunc (r *RepositoryRulesetChangedConditions) GetAdded() []*RepositoryRulesetConditions\n```\nGetAdded returns the Added slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetChangedConditions) GetDeleted() []*RepositoryRulesetConditions\n```\nGetDeleted returns the Deleted slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetChangedConditions) GetUpdated() []*RepositoryRulesetUpdatedConditions\n```\nGetUpdated returns the Updated slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetChangedRule struct {\n\tConfiguration *RepositoryRulesetChangeSource `json:\"configuration,omitempty\"`\n\tRuleType      *RepositoryRulesetChangeSource `json:\"rule_type,omitempty\"`\n\tPattern       *RepositoryRulesetChangeSource `json:\"pattern,omitempty\"`\n}\n```\nRepositoryRulesetChangedRule holds changes made to a rule in a ruleset.\n\n```go\nfunc (r *RepositoryRulesetChangedRule) GetConfiguration() *RepositoryRulesetChangeSource\n```\nGetConfiguration returns the Configuration field.\n\n```go\nfunc (r *RepositoryRulesetChangedRule) GetPattern() *RepositoryRulesetChangeSource\n```\nGetPattern returns the Pattern field.\n\n```go\nfunc (r *RepositoryRulesetChangedRule) GetRuleType() *RepositoryRulesetChangeSource\n```\nGetRuleType returns the RuleType field.\n\n```go\ntype RepositoryRulesetChangedRules struct {\n\tAdded   []*RepositoryRule                `json:\"added,omitempty\"`\n\tDeleted []*RepositoryRule                `json:\"deleted,omitempty\"`\n\tUpdated []*RepositoryRulesetUpdatedRules `json:\"updated,omitempty\"`\n}\n```\nRepositoryRulesetChangedRules holds changes to rules in a ruleset.\n\n```go\nfunc (r *RepositoryRulesetChangedRules) GetAdded() []*RepositoryRule\n```\nGetAdded returns the Added slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetChangedRules) GetDeleted() []*RepositoryRule\n```\nGetDeleted returns the Deleted slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetChangedRules) GetUpdated() []*RepositoryRulesetUpdatedRules\n```\nGetUpdated returns the Updated slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetChanges struct {\n\tName        *RepositoryRulesetChangeSource      `json:\"name,omitempty\"`\n\tEnforcement *RepositoryRulesetChangeSource      `json:\"enforcement,omitempty\"`\n\tConditions  *RepositoryRulesetChangedConditions `json:\"conditions,omitempty\"`\n\tRules       *RepositoryRulesetChangedRules      `json:\"rules,omitempty\"`\n}\n```\nRepositoryRulesetChanges represents the changes made to a repository ruleset.\n\n```go\nfunc (r *RepositoryRulesetChanges) GetConditions() *RepositoryRulesetChangedConditions\n```\nGetConditions returns the Conditions field.\n\n```go\nfunc (r *RepositoryRulesetChanges) GetEnforcement() *RepositoryRulesetChangeSource\n```\nGetEnforcement returns the Enforcement field.\n\n```go\nfunc (r *RepositoryRulesetChanges) GetName() *RepositoryRulesetChangeSource\n```\nGetName returns the Name field.\n\n```go\nfunc (r *RepositoryRulesetChanges) GetRules() *RepositoryRulesetChangedRules\n```\nGetRules returns the Rules field.\n\n```go\ntype RepositoryRulesetConditions struct {\n\tRefName              *RepositoryRulesetRefConditionParameters                  `json:\"ref_name,omitempty\"`\n\tRepositoryID         *RepositoryRulesetRepositoryIDsConditionParameters        `json:\"repository_id,omitempty\"`\n\tRepositoryName       *RepositoryRulesetRepositoryNamesConditionParameters      `json:\"repository_name,omitempty\"`\n\tRepositoryProperty   *RepositoryRulesetRepositoryPropertyConditionParameters   `json:\"repository_property,omitempty\"`\n\tOrganizationID       *RepositoryRulesetOrganizationIDsConditionParameters      `json:\"organization_id,omitempty\"`\n\tOrganizationName     *RepositoryRulesetOrganizationNamesConditionParameters    `json:\"organization_name,omitempty\"`\n\tOrganizationProperty *RepositoryRulesetOrganizationPropertyConditionParameters `json:\"organization_property,omitempty\"`\n}\n```\nRepositoryRulesetConditions represents the conditions object in a ruleset. Set either RepositoryName or RepositoryID or RepositoryProperty, not more than one.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetOrganizationID() *RepositoryRulesetOrganizationIDsConditionParameters\n```\nGetOrganizationID returns the OrganizationID field.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetOrganizationName() *RepositoryRulesetOrganizationNamesConditionParameters\n```\nGetOrganizationName returns the OrganizationName field.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetOrganizationProperty() *RepositoryRulesetOrganizationPropertyConditionParameters\n```\nGetOrganizationProperty returns the OrganizationProperty field.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetRefName() *RepositoryRulesetRefConditionParameters\n```\nGetRefName returns the RefName field.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetRepositoryID() *RepositoryRulesetRepositoryIDsConditionParameters\n```\nGetRepositoryID returns the RepositoryID field.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetRepositoryName() *RepositoryRulesetRepositoryNamesConditionParameters\n```\nGetRepositoryName returns the RepositoryName field.\n\n```go\nfunc (r *RepositoryRulesetConditions) GetRepositoryProperty() *RepositoryRulesetRepositoryPropertyConditionParameters\n```\nGetRepositoryProperty returns the RepositoryProperty field.\n\n```go\ntype RepositoryRulesetEvent struct {\n\tAction            *string                   `json:\"action,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\tRepositoryRuleset *RepositoryRuleset        `json:\"repository_ruleset\"`\n\tChanges           *RepositoryRulesetChanges `json:\"changes,omitempty\"`\n\tSender            *User                     `json:\"sender\"`\n}\n```\nRepositoryRulesetEvent triggers whenever there is a change to the repository's ruleset configuration.\n\nThis can include updates to protection rules, required status checks, code owners, or other related configurations.\n\nGitHub API docs: [https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository\\_ruleset](https://docs.github.com/en/webhooks/webhook-events-and-payloads#repository_ruleset)\n\n```go\nfunc (r *RepositoryRulesetEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetChanges() *RepositoryRulesetChanges\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetRepositoryRuleset() *RepositoryRuleset\n```\nGetRepositoryRuleset returns the RepositoryRuleset field.\n\n```go\nfunc (r *RepositoryRulesetEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype RepositoryRulesetLink struct {\n\tHRef *string `json:\"href,omitempty\"`\n}\n```\nRepositoryRulesetLink represents a single link object from GitHub ruleset request \\_links.\n\n```go\nfunc (r *RepositoryRulesetLink) GetHRef() string\n```\nGetHRef returns the HRef field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryRulesetLinks struct {\n\tSelf *RepositoryRulesetLink `json:\"self,omitempty\"`\n\tHTML *RepositoryRulesetLink `json:\"html,omitempty\"`\n}\n```\nRepositoryRulesetLinks represents the \"\\_links\" object in a Ruleset.\n\n```go\nfunc (r *RepositoryRulesetLinks) GetHTML() *RepositoryRulesetLink\n```\nGetHTML returns the HTML field.\n\n```go\nfunc (r *RepositoryRulesetLinks) GetSelf() *RepositoryRulesetLink\n```\nGetSelf returns the Self field.\n\n```go\ntype RepositoryRulesetOrganizationIDsConditionParameters struct {\n\tOrganizationIDs []int64 `json:\"organization_ids,omitempty\"`\n}\n```\nRepositoryRulesetOrganizationIDsConditionParameters represents the conditions object for organization\\_id.\n\n```go\nfunc (r *RepositoryRulesetOrganizationIDsConditionParameters) GetOrganizationIDs() []int64\n```\nGetOrganizationIDs returns the OrganizationIDs slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetOrganizationNamesConditionParameters struct {\n\tInclude []string `json:\"include\"`\n\tExclude []string `json:\"exclude\"`\n}\n```\nRepositoryRulesetOrganizationNamesConditionParameters represents the conditions object for organization\\_name.\n\n```go\nfunc (r *RepositoryRulesetOrganizationNamesConditionParameters) GetExclude() []string\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetOrganizationNamesConditionParameters) GetInclude() []string\n```\nGetInclude returns the Include slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetOrganizationPropertyConditionParameters struct {\n\tInclude []*RepositoryRulesetRepositoryPropertyTargetParameters `json:\"include\"`\n\tExclude []*RepositoryRulesetRepositoryPropertyTargetParameters `json:\"exclude\"`\n}\n```\nRepositoryRulesetOrganizationPropertyConditionParameters represents the conditions object for an organization property selector.\n\n```go\nfunc (r *RepositoryRulesetOrganizationPropertyConditionParameters) GetExclude() []*RepositoryRulesetRepositoryPropertyTargetParameters\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetOrganizationPropertyConditionParameters) GetInclude() []*RepositoryRulesetRepositoryPropertyTargetParameters\n```\nGetInclude returns the Include slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetRefConditionParameters struct {\n\tInclude []string `json:\"include\"`\n\tExclude []string `json:\"exclude\"`\n}\n```\nRepositoryRulesetRefConditionParameters represents the conditions object for ref\\_names.\n\n```go\nfunc (r *RepositoryRulesetRefConditionParameters) GetExclude() []string\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetRefConditionParameters) GetInclude() []string\n```\nGetInclude returns the Include slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetRepositoryIDsConditionParameters struct {\n\tRepositoryIDs []int64 `json:\"repository_ids,omitempty\"`\n}\n```\nRepositoryRulesetRepositoryIDsConditionParameters represents the conditions object for repository\\_id.\n\n```go\nfunc (r *RepositoryRulesetRepositoryIDsConditionParameters) GetRepositoryIDs() []int64\n```\nGetRepositoryIDs returns the RepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetRepositoryNamesConditionParameters struct {\n\tInclude   []string `json:\"include\"`\n\tExclude   []string `json:\"exclude\"`\n\tProtected *bool    `json:\"protected,omitempty\"`\n}\n```\nRepositoryRulesetRepositoryNamesConditionParameters represents the conditions object for repository\\_name.\n\n```go\nfunc (r *RepositoryRulesetRepositoryNamesConditionParameters) GetExclude() []string\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetRepositoryNamesConditionParameters) GetInclude() []string\n```\nGetInclude returns the Include slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetRepositoryNamesConditionParameters) GetProtected() bool\n```\nGetProtected returns the Protected field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryRulesetRepositoryPropertyConditionParameters struct {\n\tInclude []*RepositoryRulesetRepositoryPropertyTargetParameters `json:\"include\"`\n\tExclude []*RepositoryRulesetRepositoryPropertyTargetParameters `json:\"exclude\"`\n}\n```\nRepositoryRulesetRepositoryPropertyConditionParameters represents the conditions object for repository\\_property.\n\n```go\nfunc (r *RepositoryRulesetRepositoryPropertyConditionParameters) GetExclude() []*RepositoryRulesetRepositoryPropertyTargetParameters\n```\nGetExclude returns the Exclude slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetRepositoryPropertyConditionParameters) GetInclude() []*RepositoryRulesetRepositoryPropertyTargetParameters\n```\nGetInclude returns the Include slice if it's non-nil, nil otherwise.\n\n```go\ntype RepositoryRulesetRepositoryPropertyTargetParameters struct {\n\tName           string   `json:\"name\"`\n\tPropertyValues []string `json:\"property_values\"`\n\tSource         *string  `json:\"source,omitempty\"`\n}\n```\nRepositoryRulesetRepositoryPropertyTargetParameters represents a repository\\_property name and values to be used for targeting.\n\n```go\nfunc (r *RepositoryRulesetRepositoryPropertyTargetParameters) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (r *RepositoryRulesetRepositoryPropertyTargetParameters) GetPropertyValues() []string\n```\nGetPropertyValues returns the PropertyValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RepositoryRulesetRepositoryPropertyTargetParameters) GetSource() string\n```\nGetSource returns the Source field if it's non-nil, zero value otherwise.\n\n```go\ntype RepositoryRulesetRules struct {\n\t// Branch or tag target rules.\n\tCreation                 *EmptyRuleParameters\n\tUpdate                   *UpdateRuleParameters\n\tDeletion                 *EmptyRuleParameters\n\tRequiredLinearHistory    *EmptyRuleParameters\n\tMergeQueue               *MergeQueueRuleParameters\n\tRequiredDeployments      *RequiredDeploymentsRuleParameters\n\tRequiredSignatures       *EmptyRuleParameters\n\tPullRequest              *PullRequestRuleParameters\n\tRequiredStatusChecks     *RequiredStatusChecksRuleParameters\n\tNonFastForward           *EmptyRuleParameters\n\tCommitMessagePattern     *PatternRuleParameters\n\tCommitAuthorEmailPattern *PatternRuleParameters\n\tCommitterEmailPattern    *PatternRuleParameters\n\tBranchNamePattern        *PatternRuleParameters\n\tTagNamePattern           *PatternRuleParameters\n\tWorkflows                *WorkflowsRuleParameters\n\tCodeScanning             *CodeScanningRuleParameters\n\tCodeCoverage             *CodeCoverageRuleParameters\n\tCopilotCodeReview        *CopilotCodeReviewRuleParameters\n\n\t// Push target rules.\n\tFileExtensionRestriction *FileExtensionRestrictionRuleParameters\n\tFilePathRestriction      *FilePathRestrictionRuleParameters\n\tMaxFilePathLength        *MaxFilePathLengthRuleParameters\n\tMaxFileSize              *MaxFileSizeRuleParameters\n\n\t// Repository target rules.\n\tRepositoryCreate     *EmptyRuleParameters\n\tRepositoryDelete     *EmptyRuleParameters\n\tRepositoryName       *SimplePatternRuleParameters\n\tRepositoryTransfer   *EmptyRuleParameters\n\tRepositoryVisibility *RepositoryVisibilityRuleParameters\n}\n```\nRepositoryRulesetRules represents a GitHub ruleset rules object. This type doesn't have JSON annotations as it uses custom marshaling.\n\n```go\nfunc (r *RepositoryRulesetRules) GetBranchNamePattern() *PatternRuleParameters\n```\nGetBranchNamePattern returns the BranchNamePattern field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCodeCoverage() *CodeCoverageRuleParameters\n```\nGetCodeCoverage returns the CodeCoverage field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCodeScanning() *CodeScanningRuleParameters\n```\nGetCodeScanning returns the CodeScanning field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCommitAuthorEmailPattern() *PatternRuleParameters\n```\nGetCommitAuthorEmailPattern returns the CommitAuthorEmailPattern field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCommitMessagePattern() *PatternRuleParameters\n```\nGetCommitMessagePattern returns the CommitMessagePattern field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCommitterEmailPattern() *PatternRuleParameters\n```\nGetCommitterEmailPattern returns the CommitterEmailPattern field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCopilotCodeReview() *CopilotCodeReviewRuleParameters\n```\nGetCopilotCodeReview returns the CopilotCodeReview field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetCreation() *EmptyRuleParameters\n```\nGetCreation returns the Creation field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetDeletion() *EmptyRuleParameters\n```\nGetDeletion returns the Deletion field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetFileExtensionRestriction() *FileExtensionRestrictionRuleParameters\n```\nGetFileExtensionRestriction returns the FileExtensionRestriction field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetFilePathRestriction() *FilePathRestrictionRuleParameters\n```\nGetFilePathRestriction returns the FilePathRestriction field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetMaxFilePathLength() *MaxFilePathLengthRuleParameters\n```\nGetMaxFilePathLength returns the MaxFilePathLength field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetMaxFileSize() *MaxFileSizeRuleParameters\n```\nGetMaxFileSize returns the MaxFileSize field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetMergeQueue() *MergeQueueRuleParameters\n```\nGetMergeQueue returns the MergeQueue field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetNonFastForward() *EmptyRuleParameters\n```\nGetNonFastForward returns the NonFastForward field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetPullRequest() *PullRequestRuleParameters\n```\nGetPullRequest returns the PullRequest field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRepositoryCreate() *EmptyRuleParameters\n```\nGetRepositoryCreate returns the RepositoryCreate field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRepositoryDelete() *EmptyRuleParameters\n```\nGetRepositoryDelete returns the RepositoryDelete field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRepositoryName() *SimplePatternRuleParameters\n```\nGetRepositoryName returns the RepositoryName field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRepositoryTransfer() *EmptyRuleParameters\n```\nGetRepositoryTransfer returns the RepositoryTransfer field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRepositoryVisibility() *RepositoryVisibilityRuleParameters\n```\nGetRepositoryVisibility returns the RepositoryVisibility field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRequiredDeployments() *RequiredDeploymentsRuleParameters\n```\nGetRequiredDeployments returns the RequiredDeployments field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRequiredLinearHistory() *EmptyRuleParameters\n```\nGetRequiredLinearHistory returns the RequiredLinearHistory field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRequiredSignatures() *EmptyRuleParameters\n```\nGetRequiredSignatures returns the RequiredSignatures field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetRequiredStatusChecks() *RequiredStatusChecksRuleParameters\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetTagNamePattern() *PatternRuleParameters\n```\nGetTagNamePattern returns the TagNamePattern field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetUpdate() *UpdateRuleParameters\n```\nGetUpdate returns the Update field.\n\n```go\nfunc (r *RepositoryRulesetRules) GetWorkflows() *WorkflowsRuleParameters\n```\nGetWorkflows returns the Workflows field.\n\n```go\nfunc (r RepositoryRulesetRules) MarshalJSON() ([]byte, error)\n```\nMarshalJSON is a custom JSON marshaler for RulesetRules.\n\n```go\nfunc (r *RepositoryRulesetRules) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON is a custom JSON unmarshaler for RulesetRules.\n\n```go\ntype RepositoryRulesetUpdatedCondition struct {\n\tConditionType *RepositoryRulesetChangeSource  `json:\"condition_type,omitempty\"`\n\tTarget        *RepositoryRulesetChangeSource  `json:\"target,omitempty\"`\n\tInclude       *RepositoryRulesetChangeSources `json:\"include,omitempty\"`\n\tExclude       *RepositoryRulesetChangeSources `json:\"exclude,omitempty\"`\n}\n```\nRepositoryRulesetUpdatedCondition represents the changes to a condition in a ruleset.\n\n```go\nfunc (r *RepositoryRulesetUpdatedCondition) GetConditionType() *RepositoryRulesetChangeSource\n```\nGetConditionType returns the ConditionType field.\n\n```go\nfunc (r *RepositoryRulesetUpdatedCondition) GetExclude() *RepositoryRulesetChangeSources\n```\nGetExclude returns the Exclude field.\n\n```go\nfunc (r *RepositoryRulesetUpdatedCondition) GetInclude() *RepositoryRulesetChangeSources\n```\nGetInclude returns the Include field.\n\n```go\nfunc (r *RepositoryRulesetUpdatedCondition) GetTarget() *RepositoryRulesetChangeSource\n```\nGetTarget returns the Target field.\n\n```go\ntype RepositoryRulesetUpdatedConditions struct {\n\tCondition *RepositoryRulesetConditions       `json:\"condition,omitempty\"`\n\tChanges   *RepositoryRulesetUpdatedCondition `json:\"changes,omitempty\"`\n}\n```\nRepositoryRulesetUpdatedConditions represents the edited updates to conditions in a ruleset.\n\n```go\nfunc (r *RepositoryRulesetUpdatedConditions) GetChanges() *RepositoryRulesetUpdatedCondition\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (r *RepositoryRulesetUpdatedConditions) GetCondition() *RepositoryRulesetConditions\n```\nGetCondition returns the Condition field.\n\n```go\ntype RepositoryRulesetUpdatedRules struct {\n\tRule    *RepositoryRule               `json:\"rule,omitempty\"`\n\tChanges *RepositoryRulesetChangedRule `json:\"changes,omitempty\"`\n}\n```\nRepositoryRulesetUpdatedRules holds updates to rules in a ruleset.\n\n```go\nfunc (r *RepositoryRulesetUpdatedRules) GetChanges() *RepositoryRulesetChangedRule\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (r *RepositoryRulesetUpdatedRules) GetRule() *RepositoryRule\n```\nGetRule returns the Rule field.\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 RepositoryVisibilityRuleParameters struct {\n\tInternal bool `json:\"internal\"`\n\tPrivate  bool `json:\"private\"`\n\tPublic   bool `json:\"public\"`\n}\n```\nRepositoryVisibilityRuleParameters represents the repository visibility rule parameters.\n\n```go\nfunc (r *RepositoryVisibilityRuleParameters) GetInternal() bool\n```\nGetInternal returns the Internal field.\n\n```go\nfunc (r *RepositoryVisibilityRuleParameters) GetPrivate() bool\n```\nGetPrivate returns the Private field.\n\n```go\nfunc (r *RepositoryVisibilityRuleParameters) GetPublic() bool\n```\nGetPublic returns the Public field.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,omitempty\"`\n}\n```\nRepositoryVulnerabilityAlertEvent is triggered when a security alert is created, dismissed, or resolved.\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#repository\\_vulnerability\\_alert](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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\nfunc (r *RequestedAction) GetIdentifier() string\n```\nGetIdentifier returns the Identifier field.\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 RequireLastPushApprovalChanges struct {\n\tFrom *bool `json:\"from,omitempty\"`\n}\n```\nRequireLastPushApprovalChanges represents the changes made to the RequireLastPushApproval policy.\n\n```go\nfunc (r *RequireLastPushApprovalChanges) 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\nfunc (r *RequireLinearHistory) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\n\n```go\ntype RequiredConversationResolution struct {\n\tEnabled bool `json:\"enabled\"`\n}\n```\nRequiredConversationResolution requires all comments on the pull request to be resolved before it can be merged to a protected branch when enabled.\n\n```go\nfunc (r *RequiredConversationResolution) GetEnabled() bool\n```\nGetEnabled returns the Enabled field.\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 RequiredDeploymentsBranchRule struct {\n\tBranchRuleMetadata\n\tParameters RequiredDeploymentsRuleParameters `json:\"parameters\"`\n}\n```\nRequiredDeploymentsBranchRule represents a required deployments branch rule.\n\n```go\nfunc (r *RequiredDeploymentsBranchRule) GetParameters() RequiredDeploymentsRuleParameters\n```\nGetParameters returns the Parameters field.\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 RequiredDeploymentsRuleParameters struct {\n\tRequiredDeploymentEnvironments []string `json:\"required_deployment_environments\"`\n}\n```\nRequiredDeploymentsRuleParameters represents the required deployments rule parameters.\n\n```go\nfunc (r *RequiredDeploymentsRuleParameters) GetRequiredDeploymentEnvironments() []string\n```\nGetRequiredDeploymentEnvironments returns the RequiredDeploymentEnvironments slice if it's non-nil, nil otherwise.\n\n```go\ntype RequiredReviewer struct {\n\tType     *string `json:\"type,omitempty\"`\n\tReviewer any     `json:\"reviewer,omitempty\"`\n}\n```\nRequiredReviewer represents a required reviewer.\n\n```go\nfunc (r *RequiredReviewer) GetReviewer() any\n```\nGetReviewer returns the Reviewer field.\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\nfunc (r *RequiredStatusCheck) GetContext() string\n```\nGetContext returns the Context field.\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. An empty slice is valid. (Deprecated. Note: only one of\n\t// Contexts/Checks can be populated, 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. An empty slice is valid.\n\tChecks      *[]*RequiredStatusCheck `json:\"checks,omitempty\"`\n\tContextsURL *string                 `json:\"contexts_url,omitempty\"`\n\tURL         *string                 `json:\"url,omitempty\"`\n}\n```\nRequiredStatusChecks represents the protection status of an individual branch.\n\n```go\nfunc (r *RequiredStatusChecks) GetChecks() []*RequiredStatusCheck\n```\nGetChecks returns the Checks field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RequiredStatusChecks) GetContexts() []string\n```\nGetContexts returns the Contexts field if it's non-nil, zero value otherwise.\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) GetStrict() bool\n```\nGetStrict returns the Strict field.\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 RequiredStatusChecksBranchRule struct {\n\tBranchRuleMetadata\n\tParameters RequiredStatusChecksRuleParameters `json:\"parameters\"`\n}\n```\nRequiredStatusChecksBranchRule represents a required status checks branch rule.\n\n```go\nfunc (r *RequiredStatusChecksBranchRule) GetParameters() RequiredStatusChecksRuleParameters\n```\nGetParameters returns the Parameters field.\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\nfunc (r *RequiredStatusChecksChanges) GetFrom() []string\n```\nGetFrom returns the From slice if it's non-nil, nil otherwise.\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// Deprecated. 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) GetChecks() []*RequiredStatusCheck\n```\nGetChecks returns the Checks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RequiredStatusChecksRequest) GetContexts() []string\n```\nGetContexts returns the Contexts slice if it's non-nil, nil otherwise.\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\tDoNotEnforceOnCreate             *bool              `json:\"do_not_enforce_on_create,omitempty\"`\n\tRequiredStatusChecks             []*RuleStatusCheck `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\nfunc (r *RequiredStatusChecksRuleParameters) GetDoNotEnforceOnCreate() bool\n```\nGetDoNotEnforceOnCreate returns the DoNotEnforceOnCreate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RequiredStatusChecksRuleParameters) GetRequiredStatusChecks() []*RuleStatusCheck\n```\nGetRequiredStatusChecks returns the RequiredStatusChecks slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RequiredStatusChecksRuleParameters) GetStrictRequiredStatusChecksPolicy() bool\n```\nGetStrictRequiredStatusChecksPolicy returns the StrictRequiredStatusChecksPolicy field.\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\nfunc (r *Response) GetAfter() string\n```\nGetAfter returns the After field.\n\n```go\nfunc (r *Response) GetBefore() string\n```\nGetBefore returns the Before field.\n\n```go\nfunc (r *Response) GetCursor() string\n```\nGetCursor returns the Cursor field.\n\n```go\nfunc (r *Response) GetFirstPage() int\n```\nGetFirstPage returns the FirstPage field.\n\n```go\nfunc (r *Response) GetLastPage() int\n```\nGetLastPage returns the LastPage field.\n\n```go\nfunc (r *Response) GetNextPage() int\n```\nGetNextPage returns the NextPage field.\n\n```go\nfunc (r *Response) GetNextPageToken() string\n```\nGetNextPageToken returns the NextPageToken field.\n\n```go\nfunc (r *Response) GetPrevPage() int\n```\nGetPrevPage returns the PrevPage field.\n\n```go\nfunc (r *Response) GetRate() Rate\n```\nGetRate returns the Rate field.\n\n```go\nfunc (r *Response) GetTokenExpiration() Timestamp\n```\nGetTokenExpiration returns the TokenExpiration field.\n\n```go\ntype ReviewCustomDeploymentProtectionRuleRequest struct {\n\tEnvironmentName string `json:\"environment_name\"`\n\tState           string `json:\"state\"`\n\tComment         string `json:\"comment\"`\n}\n```\nReviewCustomDeploymentProtectionRuleRequest specifies the parameters to ReviewCustomDeploymentProtectionRule.\n\n```go\nfunc (r *ReviewCustomDeploymentProtectionRuleRequest) GetComment() string\n```\nGetComment returns the Comment field.\n\n```go\nfunc (r *ReviewCustomDeploymentProtectionRuleRequest) GetEnvironmentName() string\n```\nGetEnvironmentName returns the EnvironmentName field.\n\n```go\nfunc (r *ReviewCustomDeploymentProtectionRuleRequest) GetState() string\n```\nGetState returns the State field.\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) GetAction() string\n```\nGetAction returns the Action field.\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\nfunc (r *Reviewers) GetTeams() []*Team\n```\nGetTeams returns the Teams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *Reviewers) GetUsers() []*User\n```\nGetUsers returns the Users slice if it's non-nil, nil otherwise.\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\nfunc (r *ReviewersRequest) GetReviewers() []string\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *ReviewersRequest) GetTeamReviewers() []string\n```\nGetTeamReviewers returns the TeamReviewers slice if it's non-nil, nil 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\nfunc (r *Rule) GetTags() []string\n```\nGetTags returns the Tags slice if it's non-nil, nil otherwise.\n\n```go\ntype RuleCodeScanningTool struct {\n\tAlertsThreshold         CodeScanningAlertsThreshold         `json:\"alerts_threshold\"`\n\tSecurityAlertsThreshold CodeScanningSecurityAlertsThreshold `json:\"security_alerts_threshold\"`\n\tTool                    string                              `json:\"tool\"`\n}\n```\nRuleCodeScanningTool represents a single code scanning tool for the code scanning parameters.\n\n```go\nfunc (r *RuleCodeScanningTool) GetAlertsThreshold() CodeScanningAlertsThreshold\n```\nGetAlertsThreshold returns the AlertsThreshold field.\n\n```go\nfunc (r *RuleCodeScanningTool) GetSecurityAlertsThreshold() CodeScanningSecurityAlertsThreshold\n```\nGetSecurityAlertsThreshold returns the SecurityAlertsThreshold field.\n\n```go\nfunc (r *RuleCodeScanningTool) GetTool() string\n```\nGetTool returns the Tool field.\n\n```go\ntype RuleStatusCheck struct {\n\tContext       string `json:\"context\"`\n\tIntegrationID *int64 `json:\"integration_id,omitempty\"`\n}\n```\nRuleStatusCheck represents a status checks for the required status checks rule parameters.\n\n```go\nfunc (r *RuleStatusCheck) GetContext() string\n```\nGetContext returns the Context field.\n\n```go\nfunc (r *RuleStatusCheck) GetIntegrationID() int64\n```\nGetIntegrationID returns the IntegrationID field if it's non-nil, zero value otherwise.\n\n```go\ntype RuleWorkflow struct {\n\tPath         string  `json:\"path\"`\n\tRef          *string `json:\"ref,omitempty\"`\n\tRepositoryID *int64  `json:\"repository_id,omitempty\"`\n\tSHA          *string `json:\"sha,omitempty\"`\n}\n```\nRuleWorkflow represents a Workflow for the workflows rule parameters.\n\n```go\nfunc (r *RuleWorkflow) GetPath() string\n```\nGetPath returns the Path field.\n\n```go\nfunc (r *RuleWorkflow) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RuleWorkflow) GetRepositoryID() int64\n```\nGetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RuleWorkflow) GetSHA() string\n```\nGetSHA returns the SHA field if it's non-nil, zero value otherwise.\n\n```go\ntype RulesetEnforcement string\n```\nRulesetEnforcement represents a GitHub ruleset enforcement.\n\n```go\nconst (\n\tRulesetEnforcementDisabled RulesetEnforcement = \"disabled\"\n\tRulesetEnforcementActive   RulesetEnforcement = \"active\"\n\tRulesetEnforcementEvaluate RulesetEnforcement = \"evaluate\"\n)\n```\nThis is the set of GitHub ruleset enforcements.\n\n```go\ntype RulesetRequiredReviewer struct {\n\tMinimumApprovals *int             `json:\"minimum_approvals,omitempty\"`\n\tFilePatterns     []string         `json:\"file_patterns,omitempty\"`\n\tReviewer         *RulesetReviewer `json:\"reviewer,omitempty\"`\n}\n```\nRulesetRequiredReviewer represents required reviewer parameters for pull requests in rulesets.\n\n```go\nfunc (r *RulesetRequiredReviewer) GetFilePatterns() []string\n```\nGetFilePatterns returns the FilePatterns slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RulesetRequiredReviewer) GetMinimumApprovals() int\n```\nGetMinimumApprovals returns the MinimumApprovals field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RulesetRequiredReviewer) GetReviewer() *RulesetReviewer\n```\nGetReviewer returns the Reviewer field.\n\n```go\ntype RulesetReviewer struct {\n\tID   *int64               `json:\"id,omitempty\"`\n\tType *RulesetReviewerType `json:\"type,omitempty\"`\n}\n```\nRulesetReviewer represents a reviewer in a ruleset required reviewer rule.\n\n```go\nfunc (r *RulesetReviewer) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r *RulesetReviewer) GetType() *RulesetReviewerType\n```\nGetType returns the Type field.\n\n```go\nfunc (r *RulesetReviewer) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON is a custom JSON unmarshaler for RulesetReviewer.\n\n```go\ntype RulesetReviewerType string\n```\nRulesetReviewerType represents the type of reviewer in a ruleset required reviewer.\n\n```go\nconst (\n\tRulesetReviewerTypeTeam RulesetReviewerType = \"Team\"\n)\n```\nThis is the set of GitHub ruleset reviewer types.\n\n```go\ntype RulesetSourceType string\n```\nRulesetSourceType represents a GitHub ruleset source type.\n\n```go\nconst (\n\tRulesetSourceTypeRepository   RulesetSourceType = \"Repository\"\n\tRulesetSourceTypeOrganization RulesetSourceType = \"Organization\"\n\tRulesetSourceTypeEnterprise   RulesetSourceType = \"Enterprise\"\n)\n```\nThis is the set of GitHub ruleset source types.\n\n```go\ntype RulesetTarget string\n```\nRulesetTarget represents a GitHub ruleset target.\n\n```go\nconst (\n\tRulesetTargetBranch     RulesetTarget = \"branch\"\n\tRulesetTargetTag        RulesetTarget = \"tag\"\n\tRulesetTargetPush       RulesetTarget = \"push\"\n\tRulesetTargetRepository RulesetTarget = \"repository\"\n)\n```\nThis is the set of GitHub ruleset targets.\n\n```go\ntype Runner struct {\n\tID            *int64          `json:\"id,omitempty\"`\n\tRunnerGroupID *int64          `json:\"runner_group_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\tEphemeral     *bool           `json:\"ephemeral,omitempty\"`\n\tVersion       *string         `json:\"version,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) GetEphemeral() bool\n```\nGetEphemeral returns the Ephemeral 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) GetLabels() []*RunnerLabels\n```\nGetLabels returns the Labels slice if it's non-nil, nil 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) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID 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\nfunc (r *Runner) GetVersion() string\n```\nGetVersion returns the Version 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\tHostedRunnersURL             *string  `json:\"hosted_runners_url,omitempty\"`\n\tNetworkConfigurationID       *string  `json:\"network_configuration_id,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) GetHostedRunnersURL() string\n```\nGetHostedRunnersURL returns the HostedRunnersURL 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) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID 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) GetSelectedWorkflows() []string\n```\nGetSelectedWorkflows returns the SelectedWorkflows slice if it's non-nil, nil 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\nfunc (r *RunnerGroups) GetRunnerGroups() []*RunnerGroup\n```\nGetRunnerGroups returns the RunnerGroups slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *RunnerGroups) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\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\nfunc (r *Runners) GetRunners() []*Runner\n```\nGetRunners returns the Runners slice if it's non-nil, nil otherwise.\n\n```go\nfunc (r *Runners) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype SARIFUpload struct {\n\t// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored.\n\t// `failed` files have either not been processed at all, or could only be partially processed.\n\tProcessingStatus *string `json:\"processing_status,omitempty\"`\n\t// The REST API URL for getting the analyses associated with the upload.\n\tAnalysesURL *string `json:\"analyses_url,omitempty\"`\n}\n```\nSARIFUpload represents information about a SARIF upload.\n\n```go\nfunc (s *SARIFUpload) GetAnalysesURL() string\n```\nGetAnalysesURL returns the AnalysesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SARIFUpload) GetProcessingStatus() string\n```\nGetProcessingStatus returns the ProcessingStatus field if it's non-nil, zero value otherwise.\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 SBOMGeneration struct {\n\t// SBOMURL is the URL the generated SBOM can be fetched from once it's ready.\n\tSBOMURL *string `json:\"sbom_url,omitempty\"`\n}\n```\nSBOMGeneration represents the response to a request to generate a software bill of materials for a repository.\n\n```go\nfunc (s *SBOMGeneration) GetSBOMURL() string\n```\nGetSBOMURL returns the SBOMURL field if it's non-nil, zero value otherwise.\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\t// List of relationships between packages\n\tRelationships []*SBOMRelationship `json:\"relationships,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) GetDocumentDescribes() []string\n```\nGetDocumentDescribes returns the DocumentDescribes slice if it's non-nil, nil 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) GetPackages() []*RepoDependencies\n```\nGetPackages returns the Packages slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SBOMInfo) GetRelationships() []*SBOMRelationship\n```\nGetRelationships returns the Relationships slice if it's non-nil, nil 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 SBOMRelationship struct {\n\t// SPDXElementID is the identifier of the SPDX element that has a relationship.\n\t// Example: \"SPDXRef-github-interlynk-io-sbomqs-main-f43c98\"\n\tSPDXElementID string `json:\"spdxElementId\"`\n\n\t// RelatedSPDXElement is the identifier of the related SPDX element.\n\t// Example: \"SPDXRef-golang-github.comspf13-cobra-1.8.1-75c946\"\n\tRelatedSPDXElement string `json:\"relatedSpdxElement\"`\n\n\t// RelationshipType describes the type of relationship between the two elements.\n\t// Such as \"DEPENDS_ON\", \"DESCRIBES\", \"CONTAINS\", etc., as defined by SPDX 2.3.\n\t// Example: \"DEPENDS_ON\", \"CONTAINS\", \"DESCRIBES\", etc.\n\tRelationshipType string `json:\"relationshipType\"`\n}\n```\nSBOMRelationship provides information about the relationship between two SPDX elements. Element could be packages or files in the SBOM. For example, to represent a relationship between two different Files, between a Package and a File, between two Packages, or between one SPDXDocument and another SPDXDocument. [https://spdx.github.io/spdx-spec/v2.3/relationships-between-SPDX-elements/](https://spdx.github.io/spdx-spec/v2.3/relationships-between-SPDX-elements/)\n\n```go\nfunc (s *SBOMRelationship) GetRelatedSPDXElement() string\n```\nGetRelatedSPDXElement returns the RelatedSPDXElement field.\n\n```go\nfunc (s *SBOMRelationship) GetRelationshipType() string\n```\nGetRelationshipType returns the RelationshipType field.\n\n```go\nfunc (s *SBOMRelationship) GetSPDXElementID() string\n```\nGetSPDXElementID returns the SPDXElementID field.\n\n```go\ntype SCIMEnterpriseAttribute struct {\n\tSchemas    []string                            `json:\"schemas\"`    // The URIs that are used to indicate the namespaces for a SCIM patch operation.\n\tOperations []*SCIMEnterpriseAttributeOperation `json:\"Operations\"` // Set of operations to be performed.\n}\n```\nSCIMEnterpriseAttribute represents attribute operations for UpdateSCIMGroupAttribute or UpdateSCIMUserAttribute.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-enterprise-group](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-enterprise-group)\n\n```go\nfunc (s *SCIMEnterpriseAttribute) GetOperations() []*SCIMEnterpriseAttributeOperation\n```\nGetOperations returns the Operations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseAttribute) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\ntype SCIMEnterpriseAttributeOperation struct {\n\tOp    string  `json:\"op\"`              // Can be one of: `add`, `replace`, `remove`.\n\tPath  *string `json:\"path,omitempty\"`  // Path to the attribute being modified (Filters are not supported).\n\tValue any     `json:\"value,omitempty\"` // New value for the attribute being modified.\n}\n```\nSCIMEnterpriseAttributeOperation represents an operation for UpdateSCIMGroupAttribute or UpdateSCIMUserAttribute.\n\n```go\nfunc (s *SCIMEnterpriseAttributeOperation) GetOp() string\n```\nGetOp returns the Op field.\n\n```go\nfunc (s *SCIMEnterpriseAttributeOperation) GetPath() string\n```\nGetPath returns the Path field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseAttributeOperation) GetValue() any\n```\nGetValue returns the Value field.\n\n```go\ntype SCIMEnterpriseDisplayReference struct {\n\tValue   string  `json:\"value\"`             // The local unique identifier for the member (e.g., user ID or group ID).\n\tRef     *string `json:\"$ref,omitempty\"`    // The URI reference to the Members or Groups resource (e.g., /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}).\n\tDisplay *string `json:\"display,omitempty\"` // The display name associated with the member (e.g., user name or group name).\n}\n```\nSCIMEnterpriseDisplayReference represents a JSON SCIM (System for Cross-domain Identity Management) resource reference.\n\n```go\nfunc (s *SCIMEnterpriseDisplayReference) GetDisplay() string\n```\nGetDisplay returns the Display field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseDisplayReference) GetRef() string\n```\nGetRef returns the Ref field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseDisplayReference) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\ntype SCIMEnterpriseGroupAttributes struct {\n\tDisplayName string                            `json:\"displayName\"`       // Human-readable name for a group.\n\tMembers     []*SCIMEnterpriseDisplayReference `json:\"members,omitempty\"` // List of members who are assigned to the group in SCIM provider\n\tExternalID  string                            `json:\"externalId\"`        // This identifier is generated by a SCIM provider. Must be unique per group.\n\tSchemas     []string                          `json:\"schemas\"`           // The URIs that are used to indicate the namespaces of the SCIM schemas.\n\t// Bellow: Only populated as a result of calling UpdateSCIMGroupAttribute:\n\tID   *string             `json:\"id,omitempty\"`   // The internally generated id for the group object.\n\tMeta *SCIMEnterpriseMeta `json:\"meta,omitempty\"` // The metadata associated with the creation/updates to the group.\n}\n```\nSCIMEnterpriseGroupAttributes represents supported SCIM Enterprise group attributes, and represents the result of calling UpdateSCIMGroupAttribute.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#supported-scim-group-attributes](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#supported-scim-group-attributes)\n\n```go\nfunc (s *SCIMEnterpriseGroupAttributes) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field.\n\n```go\nfunc (s *SCIMEnterpriseGroupAttributes) GetExternalID() string\n```\nGetExternalID returns the ExternalID field.\n\n```go\nfunc (s *SCIMEnterpriseGroupAttributes) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseGroupAttributes) GetMembers() []*SCIMEnterpriseDisplayReference\n```\nGetMembers returns the Members slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseGroupAttributes) GetMeta() *SCIMEnterpriseMeta\n```\nGetMeta returns the Meta field.\n\n```go\nfunc (s *SCIMEnterpriseGroupAttributes) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\ntype SCIMEnterpriseGroups struct {\n\tSchemas      []string                         `json:\"schemas,omitempty\"`\n\tTotalResults *int                             `json:\"totalResults,omitempty\"`\n\tResources    []*SCIMEnterpriseGroupAttributes `json:\"Resources,omitempty\"`\n\tStartIndex   *int                             `json:\"startIndex,omitempty\"`\n\tItemsPerPage *int                             `json:\"itemsPerPage,omitempty\"`\n}\n```\nSCIMEnterpriseGroups represents the result of calling ListProvisionedSCIMGroups.\n\n```go\nfunc (s *SCIMEnterpriseGroups) GetItemsPerPage() int\n```\nGetItemsPerPage returns the ItemsPerPage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseGroups) GetResources() []*SCIMEnterpriseGroupAttributes\n```\nGetResources returns the Resources slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseGroups) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseGroups) GetStartIndex() int\n```\nGetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseGroups) GetTotalResults() int\n```\nGetTotalResults returns the TotalResults field if it's non-nil, zero value otherwise.\n\n```go\ntype SCIMEnterpriseMeta struct {\n\tResourceType string     `json:\"resourceType\"`           // A type of a resource (`User` or `Group`).\n\tCreated      *Timestamp `json:\"created,omitempty\"`      // A date and time when the user was created.\n\tLastModified *Timestamp `json:\"lastModified,omitempty\"` // A date and time when the user was last modified.\n\tLocation     *string    `json:\"location,omitempty\"`     // A URL location of an object\n}\n```\nSCIMEnterpriseMeta represents metadata about the SCIM resource.\n\n```go\nfunc (s *SCIMEnterpriseMeta) GetCreated() Timestamp\n```\nGetCreated returns the Created field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseMeta) GetLastModified() Timestamp\n```\nGetLastModified returns the LastModified field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseMeta) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseMeta) GetResourceType() string\n```\nGetResourceType returns the ResourceType field.\n\n```go\ntype SCIMEnterpriseUserAttributes struct {\n\tDisplayName string                     `json:\"displayName\"`     // Human-readable name for a user\n\tName        *SCIMEnterpriseUserName    `json:\"name,omitempty\"`  // The user's full name\n\tUserName    string                     `json:\"userName\"`        // The username for the user (GitHub Account after normalized), generated by the SCIM provider. Must be unique per user.\n\tEmails      []*SCIMEnterpriseUserEmail `json:\"emails\"`          // List of the user's emails. They all must be unique per user.\n\tRoles       []*SCIMEnterpriseUserRole  `json:\"roles,omitempty\"` // List of the user's roles.\n\tExternalID  string                     `json:\"externalId\"`      // This identifier is generated by a SCIM provider. Must be unique per user.\n\tActive      bool                       `json:\"active\"`          // Indicates whether the identity is active (true) or should be suspended (false).\n\tSchemas     []string                   `json:\"schemas\"`         // The URIs that are used to indicate the namespaces of the SCIM schemas.\n\t// Bellow: Only populated as a result of calling UpdateSCIMUserAttribute:\n\tID     *string                           `json:\"id,omitempty\"`     // Identifier generated by the GitHub's SCIM endpoint.\n\tGroups []*SCIMEnterpriseDisplayReference `json:\"groups,omitempty\"` // List of groups who are assigned to the user in SCIM provider\n\tMeta   *SCIMEnterpriseMeta               `json:\"meta,omitempty\"`   // The metadata associated with the creation/updates to the user.\n}\n```\nSCIMEnterpriseUserAttributes represents supported SCIM enterprise user attributes, and represents the result of calling UpdateSCIMUserAttribute.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#supported-scim-user-attributes](https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#supported-scim-user-attributes)\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetActive() bool\n```\nGetActive returns the Active field.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetEmails() []*SCIMEnterpriseUserEmail\n```\nGetEmails returns the Emails slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetExternalID() string\n```\nGetExternalID returns the ExternalID field.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetGroups() []*SCIMEnterpriseDisplayReference\n```\nGetGroups returns the Groups slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetID() string\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetMeta() *SCIMEnterpriseMeta\n```\nGetMeta returns the Meta field.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetName() *SCIMEnterpriseUserName\n```\nGetName returns the Name field.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetRoles() []*SCIMEnterpriseUserRole\n```\nGetRoles returns the Roles slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserAttributes) GetUserName() string\n```\nGetUserName returns the UserName field.\n\n```go\ntype SCIMEnterpriseUserEmail struct {\n\tValue   string `json:\"value\"`   // The email address.\n\tPrimary bool   `json:\"primary\"` // Whether this email address is the primary address.\n\tType    string `json:\"type\"`    // The type of email address\n}\n```\nSCIMEnterpriseUserEmail represents SCIM enterprise user's emails.\n\n```go\nfunc (s *SCIMEnterpriseUserEmail) GetPrimary() bool\n```\nGetPrimary returns the Primary field.\n\n```go\nfunc (s *SCIMEnterpriseUserEmail) GetType() string\n```\nGetType returns the Type field.\n\n```go\nfunc (s *SCIMEnterpriseUserEmail) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\ntype SCIMEnterpriseUserName struct {\n\tGivenName  string  `json:\"givenName\"`            // The first name of the user.\n\tFamilyName string  `json:\"familyName\"`           // The last name of the user.\n\tFormatted  *string `json:\"formatted,omitempty\"`  // The user's full name, including all middle names, titles, and suffixes, formatted for display.\n\tMiddleName *string `json:\"middleName,omitempty\"` // The middle name(s) of the user.\n}\n```\nSCIMEnterpriseUserName represents SCIM enterprise user's name information.\n\n```go\nfunc (s *SCIMEnterpriseUserName) GetFamilyName() string\n```\nGetFamilyName returns the FamilyName field.\n\n```go\nfunc (s *SCIMEnterpriseUserName) GetFormatted() string\n```\nGetFormatted returns the Formatted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserName) GetGivenName() string\n```\nGetGivenName returns the GivenName field.\n\n```go\nfunc (s *SCIMEnterpriseUserName) GetMiddleName() string\n```\nGetMiddleName returns the MiddleName field if it's non-nil, zero value otherwise.\n\n```go\ntype SCIMEnterpriseUserRole struct {\n\tValue   string  `json:\"value\"` // The role value representing a user role in GitHub.\n\tDisplay *string `json:\"display,omitempty\"`\n\tType    *string `json:\"type,omitempty\"`\n\tPrimary *bool   `json:\"primary,omitempty\"` // Is the role a primary role for the user?\n}\n```\nSCIMEnterpriseUserRole is an enterprise-wide role granted to the user.\n\n```go\nfunc (s *SCIMEnterpriseUserRole) GetDisplay() string\n```\nGetDisplay returns the Display field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserRole) GetPrimary() bool\n```\nGetPrimary returns the Primary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserRole) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUserRole) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\ntype SCIMEnterpriseUsers 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    []*SCIMEnterpriseUserAttributes `json:\"Resources,omitempty\"`\n}\n```\nSCIMEnterpriseUsers represents the result of calling ListProvisionedSCIMUsers.\n\n```go\nfunc (s *SCIMEnterpriseUsers) GetItemsPerPage() int\n```\nGetItemsPerPage returns the ItemsPerPage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUsers) GetResources() []*SCIMEnterpriseUserAttributes\n```\nGetResources returns the Resources slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUsers) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUsers) GetStartIndex() int\n```\nGetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMEnterpriseUsers) GetTotalResults() int\n```\nGetTotalResults returns the TotalResults 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) GetResources() []*SCIMUserAttributes\n```\nGetResources returns the Resources slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMProvisionedIdentities) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil 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/rest/scim?apiVersion=2022-11-28](https://docs.github.com/rest/scim?apiVersion=2022-11-28)\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/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#delete-a-scim-user-from-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#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/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-a-user](https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#get-scim-provisioning-information-for-a-user)\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/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#list-scim-provisioned-identities](https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#list-scim-provisioned-identities)\n\n```go\nfunc (s *SCIMService) ProvisionAndInviteSCIMUser(ctx context.Context, org string, body *SCIMUserAttributes) (*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/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#provision-and-invite-a-scim-user](https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#provision-and-invite-a-scim-user)\n\n```go\nfunc (s *SCIMService) UpdateAttributeForSCIMUser(ctx context.Context, org, scimUserID string, body UpdateAttributeForSCIMUserRequest) (*SCIMUserAttributes, *Response, error)\n```\nUpdateAttributeForSCIMUser updates an attribute for an SCIM user.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-user](https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#update-an-attribute-for-a-scim-user)\n\n```go\nfunc (s *SCIMService) UpdateProvisionedOrgMembership(ctx context.Context, org, scimUserID string, body UpdateProvisionedOrgMembershipRequest) (*SCIMUserAttributes, *Response, error)\n```\nUpdateProvisionedOrgMembership updates a provisioned organization membership.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#update-a-provisioned-organization-membership](https://docs.github.com/enterprise-cloud@latest/rest/scim/scim?apiVersion=2022-11-28#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\tRoles       []*SCIMUserRole  `json:\"roles,omitempty\"`       // (Optional, GHES only.)\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 Enterprise Cloud API docs: [https://docs.github.com/rest/scim?apiVersion=2022-11-28#supported-scim-user-attributes](https://docs.github.com/rest/scim?apiVersion=2022-11-28#supported-scim-user-attributes) GitHub Enterprise Server API docs: [https://docs.github.com/en/enterprise-server@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#supported-scim-user-attributes](https://docs.github.com/en/enterprise-server@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#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) GetEmails() []*SCIMUserEmail\n```\nGetEmails returns the Emails slice if it's non-nil, nil 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) GetGroups() []string\n```\nGetGroups returns the Groups slice if it's non-nil, nil 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\nfunc (s *SCIMUserAttributes) GetName() SCIMUserName\n```\nGetName returns the Name field.\n\n```go\nfunc (s *SCIMUserAttributes) GetRoles() []*SCIMUserRole\n```\nGetRoles returns the Roles slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMUserAttributes) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SCIMUserAttributes) GetUserName() string\n```\nGetUserName returns the UserName 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\nfunc (s *SCIMUserEmail) GetValue() string\n```\nGetValue returns the Value field.\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) GetFamilyName() string\n```\nGetFamilyName returns the FamilyName field.\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\nfunc (s *SCIMUserName) GetGivenName() string\n```\nGetGivenName returns the GivenName field.\n\n```go\ntype SCIMUserRole struct {\n\tValue   string  `json:\"value\"`             // (Required.)\n\tDisplay *string `json:\"display,omitempty\"` // (Optional.)\n\tType    *string `json:\"type,omitempty\"`    // (Optional.)\n\tPrimary *bool   `json:\"primary,omitempty\"` // (Optional.)\n}\n```\nSCIMUserRole is an enterprise-wide role granted to the user. This is only supported in GitHub Enterprise Server, and not GitHub Enterprise Cloud. See the docs for allowed role names.\n\n[https://docs.github.com/en/enterprise-server@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#provision-a-scim-enterprise-user](https://docs.github.com/en/enterprise-server@latest/rest/enterprise-admin/scim?apiVersion=2022-11-28#provision-a-scim-enterprise-user)\n\n```go\nfunc (s *SCIMUserRole) GetDisplay() string\n```\nGetDisplay returns the Display field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserRole) GetPrimary() bool\n```\nGetPrimary returns the Primary field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserRole) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SCIMUserRole) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\ntype SSHKeyOptions struct {\n\t// Key is the SSH key to add to the instance.\n\tKey string `json:\"key\"`\n}\n```\nSSHKeyOptions specifies the parameters to the SSH create and delete functions.\n\n```go\nfunc (s *SSHKeyOptions) GetKey() string\n```\nGetKey returns the Key field.\n\n```go\ntype SSHKeyStatus struct {\n\tHostname *string `json:\"hostname,omitempty\"`\n\tUUID     *string `json:\"uuid,omitempty\"`\n\tMessage  *string `json:\"message,omitempty\"`\n\tModified *bool   `json:\"modified,omitempty\"`\n}\n```\nSSHKeyStatus represents the status of a SSH key operation.\n\n```go\nfunc (s *SSHKeyStatus) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SSHKeyStatus) GetMessage() string\n```\nGetMessage returns the Message field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SSHKeyStatus) GetModified() bool\n```\nGetModified returns the Modified field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SSHKeyStatus) GetUUID() string\n```\nGetUUID returns the UUID 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\"`\n\tRef         string     `json:\"ref\"`\n\tSarif       string     `json:\"sarif\"`\n\tCheckoutURI *string    `json:\"checkout_uri,omitempty\"`\n\tStartedAt   *Timestamp `json:\"started_at,omitempty\"`\n\tToolName    *string    `json:\"tool_name,omitempty\"`\n\tValidate    *bool      `json:\"validate,omitempty\"`\n}\n```\nSarifAnalysis specifies the results of a code scanning job.\n\nGitHub API docs: [https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\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.\n\n```go\nfunc (s *SarifAnalysis) GetRef() string\n```\nGetRef returns the Ref field.\n\n```go\nfunc (s *SarifAnalysis) GetSarif() string\n```\nGetSarif returns the Sarif field.\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\nfunc (s *SarifAnalysis) GetValidate() bool\n```\nGetValidate returns the Validate 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/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\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/rest/code-scanning?apiVersion=2022-11-28](https://docs.github.com/rest/code-scanning?apiVersion=2022-11-28)\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/rest/oauth/#scopes](https://docs.github.com/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\t// Whether to enable advanced search for issues\n\tAdvancedSearch *bool `url:\"advanced_search,omitempty\"`\n\n\t// The type of search to perform on issues. Possible values are:\n\t// semantic, hybrid. Default is lexical search.\n\tSearchType string `url:\"search_type,omitempty\"`\n\n\tListOptions\n}\n```\nSearchOptions specifies optional parameters to the SearchService methods.\n\n```go\nfunc (s *SearchOptions) GetAdvancedSearch() bool\n```\nGetAdvancedSearch returns the AdvancedSearch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SearchOptions) GetOrder() string\n```\nGetOrder returns the Order field.\n\n```go\nfunc (s *SearchOptions) GetSearchType() string\n```\nGetSearchType returns the SearchType field.\n\n```go\nfunc (s *SearchOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (s *SearchOptions) GetTextMatch() bool\n```\nGetTextMatch returns the TextMatch field.\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/rest/search?apiVersion=2022-11-28](https://docs.github.com/rest/search?apiVersion=2022-11-28)\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/rest/search/search?apiVersion=2022-11-28#search-code](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#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/rest/search/search?apiVersion=2022-11-28#search-commits](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#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/rest/search/search?apiVersion=2022-11-28#search-issues-and-pull-requests](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#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/rest/search/search?apiVersion=2022-11-28#search-labels](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#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/rest/search/search?apiVersion=2022-11-28#search-repositories](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#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/articles/searching-topics](https://help.github.com/articles/searching-topics) for more information about search qualifiers.\n\nGitHub API docs: [https://docs.github.com/rest/search/search?apiVersion=2022-11-28#search-topics](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#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/rest/search/search?apiVersion=2022-11-28#search-users](https://docs.github.com/rest/search/search?apiVersion=2022-11-28#search-users)\n\n```go\ntype SeatAssignments struct {\n\tSeatsCreated int `json:\"seats_created\"`\n}\n```\nSeatAssignments represents the number of seats assigned.\n\n```go\nfunc (s *SeatAssignments) GetSeatsCreated() int\n```\nGetSeatsCreated returns the SeatsCreated field.\n\n```go\ntype SeatCancellations struct {\n\tSeatsCancelled int `json:\"seats_cancelled\"`\n}\n```\nSeatCancellations represents the number of seats cancelled.\n\n```go\nfunc (s *SeatCancellations) GetSeatsCancelled() int\n```\nGetSeatsCancelled returns the SeatsCancelled field.\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\nfunc (s *Secret) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field.\n\n```go\nfunc (s *Secret) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (s *Secret) GetSelectedRepositoriesURL() string\n```\nGetSelectedRepositoriesURL returns the SelectedRepositoriesURL field.\n\n```go\nfunc (s *Secret) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field.\n\n```go\nfunc (s *Secret) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype SecretOrgRequest struct {\n\tKeyID                 string  `json:\"key_id\"`\n\tEncryptedValue        string  `json:\"encrypted_value\"`\n\tVisibility            string  `json:\"visibility\"`\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitzero\"`\n}\n```\nSecretOrgRequest represents a request to create or update a secret for an organization.\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\nfunc (s *SecretOrgRequest) GetEncryptedValue() string\n```\nGetEncryptedValue returns the EncryptedValue field.\n\n```go\nfunc (s *SecretOrgRequest) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (s *SecretOrgRequest) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretOrgRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype SecretRequest struct {\n\tKeyID          string `json:\"key_id\"`\n\tEncryptedValue string `json:\"encrypted_value\"`\n}\n```\nSecretRequest represents a request to create or update a secret for a repository or a repository environment.\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\nfunc (s *SecretRequest) GetEncryptedValue() string\n```\nGetEncryptedValue returns the EncryptedValue field.\n\n```go\nfunc (s *SecretRequest) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\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/code-security/secret-security/about-secret-scanning](https://docs.github.com/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\tFirstLocationDetected                      *SecretScanningAlertLocationDetails `json:\"first_location_detected,omitempty\"`\n\tHasMoreLocations                           *bool                               `json:\"has_more_locations,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\tUpdatedAt                                  *Timestamp                          `json:\"updated_at,omitempty\"`\n\tIsBase64Encoded                            *bool                               `json:\"is_base64_encoded,omitempty\"`\n\tMultiRepo                                  *bool                               `json:\"multi_repo,omitempty\"`\n\tPubliclyLeaked                             *bool                               `json:\"publicly_leaked,omitempty\"`\n\tPushProtectionBypassed                     *bool                               `json:\"push_protection_bypassed,omitempty\"`\n\tPushProtectionBypassedBy                   *User                               `json:\"push_protection_bypassed_by,omitempty\"`\n\tPushProtectionBypassedAt                   *Timestamp                          `json:\"push_protection_bypassed_at,omitempty\"`\n\tResolutionComment                          *string                             `json:\"resolution_comment,omitempty\"`\n\tPushProtectionBypassRequestComment         *string                             `json:\"push_protection_bypass_request_comment,omitempty\"`\n\tPushProtectionBypassRequestHTMLURL         *string                             `json:\"push_protection_bypass_request_html_url,omitempty\"`\n\tPushProtectionBypassRequestReviewer        *User                               `json:\"push_protection_bypass_request_reviewer,omitempty\"`\n\tPushProtectionBypassRequestReviewerComment *string                             `json:\"push_protection_bypass_request_reviewer_comment,omitempty\"`\n\tValidity                                   *string                             `json:\"validity,omitempty\"`\n\tAssignedTo                                 *User                               `json:\"assigned_to,omitempty\"`\n\tClosureRequestComment                      *string                             `json:\"closure_request_comment,omitempty\"`\n\tClosureRequestReviewer                     *User                               `json:\"closure_request_reviewer,omitempty\"`\n\tClosureRequestReviewerComment              *string                             `json:\"closure_request_reviewer_comment,omitempty\"`\n\tProvider                                   *string                             `json:\"provider,omitempty\"`\n\tProviderSlug                               *string                             `json:\"provider_slug,omitempty\"`\n\tMetadata                                   []*SecretScanningAlertMetadata      `json:\"metadata,omitempty\"`\n}\n```\nSecretScanningAlert represents a GitHub secret scanning alert.\n\n```go\nfunc (s *SecretScanningAlert) GetAssignedTo() *User\n```\nGetAssignedTo returns the AssignedTo field.\n\n```go\nfunc (s *SecretScanningAlert) GetClosureRequestComment() string\n```\nGetClosureRequestComment returns the ClosureRequestComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetClosureRequestReviewer() *User\n```\nGetClosureRequestReviewer returns the ClosureRequestReviewer field.\n\n```go\nfunc (s *SecretScanningAlert) GetClosureRequestReviewerComment() string\n```\nGetClosureRequestReviewerComment returns the ClosureRequestReviewerComment field if it's non-nil, zero value otherwise.\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) GetFirstLocationDetected() *SecretScanningAlertLocationDetails\n```\nGetFirstLocationDetected returns the FirstLocationDetected field.\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) GetHasMoreLocations() bool\n```\nGetHasMoreLocations returns the HasMoreLocations field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetIsBase64Encoded() bool\n```\nGetIsBase64Encoded returns the IsBase64Encoded 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) GetMetadata() []*SecretScanningAlertMetadata\n```\nGetMetadata returns the Metadata slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetMultiRepo() bool\n```\nGetMultiRepo returns the MultiRepo 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) GetProvider() string\n```\nGetProvider returns the Provider field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetProviderSlug() string\n```\nGetProviderSlug returns the ProviderSlug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPubliclyLeaked() bool\n```\nGetPubliclyLeaked returns the PubliclyLeaked field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassRequestComment() string\n```\nGetPushProtectionBypassRequestComment returns the PushProtectionBypassRequestComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassRequestHTMLURL() string\n```\nGetPushProtectionBypassRequestHTMLURL returns the PushProtectionBypassRequestHTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassRequestReviewer() *User\n```\nGetPushProtectionBypassRequestReviewer returns the PushProtectionBypassRequestReviewer field.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassRequestReviewerComment() string\n```\nGetPushProtectionBypassRequestReviewerComment returns the PushProtectionBypassRequestReviewerComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassed() bool\n```\nGetPushProtectionBypassed returns the PushProtectionBypassed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassedAt() Timestamp\n```\nGetPushProtectionBypassedAt returns the PushProtectionBypassedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetPushProtectionBypassedBy() *User\n```\nGetPushProtectionBypassedBy returns the PushProtectionBypassedBy field.\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) GetResolutionComment() string\n```\nGetResolutionComment returns the ResolutionComment 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\nfunc (s *SecretScanningAlert) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlert) GetValidity() string\n```\nGetValidity returns the Validity 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/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret\\_scanning\\_alert](https://docs.github.com/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\t// A comma-separated list of validities that, when present, will return alerts that match the validities in this list.\n\t// Valid options are active, inactive, and unknown.\n\tValidity string `url:\"validity,omitempty\"`\n\n\t// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. Default: false.\n\tIsPubliclyLeaked bool `url:\"is_publicly_leaked,omitempty\"`\n\n\t// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. Default: false.\n\tIsMultiRepo bool `url:\"is_multi_repo,omitempty\"`\n\n\t// The direction to sort the results by. Possible values are: asc, desc. Default: desc.\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// The property by which to sort the results. Possible values are: created, updated. Default: created.\n\tSort string `url:\"sort,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/enterprise-cloud@latest/rest/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-an-organization\n\t// Whereas on Enterprise Server, pagination is by index.\n\t// See: https://docs.github.com/enterprise-server@3.6/rest/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-an-organization\n\tListOptions\n}\n```\nSecretScanningAlertListOptions specifies optional parameters to the SecretScanningService.ListAlertsForEnterprise method.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetIsMultiRepo() bool\n```\nGetIsMultiRepo returns the IsMultiRepo field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetIsPubliclyLeaked() bool\n```\nGetIsPubliclyLeaked returns the IsPubliclyLeaked field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetResolution() string\n```\nGetResolution returns the Resolution field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetSecretType() string\n```\nGetSecretType returns the SecretType field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (s *SecretScanningAlertListOptions) GetValidity() string\n```\nGetValidity returns the Validity field.\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\tPullRequestCommentURL *string `json:\"pull_request_comment_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) GetPullRequestCommentURL() string\n```\nGetPullRequestCommentURL returns the PullRequestCommentURL 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 SecretScanningAlertLocationEvent struct {\n\tAction       *string                      `json:\"action,omitempty\"`\n\tAlert        *SecretScanningAlert         `json:\"alert,omitempty\"`\n\tInstallation *Installation                `json:\"installation,omitempty\"`\n\tLocation     *SecretScanningAlertLocation `json:\"location,omitempty\"`\n\tOrganization *Organization                `json:\"organization,omitempty\"`\n\tRepo         *Repository                  `json:\"repository,omitempty\"`\n\tSender       *User                        `json:\"sender,omitempty\"`\n}\n```\nSecretScanningAlertLocationEvent is triggered when there is activity relating to the locations of a secret in a secret scanning alert. The Webhook event name is \"secret\\_scanning\\_alert\\_location\".\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret\\_scanning\\_alert\\_location](https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert_location)\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetAlert() *SecretScanningAlert\n```\nGetAlert returns the Alert field.\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetLocation() *SecretScanningAlertLocation\n```\nGetLocation returns the Location field.\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetRepo() *Repository\n```\nGetRepo returns the Repo field.\n\n```go\nfunc (s *SecretScanningAlertLocationEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype SecretScanningAlertMetadata struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\"`\n}\n```\nSecretScanningAlertMetadata represents a metadata key/value pair associated with a secret scanning alert.\n\n```go\nfunc (s *SecretScanningAlertMetadata) GetKey() string\n```\nGetKey returns the Key field.\n\n```go\nfunc (s *SecretScanningAlertMetadata) GetValue() string\n```\nGetValue returns the Value field.\n\n```go\ntype SecretScanningCreateCustomPatternsRequest struct {\n\t// Patterns is the list of custom patterns to create.\n\tPatterns []*SecretScanningCustomPatternRequest `json:\"patterns\"`\n}\n```\nSecretScanningCreateCustomPatternsRequest represents the bulk request body used to create one or more custom patterns.\n\n```go\nfunc (s *SecretScanningCreateCustomPatternsRequest) GetPatterns() []*SecretScanningCustomPatternRequest\n```\nGetPatterns returns the Patterns slice if it's non-nil, nil otherwise.\n\n```go\ntype SecretScanningCreateCustomPatternsResponse struct {\n\t// CreatedPatterns is the list of successfully created custom patterns.\n\tCreatedPatterns []*SecretScanningCustomPattern `json:\"created_patterns\"`\n}\n```\nSecretScanningCreateCustomPatternsResponse represents the bulk response returned after creating one or more custom patterns.\n\n```go\nfunc (s *SecretScanningCreateCustomPatternsResponse) GetCreatedPatterns() []*SecretScanningCustomPattern\n```\nGetCreatedPatterns returns the CreatedPatterns slice if it's non-nil, nil otherwise.\n\n```go\ntype SecretScanningCustomPattern struct {\n\t// ID is the unique identifier of the custom pattern.\n\tID int64 `json:\"id\"`\n\n\t// Name is the name of the custom pattern.\n\tName string `json:\"name\"`\n\n\t// Pattern is the regular expression that defines the custom pattern.\n\tPattern string `json:\"pattern\"`\n\n\t// Slug is the URL-friendly identifier derived from the pattern name.\n\tSlug string `json:\"slug\"`\n\n\t// State is the publish state of the pattern. Possible values are:\n\t// \"published\" or \"unpublished\".\n\tState string `json:\"state\"`\n\n\t// PushProtectionEnabled reports whether push protection is enabled for\n\t// this custom pattern.\n\tPushProtectionEnabled bool `json:\"push_protection_enabled\"`\n\n\t// StartDelimiter is the start delimiter regex for the custom pattern.\n\tStartDelimiter *string `json:\"start_delimiter,omitempty\"`\n\n\t// EndDelimiter is the end delimiter regex for the custom pattern.\n\tEndDelimiter *string `json:\"end_delimiter,omitempty\"`\n\n\t// MustMatch is the list of regexes that the secret must match.\n\tMustMatch []string `json:\"must_match,omitempty\"`\n\n\t// MustNotMatch is the list of regexes that the secret must not match.\n\tMustNotMatch []string `json:\"must_not_match,omitempty\"`\n\n\t// CustomPatternVersion is used to confirm you're updating the current\n\t// version of the pattern and to avoid unintentionally overriding\n\t// someone else's update.\n\tCustomPatternVersion *string `json:\"custom_pattern_version,omitempty\"`\n\n\t// CreatedAt is the time the custom pattern was created.\n\tCreatedAt *Timestamp `json:\"created_at,omitempty\"`\n\n\t// UpdatedAt is the time the custom pattern was last updated.\n\tUpdatedAt *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nSecretScanningCustomPattern represents a custom pattern for secret scanning, as returned by the GitHub API.\n\nGitHub API docs: [https://docs.github.com/en/rest/secret-scanning/secret-scanning](https://docs.github.com/en/rest/secret-scanning/secret-scanning)\n\n```go\nfunc (s *SecretScanningCustomPattern) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetCustomPatternVersion() string\n```\nGetCustomPatternVersion returns the CustomPatternVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetEndDelimiter() string\n```\nGetEndDelimiter returns the EndDelimiter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetMustMatch() []string\n```\nGetMustMatch returns the MustMatch slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetMustNotMatch() []string\n```\nGetMustNotMatch returns the MustNotMatch slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetPattern() string\n```\nGetPattern returns the Pattern field.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetPushProtectionEnabled() bool\n```\nGetPushProtectionEnabled returns the PushProtectionEnabled field.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetSlug() string\n```\nGetSlug returns the Slug field.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetStartDelimiter() string\n```\nGetStartDelimiter returns the StartDelimiter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetState() string\n```\nGetState returns the State field.\n\n```go\nfunc (s *SecretScanningCustomPattern) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningCustomPatternListOptions struct {\n\t// State filters custom patterns by state. Possible values are:\n\t// \"published\" or \"unpublished\". When absent, returns patterns in all\n\t// states.\n\tState string `url:\"state,omitempty\"`\n\n\t// PushProtection filters custom patterns by whether push protection is\n\t// enabled. Possible values are: \"enabled\" or \"disabled\". When absent,\n\t// returns patterns regardless of push protection status.\n\tPushProtection string `url:\"push_protection,omitempty\"`\n\n\t// Sort is the property to sort the results by. Possible values are:\n\t// \"created\", \"updated\", or \"name\". Default: \"created\".\n\tSort string `url:\"sort,omitempty\"`\n\n\t// Direction is the direction to sort the results by. Possible values\n\t// are: \"asc\" or \"desc\". Default: \"desc\".\n\tDirection string `url:\"direction,omitempty\"`\n\n\t// ListOptions controls pagination via Page and PerPage.\n\tListOptions\n}\n```\nSecretScanningCustomPatternListOptions specifies the optional parameters to the SecretScanningService.ListCustomPatternsForRepo method.\n\n```go\nfunc (s *SecretScanningCustomPatternListOptions) GetDirection() string\n```\nGetDirection returns the Direction field.\n\n```go\nfunc (s *SecretScanningCustomPatternListOptions) GetPushProtection() string\n```\nGetPushProtection returns the PushProtection field.\n\n```go\nfunc (s *SecretScanningCustomPatternListOptions) GetSort() string\n```\nGetSort returns the Sort field.\n\n```go\nfunc (s *SecretScanningCustomPatternListOptions) GetState() string\n```\nGetState returns the State field.\n\n```go\ntype SecretScanningCustomPatternRequest struct {\n\t// Name is the name of the custom pattern.\n\tName string `json:\"name\"`\n\n\t// Pattern is the regular expression that defines the custom pattern.\n\tPattern string `json:\"pattern\"`\n\n\t// StartDelimiter is the start delimiter regex for the custom pattern.\n\t// Defaults to a sensible boundary regex when not specified.\n\tStartDelimiter *string `json:\"start_delimiter,omitempty\"`\n\n\t// EndDelimiter is the end delimiter regex for the custom pattern.\n\t// Defaults to a sensible boundary regex when not specified.\n\tEndDelimiter *string `json:\"end_delimiter,omitempty\"`\n\n\t// MustMatch is the list of regexes that the secret must match.\n\tMustMatch []string `json:\"must_match,omitempty\"`\n\n\t// MustNotMatch is the list of regexes that the secret must not match.\n\tMustNotMatch []string `json:\"must_not_match,omitempty\"`\n}\n```\nSecretScanningCustomPatternRequest represents a single custom pattern to be created for secret scanning.\n\n```go\nfunc (s *SecretScanningCustomPatternRequest) GetEndDelimiter() string\n```\nGetEndDelimiter returns the EndDelimiter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPatternRequest) GetMustMatch() []string\n```\nGetMustMatch returns the MustMatch slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningCustomPatternRequest) GetMustNotMatch() []string\n```\nGetMustNotMatch returns the MustNotMatch slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningCustomPatternRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\nfunc (s *SecretScanningCustomPatternRequest) GetPattern() string\n```\nGetPattern returns the Pattern field.\n\n```go\nfunc (s *SecretScanningCustomPatternRequest) GetStartDelimiter() string\n```\nGetStartDelimiter returns the StartDelimiter field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningCustomPatternSetting struct {\n\t// The ID of the pattern to configure.\n\tTokenType string `json:\"token_type\"`\n\n\t// The version of the entity\n\tCustomPatternVersion *string `json:\"custom_pattern_version,omitempty\"`\n\n\t// Push protection setting to set for the pattern.\n\t// Can be one of: \"not-set\", \"disabled\", \"enabled\"\n\tPushProtectionSetting string `json:\"push_protection_setting\"`\n}\n```\nSecretScanningCustomPatternSetting defines an optional pattern setting for custom patterns.\n\n```go\nfunc (s *SecretScanningCustomPatternSetting) GetCustomPatternVersion() string\n```\nGetCustomPatternVersion returns the CustomPatternVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPatternSetting) GetPushProtectionSetting() string\n```\nGetPushProtectionSetting returns the PushProtectionSetting field.\n\n```go\nfunc (s *SecretScanningCustomPatternSetting) GetTokenType() string\n```\nGetTokenType returns the TokenType field.\n\n```go\ntype SecretScanningCustomPatternToDelete struct {\n\t// PatternID is the ID of the custom pattern to delete.\n\tPatternID int64 `json:\"pattern_id\"`\n\n\t// CustomPatternVersion is used to confirm you're deleting the current\n\t// version of the pattern.\n\tCustomPatternVersion *string `json:\"custom_pattern_version,omitempty\"`\n}\n```\nSecretScanningCustomPatternToDelete identifies a single custom pattern to remove in a bulk delete operation.\n\n```go\nfunc (s *SecretScanningCustomPatternToDelete) GetCustomPatternVersion() string\n```\nGetCustomPatternVersion returns the CustomPatternVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningCustomPatternToDelete) GetPatternID() int64\n```\nGetPatternID returns the PatternID field.\n\n```go\ntype SecretScanningDelegatedBypassOptions struct {\n\tReviewers []*BypassReviewer `json:\"reviewers,omitzero\"`\n}\n```\nSecretScanningDelegatedBypassOptions represents the feature options for the secret scanning delegated bypass.\n\n```go\nfunc (s *SecretScanningDelegatedBypassOptions) GetReviewers() []*BypassReviewer\n```\nGetReviewers returns the Reviewers slice if it's non-nil, nil otherwise.\n\n```go\ntype SecretScanningDeleteCustomPatternsRequest struct {\n\t// Patterns is the list of custom patterns to delete.\n\tPatterns []*SecretScanningCustomPatternToDelete `json:\"patterns\"`\n\n\t// PostDeleteAction controls what happens to alerts associated with the\n\t// deleted patterns. Possible values are: \"delete_alerts\" (default) or\n\t// \"resolve_alerts\".\n\tPostDeleteAction *string `json:\"post_delete_action,omitempty\"`\n}\n```\nSecretScanningDeleteCustomPatternsRequest represents the bulk request body used to delete one or more custom patterns.\n\n```go\nfunc (s *SecretScanningDeleteCustomPatternsRequest) GetPatterns() []*SecretScanningCustomPatternToDelete\n```\nGetPatterns returns the Patterns slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningDeleteCustomPatternsRequest) GetPostDeleteAction() string\n```\nGetPostDeleteAction returns the PostDeleteAction field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningPatternConfigs struct {\n\tPatternConfigVersion     *string                          `json:\"pattern_config_version,omitempty\"`\n\tProviderPatternOverrides []*SecretScanningPatternOverride `json:\"provider_pattern_overrides,omitempty\"`\n\tCustomPatternOverrides   []*SecretScanningPatternOverride `json:\"custom_pattern_overrides,omitempty\"`\n}\n```\nSecretScanningPatternConfigs represents a collection of GitHub secret scanning patterns and their settings related to push protection.\n\n```go\nfunc (s *SecretScanningPatternConfigs) GetCustomPatternOverrides() []*SecretScanningPatternOverride\n```\nGetCustomPatternOverrides returns the CustomPatternOverrides slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningPatternConfigs) GetPatternConfigVersion() string\n```\nGetPatternConfigVersion returns the PatternConfigVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternConfigs) GetProviderPatternOverrides() []*SecretScanningPatternOverride\n```\nGetProviderPatternOverrides returns the ProviderPatternOverrides slice if it's non-nil, nil otherwise.\n\n```go\ntype SecretScanningPatternConfigsUpdate struct {\n\tPatternConfigVersion *string `json:\"pattern_config_version,omitempty\"`\n}\n```\nSecretScanningPatternConfigsUpdate represents a secret scanning pattern configurations update.\n\n```go\nfunc (s *SecretScanningPatternConfigsUpdate) GetPatternConfigVersion() string\n```\nGetPatternConfigVersion returns the PatternConfigVersion field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningPatternOverride struct {\n\tTokenType            *string `json:\"token_type,omitempty\"`\n\tCustomPatternVersion *string `json:\"custom_pattern_version,omitempty\"`\n\tSlug                 *string `json:\"slug,omitempty\"`\n\tDisplayName          *string `json:\"display_name,omitempty\"`\n\tAlertTotal           *int    `json:\"alert_total,omitempty\"`\n\tAlertTotalPercentage *int    `json:\"alert_total_percentage,omitempty\"`\n\tFalsePositives       *int    `json:\"false_positives,omitempty\"`\n\tFalsePositiveRate    *int    `json:\"false_positive_rate,omitempty\"`\n\tBypassrate           *int    `json:\"bypass_rate,omitempty\"`\n\tDefaultSetting       *string `json:\"default_setting,omitempty\"`\n\tEnterpriseSetting    *string `json:\"enterprise_setting,omitempty\"`\n\tSetting              *string `json:\"setting,omitempty\"`\n}\n```\nSecretScanningPatternOverride represents an override for provider partner or custom organization patterns.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetAlertTotal() int\n```\nGetAlertTotal returns the AlertTotal field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetAlertTotalPercentage() int\n```\nGetAlertTotalPercentage returns the AlertTotalPercentage field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetBypassrate() int\n```\nGetBypassrate returns the Bypassrate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetCustomPatternVersion() string\n```\nGetCustomPatternVersion returns the CustomPatternVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetDefaultSetting() string\n```\nGetDefaultSetting returns the DefaultSetting field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetEnterpriseSetting() string\n```\nGetEnterpriseSetting returns the EnterpriseSetting field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetFalsePositiveRate() int\n```\nGetFalsePositiveRate returns the FalsePositiveRate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetFalsePositives() int\n```\nGetFalsePositives returns the FalsePositives field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetSetting() string\n```\nGetSetting returns the Setting field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetSlug() string\n```\nGetSlug returns the Slug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningPatternOverride) GetTokenType() string\n```\nGetTokenType returns the TokenType field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningProviderPatternSetting struct {\n\t// The ID of the pattern to configure.\n\tTokenType string `json:\"token_type\"`\n\n\t// Push protection setting to set for the pattern.\n\t// Can be one of: \"not-set\", \"disabled\", \"enabled\"\n\tPushProtectionSetting string `json:\"push_protection_setting\"`\n}\n```\nSecretScanningProviderPatternSetting defines an optional pattern setting for provider patterns.\n\n```go\nfunc (s *SecretScanningProviderPatternSetting) GetPushProtectionSetting() string\n```\nGetPushProtectionSetting returns the PushProtectionSetting field.\n\n```go\nfunc (s *SecretScanningProviderPatternSetting) GetTokenType() string\n```\nGetTokenType returns the TokenType field.\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/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-partner-patterns](https://docs.github.com/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 SecretScanningScanHistory struct {\n\t// Information on incremental scan performed by secret scanning on the repository.\n\tIncrementalScans []*SecretsScan `json:\"incremental_scans,omitempty\"`\n\t// Information on backfill scan performed by secret scanning on the repository.\n\tBackfillScans []*SecretsScan `json:\"backfill_scans,omitempty\"`\n\t// Information on pattern update scan performed by secret scanning on the repository.\n\tPatternUpdateScans []*SecretsScan `json:\"pattern_update_scans,omitempty\"`\n\t// Information on custom pattern backfill scan performed by secret scanning on the repository.\n\tCustomPatternBackfillScans []*CustomPatternBackfillScan `json:\"custom_pattern_backfill_scans,omitempty\"`\n}\n```\nSecretScanningScanHistory is the top-level struct for the secret scanning API response.\n\n```go\nfunc (s *SecretScanningScanHistory) GetBackfillScans() []*SecretsScan\n```\nGetBackfillScans returns the BackfillScans slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningScanHistory) GetCustomPatternBackfillScans() []*CustomPatternBackfillScan\n```\nGetCustomPatternBackfillScans returns the CustomPatternBackfillScans slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningScanHistory) GetIncrementalScans() []*SecretsScan\n```\nGetIncrementalScans returns the IncrementalScans slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningScanHistory) GetPatternUpdateScans() []*SecretsScan\n```\nGetPatternUpdateScans returns the PatternUpdateScans slice if it's non-nil, nil otherwise.\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) CreateCustomPatternsForEnterprise(ctx context.Context, enterprise string, body SecretScanningCreateCustomPatternsRequest) (*SecretScanningCreateCustomPatternsResponse, *Response, error)\n```\nCreateCustomPatternsForEnterprise creates one or more secret scanning custom patterns at the enterprise level.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-create-enterprise-custom-patterns](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-create-enterprise-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) CreateCustomPatternsForOrg(ctx context.Context, org string, body SecretScanningCreateCustomPatternsRequest) (*SecretScanningCreateCustomPatternsResponse, *Response, error)\n```\nCreateCustomPatternsForOrg creates one or more secret scanning custom patterns at organization level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-create-organization-custom-patterns](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-create-organization-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) CreateCustomPatternsForRepo(ctx context.Context, owner, repo string, body SecretScanningCreateCustomPatternsRequest) (*SecretScanningCreateCustomPatternsResponse, *Response, error)\n```\nCreateCustomPatternsForRepo creates one or more secret scanning custom patterns at the repository level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-create-repository-custom-patterns](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-create-repository-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) CreatePushProtectionBypass(ctx context.Context, owner, repo string, body PushProtectionBypassRequest) (*PushProtectionBypass, *Response, error)\n```\nCreatePushProtectionBypass creates a push protection bypass for a given 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/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#create-a-push-protection-bypass](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#create-a-push-protection-bypass)\n\n```go\nfunc (s *SecretScanningService) DeleteCustomPatternsForEnterprise(ctx context.Context, enterprise string, body SecretScanningDeleteCustomPatternsRequest) (*Response, error)\n```\nDeleteCustomPatternsForEnterprise deletes one or more secret scanning custom patterns at the enterprise level.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-delete-enterprise-custom-patterns](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-delete-enterprise-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) DeleteCustomPatternsForOrg(ctx context.Context, org string, body SecretScanningDeleteCustomPatternsRequest) (*Response, error)\n```\nDeleteCustomPatternsForOrg deletes one or more secret scanning custom patterns at the organization level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-delete-organization-custom-patterns](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-delete-organization-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) DeleteCustomPatternsForRepo(ctx context.Context, owner, repo string, body SecretScanningDeleteCustomPatternsRequest) (*Response, error)\n```\nDeleteCustomPatternsForRepo deletes one or more secret scanning custom patterns at the repository level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-delete-repository-custom-patterns](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#bulk-delete-repository-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) GetAlert(ctx context.Context, owner, repo string, number int64) (*SecretScanningAlert, *Response, error)\n```\nGetAlert gets 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/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#get-a-secret-scanning-alert](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#get-a-secret-scanning-alert)\n\n```go\nfunc (s *SecretScanningService) GetScanHistory(ctx context.Context, owner, repo string) (*SecretScanningScanHistory, *Response, error)\n```\nGetScanHistory fetches the secret scanning history for a given 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 and gitHub advanced security or secret scanning must be enabled.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#get-secret-scanning-scan-history-for-a-repository](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#get-secret-scanning-scan-history-for-a-repository)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForEnterprise(ctx context.Context, enterprise string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)\n```\nListAlertsForEnterprise lists 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/enterprise-cloud@latest/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-an-enterprise](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-an-enterprise)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForEnterpriseIter(ctx context.Context, enterprise string, opts *SecretScanningAlertListOptions) iter.Seq2[*SecretScanningAlert, error]\n```\nListAlertsForEnterpriseIter returns an iterator that paginates through all results of ListAlertsForEnterprise.\n\n```go\nfunc (s *SecretScanningService) ListAlertsForOrg(ctx context.Context, org string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)\n```\nListAlertsForOrg lists 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/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-an-organization](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-an-organization)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForOrgIter(ctx context.Context, org string, opts *SecretScanningAlertListOptions) iter.Seq2[*SecretScanningAlert, error]\n```\nListAlertsForOrgIter returns an iterator that paginates through all results of ListAlertsForOrg.\n\n```go\nfunc (s *SecretScanningService) ListAlertsForRepo(ctx context.Context, owner, repo string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)\n```\nListAlertsForRepo lists 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/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-a-repository](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-secret-scanning-alerts-for-a-repository)\n\n```go\nfunc (s *SecretScanningService) ListAlertsForRepoIter(ctx context.Context, owner string, repo string, opts *SecretScanningAlertListOptions) iter.Seq2[*SecretScanningAlert, error]\n```\nListAlertsForRepoIter returns an iterator that paginates through all results of ListAlertsForRepo.\n\n```go\nfunc (s *SecretScanningService) ListCustomPatternsForEnterprise(ctx context.Context, enterprise string, opts *SecretScanningCustomPatternListOptions) ([]*SecretScanningCustomPattern, *Response, error)\n```\nListCustomPatternsForEnterprise lists the secret scanning custom patterns defined at the enterprise level.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#list-enterprise-custom-patterns](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#list-enterprise-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) ListCustomPatternsForEnterpriseIter(ctx context.Context, enterprise string, opts *SecretScanningCustomPatternListOptions) iter.Seq2[*SecretScanningCustomPattern, error]\n```\nListCustomPatternsForEnterpriseIter returns an iterator that paginates through all results of ListCustomPatternsForEnterprise.\n\n```go\nfunc (s *SecretScanningService) ListCustomPatternsForOrg(ctx context.Context, org string, opts *SecretScanningCustomPatternListOptions) ([]*SecretScanningCustomPattern, *Response, error)\n```\nListCustomPatternsForOrg lists the secret scanning custom patterns defined at the organization level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#list-organization-custom-patterns](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#list-organization-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) ListCustomPatternsForOrgIter(ctx context.Context, org string, opts *SecretScanningCustomPatternListOptions) iter.Seq2[*SecretScanningCustomPattern, error]\n```\nListCustomPatternsForOrgIter returns an iterator that paginates through all results of ListCustomPatternsForOrg.\n\n```go\nfunc (s *SecretScanningService) ListCustomPatternsForRepo(ctx context.Context, owner, repo string, opts *SecretScanningCustomPatternListOptions) ([]*SecretScanningCustomPattern, *Response, error)\n```\nListCustomPatternsForRepo lists the secret scanning custom patterns defined at the repository level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#list-repository-custom-patterns](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#list-repository-custom-patterns)\n\n```go\nfunc (s *SecretScanningService) ListCustomPatternsForRepoIter(ctx context.Context, owner string, repo string, opts *SecretScanningCustomPatternListOptions) iter.Seq2[*SecretScanningCustomPattern, error]\n```\nListCustomPatternsForRepoIter returns an iterator that paginates through all results of ListCustomPatternsForRepo.\n\n```go\nfunc (s *SecretScanningService) ListLocationsForAlert(ctx context.Context, owner, repo string, number int64, opts *ListOptions) ([]*SecretScanningAlertLocation, *Response, error)\n```\nListLocationsForAlert lists 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/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-locations-for-a-secret-scanning-alert](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#list-locations-for-a-secret-scanning-alert)\n\n```go\nfunc (s *SecretScanningService) ListLocationsForAlertIter(ctx context.Context, owner string, repo string, number int64, opts *ListOptions) iter.Seq2[*SecretScanningAlertLocation, error]\n```\nListLocationsForAlertIter returns an iterator that paginates through all results of ListLocationsForAlert.\n\n```go\nfunc (s *SecretScanningService) ListPatternConfigsForEnterprise(ctx context.Context, enterprise string) (*SecretScanningPatternConfigs, *Response, error)\n```\nListPatternConfigsForEnterprise lists the secret scanning pattern configurations for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/push-protection?apiVersion=2022-11-28#list-enterprise-pattern-configurations](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/push-protection?apiVersion=2022-11-28#list-enterprise-pattern-configurations)\n\n```go\nfunc (s *SecretScanningService) ListPatternConfigsForOrg(ctx context.Context, org string) (*SecretScanningPatternConfigs, *Response, error)\n```\nListPatternConfigsForOrg lists the secret scanning pattern configurations for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/push-protection?apiVersion=2022-11-28#list-organization-pattern-configurations](https://docs.github.com/rest/secret-scanning/push-protection?apiVersion=2022-11-28#list-organization-pattern-configurations)\n\n```go\nfunc (s *SecretScanningService) UpdateAlert(ctx context.Context, owner, repo string, number int64, body UpdateSecretScanningAlertRequest) (*SecretScanningAlert, *Response, error)\n```\nUpdateAlert updates 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/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#update-a-secret-scanning-alert](https://docs.github.com/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28#update-a-secret-scanning-alert)\n\n```go\nfunc (s *SecretScanningService) UpdateCustomPatternForEnterprise(ctx context.Context, enterprise string, patternID int64, body SecretScanningUpdateCustomPatternRequest) (*SecretScanningCustomPattern, *Response, error)\n```\nUpdateCustomPatternForEnterprise updates a single secret scanning custom pattern at the enterprise level.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#update-an-enterprise-custom-pattern](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#update-an-enterprise-custom-pattern)\n\n```go\nfunc (s *SecretScanningService) UpdateCustomPatternForOrg(ctx context.Context, org string, patternID int64, body SecretScanningUpdateCustomPatternRequest) (*SecretScanningCustomPattern, *Response, error)\n```\nUpdateCustomPatternForOrg updates a single secret scanning custom pattern at organization level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#update-an-organization-custom-pattern](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#update-an-organization-custom-pattern)\n\n```go\nfunc (s *SecretScanningService) UpdateCustomPatternForRepo(ctx context.Context, owner, repo string, patternID int64, body SecretScanningUpdateCustomPatternRequest) (*SecretScanningCustomPattern, *Response, error)\n```\nUpdateCustomPatternForRepo updates a single secret scanning custom pattern at the repository level.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#update-a-repository-custom-pattern](https://docs.github.com/rest/secret-scanning/custom-patterns?apiVersion=2022-11-28#update-a-repository-custom-pattern)\n\n```go\nfunc (s *SecretScanningService) UpdatePatternConfigsForEnterprise(ctx context.Context, enterprise string, body UpdateSecretScanningPatternConfigsRequest) (*SecretScanningPatternConfigsUpdate, *Response, error)\n```\nUpdatePatternConfigsForEnterprise updates the secret scanning pattern configurations for an enterprise.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/push-protection?apiVersion=2022-11-28#update-enterprise-pattern-configurations](https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning/push-protection?apiVersion=2022-11-28#update-enterprise-pattern-configurations)\n\n```go\nfunc (s *SecretScanningService) UpdatePatternConfigsForOrg(ctx context.Context, org string, body UpdateSecretScanningPatternConfigsRequest) (*SecretScanningPatternConfigsUpdate, *Response, error)\n```\nUpdatePatternConfigsForOrg updates the secret scanning pattern configurations for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/secret-scanning/push-protection?apiVersion=2022-11-28#update-organization-pattern-configurations](https://docs.github.com/rest/secret-scanning/push-protection?apiVersion=2022-11-28#update-organization-pattern-configurations)\n\n```go\ntype SecretScanningUpdateCustomPatternRequest struct {\n\t// Pattern is the updated regular expression of the custom pattern.\n\tPattern *string `json:\"pattern,omitempty\"`\n\n\t// StartDelimiter is the updated start delimiter regex for the custom\n\t// pattern.\n\tStartDelimiter *string `json:\"start_delimiter,omitempty\"`\n\n\t// EndDelimiter is the updated end delimiter regex for the custom\n\t// pattern.\n\tEndDelimiter *string `json:\"end_delimiter,omitempty\"`\n\n\t// MustMatch is the updated list of regexes that the secret must match.\n\tMustMatch []string `json:\"must_match,omitempty\"`\n\n\t// MustNotMatch is the updated list of regexes that the secret must not\n\t// match.\n\tMustNotMatch []string `json:\"must_not_match,omitempty\"`\n\n\t// CustomPatternVersion is required and is used to confirm you're\n\t// updating the current version of the pattern.\n\tCustomPatternVersion *string `json:\"custom_pattern_version\"`\n}\n```\nSecretScanningUpdateCustomPatternRequest represents the fields that can be updated on an existing custom pattern. At least one of Pattern, StartDelimiter, EndDelimiter, MustMatch, or MustNotMatch must be set.\n\n```go\nfunc (s *SecretScanningUpdateCustomPatternRequest) GetCustomPatternVersion() string\n```\nGetCustomPatternVersion returns the CustomPatternVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningUpdateCustomPatternRequest) GetEndDelimiter() string\n```\nGetEndDelimiter returns the EndDelimiter field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningUpdateCustomPatternRequest) GetMustMatch() []string\n```\nGetMustMatch returns the MustMatch slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningUpdateCustomPatternRequest) GetMustNotMatch() []string\n```\nGetMustNotMatch returns the MustNotMatch slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecretScanningUpdateCustomPatternRequest) GetPattern() string\n```\nGetPattern returns the Pattern field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretScanningUpdateCustomPatternRequest) GetStartDelimiter() string\n```\nGetStartDelimiter returns the StartDelimiter field if it's non-nil, zero value otherwise.\n\n```go\ntype SecretScanningValidityChecks struct {\n\tStatus *string `json:\"status,omitempty\"`\n}\n```\nSecretScanningValidityChecks represents the state of secret scanning validity checks on a repository.\n\nGitHub API docs: [https://docs.github.com/en/enterprise-cloud@latest/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#allowing-validity-checks-for-partner-patterns-in-a-repository](https://docs.github.com/en/enterprise-cloud@latest/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#allowing-validity-checks-for-partner-patterns-in-a-repository)\n\n```go\nfunc (s *SecretScanningValidityChecks) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\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\nfunc (s *Secrets) GetSecrets() []*Secret\n```\nGetSecrets returns the Secrets slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *Secrets) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype SecretsScan struct {\n\tType        string     `json:\"type\"`\n\tStatus      string     `json:\"status\"`\n\tCompletedAt *Timestamp `json:\"completed_at,omitempty\"`\n\tStartedAt   *Timestamp `json:\"started_at,omitempty\"`\n}\n```\nSecretsScan represents the common fields for a secret scanning scan.\n\n```go\nfunc (s *SecretsScan) GetCompletedAt() Timestamp\n```\nGetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretsScan) GetStartedAt() Timestamp\n```\nGetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecretsScan) GetStatus() string\n```\nGetStatus returns the Status field.\n\n```go\nfunc (s *SecretsScan) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype SecurityAdvisoriesService service\n```\nSecurityAdvisoriesService handles communication with the security advisories related methods of the GitHub API.\n\nGitHub API docs: [https://docs.github.com/rest/security-advisories?apiVersion=2022-11-28](https://docs.github.com/rest/security-advisories?apiVersion=2022-11-28)\n\n```go\nfunc (s *SecurityAdvisoriesService) CreateTemporaryPrivateFork(ctx context.Context, owner, repo, ghsaID string) (*Repository, *Response, error)\n```\nCreateTemporaryPrivateFork creates a temporary private fork to collaborate on fixing a security vulnerability in your repository. The ghsaID is the GitHub Security Advisory identifier of the advisory.\n\nGitHub API docs: [https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#create-a-temporary-private-fork](https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#create-a-temporary-private-fork)\n\n```go\nfunc (s *SecurityAdvisoriesService) GetGlobalSecurityAdvisories(ctx context.Context, ghsaID string) (*GlobalSecurityAdvisory, *Response, error)\n```\nGetGlobalSecurityAdvisories gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.\n\nGitHub API docs: [https://docs.github.com/rest/security-advisories/global-advisories?apiVersion=2022-11-28#get-a-global-security-advisory](https://docs.github.com/rest/security-advisories/global-advisories?apiVersion=2022-11-28#get-a-global-security-advisory)\n\n```go\nfunc (s *SecurityAdvisoriesService) ListGlobalSecurityAdvisories(ctx context.Context, opts *ListGlobalSecurityAdvisoriesOptions) ([]*GlobalSecurityAdvisory, *Response, error)\n```\nListGlobalSecurityAdvisories lists all global security advisories.\n\nGitHub API docs: [https://docs.github.com/rest/security-advisories/global-advisories?apiVersion=2022-11-28#list-global-security-advisories](https://docs.github.com/rest/security-advisories/global-advisories?apiVersion=2022-11-28#list-global-security-advisories)\n\n```go\nfunc (s *SecurityAdvisoriesService) ListGlobalSecurityAdvisoriesIter(ctx context.Context, opts *ListGlobalSecurityAdvisoriesOptions) iter.Seq2[*GlobalSecurityAdvisory, error]\n```\nListGlobalSecurityAdvisoriesIter returns an iterator that paginates through all results of ListGlobalSecurityAdvisories.\n\n```go\nfunc (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisories(ctx context.Context, owner, repo string, opts *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error)\n```\nListRepositorySecurityAdvisories lists the security advisories in a repository.\n\nGitHub API docs: [https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories](https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories)\n\n```go\nfunc (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisoriesForOrg(ctx context.Context, org string, opts *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error)\n```\nListRepositorySecurityAdvisoriesForOrg lists the repository security advisories for an organization.\n\nGitHub API docs: [https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories-for-an-organization](https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories-for-an-organization)\n\n```go\nfunc (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisoriesForOrgIter(ctx context.Context, org string, opts *ListRepositorySecurityAdvisoriesOptions) iter.Seq2[*SecurityAdvisory, error]\n```\nListRepositorySecurityAdvisoriesForOrgIter returns an iterator that paginates through all results of ListRepositorySecurityAdvisoriesForOrg.\n\n```go\nfunc (s *SecurityAdvisoriesService) ListRepositorySecurityAdvisoriesIter(ctx context.Context, owner string, repo string, opts *ListRepositorySecurityAdvisoriesOptions) iter.Seq2[*SecurityAdvisory, error]\n```\nListRepositorySecurityAdvisoriesIter returns an iterator that paginates through all results of ListRepositorySecurityAdvisories.\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/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#request-a-cve-for-a-repository-security-advisory](https://docs.github.com/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#request-a-cve-for-a-repository-security-advisory)\n\n```go\ntype SecurityAdvisory struct {\n\tCVSS               *AdvisoryCVSS                 `json:\"cvss,omitempty\"`\n\tCVSSSeverities     *AdvisoryCVSSSeverities       `json:\"cvss_severities,omitempty\"`\n\tCWEs               []*AdvisoryCWEs               `json:\"cwes,omitempty\"`\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\tCVEID              *string                       `json:\"cve_id,omitempty\"`\n\tURL                *string                       `json:\"url,omitempty\"`\n\tHTMLURL            *string                       `json:\"html_url,omitempty\"`\n\tAuthor             *User                         `json:\"author,omitempty\"`\n\tPublisher          *User                         `json:\"publisher,omitempty\"`\n\tState              *string                       `json:\"state,omitempty\"`\n\tCreatedAt          *Timestamp                    `json:\"created_at,omitempty\"`\n\tClosedAt           *Timestamp                    `json:\"closed_at,omitempty\"`\n\tSubmission         *SecurityAdvisorySubmission   `json:\"submission,omitempty\"`\n\tCWEIDs             []string                      `json:\"cwe_ids,omitempty\"`\n\tCredits            []*RepoAdvisoryCredit         `json:\"credits,omitempty\"`\n\tCreditsDetailed    []*RepoAdvisoryCreditDetailed `json:\"credits_detailed,omitempty\"`\n\tCollaboratingUsers []*User                       `json:\"collaborating_users,omitempty\"`\n\tCollaboratingTeams []*Team                       `json:\"collaborating_teams,omitempty\"`\n\tPrivateFork        *Repository                   `json:\"private_fork,omitempty\"`\n}\n```\nSecurityAdvisory represents the advisory object in SecurityAdvisoryEvent payload.\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security\\_advisory](https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory)\n\n```go\nfunc (s *SecurityAdvisory) GetAuthor() *User\n```\nGetAuthor returns the Author field.\n\n```go\nfunc (s *SecurityAdvisory) GetCVEID() string\n```\nGetCVEID returns the CVEID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCVSS() *AdvisoryCVSS\n```\nGetCVSS returns the CVSS field.\n\n```go\nfunc (s *SecurityAdvisory) GetCVSSSeverities() *AdvisoryCVSSSeverities\n```\nGetCVSSSeverities returns the CVSSSeverities field.\n\n```go\nfunc (s *SecurityAdvisory) GetCWEIDs() []string\n```\nGetCWEIDs returns the CWEIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCWEs() []*AdvisoryCWEs\n```\nGetCWEs returns the CWEs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetClosedAt() Timestamp\n```\nGetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCollaboratingTeams() []*Team\n```\nGetCollaboratingTeams returns the CollaboratingTeams slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCollaboratingUsers() []*User\n```\nGetCollaboratingUsers returns the CollaboratingUsers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCredits() []*RepoAdvisoryCredit\n```\nGetCredits returns the Credits slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetCreditsDetailed() []*RepoAdvisoryCreditDetailed\n```\nGetCreditsDetailed returns the CreditsDetailed slice if it's non-nil, nil otherwise.\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) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetIdentifiers() []*AdvisoryIdentifier\n```\nGetIdentifiers returns the Identifiers slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetPrivateFork() *Repository\n```\nGetPrivateFork returns the PrivateFork field.\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) GetPublisher() *User\n```\nGetPublisher returns the Publisher field.\n\n```go\nfunc (s *SecurityAdvisory) GetReferences() []*AdvisoryReference\n```\nGetReferences returns the References slice if it's non-nil, nil 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) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SecurityAdvisory) GetSubmission() *SecurityAdvisorySubmission\n```\nGetSubmission returns the Submission field.\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) GetURL() string\n```\nGetURL returns the URL 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) GetVulnerabilities() []*AdvisoryVulnerability\n```\nGetVulnerabilities returns the Vulnerabilities slice if it's non-nil, nil 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\t// The following fields are only populated by Webhook events.\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```\nSecurityAdvisoryEvent is triggered when a security-related vulnerability is found in software on GitHub.\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security\\_advisory](https://docs.github.com/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) GetEnterprise() *Enterprise\n```\nGetEnterprise returns the Enterprise field.\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetSecurityAdvisory() *SecurityAdvisory\n```\nGetSecurityAdvisory returns the SecurityAdvisory field.\n\n```go\nfunc (s *SecurityAdvisoryEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype SecurityAdvisorySubmission struct {\n\t// Accepted represents whether a private vulnerability report was accepted by the repository's administrators.\n\tAccepted *bool `json:\"accepted,omitempty\"`\n}\n```\nSecurityAdvisorySubmission represents the Security Advisory Submission.\n\n```go\nfunc (s *SecurityAdvisorySubmission) GetAccepted() bool\n```\nGetAccepted returns the Accepted field if it's non-nil, zero value otherwise.\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\tSecretScanningValidityChecks *SecretScanningValidityChecks `json:\"secret_scanning_validity_checks,omitempty\"`\n\tCodeSecurity                 *CodeSecurity                 `json:\"code_security,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) GetCodeSecurity() *CodeSecurity\n```\nGetCodeSecurity returns the CodeSecurity 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) GetSecretScanningValidityChecks() *SecretScanningValidityChecks\n```\nGetSecretScanningValidityChecks returns the SecretScanningValidityChecks 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/webhooks-and-events/webhooks/webhook-events-and-payloads#security\\_and\\_analysis](https://docs.github.com/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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\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 SelfHostRunnerPermissionsEnterprise struct {\n\tDisableSelfHostedRunnersForAllOrgs bool `json:\"disable_self_hosted_runners_for_all_orgs\"`\n}\n```\nSelfHostRunnerPermissionsEnterprise represents the settings for whether organizations in the enterprise are allowed to manage self-hosted runners at the repository level.\n\n```go\nfunc (s *SelfHostRunnerPermissionsEnterprise) GetDisableSelfHostedRunnersForAllOrgs() bool\n```\nGetDisableSelfHostedRunnersForAllOrgs returns the DisableSelfHostedRunnersForAllOrgs field.\n\n```go\nfunc (a SelfHostRunnerPermissionsEnterprise) String() string\n```\n\n```go\ntype SelfHostedRunnersAllowedRepos struct {\n\tTotalCount   int           `json:\"total_count\"`\n\tRepositories []*Repository `json:\"repositories\"`\n}\n```\nSelfHostedRunnersAllowedRepos represents the repositories that are allowed to use self-hosted runners in an organization.\n\n```go\nfunc (s *SelfHostedRunnersAllowedRepos) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SelfHostedRunnersAllowedRepos) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field.\n\n```go\ntype SelfHostedRunnersSettingsOrganization struct {\n\tEnabledRepositories     *string `json:\"enabled_repositories,omitempty\"`\n\tSelectedRepositoriesURL *string `json:\"selected_repositories_url,omitempty\"`\n}\n```\nSelfHostedRunnersSettingsOrganization represents the self-hosted runners permissions settings for repositories in an organization.\n\n```go\nfunc (s *SelfHostedRunnersSettingsOrganization) GetEnabledRepositories() string\n```\nGetEnabledRepositories returns the EnabledRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SelfHostedRunnersSettingsOrganization) GetSelectedRepositoriesURL() string\n```\nGetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s SelfHostedRunnersSettingsOrganization) String() string\n```\n\n```go\ntype SelfHostedRunnersSettingsOrganizationOpt struct {\n\tEnabledRepositories string `json:\"enabled_repositories\"`\n}\n```\nSelfHostedRunnersSettingsOrganizationOpt specifies the self-hosted runners permissions settings for repositories in an organization.\n\n```go\nfunc (s *SelfHostedRunnersSettingsOrganizationOpt) GetEnabledRepositories() string\n```\nGetEnabledRepositories returns the EnabledRepositories field.\n\n```go\ntype ServerInstanceProperties struct {\n\tServerInstances *ServerInstances `json:\"server_instances,omitempty\"`\n}\n```\nServerInstanceProperties contains the collection of server instances.\n\n```go\nfunc (s *ServerInstanceProperties) GetServerInstances() *ServerInstances\n```\nGetServerInstances returns the ServerInstances field.\n\n```go\ntype ServerInstances struct {\n\tType  string                `json:\"type\"`\n\tItems *ServiceInstanceItems `json:\"items,omitempty\"`\n}\n```\nServerInstances represents a collection of GitHub Enterprise Server instances and their synchronization status.\n\n```go\nfunc (s *ServerInstances) GetItems() *ServiceInstanceItems\n```\nGetItems returns the Items field.\n\n```go\nfunc (s *ServerInstances) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype ServerItemProperties struct {\n\tServerID string           `json:\"server_id\"`\n\tHostname string           `json:\"hostname\"`\n\tLastSync *LastLicenseSync `json:\"last_sync,omitempty\"`\n}\n```\nServerItemProperties represents the properties of a GitHub Enterprise Server instance, including its identifier, hostname, and last synchronization status.\n\n```go\nfunc (s *ServerItemProperties) GetHostname() string\n```\nGetHostname returns the Hostname field.\n\n```go\nfunc (s *ServerItemProperties) GetLastSync() *LastLicenseSync\n```\nGetLastSync returns the LastSync field.\n\n```go\nfunc (s *ServerItemProperties) GetServerID() string\n```\nGetServerID returns the ServerID field.\n\n```go\ntype ServiceInstanceItems struct {\n\tType       string                `json:\"type\"`\n\tProperties *ServerItemProperties `json:\"properties,omitempty\"`\n}\n```\nServiceInstanceItems defines the structure and properties of individual server instances in the collection.\n\n```go\nfunc (s *ServiceInstanceItems) GetProperties() *ServerItemProperties\n```\nGetProperties returns the Properties field.\n\n```go\nfunc (s *ServiceInstanceItems) GetType() string\n```\nGetType returns the Type field.\n\n```go\ntype SetOrgAccessRunnerGroupRequest struct {\n\t// Updated list of organization IDs that should be given access to the runner group.\n\tSelectedOrganizationIDs []int64 `json:\"selected_organization_ids\"`\n}\n```\nSetOrgAccessRunnerGroupRequest represents a request to replace the list of organizations that can access a self-hosted runner group configured in an enterprise.\n\n```go\nfunc (s *SetOrgAccessRunnerGroupRequest) GetSelectedOrganizationIDs() []int64\n```\nGetSelectedOrganizationIDs returns the SelectedOrganizationIDs slice if it's non-nil, nil otherwise.\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\nfunc (s *SetRepoAccessRunnerGroupRequest) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\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\nfunc (s *SetRunnerGroupRunnersRequest) GetRunners() []int64\n```\nGetRunners returns the Runners slice if it's non-nil, nil otherwise.\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 SimplePatternRuleParameters struct {\n\tNegate  bool   `json:\"negate\"`\n\tPattern string `json:\"pattern\"`\n}\n```\nSimplePatternRuleParameters represents the parameters for a simple pattern rule.\n\n```go\nfunc (s *SimplePatternRuleParameters) GetNegate() bool\n```\nGetNegate returns the Negate field.\n\n```go\nfunc (s *SimplePatternRuleParameters) GetPattern() string\n```\nGetPattern returns the Pattern field.\n\n```go\ntype SocialAccount struct {\n\tProvider *string `json:\"provider,omitempty\"`\n\tURL      *string `json:\"url,omitempty\"`\n}\n```\nSocialAccount represents a social account linked to a user.\n\n```go\nfunc (s *SocialAccount) GetProvider() string\n```\nGetProvider returns the Provider field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SocialAccount) 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/rest/migrations/source-imports?apiVersion=2022-11-28#get-commit-authors](https://docs.github.com/rest/migrations/source-imports?apiVersion=2022-11-28#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 SplunkConfig struct {\n\tDomain         string `json:\"domain\"`\n\tPort           uint16 `json:\"port\"`\n\tKeyID          string `json:\"key_id\"`\n\tEncryptedToken string `json:\"encrypted_token\"`\n\tSSLVerify      bool   `json:\"ssl_verify\"`\n}\n```\nSplunkConfig represents vendor-specific config for Splunk.\n\n```go\nfunc (s *SplunkConfig) GetDomain() string\n```\nGetDomain returns the Domain field.\n\n```go\nfunc (s *SplunkConfig) GetEncryptedToken() string\n```\nGetEncryptedToken returns the EncryptedToken field.\n\n```go\nfunc (s *SplunkConfig) GetKeyID() string\n```\nGetKeyID returns the KeyID field.\n\n```go\nfunc (s *SplunkConfig) GetPort() uint16\n```\nGetPort returns the Port field.\n\n```go\nfunc (s *SplunkConfig) GetSSLVerify() bool\n```\nGetSSLVerify returns the SSLVerify field.\n\n```go\ntype SponsorshipChanges struct {\n\tTier         *SponsorshipTier `json:\"tier,omitempty\"`\n\tPrivacyLevel *string          `json:\"privacy_level,omitempty\"`\n}\n```\nSponsorshipChanges represents changes made to the sponsorship.\n\n```go\nfunc (s *SponsorshipChanges) GetPrivacyLevel() string\n```\nGetPrivacyLevel returns the PrivacyLevel field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SponsorshipChanges) GetTier() *SponsorshipTier\n```\nGetTier returns the Tier field.\n\n```go\ntype SponsorshipEvent struct {\n\tAction        *string             `json:\"action,omitempty\"`\n\tEffectiveDate *string             `json:\"effective_date,omitempty\"`\n\tChanges       *SponsorshipChanges `json:\"changes,omitempty\"`\n\tRepository    *Repository         `json:\"repository,omitempty\"`\n\tOrganization  *Organization       `json:\"organization,omitempty\"`\n\tSender        *User               `json:\"sender,omitempty\"`\n\tInstallation  *Installation       `json:\"installation,omitempty\"`\n}\n```\nSponsorshipEvent represents a sponsorship event in GitHub.\n\nGitHub API docs: [https://docs.github.com/rest/overview/github-event-types?apiVersion=2022-11-28#sponsorshipevent](https://docs.github.com/rest/overview/github-event-types?apiVersion=2022-11-28#sponsorshipevent)\n\n```go\nfunc (s *SponsorshipEvent) GetAction() string\n```\nGetAction returns the Action field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SponsorshipEvent) GetChanges() *SponsorshipChanges\n```\nGetChanges returns the Changes field.\n\n```go\nfunc (s *SponsorshipEvent) GetEffectiveDate() string\n```\nGetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SponsorshipEvent) GetInstallation() *Installation\n```\nGetInstallation returns the Installation field.\n\n```go\nfunc (s *SponsorshipEvent) GetOrganization() *Organization\n```\nGetOrganization returns the Organization field.\n\n```go\nfunc (s *SponsorshipEvent) GetRepository() *Repository\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (s *SponsorshipEvent) GetSender() *User\n```\nGetSender returns the Sender field.\n\n```go\ntype SponsorshipTier struct {\n\tFrom *string `json:\"from,omitempty\"`\n}\n```\nSponsorshipTier represents the tier information of a sponsorship.\n\n```go\nfunc (s *SponsorshipTier) GetFrom() string\n```\nGetFrom returns the From field if it's non-nil, zero value otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#star](https://docs.github.com/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 StargazerCount struct {\n\tCount int `json:\"count\"`\n}\n```\nStargazerCount represents the number of users who have starred a repository.\n\n```go\nfunc (s *StargazerCount) GetCount() int\n```\nGetCount returns the Count field.\n\n```go\ntype StargazerHistory struct {\n\tDays  []int     `json:\"days\"`\n\tTotal int       `json:\"total\"`\n\tWeek  Timestamp `json:\"week\"`\n}\n```\nStargazerHistory represents the stars a repository received during one week.\n\n```go\nfunc (s *StargazerHistory) GetDays() []int\n```\nGetDays returns the Days slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *StargazerHistory) GetTotal() int\n```\nGetTotal returns the Total field.\n\n```go\nfunc (s *StargazerHistory) GetWeek() Timestamp\n```\nGetWeek returns the Week 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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#status](https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#status)\n\n```go\nfunc (s *StatusEvent) GetBranches() []*Branch\n```\nGetBranches returns the Branches slice if it's non-nil, nil otherwise.\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) GetOrg() *Organization\n```\nGetOrg returns the Org field.\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 int `json:\"estimated_paid_storage_for_month\"`\n\tEstimatedStorageForMonth     int `json:\"estimated_storage_for_month\"`\n}\n```\nStorageBilling represents a GitHub Storage billing.\n\n```go\nfunc (s *StorageBilling) GetDaysLeftInBillingCycle() int\n```\nGetDaysLeftInBillingCycle returns the DaysLeftInBillingCycle field.\n\n```go\nfunc (s *StorageBilling) GetEstimatedPaidStorageForMonth() int\n```\nGetEstimatedPaidStorageForMonth returns the EstimatedPaidStorageForMonth field.\n\n```go\nfunc (s *StorageBilling) GetEstimatedStorageForMonth() int\n```\nGetEstimatedStorageForMonth returns the EstimatedStorageForMonth field.\n\n```go\ntype SubIssue Issue\n```\nSubIssue represents a GitHub sub-issue on a repository. Note: 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 SubIssue) String() string\n```\n\n```go\ntype SubIssueListByIssueOptions struct {\n\tIssueListByRepoOptions\n}\n```\nSubIssueListByIssueOptions specifies the optional parameters to the SubIssueService.ListByIssue method.\n\n```go\ntype SubIssueRequest struct {\n\tSubIssueID    int64  `json:\"sub_issue_id\"`             // Required: The ID of the sub-issue\n\tAfterID       *int64 `json:\"after_id,omitempty\"`       // Optional: Position after this sub-issue ID\n\tBeforeID      *int64 `json:\"before_id,omitempty\"`      // Optional: Position before this sub-issue ID\n\tReplaceParent *bool  `json:\"replace_parent,omitempty\"` // Optional: Whether to replace the existing parent\n}\n```\nSubIssueRequest represents a request to add, remove, or reprioritize sub-issues.\n\n```go\nfunc (s *SubIssueRequest) GetAfterID() int64\n```\nGetAfterID returns the AfterID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SubIssueRequest) GetBeforeID() int64\n```\nGetBeforeID returns the BeforeID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SubIssueRequest) GetReplaceParent() bool\n```\nGetReplaceParent returns the ReplaceParent field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SubIssueRequest) GetSubIssueID() int64\n```\nGetSubIssueID returns the SubIssueID field.\n\n```go\ntype SubIssueService service\n```\nSubIssueService handles communication with the sub-issue related methods of the GitHub API.\n\nSub-issues help you group and manage your issues with a parent/child relationship.\n\nGitHub API docs: [https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28](https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28)\n\n```go\nfunc (s *SubIssueService) Add(ctx context.Context, owner, repo string, issueNumber int64, body SubIssueRequest) (*SubIssue, *Response, error)\n```\nAdd adds a sub-issue to the specified issue.\n\nThe sub-issue to be added must belong to the same repository owner as the parent issue. To replace the existing parent of a sub-issue, set replaceParent to true.\n\nGitHub API docs: [https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#add-sub-issue](https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#add-sub-issue)\n\n```go\nfunc (s *SubIssueService) GetParentIssue(ctx context.Context, owner, repo string, subIssueNumber int64) (*Issue, *Response, error)\n```\nGetParentIssue gets the parent issue of a sub-issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#get-parent-issue](https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#get-parent-issue)\n\n```go\nfunc (s *SubIssueService) ListByIssue(ctx context.Context, owner, repo string, issueNumber int64, opts *ListOptions) ([]*SubIssue, *Response, error)\n```\nListByIssue lists all sub-issues for the specified issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#list-sub-issues](https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#list-sub-issues)\n\n```go\nfunc (s *SubIssueService) ListByIssueIter(ctx context.Context, owner string, repo string, issueNumber int64, opts *ListOptions) iter.Seq2[*SubIssue, error]\n```\nListByIssueIter returns an iterator that paginates through all results of ListByIssue.\n\n```go\nfunc (s *SubIssueService) Remove(ctx context.Context, owner, repo string, issueNumber int64, subIssue SubIssueRequest) (*SubIssue, *Response, error)\n```\nRemove a sub-issue from the specified repository.\n\nGitHub API docs: [https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#remove-sub-issue](https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#remove-sub-issue)\n\n```go\nfunc (s *SubIssueService) Reprioritize(ctx context.Context, owner, repo string, issueNumber int64, body SubIssueRequest) (*SubIssue, *Response, error)\n```\nReprioritize changes a sub-issue's priority to a different position in the parent list.\n\nEither afterId or beforeId must be specified to determine the new position of the sub-issue.\n\nGitHub API docs: [https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#reprioritize-sub-issue](https://docs.github.com/rest/issues/sub-issues?apiVersion=2022-11-28#reprioritize-sub-issue)\n\n```go\ntype SubIssuesSummary struct {\n\tTotal            *int `json:\"total,omitempty\"`\n\tCompleted        *int `json:\"completed,omitempty\"`\n\tPercentCompleted *int `json:\"percent_completed,omitempty\"`\n}\n```\nSubIssuesSummary represents a summary of sub-issue progress.\n\n```go\nfunc (s *SubIssuesSummary) GetCompleted() int\n```\nGetCompleted returns the Completed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SubIssuesSummary) GetPercentCompleted() int\n```\nGetPercentCompleted returns the PercentCompleted field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SubIssuesSummary) GetTotal() int\n```\nGetTotal returns the Total field if it's non-nil, zero value otherwise.\n\n```go\ntype Subscription struct {\n\tSubscribed *bool      `json:\"subscribed,omitempty\"`\n\tIgnored    *bool      `json:\"ignored,omitempty\"`\n\tReason     *string    `json:\"reason,omitempty\"`\n\tCreatedAt  *Timestamp `json:\"created_at,omitempty\"`\n\tURL        *string    `json:\"url,omitempty\"`\n\n\t// only populated for repository subscriptions\n\tRepositoryURL *string `json:\"repository_url,omitempty\"`\n\n\t// only populated for thread subscriptions\n\tThreadURL *string `json:\"thread_url,omitempty\"`\n}\n```\nSubscription identifies a repository or thread subscription.\n\n```go\nfunc (s *Subscription) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetIgnored() bool\n```\nGetIgnored returns the Ignored field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetRepositoryURL() string\n```\nGetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetSubscribed() bool\n```\nGetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetThreadURL() string\n```\nGetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *Subscription) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\ntype SuspendUserRequest struct {\n\tReason *string `json:\"reason,omitempty\"`\n}\n```\nSuspendUserRequest represents a request to suspend a user.\n\n```go\nfunc (s *SuspendUserRequest) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\ntype SystemRequirements struct {\n\tStatus *string                   `json:\"status,omitempty\"`\n\tNodes  []*SystemRequirementsNode `json:\"nodes\"`\n}\n```\nSystemRequirements represents a response from the CheckSystemRequirements method.\n\n```go\nfunc (s *SystemRequirements) GetNodes() []*SystemRequirementsNode\n```\nGetNodes returns the Nodes slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SystemRequirements) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype SystemRequirementsNode struct {\n\tHostname    *string                             `json:\"hostname,omitempty\"`\n\tStatus      *string                             `json:\"status,omitempty\"`\n\tRolesStatus []*SystemRequirementsNodeRoleStatus `json:\"roles_status\"`\n}\n```\nSystemRequirementsNode represents the status of a system node.\n\n```go\nfunc (s *SystemRequirementsNode) GetHostname() string\n```\nGetHostname returns the Hostname field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SystemRequirementsNode) GetRolesStatus() []*SystemRequirementsNodeRoleStatus\n```\nGetRolesStatus returns the RolesStatus slice if it's non-nil, nil otherwise.\n\n```go\nfunc (s *SystemRequirementsNode) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\ntype SystemRequirementsNodeRoleStatus struct {\n\tStatus *string `json:\"status,omitempty\"`\n\tRole   *string `json:\"role,omitempty\"`\n}\n```\nSystemRequirementsNodeRoleStatus represents the status of a role on a system node.\n\n```go\nfunc (s *SystemRequirementsNodeRoleStatus) GetRole() string\n```\nGetRole returns the Role field if it's non-nil, zero value otherwise.\n\n```go\nfunc (s *SystemRequirementsNodeRoleStatus) GetStatus() string\n```\nGetStatus returns the Status 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// 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// NotificationSetting can be one of: \"notifications_enabled\", \"notifications_disabled\".\n\tNotificationSetting *string `json:\"notification_setting,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\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// Assignment identifies how a team was assigned to an organization role. Its\n\t// possible values are: \"direct\", \"indirect\", \"mixed\". This is only populated when\n\t// calling the ListTeamsAssignedToOrgRole method.\n\tAssignment *string `json:\"assignment,omitempty\"`\n\n\t// Type identifies the ownership type of the team\n\t// Possible values are: \"organization\", \"enterprise\".\n\tType *string `json:\"type,omitempty\"`\n\n\t// AccessSource identifies the source of the team's access to a specific\n\t// repository. Possible values are: \"direct\", \"organization\" or \"enterprise\".\n\t// This is only populated when calling [RepositoriesService.ListTeams].\n\tAccessSource *string `json:\"access_source,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) GetAccessSource() string\n```\nGetAccessSource returns the AccessSource field if it's non-nil, zero value otherwise.\n\n```go\nfunc (t *Team) GetAssignment() string\n```\nGetAssignment returns the Assignment field if it's non-nil, zero value otherwise.\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) GetNotificationSetting() string\n```\nGetNotificationSetting returns the NotificationSetting 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) GetType() string\n```\nGetType returns the Type 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/developers/webhooks-and-events/webhook-events-and-payloads#team\\_add](https://docs.github.com/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 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 discussion 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/developers/webhooks-and-events/webhook-events-and-payloads#team](https://docs.github.com/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\nfunc (t *TeamListTeamMembersOptions) GetRole() string\n```\nGetRole returns the Role field.\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 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/rest/teams?apiVersion=2022-11-28](https://docs.github.com/rest/teams?apiVersion=2022-11-28)\n\n```go\nfunc (s *TeamsService) AddTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string, body AddTeamMembershipRequest) (*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/rest/teams/members?apiVersion=2022-11-28#add-or-update-team-membership-for-a-user](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#add-or-update-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) AddTeamMembershipBySlug(ctx context.Context, org, slug, user string, body AddTeamMembershipRequest) (*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/rest/teams/members?apiVersion=2022-11-28#add-or-update-team-membership-for-a-user](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#add-or-update-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) AddTeamProjectByID(ctx context.Context, orgID, teamID, projectID int64, body AddTeamProjectRequest) (*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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#add-or-update-team-project-permissions](https://docs.github.com/enterprise-server@3.16/rest/teams/teams#add-or-update-team-project-permissions)\n\n```go\nfunc (s *TeamsService) AddTeamProjectBySlug(ctx context.Context, org, slug string, projectID int64, body AddTeamProjectRequest) (*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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#add-or-update-team-project-permissions](https://docs.github.com/enterprise-server@3.16/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, body AddTeamRepoRequest) (*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/rest/teams/teams?apiVersion=2022-11-28#add-or-update-team-repository-permissions](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#add-or-update-team-repository-permissions)\n\n```go\nfunc (s *TeamsService) AddTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string, body AddTeamRepoRequest) (*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/rest/teams/teams?apiVersion=2022-11-28#add-or-update-team-repository-permissions](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#add-or-update-team-repository-permissions)\n\n```go\nfunc (s *TeamsService) CreateCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber int, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#create-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#create-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) CreateCommentBySlug(ctx context.Context, org, slug string, discussionNumber int, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#create-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#create-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) CreateDiscussionByID(ctx context.Context, orgID, teamID int64, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion)\n\n```go\nfunc (s *TeamsService) CreateDiscussionBySlug(ctx context.Context, org, slug string, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion)\n\n```go\nfunc (s *TeamsService) CreateOrUpdateIDPGroupConnectionsByID(ctx context.Context, orgID, teamID int64, body 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/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#create-or-update-idp-group-connections](https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#create-or-update-idp-group-connections)\n\n```go\nfunc (s *TeamsService) CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org, slug string, body 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/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#create-or-update-idp-group-connections](https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#create-or-update-idp-group-connections)\n\n```go\nfunc (s *TeamsService) CreateTeam(ctx context.Context, org string, body CreateTeamRequest) (*Team, *Response, error)\n```\nCreateTeam creates a new team within an organization.\n\nGitHub API docs: [https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#create-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#delete-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#delete-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion](https://docs.github.com/enterprise-server@3.13/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion](https://docs.github.com/enterprise-server@3.13/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/rest/teams/teams?apiVersion=2022-11-28#delete-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#delete-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#delete-a-team)\n\n```go\nfunc (s *TeamsService) EditCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#update-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#update-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) EditCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#update-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#update-a-discussion-comment)\n\n```go\nfunc (s *TeamsService) EditDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion)\n\n```go\nfunc (s *TeamsService) EditDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int, body 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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion)\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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment](https://docs.github.com/enterprise-server@3.13/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion](https://docs.github.com/enterprise-server@3.13/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion](https://docs.github.com/enterprise-server@3.13/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/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#get-an-external-group](https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#get-a-team-by-name](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#get-a-team-by-name](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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/rest/teams/members?apiVersion=2022-11-28#get-team-membership-for-a-user](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#get-team-membership-for-a-user)\n\n```go\nfunc (s *TeamsService) GetTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*Membership, *Response, error)\n```\nGetTeamMembershipBySlug returns the membership status for a user in a team, given a specified organization name, by team slug.\n\nGitHub API docs: [https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#get-team-membership-for-a-user](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#check-team-permissions-for-a-repository](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#check-team-permissions-for-a-repository](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#list-child-teams](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-child-teams)\n\n```go\nfunc (s *TeamsService) ListChildTeamsByParentIDIter(ctx context.Context, orgID int64, teamID int64, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListChildTeamsByParentIDIter returns an iterator that paginates through all results of ListChildTeamsByParentID.\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/rest/teams/teams?apiVersion=2022-11-28#list-child-teams](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-child-teams)\n\n```go\nfunc (s *TeamsService) ListChildTeamsByParentSlugIter(ctx context.Context, org string, slug string, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListChildTeamsByParentSlugIter returns an iterator that paginates through all results of ListChildTeamsByParentSlug.\n\n```go\nfunc (s *TeamsService) ListCommentsByID(ctx context.Context, orgID, teamID int64, discussionNumber int, opts *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error)\n```\nListCommentsByID lists all comments on a team discussion by team ID. Authenticated user must grant read:discussion scope.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments)\n\n```go\nfunc (s *TeamsService) ListCommentsByIDIter(ctx context.Context, orgID int64, teamID int64, discussionNumber int, opts *DiscussionCommentListOptions) iter.Seq2[*DiscussionComment, error]\n```\nListCommentsByIDIter returns an iterator that paginates through all results of ListCommentsByID.\n\n```go\nfunc (s *TeamsService) ListCommentsBySlug(ctx context.Context, org, slug string, discussionNumber int, opts *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error)\n```\nListCommentsBySlug lists all comments on a team discussion by team slug. Authenticated user must grant read:discussion scope.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments)\n\n```go\nfunc (s *TeamsService) ListCommentsBySlugIter(ctx context.Context, org string, slug string, discussionNumber int, opts *DiscussionCommentListOptions) iter.Seq2[*DiscussionComment, error]\n```\nListCommentsBySlugIter returns an iterator that paginates through all results of ListCommentsBySlug.\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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions)\n\n```go\nfunc (s *TeamsService) ListDiscussionsByIDIter(ctx context.Context, orgID int64, teamID int64, opts *DiscussionListOptions) iter.Seq2[*TeamDiscussion, error]\n```\nListDiscussionsByIDIter returns an iterator that paginates through all results of ListDiscussionsByID.\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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions)\n\n```go\nfunc (s *TeamsService) ListDiscussionsBySlugIter(ctx context.Context, org string, slug string, opts *DiscussionListOptions) iter.Seq2[*TeamDiscussion, error]\n```\nListDiscussionsBySlugIter returns an iterator that paginates through all results of ListDiscussionsBySlug.\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/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#list-external-groups-available-to-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#list-external-groups-available-to-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/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#list-a-connection-between-an-external-group-and-a-team](https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#list-a-connection-between-an-external-group-and-a-team)\n\n```go\nfunc (s *TeamsService) ListExternalGroupsIter(ctx context.Context, org string, opts *ListExternalGroupsOptions) iter.Seq2[*ExternalGroup, error]\n```\nListExternalGroupsIter returns an iterator that paginates through all results of ListExternalGroups.\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/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#list-idp-groups-for-a-team](https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#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/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#list-idp-groups-for-a-team](https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#list-idp-groups-for-a-team)\n\n```go\nfunc (s *TeamsService) ListIDPGroupsInOrganization(ctx context.Context, org string, opts *ListIDPGroupsOptions) (*IDPGroupList, *Response, error)\n```\nListIDPGroupsInOrganization lists IDP groups available in an organization.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#list-idp-groups-for-an-organization](https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync?apiVersion=2022-11-28#list-idp-groups-for-an-organization)\n\n```go\nfunc (s *TeamsService) ListIDPGroupsInOrganizationIter(ctx context.Context, org string, opts *ListIDPGroupsOptions) iter.Seq2[*IDPGroup, error]\n```\nListIDPGroupsInOrganizationIter returns an iterator that paginates through all results of ListIDPGroupsInOrganization.\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/rest/teams/members?apiVersion=2022-11-28#list-pending-team-invitations](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#list-pending-team-invitations)\n\n```go\nfunc (s *TeamsService) ListPendingTeamInvitationsByIDIter(ctx context.Context, orgID int64, teamID int64, opts *ListOptions) iter.Seq2[*Invitation, error]\n```\nListPendingTeamInvitationsByIDIter returns an iterator that paginates through all results of ListPendingTeamInvitationsByID.\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/rest/teams/members?apiVersion=2022-11-28#list-pending-team-invitations](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#list-pending-team-invitations)\n\n```go\nfunc (s *TeamsService) ListPendingTeamInvitationsBySlugIter(ctx context.Context, org string, slug string, opts *ListOptions) iter.Seq2[*Invitation, error]\n```\nListPendingTeamInvitationsBySlugIter returns an iterator that paginates through all results of ListPendingTeamInvitationsBySlug.\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/rest/teams/members?apiVersion=2022-11-28#list-team-members](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#list-team-members)\n\n```go\nfunc (s *TeamsService) ListTeamMembersByIDIter(ctx context.Context, orgID int64, teamID int64, opts *TeamListTeamMembersOptions) iter.Seq2[*User, error]\n```\nListTeamMembersByIDIter returns an iterator that paginates through all results of ListTeamMembersByID.\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/rest/teams/members?apiVersion=2022-11-28#list-team-members](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#list-team-members)\n\n```go\nfunc (s *TeamsService) ListTeamMembersBySlugIter(ctx context.Context, org string, slug string, opts *TeamListTeamMembersOptions) iter.Seq2[*User, error]\n```\nListTeamMembersBySlugIter returns an iterator that paginates through all results of ListTeamMembersBySlug.\n\n```go\nfunc (s *TeamsService) ListTeamProjectsByID(ctx context.Context, orgID, teamID int64) ([]*ProjectV2, *Response, error)\n```\nListTeamProjectsByID lists the organization projects for a team given the team ID.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#list-team-projects](https://docs.github.com/enterprise-server@3.16/rest/teams/teams#list-team-projects)\n\n```go\nfunc (s *TeamsService) ListTeamProjectsBySlug(ctx context.Context, org, slug string) ([]*ProjectV2, *Response, error)\n```\nListTeamProjectsBySlug lists the organization projects for a team given the team slug.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#list-team-projects](https://docs.github.com/enterprise-server@3.16/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/rest/teams/teams?apiVersion=2022-11-28#list-team-repositories](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-team-repositories)\n\n```go\nfunc (s *TeamsService) ListTeamReposByIDIter(ctx context.Context, orgID int64, teamID int64, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListTeamReposByIDIter returns an iterator that paginates through all results of ListTeamReposByID.\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/rest/teams/teams?apiVersion=2022-11-28#list-team-repositories](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-team-repositories)\n\n```go\nfunc (s *TeamsService) ListTeamReposBySlugIter(ctx context.Context, org string, slug string, opts *ListOptions) iter.Seq2[*Repository, error]\n```\nListTeamReposBySlugIter returns an iterator that paginates through all results of ListTeamReposBySlug.\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/rest/teams/teams?apiVersion=2022-11-28#list-teams](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-teams)\n\n```go\nfunc (s *TeamsService) ListTeamsIter(ctx context.Context, org string, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListTeamsIter returns an iterator that paginates through all results of ListTeams.\n\n```go\nfunc (s *TeamsService) ListUserTeams(ctx context.Context, opts *ListOptions) ([]*Team, *Response, error)\n```\nListUserTeams lists a user's teams\n\nGitHub API docs: [https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-teams-for-the-authenticated-user](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#list-teams-for-the-authenticated-user)\n\n```go\nfunc (s *TeamsService) ListUserTeamsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*Team, error]\n```\nListUserTeamsIter returns an iterator that paginates through all results of ListUserTeams.\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/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#remove-the-connection-between-an-external-group-and-a-team](https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#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/rest/teams/members?apiVersion=2022-11-28#remove-team-membership-for-a-user](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#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/rest/teams/members?apiVersion=2022-11-28#remove-team-membership-for-a-user](https://docs.github.com/rest/teams/members?apiVersion=2022-11-28#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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#remove-a-project-from-a-team](https://docs.github.com/enterprise-server@3.16/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\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#remove-a-project-from-a-team](https://docs.github.com/enterprise-server@3.16/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/rest/teams/teams?apiVersion=2022-11-28#remove-a-repository-from-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#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/rest/teams/teams?apiVersion=2022-11-28#remove-a-repository-from-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#remove-a-repository-from-a-team)\n\n```go\nfunc (s *TeamsService) ReviewTeamProjectsByID(ctx context.Context, orgID, teamID, projectID int64) (*ProjectV2, *Response, error)\n```\nReviewTeamProjectsByID checks whether a team, given its ID, has read, write, or admin permissions for an organization project.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#check-team-permissions-for-a-project](https://docs.github.com/enterprise-server@3.16/rest/teams/teams#check-team-permissions-for-a-project)\n\n```go\nfunc (s *TeamsService) ReviewTeamProjectsBySlug(ctx context.Context, org, slug string, projectID int64) (*ProjectV2, *Response, error)\n```\nReviewTeamProjectsBySlug checks whether a team, given its slug, has read, write, or admin permissions for an organization project.\n\nDeprecated: This endpoint has been deprecated by GitHub.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.16/rest/teams/teams#check-team-permissions-for-a-project](https://docs.github.com/enterprise-server@3.16/rest/teams/teams#check-team-permissions-for-a-project)\n\n```go\nfunc (s *TeamsService) UpdateConnectedExternalGroup(ctx context.Context, org, slug string, body UpdateConnectedExternalGroupRequest) (*ExternalGroup, *Response, error)\n```\nUpdateConnectedExternalGroup updates the connection between an external group and a team.\n\nGitHub API docs: [https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#update-the-connection-between-an-external-group-and-a-team](https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups?apiVersion=2022-11-28#update-the-connection-between-an-external-group-and-a-team)\n\n```go\nfunc (s *TeamsService) UpdateTeamByID(ctx context.Context, orgID, teamID int64, body UpdateTeamRequest) (*Team, *Response, error)\n```\nUpdateTeamByID updates a team, given an organization ID, selected by ID.\n\nGitHub API docs: [https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#update-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#update-a-team)\n\n```go\nfunc (s *TeamsService) UpdateTeamBySlug(ctx context.Context, org, slug string, body UpdateTeamRequest) (*Team, *Response, error)\n```\nUpdateTeamBySlug updates a team, given an organization name, by slug.\n\nGitHub API docs: [https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#update-a-team](https://docs.github.com/rest/teams/teams?apiVersion=2022-11-28#update-a-team)\n\n```go\ntype TemplateRepoRequest struct {\n\tName               string  `json:\"name\"`\n\tOwner              *string `json:\"owner,omitempty\"`\n\tDescription        *string `json:\"description,omitempty\"`\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.\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) GetMatches() []*Match\n```\nGetMatches returns the Matches slice if it's non-nil, nil 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//     review_requested\n\t//       The actor requested a review from a user or team.\n\t//       Reviewer and Requester/RequestedTeam will be populated.\n\t//\n\t//     review_request_removed\n\t//       The actor removed a review request from a user or team.\n\t//       Reviewer and Requester/RequestedTeam will be populated.\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\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\tPerformedViaGithubApp *App `json:\"performed_via_github_app,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/developers/webhooks-and-events/events/issue-event-types](https://docs.github.com/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) GetParents() []*Commit\n```\nGetParents returns the Parents slice if it's non-nil, nil otherwise.\n\n```go\nfunc (t *Timeline) GetPerformedViaGithubApp() *App\n```\nGetPerformedViaGithubApp returns the PerformedViaGithubApp 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 unmarshaled 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```\nTopicResult represents a topic search result.\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 if it's non-nil, zero value otherwise.\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) GetTopics() []*TopicResult\n```\nGetTopics returns the Topics slice if it's non-nil, nil 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/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise](https://docs.github.com/rest/actions/cache?apiVersion=2022-11-28#get-github-actions-cache-usage-for-an-enterprise)\n\n```go\nfunc (t *TotalCacheUsage) GetTotalActiveCachesCount() int\n```\nGetTotalActiveCachesCount returns the TotalActiveCachesCount field.\n\n```go\nfunc (t *TotalCacheUsage) GetTotalActiveCachesUsageSizeInBytes() int64\n```\nGetTotalActiveCachesUsageSizeInBytes returns the TotalActiveCachesUsageSizeInBytes field.\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\nfunc (t *TrafficBreakdownOptions) GetPer() string\n```\nGetPer returns the Per field.\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) GetClones() []*TrafficData\n```\nGetClones returns the Clones slice if it's non-nil, nil otherwise.\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\nfunc (t *TrafficViews) GetViews() []*TrafficData\n```\nGetViews returns the Views slice if it's non-nil, nil 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\nfunc (t *TransferRequest) GetNewOwner() string\n```\nGetNewOwner returns the NewOwner field.\n\n```go\nfunc (t *TransferRequest) GetTeamID() []int64\n```\nGetTeamID returns the TeamID slice if it's non-nil, nil 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) GetEntries() []*TreeEntry\n```\nGetEntries returns the Entries slice if it's non-nil, nil otherwise.\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\nWhen used with [GitService.CreateTree](#GitService.CreateTree), set Content for small text files, or set SHA to reference an existing blob (use [GitService.CreateBlob](#GitService.CreateBlob) for binary files or large content). To delete an entry, set both Content and SHA to nil; the entry will be serialized with \\`\"sha\": null\\` which the API interprets as a deletion. When deleting, the Type and Mode fields are ignored; only Path is required.\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```\nMarshalJSON implements the json.Marshaler interface.\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// AllowedOrigins limits the origins ClientID and ClientSecret are sent to.\n\t// The credentials are attached only to requests whose origin matches one of\n\t// these; every other request, including a redirect hop, is sent without\n\t// them.\n\t//\n\t// If empty, the GitHub.com API and upload origins are used. An empty\n\t// AllowedOrigins does not mean \"any origin\": set it explicitly when talking\n\t// to GitHub Enterprise.\n\tAllowedOrigins []*url.URL\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/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-oauth-apps](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-oauth-apps) 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 (u *UnauthenticatedRateLimitedTransport) GetClientID() string\n```\nGetClientID returns the ClientID field.\n\n```go\nfunc (u *UnauthenticatedRateLimitedTransport) GetClientSecret() string\n```\nGetClientSecret returns the ClientSecret field.\n\n```go\nfunc (t *UnauthenticatedRateLimitedTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\nRoundTrip implements the RoundTripper interface.\n\n```go\ntype UnsuspendUserRequest struct {\n\t// Reason is the reason the user is being unsuspended, which is logged in the audit log.\n\t// If it is not provided, it defaults to \"Unsuspended via API by SITE_ADMINISTRATOR\",\n\t// where SITE_ADMINISTRATOR is the person who performed the action.\n\tReason *string `json:\"reason,omitempty\"`\n}\n```\nUnsuspendUserRequest represents a request to unsuspend a user.\n\n```go\nfunc (u *UnsuspendUserRequest) GetReason() string\n```\nGetReason returns the Reason field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateActionsPolicyRequest struct {\n\tName        *string                  `json:\"name,omitempty\"`\n\tEnforcement *RulesetEnforcement      `json:\"enforcement,omitempty\"`\n\tConditions  *ActionsPolicyConditions `json:\"conditions,omitempty\"`\n\tRules       []*ActionsPolicyRule     `json:\"rules,omitzero\"`\n}\n```\nUpdateActionsPolicyRequest represents a request to update a GitHub Actions policy.\n\n```go\nfunc (u *UpdateActionsPolicyRequest) GetConditions() *ActionsPolicyConditions\n```\nGetConditions returns the Conditions field.\n\n```go\nfunc (u *UpdateActionsPolicyRequest) GetEnforcement() *RulesetEnforcement\n```\nGetEnforcement returns the Enforcement field.\n\n```go\nfunc (u *UpdateActionsPolicyRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateActionsPolicyRequest) GetRules() []*ActionsPolicyRule\n```\nGetRules returns the Rules slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateAppInstallationRepositoriesRequest struct {\n\t// Can be \"all\" or \"selected\".\n\tRepositorySelection string `json:\"repository_selection\"`\n\t// Repository names to grant the installation access to. Only required\n\t// when RepositorySelection is \"selected\".\n\tRepositories []string `json:\"repositories,omitempty\"`\n}\n```\nUpdateAppInstallationRepositoriesRequest specifies the parameters for EnterpriseService.UpdateAppInstallationRepositories.\n\n```go\nfunc (u *UpdateAppInstallationRepositoriesRequest) GetRepositories() []string\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateAppInstallationRepositoriesRequest) GetRepositorySelection() string\n```\nGetRepositorySelection returns the RepositorySelection field.\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) GetOp() string\n```\nGetOp returns the Op field.\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\nfunc (u *UpdateAttributeForSCIMUserOperations) GetValue() json.RawMessage\n```\nGetValue returns the Value field.\n\n```go\ntype UpdateAttributeForSCIMUserRequest struct {\n\tSchemas    []string                                `json:\"schemas,omitempty\"` // (Optional.)\n\tOperations []*UpdateAttributeForSCIMUserOperations `json:\"Operations\"`        // Set of operations to be performed. (Required.)\n}\n```\nUpdateAttributeForSCIMUserRequest represents the body of a request to update an attribute for a SCIM user.\n\nGitHub API docs: [https://docs.github.com/rest/scim#update-an-attribute-for-a-scim-user--parameters](https://docs.github.com/rest/scim#update-an-attribute-for-a-scim-user--parameters)\n\n```go\nfunc (u *UpdateAttributeForSCIMUserRequest) GetOperations() []*UpdateAttributeForSCIMUserOperations\n```\nGetOperations returns the Operations slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateAttributeForSCIMUserRequest) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateBranchRule struct {\n\tBranchRuleMetadata\n\tParameters UpdateRuleParameters `json:\"parameters\"`\n}\n```\nUpdateBranchRule represents an update branch rule.\n\n```go\nfunc (u *UpdateBranchRule) GetParameters() UpdateRuleParameters\n```\nGetParameters returns the Parameters field.\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) GetActions() []*CheckRunAction\n```\nGetActions returns the Actions slice if it's non-nil, nil otherwise.\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) GetName() string\n```\nGetName returns the Name field.\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 UpdateCodespaceRequest struct {\n\t// Machine represents a valid machine to transition this codespace to.\n\tMachine *string `json:\"machine,omitempty\"`\n\t// DisplayName represents the display name for this codespace.\n\tDisplayName *string `json:\"display_name,omitempty\"`\n\t// RecentFolders represents the recently opened folders inside the codespace.\n\t// It is currently used by the clients to determine the folder path to load the codespace in.\n\tRecentFolders []string `json:\"recent_folders,omitempty\"`\n}\n```\nUpdateCodespaceRequest represents a request to update a codespace.\n\n```go\nfunc (u *UpdateCodespaceRequest) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCodespaceRequest) GetMachine() string\n```\nGetMachine returns the Machine field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCodespaceRequest) GetRecentFolders() []string\n```\nGetRecentFolders returns the RecentFolders slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateCommitCommentRequest struct {\n\tBody string `json:\"body\"`\n}\n```\nUpdateCommitCommentRequest represents a request to update a commit comment.\n\n```go\nfunc (u *UpdateCommitCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\ntype UpdateConnectedExternalGroupRequest struct {\n\tGroupID int64 `json:\"group_id\"`\n}\n```\nUpdateConnectedExternalGroupRequest represents a request to update the connection between an external group and a team.\n\n```go\nfunc (u *UpdateConnectedExternalGroupRequest) GetGroupID() int64\n```\nGetGroupID returns the GroupID field.\n\n```go\ntype UpdateCopilotSpaceResourceAttributes struct {\n\tID           *int64                `json:\"id,omitempty\"`\n\tResourceType *string               `json:\"resource_type,omitempty\"`\n\tMetadata     *CopilotSpaceMetadata `json:\"metadata,omitempty\"`\n\tDestroy      *bool                 `json:\"_destroy,omitempty\"`\n}\n```\nUpdateCopilotSpaceResourceAttributes represents a resource to attach, update, or remove when updating a Copilot Space.\n\n```go\nfunc (u *UpdateCopilotSpaceResourceAttributes) GetDestroy() bool\n```\nGetDestroy returns the Destroy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCopilotSpaceResourceAttributes) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCopilotSpaceResourceAttributes) GetMetadata() *CopilotSpaceMetadata\n```\nGetMetadata returns the Metadata field.\n\n```go\nfunc (u *UpdateCopilotSpaceResourceAttributes) GetResourceType() string\n```\nGetResourceType returns the ResourceType field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateCustomOrgRoleRequest struct {\n\tName        *string  `json:\"name,omitempty\"`\n\tDescription *string  `json:\"description,omitempty\"`\n\tPermissions []string `json:\"permissions,omitempty\"`\n\tBaseRole    *string  `json:\"base_role,omitempty\"` // Can be one of: none, read, triage, write, maintain, admin\n}\n```\nUpdateCustomOrgRoleRequest represents body parameters to update a custom organization role.\n\n```go\nfunc (u *UpdateCustomOrgRoleRequest) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCustomOrgRoleRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCustomOrgRoleRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCustomOrgRoleRequest) GetPermissions() []string\n```\nGetPermissions returns the Permissions slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateCustomRepoRoleRequest 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,omitzero\"`\n}\n```\nUpdateCustomRepoRoleRequest represents the parameters to update a custom repository role.\n\n```go\nfunc (u *UpdateCustomRepoRoleRequest) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCustomRepoRoleRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCustomRepoRoleRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateCustomRepoRoleRequest) GetPermissions() []string\n```\nGetPermissions returns the Permissions slice if it's non-nil, nil 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) GetLanguages() []string\n```\nGetLanguages returns the Languages slice if it's non-nil, nil otherwise.\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\nfunc (u *UpdateDefaultSetupConfigurationOptions) GetState() string\n```\nGetState returns the State field.\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 UpdateDeploymentBranchPolicyRequest struct {\n\tName string `json:\"name\"`\n}\n```\nUpdateDeploymentBranchPolicyRequest represents a request to update a deployment branch policy.\n\n```go\nfunc (u *UpdateDeploymentBranchPolicyRequest) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype UpdateEnterpriseRunnerGroupRequest 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\tNetworkConfigurationID   *string  `json:\"network_configuration_id,omitempty\"`\n\n\t// If true, send a null network_configuration_id to remove the network configuration.\n\t// This takes precedence over NetworkConfigurationID.\n\tRemoveNetworkConfiguration bool `json:\"-\"`\n}\n```\nUpdateEnterpriseRunnerGroupRequest represents a request to update a Runner group for an enterprise.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetAllowsPublicRepositories() bool\n```\nGetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetRemoveNetworkConfiguration() bool\n```\nGetRemoveNetworkConfiguration returns the RemoveNetworkConfiguration field.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetRestrictedToWorkflows() bool\n```\nGetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetSelectedWorkflows() []string\n```\nGetSelectedWorkflows returns the SelectedWorkflows slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateEnterpriseRunnerGroupRequest) GetVisibility() string\n```\nGetVisibility returns the Visibility field if it's non-nil, zero value otherwise.\n\n```go\nfunc (r UpdateEnterpriseRunnerGroupRequest) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface.\n\n```go\ntype UpdateGistCommentRequest struct {\n\t// Body is the comment text.\n\tBody string `json:\"body\"`\n}\n```\nUpdateGistCommentRequest represents the input for updating a gist comment.\n\n```go\nfunc (u *UpdateGistCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\ntype UpdateGistFile struct {\n\t// Content is the new contents of the file.\n\tContent *string `json:\"content,omitempty\"`\n\t// Filename, if set, renames the file.\n\tFilename *string `json:\"filename,omitempty\"`\n}\n```\nUpdateGistFile represents a file within an UpdateGistRequest, keyed by filename in the request's Files map. Mapping a filename to a nil \\*UpdateGistFile deletes that file from the gist.\n\n```go\nfunc (u *UpdateGistFile) GetContent() string\n```\nGetContent returns the Content field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateGistFile) GetFilename() string\n```\nGetFilename returns the Filename field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateGistRequest struct {\n\tDescription *string `json:\"description,omitempty\"`\n\t// Files is the set of files to add, change or rename, keyed by filename.\n\t// Mapping a filename to a nil value deletes that file from the gist.\n\tFiles map[GistFilename]*UpdateGistFile `json:\"files,omitempty\"`\n}\n```\nUpdateGistRequest represents the input for updating a gist.\n\n```go\nfunc (u *UpdateGistRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateHostedRunnerRequest struct {\n\tName           *string `json:\"name,omitempty\"`\n\tRunnerGroupID  *int64  `json:\"runner_group_id,omitempty\"`\n\tMaximumRunners *int64  `json:\"maximum_runners,omitempty\"`\n\tEnableStaticIP *bool   `json:\"enable_static_ip,omitempty\"`\n\tSize           *string `json:\"size,omitempty\"`\n\tImageID        *string `json:\"image_id,omitempty\"`\n\tImageVersion   *string `json:\"image_version,omitempty\"`\n\tImageGen       *bool   `json:\"image_gen,omitempty\"`\n}\n```\nUpdateHostedRunnerRequest specifies body parameters to update Hosted Runner configuration.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetEnableStaticIP() bool\n```\nGetEnableStaticIP returns the EnableStaticIP field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetImageGen() bool\n```\nGetImageGen returns the ImageGen field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetImageID() string\n```\nGetImageID returns the ImageID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetImageVersion() string\n```\nGetImageVersion returns the ImageVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetMaximumRunners() int64\n```\nGetMaximumRunners returns the MaximumRunners field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetRunnerGroupID() int64\n```\nGetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateHostedRunnerRequest) GetSize() string\n```\nGetSize returns the Size field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateIssueLabelRequest struct {\n\tNewName     *string `json:\"new_name,omitempty\"`\n\tColor       *string `json:\"color,omitempty\"`\n\tDescription *string `json:\"description,omitempty\"`\n}\n```\nUpdateIssueLabelRequest represents a request to update a label.\n\n```go\nfunc (u *UpdateIssueLabelRequest) GetColor() string\n```\nGetColor returns the Color field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueLabelRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueLabelRequest) GetNewName() string\n```\nGetNewName returns the NewName field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateIssueRequest struct {\n\tTitle *string `json:\"title,omitempty\"`\n\tBody  *string `json:\"body,omitempty\"`\n\t// Labels: nil leaves existing labels unchanged; a non-nil slice replaces\n\t// them, so []string{} clears all labels.\n\tLabels   []string `json:\"labels,omitzero\"`\n\tAssignee *string  `json:\"assignee,omitempty\"`\n\tState    *string  `json:\"state,omitempty\"`\n\t// StateReason can be `completed`, `not_planned`, `duplicate` or `reopened`.\n\tStateReason *string `json:\"state_reason,omitempty\"`\n\t// DuplicateIssueID is required when state_reason is `duplicate`.\n\tDuplicateIssueID *int `json:\"duplicate_issue_id,omitempty\"`\n\tMilestone        *int `json:\"milestone,omitempty\"`\n\t// Assignees: nil leaves existing assignees unchanged; a non-nil slice\n\t// replaces them, so []string{} clears all assignees.\n\tAssignees        []string                  `json:\"assignees,omitzero\"`\n\tType             *string                   `json:\"type,omitempty\"`\n\tIssueFieldValues []*IssueRequestFieldValue `json:\"issue_field_values,omitempty\"`\n}\n```\nUpdateIssueRequest represents a request to 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 (u *UpdateIssueRequest) GetAssignee() string\n```\nGetAssignee returns the Assignee field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetAssignees() []string\n```\nGetAssignees returns the Assignees slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetDuplicateIssueID() int\n```\nGetDuplicateIssueID returns the DuplicateIssueID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetIssueFieldValues() []*IssueRequestFieldValue\n```\nGetIssueFieldValues returns the IssueFieldValues slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetMilestone() int\n```\nGetMilestone returns the Milestone field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetStateReason() string\n```\nGetStateReason returns the StateReason field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateIssueRequest) GetType() string\n```\nGetType returns the Type field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateMilestoneRequest struct {\n\tTitle       *string    `json:\"title,omitempty\"`\n\tState       *string    `json:\"state,omitempty\"`\n\tDescription *string    `json:\"description,omitempty\"`\n\tDueOn       *Timestamp `json:\"due_on,omitempty\"`\n}\n```\nUpdateMilestoneRequest represents a request to update a milestone.\n\n```go\nfunc (u *UpdateMilestoneRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateMilestoneRequest) GetDueOn() Timestamp\n```\nGetDueOn returns the DueOn field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateMilestoneRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateMilestoneRequest) GetTitle() string\n```\nGetTitle returns the Title field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateOrganizationCopilotSpaceRequest struct {\n\tName                *string                                 `json:\"name,omitempty\"`\n\tDescription         *string                                 `json:\"description,omitempty\"`\n\tGeneralInstructions *string                                 `json:\"general_instructions,omitempty\"`\n\tBaseRole            *string                                 `json:\"base_role,omitempty\"`\n\tResourcesAttributes []*UpdateCopilotSpaceResourceAttributes `json:\"resources_attributes,omitempty\"`\n}\n```\nUpdateOrganizationCopilotSpaceRequest represents a request to update a Copilot Space.\n\n```go\nfunc (u *UpdateOrganizationCopilotSpaceRequest) GetBaseRole() string\n```\nGetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationCopilotSpaceRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationCopilotSpaceRequest) GetGeneralInstructions() string\n```\nGetGeneralInstructions returns the GeneralInstructions field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationCopilotSpaceRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationCopilotSpaceRequest) GetResourcesAttributes() []*UpdateCopilotSpaceResourceAttributes\n```\nGetResourcesAttributes returns the ResourcesAttributes slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateOrganizationPrivateRegistry struct {\n\t// RegistryType is the type of private registry.\n\t// You can find the list of supported types in PrivateRegistryType.\n\tRegistryType *PrivateRegistryType `json:\"registry_type,omitempty\"`\n\n\t// URL is the URL of the private registry.\n\tURL *string `json:\"url,omitempty\"`\n\n\t// The username to use when authenticating with the private registry.\n\t// This field should be omitted if the private registry does not require a username for authentication.\n\tUsername *string `json:\"username,omitempty\"`\n\n\t// ReplacesBase indicates whether this private registry should replace the base registry\n\t// (e.g., npmjs.org for npm, rubygems.org for rubygems).\n\tReplacesBase *bool `json:\"replaces_base,omitempty\"`\n\n\t// The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages)\n\t// using the public key retrieved from the PrivateRegistriesService.GetOrganizationPrivateRegistriesPublicKey.\n\tEncryptedValue *string `json:\"encrypted_value,omitempty\"`\n\t// KeyID is the ID of the public key used to encrypt the secret.\n\tKeyID *string `json:\"key_id,omitempty\"`\n\t// Visibility is the visibility of the private registry.\n\t// Possible values are: \"private\", \"all\", and \"selected\".\n\tVisibility *PrivateRegistryVisibility `json:\"visibility,omitempty\"`\n\n\t// An array of repository IDs that can access the organization private registry.\n\t// You can only provide a list of repository IDs when UpdateOrganizationPrivateRegistry.Visibility is set to PrivateRegistryVisibilitySelected.\n\t// This field should be omitted if visibility is set to PrivateRegistryVisibilityAll or PrivateRegistryVisibilityPrivate.\n\tSelectedRepositoryIDs []int64 `json:\"selected_repository_ids,omitempty\"`\n\n\t// AuthType is the authentication type for the private registry.\n\t// This field cannot be changed after creation. If provided, it must match the existing auth_type.\n\tAuthType *string `json:\"auth_type,omitempty\"`\n\n\t// TenantID is the tenant ID of the Azure AD application. Required when AuthType is \"oidc_azure\".\n\tTenantID *string `json:\"tenant_id,omitempty\"`\n\t// ClientID is the client ID of the Azure AD application. Required when AuthType is \"oidc_azure\".\n\tClientID *string `json:\"client_id,omitempty\"`\n\n\t// AWSRegion is the AWS region. Required when AuthType is \"oidc_aws\".\n\tAWSRegion *string `json:\"aws_region,omitempty\"`\n\t// AccountID is the AWS account ID. Required when AuthType is \"oidc_aws\".\n\tAccountID *string `json:\"account_id,omitempty\"`\n\t// RoleName is the AWS IAM role name. Required when AuthType is \"oidc_aws\".\n\tRoleName *string `json:\"role_name,omitempty\"`\n\t// Domain is the CodeArtifact domain. Required when AuthType is \"oidc_aws\".\n\tDomain *string `json:\"domain,omitempty\"`\n\t// DomainOwner is the CodeArtifact domain owner (AWS account ID). Required when AuthType is \"oidc_aws\".\n\tDomainOwner *string `json:\"domain_owner,omitempty\"`\n\n\t// JFrogOIDCProviderName is the JFrog OIDC provider name. Required when AuthType is \"oidc_jfrog\".\n\tJFrogOIDCProviderName *string `json:\"jfrog_oidc_provider_name,omitempty\"`\n\n\t// Audience is the OIDC audience. Optional for \"oidc_aws\" and \"oidc_jfrog\" auth types.\n\tAudience *string `json:\"audience,omitempty\"`\n\t// IdentityMappingName is the JFrog identity mapping name. Optional for \"oidc_jfrog\" auth type.\n\tIdentityMappingName *string `json:\"identity_mapping_name,omitempty\"`\n}\n```\nUpdateOrganizationPrivateRegistry represents the payload to update a private registry.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetAWSRegion() string\n```\nGetAWSRegion returns the AWSRegion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetAccountID() string\n```\nGetAccountID returns the AccountID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetAudience() string\n```\nGetAudience returns the Audience field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetAuthType() string\n```\nGetAuthType returns the AuthType field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetClientID() string\n```\nGetClientID returns the ClientID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetDomain() string\n```\nGetDomain returns the Domain field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetDomainOwner() string\n```\nGetDomainOwner returns the DomainOwner field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetEncryptedValue() string\n```\nGetEncryptedValue returns the EncryptedValue field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetIdentityMappingName() string\n```\nGetIdentityMappingName returns the IdentityMappingName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetJFrogOIDCProviderName() string\n```\nGetJFrogOIDCProviderName returns the JFrogOIDCProviderName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetKeyID() string\n```\nGetKeyID returns the KeyID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetRegistryType() *PrivateRegistryType\n```\nGetRegistryType returns the RegistryType field.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetReplacesBase() bool\n```\nGetReplacesBase returns the ReplacesBase field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetRoleName() string\n```\nGetRoleName returns the RoleName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetSelectedRepositoryIDs() []int64\n```\nGetSelectedRepositoryIDs returns the SelectedRepositoryIDs slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetTenantID() string\n```\nGetTenantID returns the TenantID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetURL() string\n```\nGetURL returns the URL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateOrganizationPrivateRegistry) GetVisibility() *PrivateRegistryVisibility\n```\nGetVisibility returns the Visibility field.\n\n```go\ntype UpdatePreReceiveHookRequest struct {\n\tEnforcement *string `json:\"enforcement,omitempty\"`\n}\n```\nUpdatePreReceiveHookRequest represents a request to update the enforcement of a pre-receive hook for a repository.\n\n```go\nfunc (u *UpdatePreReceiveHookRequest) GetEnforcement() string\n```\nGetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateProjectItemRequest struct {\n\t// Fields contains field updates to apply to the project item.\n\t// Each entry specifies a field ID and its new value.\n\tFields []*UpdateProjectV2Field `json:\"fields\"`\n}\n```\nUpdateProjectItemRequest represents fields that can be modified for a project item.\n\n```go\nfunc (u *UpdateProjectItemRequest) GetFields() []*UpdateProjectV2Field\n```\nGetFields returns the Fields slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateProjectV2Field struct {\n\t// ID is the field ID to update.\n\tID int64 `json:\"id\"`\n\t// Value is the new value to set for the field. The type depends on the field type.\n\t// For text fields: string\n\t// For number fields: float64 or int\n\t// For single_select fields: string (option ID)\n\t// For date fields: string (ISO 8601 date)\n\t// For iteration fields: string (iteration ID)\n\t// Note: Some field types (title, assignees, labels, etc.) are read-only or managed through other API endpoints.\n\tValue any `json:\"value\"`\n}\n```\nUpdateProjectV2Field represents a field update for a project item.\n\nGitHub API docs: [https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#update-project-item-for-organization](https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#update-project-item-for-organization)\n\n```go\nfunc (u *UpdateProjectV2Field) GetID() int64\n```\nGetID returns the ID field.\n\n```go\nfunc (u *UpdateProjectV2Field) GetValue() any\n```\nGetValue returns the Value field.\n\n```go\ntype UpdateProvisionedOrgMembershipRequest 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}\n```\nUpdateProvisionedOrgMembershipRequest represents the body of a request to update a provisioned organization membership.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetActive() bool\n```\nGetActive returns the Active field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetDisplayName() string\n```\nGetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetEmails() []*SCIMUserEmail\n```\nGetEmails returns the Emails slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetExternalID() string\n```\nGetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetGroups() []string\n```\nGetGroups returns the Groups slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetName() SCIMUserName\n```\nGetName returns the Name field.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetSchemas() []string\n```\nGetSchemas returns the Schemas slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateProvisionedOrgMembershipRequest) GetUserName() string\n```\nGetUserName returns the UserName field.\n\n```go\ntype UpdatePullRequestBranchRequest 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```\nUpdatePullRequestBranchRequest represents a request to update a pull request branch.\n\n```go\nfunc (u *UpdatePullRequestBranchRequest) GetExpectedHeadSHA() string\n```\nGetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdatePullRequestCommentRequest struct {\n\tBody string `json:\"body\"`\n}\n```\nUpdatePullRequestCommentRequest represents a request to update a review comment on a pull request.\n\n```go\nfunc (u *UpdatePullRequestCommentRequest) GetBody() string\n```\nGetBody returns the Body field.\n\n```go\ntype UpdateRef struct {\n\tSHA   string `json:\"sha\"`\n\tForce *bool  `json:\"force,omitempty\"`\n}\n```\nUpdateRef represents the payload for updating a reference.\n\n```go\nfunc (u *UpdateRef) GetForce() bool\n```\nGetForce returns the Force field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateRef) GetSHA() string\n```\nGetSHA returns the SHA field.\n\n```go\ntype UpdateReleaseAssetRequest struct {\n\tName  *string `json:\"name,omitempty\"`\n\tLabel *string `json:\"label,omitempty\"`\n\tState *string `json:\"state,omitempty\"`\n}\n```\nUpdateReleaseAssetRequest represents the request to update a release asset.\n\n```go\nfunc (u *UpdateReleaseAssetRequest) GetLabel() string\n```\nGetLabel returns the Label field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseAssetRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseAssetRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateReleaseRequest 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```\nUpdateReleaseRequest represents a request to update a release in a repository.\n\n```go\nfunc (u *UpdateReleaseRequest) GetBody() string\n```\nGetBody returns the Body field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetDiscussionCategoryName() string\n```\nGetDiscussionCategoryName returns the DiscussionCategoryName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetDraft() bool\n```\nGetDraft returns the Draft field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetMakeLatest() string\n```\nGetMakeLatest returns the MakeLatest field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetPrerelease() bool\n```\nGetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetTagName() string\n```\nGetTagName returns the TagName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateReleaseRequest) GetTargetCommitish() string\n```\nGetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateRuleParameters struct {\n\tUpdateAllowsFetchAndMerge bool `json:\"update_allows_fetch_and_merge,omitempty\"`\n}\n```\nUpdateRuleParameters represents the update rule parameters.\n\n```go\nfunc (u *UpdateRuleParameters) GetUpdateAllowsFetchAndMerge() bool\n```\nGetUpdateAllowsFetchAndMerge returns the UpdateAllowsFetchAndMerge field.\n\n```go\ntype UpdateRunnerGroupRequest struct {\n\tName                     string   `json:\"name\"`\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\tNetworkConfigurationID   *string  `json:\"network_configuration_id,omitempty\"`\n\n\t// If true, send a null network_configuration_id to remove the network configuration.\n\t// This takes precedence over NetworkConfigurationID.\n\tRemoveNetworkConfiguration bool `json:\"-\"`\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.\n\n```go\nfunc (u *UpdateRunnerGroupRequest) GetNetworkConfigurationID() string\n```\nGetNetworkConfigurationID returns the NetworkConfigurationID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateRunnerGroupRequest) GetRemoveNetworkConfiguration() bool\n```\nGetRemoveNetworkConfiguration returns the RemoveNetworkConfiguration field.\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) GetSelectedWorkflows() []string\n```\nGetSelectedWorkflows returns the SelectedWorkflows slice if it's non-nil, nil 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\nfunc (r UpdateRunnerGroupRequest) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface.\n\n```go\ntype UpdateSecretScanningAlertRequest struct {\n\t// State 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 `json:\"state,omitempty\"`\n\n\t// Required when the state is \"resolved\" and represents the reason for resolving the alert.\n\t// Can be one of: \"false_positive\", \"wont_fix\", \"revoked\", or \"used_in_tests\".\n\tResolution *string `json:\"resolution,omitempty\"`\n\n\t// An optional comment when closing an alert.\n\tResolutionComment *string `json:\"resolution_comment,omitempty\"`\n\n\t// Assignee is the username of the user to assign to the alert.\n\tAssignee *string `json:\"assignee,omitempty\"`\n\n\t// Validity sets the validity of the secret scanning alert. Can be either \"active\" or \"inactive\".\n\tValidity *string `json:\"validity,omitempty\"`\n}\n```\nUpdateSecretScanningAlertRequest represents a request to update a secret scanning alert.\n\n```go\nfunc (u *UpdateSecretScanningAlertRequest) GetAssignee() string\n```\nGetAssignee returns the Assignee field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateSecretScanningAlertRequest) GetResolution() string\n```\nGetResolution returns the Resolution field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateSecretScanningAlertRequest) GetResolutionComment() string\n```\nGetResolutionComment returns the ResolutionComment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateSecretScanningAlertRequest) GetState() string\n```\nGetState returns the State field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateSecretScanningAlertRequest) GetValidity() string\n```\nGetValidity returns the Validity field if it's non-nil, zero value otherwise.\n\n```go\ntype UpdateSecretScanningPatternConfigsRequest struct {\n\t// The version of the entity.\n\tPatternConfigVersion *string `json:\"pattern_config_version,omitempty\"`\n\n\t// Pattern settings for provider patterns.\n\tProviderPatternSettings []*SecretScanningProviderPatternSetting `json:\"provider_pattern_settings,omitempty\"`\n\n\t// Pattern settings for custom patterns.\n\tCustomPatternSettings []*SecretScanningCustomPatternSetting `json:\"custom_pattern_settings,omitempty\"`\n}\n```\nUpdateSecretScanningPatternConfigsRequest represents a request to update secret scanning pattern configurations.\n\n```go\nfunc (u *UpdateSecretScanningPatternConfigsRequest) GetCustomPatternSettings() []*SecretScanningCustomPatternSetting\n```\nGetCustomPatternSettings returns the CustomPatternSettings slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UpdateSecretScanningPatternConfigsRequest) GetPatternConfigVersion() string\n```\nGetPatternConfigVersion returns the PatternConfigVersion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateSecretScanningPatternConfigsRequest) GetProviderPatternSettings() []*SecretScanningProviderPatternSetting\n```\nGetProviderPatternSettings returns the ProviderPatternSettings slice if it's non-nil, nil otherwise.\n\n```go\ntype UpdateTeamLDAPMappingRequest struct {\n\tLDAPDN string `json:\"ldap_dn\"`\n}\n```\nUpdateTeamLDAPMappingRequest represents a request to update the mapping between a GitHub team and an LDAP group.\n\n```go\nfunc (u *UpdateTeamLDAPMappingRequest) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field.\n\n```go\ntype UpdateTeamRequest struct {\n\t// The name of the team (required).\n\tName *string `json:\"name\"`\n\n\t// The description of the team.\n\tDescription *string `json:\"description,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// NotificationSetting can be one of: \"notifications_enabled\", \"notifications_disabled\".\n\tNotificationSetting *string `json:\"notification_setting,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// The ID of a team to set as the parent team.\n\tParentTeamID *int64 `json:\"parent_team_id,omitempty\"`\n\n\t// The slug of a team to set as the parent team.\n\t// Ignored when ParentTeamID is also provided.\n\tParentTeamSlug *string `json:\"parent_team_slug,omitempty\"`\n\n\t// If set to true, the parent team will be removed from the team.\n\tRemoveParentTeam bool `json:\"-\"`\n}\n```\nUpdateTeamRequest represents a team to be updated.\n\n```go\nfunc (u *UpdateTeamRequest) GetDescription() string\n```\nGetDescription returns the Description field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetNotificationSetting() string\n```\nGetNotificationSetting returns the NotificationSetting field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetParentTeamID() int64\n```\nGetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetParentTeamSlug() string\n```\nGetParentTeamSlug returns the ParentTeamSlug field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetPermission() string\n```\nGetPermission returns the Permission field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetPrivacy() string\n```\nGetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UpdateTeamRequest) GetRemoveParentTeam() bool\n```\nGetRemoveParentTeam returns the RemoveParentTeam field.\n\n```go\nfunc (r UpdateTeamRequest) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements the json.Marshaler interface.\n\n```go\nfunc (r UpdateTeamRequest) String() string\n```\n\n```go\ntype UpdateUserLDAPMappingRequest struct {\n\tLDAPDN string `json:\"ldap_dn\"`\n}\n```\nUpdateUserLDAPMappingRequest represents a request to update the mapping between a GitHub user and an LDAP user.\n\n```go\nfunc (u *UpdateUserLDAPMappingRequest) GetLDAPDN() string\n```\nGetLDAPDN returns the LDAPDN field.\n\n```go\ntype UploadLicenseOptions struct {\n\tLicense string `url:\"license\"`\n}\n```\nUploadLicenseOptions is a struct to hold the options for the UploadLicense API.\n\n```go\nfunc (u *UploadLicenseOptions) GetLicense() string\n```\nGetLicense returns the License field.\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\nfunc (u *UploadOptions) GetLabel() string\n```\nGetLabel returns the Label field.\n\n```go\nfunc (u *UploadOptions) GetMediaType() string\n```\nGetMediaType returns the MediaType field.\n\n```go\nfunc (u *UploadOptions) GetName() string\n```\nGetName returns the Name field.\n\n```go\ntype UsageItem struct {\n\tDate           string  `json:\"date\"`\n\tProduct        string  `json:\"product\"`\n\tSKU            string  `json:\"sku\"`\n\tQuantity       float64 `json:\"quantity\"`\n\tUnitType       string  `json:\"unitType\"`\n\tPricePerUnit   float64 `json:\"pricePerUnit\"`\n\tGrossAmount    float64 `json:\"grossAmount\"`\n\tDiscountAmount float64 `json:\"discountAmount\"`\n\tNetAmount      float64 `json:\"netAmount\"`\n\tRepositoryName *string `json:\"repositoryName,omitempty\"`\n\t// Organization name is only used for organization-level reports.\n\tOrganizationName *string `json:\"organizationName,omitempty\"`\n}\n```\nUsageItem represents a single usage item in the enhanced billing platform report.\n\n```go\nfunc (u *UsageItem) GetDate() string\n```\nGetDate returns the Date field.\n\n```go\nfunc (u *UsageItem) GetDiscountAmount() float64\n```\nGetDiscountAmount returns the DiscountAmount field.\n\n```go\nfunc (u *UsageItem) GetGrossAmount() float64\n```\nGetGrossAmount returns the GrossAmount field.\n\n```go\nfunc (u *UsageItem) GetNetAmount() float64\n```\nGetNetAmount returns the NetAmount field.\n\n```go\nfunc (u *UsageItem) GetOrganizationName() string\n```\nGetOrganizationName returns the OrganizationName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageItem) GetPricePerUnit() float64\n```\nGetPricePerUnit returns the PricePerUnit field.\n\n```go\nfunc (u *UsageItem) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (u *UsageItem) GetQuantity() float64\n```\nGetQuantity returns the Quantity field.\n\n```go\nfunc (u *UsageItem) GetRepositoryName() string\n```\nGetRepositoryName returns the RepositoryName field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageItem) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (u *UsageItem) GetUnitType() string\n```\nGetUnitType returns the UnitType field.\n\n```go\ntype UsageReport struct {\n\tUsageItems []*UsageItem `json:\"usageItems,omitempty\"`\n}\n```\nUsageReport represents the enhanced billing platform usage report response.\n\n```go\nfunc (u *UsageReport) GetUsageItems() []*UsageItem\n```\nGetUsageItems returns the UsageItems slice if it's non-nil, nil otherwise.\n\n```go\ntype UsageReportOptions struct {\n\t// If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025.\n\t// Default value is the current year.\n\tYear *int `url:\"year,omitempty\"`\n\n\t// If specified, only return results for a single month. The value of month is an integer between 1 and 12.\n\t// If no year is specified the default year is used.\n\tMonth *int `url:\"month,omitempty\"`\n\n\t// If specified, only return results for a single day. The value of day is an integer between 1 and 31.\n\t// If no year or month is specified, the default year and month are used.\n\tDay *int `url:\"day,omitempty\"`\n\n\t// If specified, only return results for a single hour. The value of hour is an integer between 0 and 23.\n\t// If no year, month, or day is specified, the default year, month, and day are used.\n\tHour *int `url:\"hour,omitempty\"`\n}\n```\nUsageReportOptions specifies optional parameters for the enhanced billing platform usage report.\n\n```go\nfunc (u *UsageReportOptions) GetDay() int\n```\nGetDay returns the Day field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageReportOptions) GetHour() int\n```\nGetHour returns the Hour field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageReportOptions) GetMonth() int\n```\nGetMonth returns the Month field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageReportOptions) GetYear() int\n```\nGetYear returns the Year field if it's non-nil, zero value otherwise.\n\n```go\ntype UsageSummaryItem struct {\n\tProduct          string  `json:\"product\"`\n\tSKU              string  `json:\"sku\"`\n\tUnitType         string  `json:\"unitType\"`\n\tPricePerUnit     float64 `json:\"pricePerUnit\"`\n\tGrossQuantity    float64 `json:\"grossQuantity\"`\n\tGrossAmount      float64 `json:\"grossAmount\"`\n\tDiscountQuantity float64 `json:\"discountQuantity\"`\n\tDiscountAmount   float64 `json:\"discountAmount\"`\n\tNetQuantity      float64 `json:\"netQuantity\"`\n\tNetAmount        float64 `json:\"netAmount\"`\n}\n```\nUsageSummaryItem represents a single usage line item in a billing usage summary report.\n\n```go\nfunc (u *UsageSummaryItem) GetDiscountAmount() float64\n```\nGetDiscountAmount returns the DiscountAmount field.\n\n```go\nfunc (u *UsageSummaryItem) GetDiscountQuantity() float64\n```\nGetDiscountQuantity returns the DiscountQuantity field.\n\n```go\nfunc (u *UsageSummaryItem) GetGrossAmount() float64\n```\nGetGrossAmount returns the GrossAmount field.\n\n```go\nfunc (u *UsageSummaryItem) GetGrossQuantity() float64\n```\nGetGrossQuantity returns the GrossQuantity field.\n\n```go\nfunc (u *UsageSummaryItem) GetNetAmount() float64\n```\nGetNetAmount returns the NetAmount field.\n\n```go\nfunc (u *UsageSummaryItem) GetNetQuantity() float64\n```\nGetNetQuantity returns the NetQuantity field.\n\n```go\nfunc (u *UsageSummaryItem) GetPricePerUnit() float64\n```\nGetPricePerUnit returns the PricePerUnit field.\n\n```go\nfunc (u *UsageSummaryItem) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (u *UsageSummaryItem) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (u *UsageSummaryItem) GetUnitType() string\n```\nGetUnitType returns the UnitType field.\n\n```go\ntype UsageSummaryOptions struct {\n\tYear       int    `url:\"year,omitempty\"`\n\tMonth      int    `url:\"month,omitempty\"`\n\tDay        int    `url:\"day,omitempty\"`\n\tRepository string `url:\"repository,omitempty\"`\n\tProduct    string `url:\"product,omitempty\"`\n\tSKU        string `url:\"sku,omitempty\"`\n}\n```\nUsageSummaryOptions specifies optional parameters for the BillingService.GetOrganizationUsageSummary and BillingService.GetUserUsageSummary methods.\n\n```go\nfunc (u *UsageSummaryOptions) GetDay() int\n```\nGetDay returns the Day field.\n\n```go\nfunc (u *UsageSummaryOptions) GetMonth() int\n```\nGetMonth returns the Month field.\n\n```go\nfunc (u *UsageSummaryOptions) GetProduct() string\n```\nGetProduct returns the Product field.\n\n```go\nfunc (u *UsageSummaryOptions) GetRepository() string\n```\nGetRepository returns the Repository field.\n\n```go\nfunc (u *UsageSummaryOptions) GetSKU() string\n```\nGetSKU returns the SKU field.\n\n```go\nfunc (u *UsageSummaryOptions) GetYear() int\n```\nGetYear returns the Year field.\n\n```go\ntype UsageSummaryReport struct {\n\tTimePeriod   UsageSummaryTimePeriod `json:\"timePeriod\"`\n\tOrganization *string                `json:\"organization,omitempty\"`\n\tUser         *string                `json:\"user,omitempty\"`\n\tRepository   *string                `json:\"repository,omitempty\"`\n\tProduct      *string                `json:\"product,omitempty\"`\n\tSKU          *string                `json:\"sku,omitempty\"`\n\tUsageItems   []*UsageSummaryItem    `json:\"usageItems\"`\n}\n```\nUsageSummaryReport represents the billing usage summary report response.\n\n```go\nfunc (u *UsageSummaryReport) GetOrganization() string\n```\nGetOrganization returns the Organization field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageSummaryReport) GetProduct() string\n```\nGetProduct returns the Product field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageSummaryReport) GetRepository() string\n```\nGetRepository returns the Repository field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageSummaryReport) GetSKU() string\n```\nGetSKU returns the SKU field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageSummaryReport) GetTimePeriod() UsageSummaryTimePeriod\n```\nGetTimePeriod returns the TimePeriod field.\n\n```go\nfunc (u *UsageSummaryReport) GetUsageItems() []*UsageSummaryItem\n```\nGetUsageItems returns the UsageItems slice if it's non-nil, nil otherwise.\n\n```go\nfunc (u *UsageSummaryReport) GetUser() string\n```\nGetUser returns the User field if it's non-nil, zero value otherwise.\n\n```go\ntype UsageSummaryTimePeriod struct {\n\tYear  int  `json:\"year\"`\n\tMonth *int `json:\"month,omitempty\"`\n\tDay   *int `json:\"day,omitempty\"`\n}\n```\nUsageSummaryTimePeriod represents a time period for billing usage summary reports.\n\n```go\nfunc (u *UsageSummaryTimePeriod) GetDay() int\n```\nGetDay returns the Day field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageSummaryTimePeriod) GetMonth() int\n```\nGetMonth returns the Month field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UsageSummaryTimePeriod) GetYear() int\n```\nGetYear returns the Year field.\n\n```go\ntype User struct {\n\tLogin                   *string    `json:\"login,omitempty\"`\n\tID                      *int64     `json:\"id,omitempty\"`\n\tUserViewType            *string    `json:\"user_view_type,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\tNotificationEmail       *string    `json:\"notification_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\tBusinessPlus            *bool      `json:\"business_plus,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/rest/search?apiVersion=2022-11-28#text-match-metadata\n\tTextMatches []*TextMatch `json:\"text_matches,omitempty\"`\n\n\t// Permissions identify the permissions that a user has on a given\n\t// repository.\n\t// This is only populated when calling [RepositoriesService.ListCollaborators].\n\tPermissions *RepositoryPermissions `json:\"permissions,omitempty\"`\n\n\t// RoleName identifies the role that a user has on a given repository.\n\t// This is only populated when calling [RepositoriesService.ListCollaborators].\n\tRoleName *string `json:\"role_name,omitempty\"`\n\n\t// Assignment identifies how a user was assigned to an organization role. Its\n\t// possible values are: \"direct\", \"indirect\", \"mixed\". This is only populated when\n\t// calling the ListUsersAssignedToOrgRole method.\n\tAssignment *string `json:\"assignment,omitempty\"`\n\t// InheritedFrom identifies the team that a user inherited their organization role\n\t// from. This is only populated when calling the ListUsersAssignedToOrgRole method.\n\tInheritedFrom []*Team `json:\"inherited_from,omitempty\"`\n\n\t// Role identifies the role that a user has on a given team.\n\t// Its possible values are: \"member\", \"maintainer\".\n\t// This is only populated when calling the\n\t// [TeamsService.ListTeamMembersBySlug] or [TeamsService.ListTeamMembersByID]\n\t// methods.\n\tRole *string `json:\"role,omitempty\"`\n\n\t// Inherited identifies whether a user inherited their team role from a child\n\t// team.\n\t// This is only populated when calling the\n\t// [TeamsService.ListTeamMembersBySlug] or [TeamsService.ListTeamMembersByID]\n\t// methods.\n\tInherited *bool `json:\"inherited,omitempty\"`\n}\n```\nUser represents a GitHub user.\n\n```go\nfunc (u *User) GetAssignment() string\n```\nGetAssignment returns the Assignment field if it's non-nil, zero value otherwise.\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) GetBusinessPlus() bool\n```\nGetBusinessPlus returns the BusinessPlus 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) GetInherited() bool\n```\nGetInherited returns the Inherited field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *User) GetInheritedFrom() []*Team\n```\nGetInheritedFrom returns the InheritedFrom slice if it's non-nil, nil 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) GetNotificationEmail() string\n```\nGetNotificationEmail returns the NotificationEmail 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() *RepositoryPermissions\n```\nGetPermissions returns the Permissions field.\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) GetRole() string\n```\nGetRole returns the Role 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) GetTextMatches() []*TextMatch\n```\nGetTextMatches returns the TextMatches slice if it's non-nil, nil 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) GetUserViewType() string\n```\nGetUserViewType returns the UserViewType 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) GetScopes() []string\n```\nGetScopes returns the Scopes slice if it's non-nil, nil 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// A user ID. Only return users with an ID greater than this ID.\n\tSince   int64 `url:\"since,omitempty\"`\n\tPerPage int   `url:\"per_page,omitempty\"`\n}\n```\nUserListOptions specifies optional parameters to the UsersService.ListAll method.\n\n```go\nfunc (u *UserListOptions) GetPerPage() int\n```\nGetPerPage returns the PerPage field.\n\n```go\nfunc (u *UserListOptions) GetSince() int64\n```\nGetSince returns the Since field.\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) GetRepositories() []*Repository\n```\nGetRepositories returns the Repositories slice if it's non-nil, nil 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\nfunc (u *UserMigrationOptions) GetExcludeAttachments() bool\n```\nGetExcludeAttachments returns the ExcludeAttachments field.\n\n```go\nfunc (u *UserMigrationOptions) GetLockRepositories() bool\n```\nGetLockRepositories returns the LockRepositories field.\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 UserUpdateRequest struct {\n\tName            *string `json:\"name,omitempty\"`\n\tEmail           *string `json:\"email,omitempty\"`\n\tBlog            *string `json:\"blog,omitempty\"`\n\tTwitterUsername *string `json:\"twitter_username,omitempty\"`\n\tCompany         *string `json:\"company,omitempty\"`\n\tLocation        *string `json:\"location,omitempty\"`\n\tHireable        *bool   `json:\"hireable,omitempty\"`\n\tBio             *string `json:\"bio,omitempty\"`\n}\n```\nUserUpdateRequest represents the request body for updating a user.\n\n```go\nfunc (u *UserUpdateRequest) GetBio() string\n```\nGetBio returns the Bio field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetBlog() string\n```\nGetBlog returns the Blog field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetCompany() string\n```\nGetCompany returns the Company field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetEmail() string\n```\nGetEmail returns the Email field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetHireable() bool\n```\nGetHireable returns the Hireable field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetLocation() string\n```\nGetLocation returns the Location field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (u *UserUpdateRequest) GetTwitterUsername() string\n```\nGetTwitterUsername returns the TwitterUsername 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\nfunc (u *UsersSearchResult) GetUsers() []*User\n```\nGetUsers returns the Users slice if it's non-nil, nil 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/rest/users?apiVersion=2022-11-28](https://docs.github.com/rest/users?apiVersion=2022-11-28)\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/rest/collaborators/invitations?apiVersion=2022-11-28#accept-a-repository-invitation](https://docs.github.com/rest/collaborators/invitations?apiVersion=2022-11-28#accept-a-repository-invitation)\n\n```go\nfunc (s *UsersService) AddEmails(ctx context.Context, body []string) ([]*UserEmail, *Response, error)\n```\nAddEmails adds email addresses of the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#add-an-email-address-for-the-authenticated-user](https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#add-an-email-address-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) AddSocialAccounts(ctx context.Context, accountURLs []string) ([]*SocialAccount, *Response, error)\n```\nAddSocialAccounts adds social accounts for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#add-social-accounts-for-the-authenticated-user](https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#add-social-accounts-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/rest/users/blocking?apiVersion=2022-11-28#block-a-user](https://docs.github.com/rest/users/blocking?apiVersion=2022-11-28#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 authentication via Basic Auth or OAuth with at least write:gpg\\_key scope.\n\nGitHub API docs: [https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#create-a-gpg-key-for-the-authenticated-user](https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#create-a-gpg-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) CreateKey(ctx context.Context, body CreateUserKeyRequest) (*Key, *Response, error)\n```\nCreateKey adds a public key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#create-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#create-a-public-ssh-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) CreateSSHSigningKey(ctx context.Context, body CreateSSHSigningKeyRequest) (*SSHSigningKey, *Response, error)\n```\nCreateSSHSigningKey adds a SSH signing key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#create-a-ssh-signing-key-for-the-authenticated-user](https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#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/rest/collaborators/invitations?apiVersion=2022-11-28#decline-a-repository-invitation](https://docs.github.com/rest/collaborators/invitations?apiVersion=2022-11-28#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/rest/users/emails?apiVersion=2022-11-28#delete-an-email-address-for-the-authenticated-user](https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#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/rest/users/gpg-keys?apiVersion=2022-11-28#delete-a-gpg-key-for-the-authenticated-user](https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#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/rest/users/keys?apiVersion=2022-11-28#delete-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#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```\nDeletePackage deletes a package from a user. Passing the empty string for \"user\" will delete the package for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-for-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) DeleteSSHSigningKey(ctx context.Context, id int64) (*Response, error)\n```\nDeleteSSHSigningKey deletes a SSH signing key for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#delete-an-ssh-signing-key-for-the-authenticated-user](https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#delete-an-ssh-signing-key-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) DeleteSocialAccounts(ctx context.Context, accountURLs []string) (*Response, error)\n```\nDeleteSocialAccounts deletes social accounts for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#delete-social-accounts-for-the-authenticated-user](https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#delete-social-accounts-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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#demote-a-site-administrator](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#demote-a-site-administrator)\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/rest/users/followers?apiVersion=2022-11-28#follow-a-user](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#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/rest/users/users?apiVersion=2022-11-28#get-a-user](https://docs.github.com/rest/users/users?apiVersion=2022-11-28#get-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user](https://docs.github.com/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user)\n\n```go\nfunc (s *UsersService) GetByID(ctx context.Context, id int64) (*User, *Response, error)\n```\nGetByID fetches a user.\n\nGitHub API docs: [https://docs.github.com/rest/users/users?apiVersion=2022-11-28#get-a-user-using-their-id](https://docs.github.com/rest/users/users?apiVersion=2022-11-28#get-a-user-using-their-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/rest/users/gpg-keys?apiVersion=2022-11-28#get-a-gpg-key-for-the-authenticated-user](https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#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/rest/users/users?apiVersion=2022-11-28#get-contextual-information-for-a-user](https://docs.github.com/rest/users/users?apiVersion=2022-11-28#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/rest/users/keys?apiVersion=2022-11-28#get-a-public-ssh-key-for-the-authenticated-user](https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#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```\nGetPackage gets a package by name for a user. Passing the empty string for \"user\" will get the package for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-for-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-for-the-authenticated-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/rest/users/ssh-signing-keys?apiVersion=2022-11-28#get-an-ssh-signing-key-for-the-authenticated-user](https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#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/rest/users/blocking?apiVersion=2022-11-28#check-if-a-user-is-blocked-by-the-authenticated-user](https://docs.github.com/rest/users/blocking?apiVersion=2022-11-28#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/rest/users/followers?apiVersion=2022-11-28#check-if-a-person-is-followed-by-the-authenticated-user](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#check-if-a-person-is-followed-by-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#check-if-a-user-follows-another-user](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#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/rest/users/users?apiVersion=2022-11-28#list-users](https://docs.github.com/rest/users/users?apiVersion=2022-11-28#list-users)\n\n```go\nfunc (s *UsersService) ListAttestations(ctx context.Context, user, subjectDigest string, opts *ListOptions) (*AttestationsResponse, *Response, error)\n```\nListAttestations returns a collection of artifact attestations with a given subject digest that are associated with repositories owned by a user.\n\nGitHub API docs: [https://docs.github.com/rest/users/attestations?apiVersion=2022-11-28#list-attestations](https://docs.github.com/rest/users/attestations?apiVersion=2022-11-28#list-attestations)\n\n```go\nfunc (s *UsersService) ListAttestationsIter(ctx context.Context, user string, subjectDigest string, opts *ListOptions) iter.Seq2[*Attestation, error]\n```\nListAttestationsIter returns an iterator that paginates through all results of ListAttestations.\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/rest/users/blocking?apiVersion=2022-11-28#list-users-blocked-by-the-authenticated-user](https://docs.github.com/rest/users/blocking?apiVersion=2022-11-28#list-users-blocked-by-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListBlockedUsersIter(ctx context.Context, opts *ListOptions) iter.Seq2[*User, error]\n```\nListBlockedUsersIter returns an iterator that paginates through all results of ListBlockedUsers.\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/rest/users/emails?apiVersion=2022-11-28#list-email-addresses-for-the-authenticated-user](https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#list-email-addresses-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListEmailsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*UserEmail, error]\n```\nListEmailsIter returns an iterator that paginates through all results of ListEmails.\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/rest/users/followers?apiVersion=2022-11-28#list-followers-of-a-user](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#list-followers-of-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#list-followers-of-the-authenticated-user](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#list-followers-of-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListFollowersIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*User, error]\n```\nListFollowersIter returns an iterator that paginates through all results of ListFollowers.\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/rest/users/followers?apiVersion=2022-11-28#list-the-people-a-user-follows](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#list-the-people-a-user-follows)\n\nGitHub API docs: [https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#list-the-people-the-authenticated-user-follows](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#list-the-people-the-authenticated-user-follows)\n\n```go\nfunc (s *UsersService) ListFollowingIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*User, error]\n```\nListFollowingIter returns an iterator that paginates through all results of ListFollowing.\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/rest/users/gpg-keys?apiVersion=2022-11-28#list-gpg-keys-for-a-user](https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#list-gpg-keys-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#list-gpg-keys-for-the-authenticated-user](https://docs.github.com/rest/users/gpg-keys?apiVersion=2022-11-28#list-gpg-keys-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListGPGKeysIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*GPGKey, error]\n```\nListGPGKeysIter returns an iterator that paginates through all results of ListGPGKeys.\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/rest/collaborators/invitations?apiVersion=2022-11-28#list-repository-invitations-for-the-authenticated-user](https://docs.github.com/rest/collaborators/invitations?apiVersion=2022-11-28#list-repository-invitations-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListInvitationsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*RepositoryInvitation, error]\n```\nListInvitationsIter returns an iterator that paginates through all results of ListInvitations.\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/rest/users/keys?apiVersion=2022-11-28#list-public-keys-for-a-user](https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#list-public-keys-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#list-public-ssh-keys-for-the-authenticated-user](https://docs.github.com/rest/users/keys?apiVersion=2022-11-28#list-public-ssh-keys-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListKeysIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*Key, error]\n```\nListKeysIter returns an iterator that paginates through all results of ListKeys.\n\n```go\nfunc (s *UsersService) ListPackageVersions(ctx context.Context, packageType, packageName string, opts *ListPackageVersionsOptions) ([]*PackageVersion, *Response, error)\n```\nListPackageVersions gets all versions of a package for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListPackageVersionsIter(ctx context.Context, packageType string, packageName string, opts *ListPackageVersionsOptions) iter.Seq2[*PackageVersion, error]\n```\nListPackageVersionsIter returns an iterator that paginates through all results of ListPackageVersions.\n\n```go\nfunc (s *UsersService) ListPackages(ctx context.Context, user string, opts *PackageListOptions) ([]*Package, *Response, error)\n```\nListPackages lists 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/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-the-authenticated-users-namespace](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-packages-for-the-authenticated-users-namespace)\n\n```go\nfunc (s *UsersService) ListPackagesIter(ctx context.Context, user string, opts *PackageListOptions) iter.Seq2[*Package, error]\n```\nListPackagesIter returns an iterator that paginates through all results of ListPackages.\n\n```go\nfunc (s *UsersService) ListPublicEmails(ctx context.Context, opts *ListOptions) ([]*UserEmail, *Response, error)\n```\nListPublicEmails lists public email addresses for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#list-public-email-addresses-for-the-authenticated-user](https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#list-public-email-addresses-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListPublicEmailsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*UserEmail, error]\n```\nListPublicEmailsIter returns an iterator that paginates through all results of ListPublicEmails.\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/rest/users/ssh-signing-keys?apiVersion=2022-11-28#list-ssh-signing-keys-for-a-user](https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#list-ssh-signing-keys-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#list-ssh-signing-keys-for-the-authenticated-user](https://docs.github.com/rest/users/ssh-signing-keys?apiVersion=2022-11-28#list-ssh-signing-keys-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListSSHSigningKeysIter(ctx context.Context, user string, opts *ListOptions) iter.Seq2[*SSHSigningKey, error]\n```\nListSSHSigningKeysIter returns an iterator that paginates through all results of ListSSHSigningKeys.\n\n```go\nfunc (s *UsersService) ListSocialAccounts(ctx context.Context, opts *ListOptions) ([]*SocialAccount, *Response, error)\n```\nListSocialAccounts lists all social accounts for the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#list-social-accounts-for-the-authenticated-user](https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#list-social-accounts-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) ListSocialAccountsIter(ctx context.Context, opts *ListOptions) iter.Seq2[*SocialAccount, error]\n```\nListSocialAccountsIter returns an iterator that paginates through all results of ListSocialAccounts.\n\n```go\nfunc (s *UsersService) ListUserPackageVersions(ctx context.Context, user, packageType, packageName string) ([]*PackageVersion, *Response, error)\n```\nListUserPackageVersions returns package versions for a public package owned by a specified user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#list-package-versions-for-a-package-owned-by-a-user)\n\n```go\nfunc (s *UsersService) ListUserSocialAccounts(ctx context.Context, username string, opts *ListOptions) ([]*SocialAccount, *Response, error)\n```\nListUserSocialAccounts lists all social accounts for a user.\n\nGitHub API docs: [https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#list-social-accounts-for-a-user](https://docs.github.com/rest/users/social-accounts?apiVersion=2022-11-28#list-social-accounts-for-a-user)\n\n```go\nfunc (s *UsersService) ListUserSocialAccountsIter(ctx context.Context, username string, opts *ListOptions) iter.Seq2[*SocialAccount, error]\n```\nListUserSocialAccountsIter returns an iterator that paginates through all results of ListUserSocialAccounts.\n\n```go\nfunc (s *UsersService) PackageDeleteVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nPackageDeleteVersion deletes a package version for a user. Passing the empty string for \"user\" will delete the version for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-version-for-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-a-package-version-for-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-package-version-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#delete-package-version-for-a-user)\n\n```go\nfunc (s *UsersService) PackageGetVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error)\n```\nPackageGetVersion gets a specific version of a package for a user. Passing the empty string for \"user\" will get the version for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-version-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-version-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-version-for-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#get-a-package-version-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) PackageRestoreVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*Response, error)\n```\nPackageRestoreVersion restores a package version to a user. Passing the empty string for \"user\" will restore the version for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-version-for-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-version-for-the-authenticated-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-package-version-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#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://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#promote-a-user-to-be-a-site-administrator](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#promote-a-user-to-be-a-site-administrator)\n\n```go\nfunc (s *UsersService) RestorePackage(ctx context.Context, user, packageType, packageName string) (*Response, error)\n```\nRestorePackage restores a package to a user. Passing the empty string for \"user\" will restore the package for the authenticated user.\n\nNote: the package name is URL path escaped for you. See: [https://pkg.go.dev/net/url#PathEscape](https://pkg.go.dev/net/url#PathEscape) .\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-for-a-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-for-a-user)\n\nGitHub API docs: [https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-for-the-authenticated-user](https://docs.github.com/rest/packages/packages?apiVersion=2022-11-28#restore-a-package-for-the-authenticated-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/rest/users/emails?apiVersion=2022-11-28#set-primary-email-visibility-for-the-authenticated-user](https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#set-primary-email-visibility-for-the-authenticated-user)\n\n```go\nfunc (s *UsersService) Suspend(ctx context.Context, user string, body SuspendUserRequest) (*Response, error)\n```\nSuspend a user on a GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#suspend-a-user](https://docs.github.com/enterprise-server@3.22/rest/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/rest/users/blocking?apiVersion=2022-11-28#unblock-a-user](https://docs.github.com/rest/users/blocking?apiVersion=2022-11-28#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/rest/users/followers?apiVersion=2022-11-28#unfollow-a-user](https://docs.github.com/rest/users/followers?apiVersion=2022-11-28#unfollow-a-user)\n\n```go\nfunc (s *UsersService) Unsuspend(ctx context.Context, user string, body UnsuspendUserRequest) (*Response, error)\n```\nUnsuspend a user on a GitHub Enterprise instance.\n\nGitHub API docs: [https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#unsuspend-a-user](https://docs.github.com/enterprise-server@3.22/rest/enterprise-admin/users#unsuspend-a-user)\n\n```go\nfunc (s *UsersService) Update(ctx context.Context, body UserUpdateRequest) (*User, *Response, error)\n```\nUpdate the authenticated user.\n\nGitHub API docs: [https://docs.github.com/rest/users/users?apiVersion=2022-11-28#update-the-authenticated-user](https://docs.github.com/rest/users/users?apiVersion=2022-11-28#update-the-authenticated-user)\n\n```go\ntype VisualStudioSubscriptionAssignment struct {\n\tVisualStudioSubscriptionEmail *string `json:\"visual_studio_subscription_email,omitempty\"`\n\tSubscriptionID                *string `json:\"subscription_id,omitempty\"`\n\tUsername                      *string `json:\"username,omitempty\"`\n\tManualMatch                   *bool   `json:\"manual_match,omitempty\"`\n}\n```\nVisualStudioSubscriptionAssignment represents a user's Visual Studio subscription assignment.\n\n```go\nfunc (v *VisualStudioSubscriptionAssignment) GetManualMatch() bool\n```\nGetManualMatch returns the ManualMatch field if it's non-nil, zero value otherwise.\n\n```go\nfunc (v *VisualStudioSubscriptionAssignment) GetSubscriptionID() string\n```\nGetSubscriptionID returns the SubscriptionID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (v *VisualStudioSubscriptionAssignment) GetUsername() string\n```\nGetUsername returns the Username field if it's non-nil, zero value otherwise.\n\n```go\nfunc (v *VisualStudioSubscriptionAssignment) GetVisualStudioSubscriptionEmail() string\n```\nGetVisualStudioSubscriptionEmail returns the VisualStudioSubscriptionEmail field if it's non-nil, zero value otherwise.\n\n```go\ntype VisualStudioSubscriptionAssignmentRequest struct {\n\tUserIdentifier *string `json:\"user_identifier,omitempty\"`\n}\n```\nVisualStudioSubscriptionAssignmentRequest represents the request body to add or update a subscription assignment.\n\n```go\nfunc (v *VisualStudioSubscriptionAssignmentRequest) GetUserIdentifier() string\n```\nGetUserIdentifier returns the UserIdentifier field if it's non-nil, zero value otherwise.\n\n```go\ntype VisualStudioSubscriptions struct {\n\tTotalCount                *int                                  `json:\"total_count,omitempty\"`\n\tVisualStudioSubscriptions []*VisualStudioSubscriptionAssignment `json:\"visual_studio_subscriptions,omitempty\"`\n}\n```\nVisualStudioSubscriptions represents a list of Visual Studio subscriptions for an enterprise.\n\n```go\nfunc (v *VisualStudioSubscriptions) GetTotalCount() int\n```\nGetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.\n\n```go\nfunc (v *VisualStudioSubscriptions) GetVisualStudioSubscriptions() []*VisualStudioSubscriptionAssignment\n```\nGetVisualStudioSubscriptions returns the VisualStudioSubscriptions slice if it's non-nil, nil otherwise.\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\t// The following field is only present when the webhook is triggered on\n\t// a repository belonging to an organization.\n\tOrg *Organization `json:\"organization,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/developers/webhooks-and-events/webhook-events-and-payloads#watch](https://docs.github.com/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) GetOrg() *Organization\n```\nGetOrg returns the Org 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) GetDays() []int\n```\nGetDays returns the Days slice if it's non-nil, nil otherwise.\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 endpoint to create a workflow dispatch event.\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#workflow\\_dispatch](https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch)\n\n```go\nfunc (w *WorkflowDispatchEvent) GetInputs() json.RawMessage\n```\nGetInputs returns the Inputs field.\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 WorkflowDispatchRunDetails struct {\n\tWorkflowRunID *int64  `json:\"workflow_run_id,omitempty\"`\n\tRunURL        *string `json:\"run_url,omitempty\"`\n\tHTMLURL       *string `json:\"html_url,omitempty\"`\n}\n```\nWorkflowDispatchRunDetails represents the response from creating a workflow dispatch event when ReturnRunDetails is set to true.\n\n```go\nfunc (w *WorkflowDispatchRunDetails) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowDispatchRunDetails) GetRunURL() string\n```\nGetRunURL returns the RunURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowDispatchRunDetails) GetWorkflowRunID() int64\n```\nGetWorkflowRunID returns the WorkflowRunID 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) GetLabels() []string\n```\nGetLabels returns the Labels slice if it's non-nil, nil 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) GetSteps() []*TaskStep\n```\nGetSteps returns the Steps slice if it's non-nil, nil 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\tDeployment   *Deployment   `json:\"deployment,omitempty\"`\n}\n```\nWorkflowJobEvent is triggered when a job is queued, started or completed.\n\nGitHub API docs: [https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow\\_job](https://docs.github.com/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) GetDeployment() *Deployment\n```\nGetDeployment returns the Deployment field.\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 WorkflowJobRun struct {\n\tConclusion  *string    `json:\"conclusion,omitempty\"`\n\tCreatedAt   *Timestamp `json:\"created_at,omitempty\"`\n\tEnvironment *string    `json:\"environment,omitempty\"`\n\tHTMLURL     *string    `json:\"html_url,omitempty\"`\n\tID          *int64     `json:\"id,omitempty\"`\n\tName        *string    `json:\"name,omitempty\"`\n\tStatus      *string    `json:\"status,omitempty\"`\n\tUpdatedAt   *Timestamp `json:\"updated_at,omitempty\"`\n}\n```\nWorkflowJobRun represents a workflow\\_job\\_run in a GitHub DeploymentReviewEvent.\n\n```go\nfunc (w *WorkflowJobRun) GetConclusion() string\n```\nGetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetCreatedAt() Timestamp\n```\nGetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetEnvironment() string\n```\nGetEnvironment returns the Environment field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetHTMLURL() string\n```\nGetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetID() int64\n```\nGetID returns the ID field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetName() string\n```\nGetName returns the Name field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetStatus() string\n```\nGetStatus returns the Status field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowJobRun) GetUpdatedAt() Timestamp\n```\nGetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.\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\tPath                *string               `json:\"path,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\tReferencedWorkflows []*ReferencedWorkflow `json:\"referenced_workflows,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) GetPath() string\n```\nGetPath returns the Path 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) GetPullRequests() []*PullRequest\n```\nGetPullRequests returns the PullRequests slice if it's non-nil, nil otherwise.\n\n```go\nfunc (w *WorkflowRun) GetReferencedWorkflows() []*ReferencedWorkflow\n```\nGetReferencedWorkflows returns the ReferencedWorkflows slice if it's non-nil, nil 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) GetJobRuns() []*WorkflowRunJobRun\n```\nGetJobRuns returns the JobRuns slice if it's non-nil, nil otherwise.\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/developers/webhooks-and-events/webhook-events-and-payloads#workflow\\_run](https://docs.github.com/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\nfunc (w *WorkflowRuns) GetWorkflowRuns() []*WorkflowRun\n```\nGetWorkflowRuns returns the WorkflowRuns slice if it's non-nil, nil 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```go\nfunc (w *Workflows) GetWorkflows() []*Workflow\n```\nGetWorkflows returns the Workflows slice if it's non-nil, nil otherwise.\n\n```go\ntype WorkflowsBranchRule struct {\n\tBranchRuleMetadata\n\tParameters WorkflowsRuleParameters `json:\"parameters\"`\n}\n```\nWorkflowsBranchRule represents a workflows branch rule.\n\n```go\nfunc (w *WorkflowsBranchRule) GetParameters() WorkflowsRuleParameters\n```\nGetParameters returns the Parameters field.\n\n```go\ntype WorkflowsPermissions struct {\n\tRunWorkflowsFromForkPullRequests  *bool `json:\"run_workflows_from_fork_pull_requests,omitempty\"`\n\tSendWriteTokensToWorkflows        *bool `json:\"send_write_tokens_to_workflows,omitempty\"`\n\tSendSecretsAndVariables           *bool `json:\"send_secrets_and_variables,omitempty\"`\n\tRequireApprovalForForkPRWorkflows *bool `json:\"require_approval_for_fork_pr_workflows,omitempty\"`\n}\n```\nWorkflowsPermissions represents the permissions for workflows in a repository.\n\n```go\nfunc (w *WorkflowsPermissions) GetRequireApprovalForForkPRWorkflows() bool\n```\nGetRequireApprovalForForkPRWorkflows returns the RequireApprovalForForkPRWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowsPermissions) GetRunWorkflowsFromForkPullRequests() bool\n```\nGetRunWorkflowsFromForkPullRequests returns the RunWorkflowsFromForkPullRequests field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowsPermissions) GetSendSecretsAndVariables() bool\n```\nGetSendSecretsAndVariables returns the SendSecretsAndVariables field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowsPermissions) GetSendWriteTokensToWorkflows() bool\n```\nGetSendWriteTokensToWorkflows returns the SendWriteTokensToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w WorkflowsPermissions) String() string\n```\n\n```go\ntype WorkflowsPermissionsOpt struct {\n\tRunWorkflowsFromForkPullRequests  bool  `json:\"run_workflows_from_fork_pull_requests\"`\n\tSendWriteTokensToWorkflows        *bool `json:\"send_write_tokens_to_workflows,omitempty\"`\n\tSendSecretsAndVariables           *bool `json:\"send_secrets_and_variables,omitempty\"`\n\tRequireApprovalForForkPRWorkflows *bool `json:\"require_approval_for_fork_pr_workflows,omitempty\"`\n}\n```\nWorkflowsPermissionsOpt specifies options for editing workflows permissions in a repository.\n\n```go\nfunc (w *WorkflowsPermissionsOpt) GetRequireApprovalForForkPRWorkflows() bool\n```\nGetRequireApprovalForForkPRWorkflows returns the RequireApprovalForForkPRWorkflows field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowsPermissionsOpt) GetRunWorkflowsFromForkPullRequests() bool\n```\nGetRunWorkflowsFromForkPullRequests returns the RunWorkflowsFromForkPullRequests field.\n\n```go\nfunc (w *WorkflowsPermissionsOpt) GetSendSecretsAndVariables() bool\n```\nGetSendSecretsAndVariables returns the SendSecretsAndVariables field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowsPermissionsOpt) GetSendWriteTokensToWorkflows() bool\n```\nGetSendWriteTokensToWorkflows returns the SendWriteTokensToWorkflows field if it's non-nil, zero value otherwise.\n\n```go\ntype WorkflowsRuleParameters struct {\n\tDoNotEnforceOnCreate *bool           `json:\"do_not_enforce_on_create,omitempty\"`\n\tWorkflows            []*RuleWorkflow `json:\"workflows\"`\n}\n```\nWorkflowsRuleParameters represents the workflows rule parameters.\n\n```go\nfunc (w *WorkflowsRuleParameters) GetDoNotEnforceOnCreate() bool\n```\nGetDoNotEnforceOnCreate returns the DoNotEnforceOnCreate field if it's non-nil, zero value otherwise.\n\n```go\nfunc (w *WorkflowsRuleParameters) GetWorkflows() []*RuleWorkflow\n```\nGetWorkflows returns the Workflows slice if it's non-nil, nil otherwise.\n\n","path":"github.com/google/go-github/v93/github","name":"github","synopsis":"Package github provides a client for using the GitHub API.","isRedistributable":true}
