package github

Import Path
	github.com/google/go-github/v66/github (on go.dev)

Dependency Relation
	imports 26 packages, and imported by one package

Involved Source Files actions.go actions_artifacts.go actions_cache.go actions_oidc.go actions_permissions_enterprise.go actions_permissions_orgs.go actions_required_workflows.go actions_runner_groups.go actions_runners.go actions_secrets.go actions_variables.go actions_workflow_jobs.go actions_workflow_runs.go actions_workflows.go activity.go activity_events.go activity_notifications.go activity_star.go activity_watching.go admin.go admin_orgs.go admin_stats.go admin_users.go apps.go apps_hooks.go apps_hooks_deliveries.go apps_installation.go apps_manifest.go apps_marketplace.go authorizations.go billing.go checks.go code-scanning.go codesofconduct.go codespaces.go codespaces_secrets.go copilot.go dependabot.go dependabot_alerts.go dependabot_secrets.go dependency_graph.go dependency_graph_snapshots.go Package github provides a client for using the GitHub API. Usage: import "github.com/google/go-github/v66/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) import "github.com/google/go-github/github" // with go modules disabled Construct a new GitHub client, then use the various services on the client to access different parts of the GitHub API. For example: client := github.NewClient(nil) // list all organizations for user "willnorris" orgs, _, err := client.Organizations.List(ctx, "willnorris", nil) Some API methods have optional parameters that can be passed. For example: client := github.NewClient(nil) // list public repositories for org "github" opt := &github.RepositoryListByOrgOptions{Type: "public"} repos, _, err := client.Repositories.ListByOrg(ctx, "github", opt) The 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 . NOTE: Using the https://pkg.go.dev/context package, one can easily pass cancelation signals and deadlines to various services of the client for handling a request. In case there is no context available, then context.Background() can be used as a starting point. For more sample code snippets, head over to the https://github.com/google/go-github/tree/master/example directory. # Authentication Use Client.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. client := github.NewClient(nil).WithAuthToken("... your access token ...") Note that when using an authenticated Client, all calls made by the client will include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users. For API methods that require HTTP Basic Authentication, use the BasicAuthTransport. GitHub Apps authentication can be provided by the 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. To authenticate as an installation: import "github.com/bradleyfalzon/ghinstallation" func main() { // Wrap the shared transport for use with the integration ID 1 authenticating with installation ID 99. itr, err := ghinstallation.NewKeyFromFile(http.DefaultTransport, 1, 99, "2016-10-19.private-key.pem") if err != nil { // Handle error. } // Use installation transport with client client := github.NewClient(&http.Client{Transport: itr}) // Use client... } To authenticate as an app, using a JWT: import "github.com/bradleyfalzon/ghinstallation" func main() { // Wrap the shared transport for use with the application ID 1. atr, err := ghinstallation.NewAppsTransportKeyFromFile(http.DefaultTransport, 1, "2016-10-19.private-key.pem") if err != nil { // Handle error. } // Use app transport with client client := github.NewClient(&http.Client{Transport: atr}) // Use client... } # Rate Limiting GitHub 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. The returned Response.Rate value contains the rate limit information from the most recent API call. If a recent enough response isn't available, you can use RateLimits to fetch the most up-to-date rate limit data for the client. To detect an API rate limit error, you can check if its type is *github.RateLimitError. For secondary rate limits, you can check if its type is *github.AbuseRateLimitError: repos, _, err := client.Repositories.List(ctx, "", nil) if _, ok := err.(*github.RateLimitError); ok { log.Println("hit rate limit") } if _, ok := err.(*github.AbuseRateLimitError); ok { log.Println("hit secondary rate limit") } Learn more about GitHub rate limiting at https://docs.github.com/rest/rate-limit . # Accepted Status Some 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. To detect this condition of error, you can check if its type is *github.AcceptedError: stats, _, err := client.Repositories.ListContributorsStats(ctx, org, repo) if _, ok := err.(*github.AcceptedError); ok { log.Println("scheduled on GitHub side") } # Conditional Requests The GitHub API has good support for conditional requests which will help prevent you from burning through your rate limit, as well as help speed up your application. go-github does not handle conditional requests directly, but is instead designed to work with a caching http.Transport. We recommend using https://github.com/gregjones/httpcache for that. Learn more about GitHub conditional requests at https://docs.github.com/rest/overview/resources-in-the-rest-api#conditional-requests. # Creating and Updating Resources All structs for GitHub resources use pointer values for all non-repeated fields. This allows distinguishing between unset fields and those set to a zero-value. Helper functions have been provided to easily create these pointers for string, bool, and int values. For example: // create a new private repository named "foo" repo := &github.Repository{ Name: github.String("foo"), Private: github.Bool(true), } client.Repositories.Create(ctx, "", repo) Users who have worked with protocol buffers should find this pattern familiar. # Pagination All requests for resource collections (repos, pull requests, issues, etc.) support pagination. Pagination options are described in the github.ListOptions struct and passed to the list methods directly or as an embedded type of a more specific list options struct (for example github.PullRequestListOptions). Pages information is available via the github.Response struct. client := github.NewClient(nil) opt := &github.RepositoryListByOrgOptions{ ListOptions: github.ListOptions{PerPage: 10}, } // get all pages of results var allRepos []*github.Repository for { repos, resp, err := client.Repositories.ListByOrg(ctx, "github", opt) if err != nil { return err } allRepos = append(allRepos, repos...) if resp.NextPage == 0 { break } opt.Page = resp.NextPage } emojis.go enterprise.go enterprise_actions_runner_groups.go enterprise_actions_runners.go enterprise_audit_log.go enterprise_code_security_and_analysis.go event.go event_types.go gists.go gists_comments.go git.go git_blobs.go git_commits.go git_refs.go git_tags.go git_trees.go github-accessors.go github.go gitignore.go interactions.go interactions_orgs.go interactions_repos.go issue_import.go issues.go issues_assignees.go issues_comments.go issues_events.go issues_labels.go issues_milestones.go issues_timeline.go licenses.go markdown.go messages.go meta.go migrations.go migrations_source_import.go migrations_user.go orgs.go orgs_actions_allowed.go orgs_actions_permissions.go orgs_audit_log.go orgs_credential_authorizations.go orgs_custom_repository_roles.go orgs_hooks.go orgs_hooks_configuration.go orgs_hooks_deliveries.go orgs_members.go orgs_organization_roles.go orgs_outside_collaborators.go orgs_packages.go orgs_personal_access_tokens.go orgs_projects.go orgs_properties.go orgs_rules.go orgs_security_managers.go orgs_users_blocking.go packages.go projects.go pulls.go pulls_comments.go pulls_reviewers.go pulls_reviews.go pulls_threads.go rate_limit.go reactions.go repos.go repos_actions_access.go repos_actions_allowed.go repos_actions_permissions.go repos_autolinks.go repos_codeowners.go repos_collaborators.go repos_comments.go repos_commits.go repos_community_health.go repos_contents.go repos_deployment_branch_policies.go repos_deployment_protection_rules.go repos_deployments.go repos_environments.go repos_forks.go repos_hooks.go repos_hooks_configuration.go repos_hooks_deliveries.go repos_invitations.go repos_keys.go repos_lfs.go repos_merging.go repos_pages.go repos_prereceive_hooks.go repos_projects.go repos_properties.go repos_releases.go repos_rules.go repos_stats.go repos_statuses.go repos_tags.go repos_traffic.go scim.go search.go secret_scanning.go security_advisories.go strings.go teams.go teams_discussion_comments.go teams_discussions.go teams_members.go timestamp.go users.go users_administration.go users_blocking.go users_emails.go users_followers.go users_gpg_keys.go users_keys.go users_packages.go users_projects.go users_ssh_signing_keys.go without_appengine.go
Package-Level Type Names (total 758)
/* sort by: | */
AbuseRateLimitError 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#about-secondary-rate-limits". // error message // HTTP response that caused this error RetryAfter is provided with some abuse rate limit errors. If present, it is the amount of time that the client should wait before retrying. Otherwise, the client should try again later (after an unspecified amount of time). (*AbuseRateLimitError) Error() string GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise. Is returns whether the provided error equals this error. *AbuseRateLimitError : error
AcceptedError 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. Raw contains the response body. (*AcceptedError) Error() string Is returns whether the provided error equals this error. *AcceptedError : error
ActionBilling represents a GitHub Action billing. IncludedMinutes float64 MinutesUsedBreakdown MinutesUsedBreakdown TotalMinutesUsed float64 TotalPaidMinutesUsed float64 func (*BillingService).GetActionsBillingOrg(ctx context.Context, org string) (*ActionBilling, *Response, error) func (*BillingService).GetActionsBillingUser(ctx context.Context, user string) (*ActionBilling, *Response, error)
ActionsAllowed represents selected actions that are allowed. GitHub API docs: https://docs.github.com/rest/actions/permissions GithubOwnedAllowed *bool PatternsAllowed []string VerifiedAllowed *bool GetGithubOwnedAllowed returns the GithubOwnedAllowed field if it's non-nil, zero value otherwise. GetVerifiedAllowed returns the VerifiedAllowed field if it's non-nil, zero value otherwise. ( ActionsAllowed) String() string ActionsAllowed : expvar.Var ActionsAllowed : fmt.Stringer func (*ActionsService).EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*ActionsService).EditActionsAllowedInEnterprise(ctx context.Context, enterprise string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*ActionsService).GetActionsAllowed(ctx context.Context, org string) (*ActionsAllowed, *Response, error) func (*ActionsService).GetActionsAllowedInEnterprise(ctx context.Context, enterprise string) (*ActionsAllowed, *Response, error) func (*OrganizationsService).EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*OrganizationsService).GetActionsAllowed(ctx context.Context, org string) (*ActionsAllowed, *Response, error) func (*RepositoriesService).EditActionsAllowed(ctx context.Context, org, repo string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*RepositoriesService).GetActionsAllowed(ctx context.Context, org, repo string) (*ActionsAllowed, *Response, error) func (*ActionsService).EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*ActionsService).EditActionsAllowedInEnterprise(ctx context.Context, enterprise string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*OrganizationsService).EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*RepositoriesService).EditActionsAllowed(ctx context.Context, org, repo string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error)
ActionsCache represents a GitHub action cache. GitHub API docs: https://docs.github.com/rest/actions/cache#about-the-cache-api CreatedAt *Timestamp ID *int64 Key *string LastAccessedAt *Timestamp Ref *string SizeInBytes *int64 Version *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetLastAccessedAt returns the LastAccessedAt field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. GetVersion returns the Version field if it's non-nil, zero value otherwise.
ActionsCacheList represents a list of GitHub actions Cache. GitHub API docs: https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository ActionsCaches []*ActionsCache TotalCount int func (*ActionsService).ListCaches(ctx context.Context, owner, repo string, opts *ActionsCacheListOptions) (*ActionsCacheList, *Response, error)
ActionsCacheListOptions represents a list of all possible optional Query parameters for ListCaches method. GitHub API docs: https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository Can be one of: "asc", "desc" Default: desc Key *string ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. The Git reference for the results you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge Can be one of: "created_at", "last_accessed_at", "size_in_bytes". Default: "last_accessed_at" GetDirection returns the Direction field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetSort returns the Sort field if it's non-nil, zero value otherwise. func (*ActionsService).ListCaches(ctx context.Context, owner, repo string, opts *ActionsCacheListOptions) (*ActionsCacheList, *Response, error)
ActionsCacheUsage represents a GitHub Actions Cache Usage object. GitHub API docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-a-repository ActiveCachesCount int ActiveCachesSizeInBytes int64 FullName string func (*ActionsService).GetCacheUsageForRepo(ctx context.Context, owner, repo string) (*ActionsCacheUsage, *Response, error)
ActionsCacheUsageList represents a list of repositories with GitHub Actions cache usage for an organization. GitHub API docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-a-repository RepoCacheUsage []*ActionsCacheUsage TotalCount int func (*ActionsService).ListCacheUsageByRepoForOrg(ctx context.Context, org string, opts *ListOptions) (*ActionsCacheUsageList, *Response, error)
ActionsEnabledOnEnterpriseRepos represents all the repositories in an enterprise for which Actions is enabled. Organizations []*Organization TotalCount int func (*ActionsService).ListEnabledOrgsInEnterprise(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnEnterpriseRepos, *Response, error)
ActionsEnabledOnOrgRepos represents all the repositories in an organization for which Actions is enabled. Repositories []*Repository TotalCount int func (*ActionsService).ListEnabledReposInOrg(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnOrgRepos, *Response, error)
ActionsPermissions represents a policy for repositories and allowed actions in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions AllowedActions *string EnabledRepositories *string SelectedActionsURL *string GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. GetEnabledRepositories returns the EnabledRepositories field if it's non-nil, zero value otherwise. GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. ( ActionsPermissions) String() string ActionsPermissions : expvar.Var ActionsPermissions : fmt.Stringer func (*ActionsService).EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error) func (*ActionsService).GetActionsPermissions(ctx context.Context, org string) (*ActionsPermissions, *Response, error) func (*OrganizationsService).EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error) func (*OrganizationsService).GetActionsPermissions(ctx context.Context, org string) (*ActionsPermissions, *Response, error) func (*ActionsService).EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error) func (*OrganizationsService).EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error)
ActionsPermissionsEnterprise represents a policy for allowed actions in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions AllowedActions *string EnabledOrganizations *string SelectedActionsURL *string GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. GetEnabledOrganizations returns the EnabledOrganizations field if it's non-nil, zero value otherwise. GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. ( ActionsPermissionsEnterprise) String() string ActionsPermissionsEnterprise : expvar.Var ActionsPermissionsEnterprise : fmt.Stringer func (*ActionsService).EditActionsPermissionsInEnterprise(ctx context.Context, enterprise string, actionsPermissionsEnterprise ActionsPermissionsEnterprise) (*ActionsPermissionsEnterprise, *Response, error) func (*ActionsService).GetActionsPermissionsInEnterprise(ctx context.Context, enterprise string) (*ActionsPermissionsEnterprise, *Response, error) func (*ActionsService).EditActionsPermissionsInEnterprise(ctx context.Context, enterprise string, actionsPermissionsEnterprise ActionsPermissionsEnterprise) (*ActionsPermissionsEnterprise, *Response, error)
ActionsPermissionsRepository represents a policy for repositories and allowed actions in a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions AllowedActions *string Enabled *bool SelectedActionsURL *string GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. ( ActionsPermissionsRepository) String() string ActionsPermissionsRepository : expvar.Var ActionsPermissionsRepository : fmt.Stringer func (*RepositoriesService).EditActionsPermissions(ctx context.Context, owner, repo string, actionsPermissionsRepository ActionsPermissionsRepository) (*ActionsPermissionsRepository, *Response, error) func (*RepositoriesService).GetActionsPermissions(ctx context.Context, owner, repo string) (*ActionsPermissionsRepository, *Response, error) func (*RepositoriesService).EditActionsPermissions(ctx context.Context, owner, repo string, actionsPermissionsRepository ActionsPermissionsRepository) (*ActionsPermissionsRepository, *Response, error)
ActionsService handles communication with the actions related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/actions/ AddEnabledOrgInEnterprise adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#enable-a-selected-organization-for-github-actions-in-an-enterprise AddEnabledReposInOrg adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#enable-a-selected-repository-for-github-actions-in-an-organization AddRepoToRequiredWorkflow adds the Repository to a required workflow. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows AddRepositoryAccessRunnerGroup 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'. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization AddRunnerGroupRunners adds a self-hosted runner to a runner group configured in an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-organization AddSelectedRepoToOrgSecret adds a repository to an organization secret. GitHub API docs: https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret AddSelectedRepoToOrgVariable adds a repository to an organization variable. GitHub API docs: https://docs.github.com/rest/actions/variables#add-selected-repository-to-an-organization-variable CancelWorkflowRunByID cancels a workflow run by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#cancel-a-workflow-run CreateEnvVariable creates an environment variable. GitHub API docs: https://docs.github.com/rest/actions/variables#create-an-environment-variable CreateOrUpdateEnvSecret creates or updates a single environment secret with an encrypted value. GitHub API docs: https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#create-or-update-an-environment-secret CreateOrUpdateOrgSecret creates or updates an organization secret with an encrypted value. GitHub API docs: https://docs.github.com/rest/actions/secrets#create-or-update-an-organization-secret CreateOrUpdateRepoSecret creates or updates a repository secret with an encrypted value. GitHub API docs: https://docs.github.com/rest/actions/secrets#create-or-update-a-repository-secret CreateOrgVariable creates an organization variable. GitHub API docs: https://docs.github.com/rest/actions/variables#create-an-organization-variable CreateOrganizationRegistrationToken creates a token that can be used to add a self-hosted runner to an organization. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#create-a-registration-token-for-an-organization CreateOrganizationRemoveToken creates a token that can be used to remove a self-hosted runner from an organization. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#create-a-remove-token-for-an-organization CreateOrganizationRunnerGroup creates a new self-hosted runner group for an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization CreateRegistrationToken creates a token that can be used to add a self-hosted runner. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository CreateRemoveToken creates a token that can be used to remove a self-hosted runner from a repository. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository CreateRepoVariable creates a repository variable. GitHub API docs: https://docs.github.com/rest/actions/variables#create-a-repository-variable CreateRequiredWorkflow creates the required workflow in an org. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows CreateWorkflowDispatchEventByFileName manually triggers a GitHub Actions workflow run. GitHub API docs: https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event CreateWorkflowDispatchEventByID manually triggers a GitHub Actions workflow run. GitHub API docs: https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event DeleteArtifact deletes a workflow run artifact. GitHub API docs: https://docs.github.com/rest/actions/artifacts#delete-an-artifact DeleteCachesByID deletes a GitHub Actions cache for a repository, using a cache ID. Permissions: 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. GitHub API docs: https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id DeleteCachesByKey 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/<branch name>" or simply "<branch name>". To reference a pull request use "refs/pull/<number>/merge". If you don't want to use ref just pass nil in parameter. Permissions: 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. GitHub API docs: https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key DeleteEnvSecret deletes a secret in an environment using the secret name. GitHub API docs: https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#delete-an-environment-secret DeleteEnvVariable deletes a variable in an environment. GitHub API docs: https://docs.github.com/rest/actions/variables#delete-an-environment-variable DeleteOrgSecret deletes a secret in an organization using the secret name. GitHub API docs: https://docs.github.com/rest/actions/secrets#delete-an-organization-secret DeleteOrgVariable deletes a variable in an organization. GitHub API docs: https://docs.github.com/rest/actions/variables#delete-an-organization-variable DeleteOrganizationRunnerGroup deletes a self-hosted runner group from an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-organization DeleteRepoSecret deletes a secret in a repository using the secret name. GitHub API docs: https://docs.github.com/rest/actions/secrets#delete-a-repository-secret DeleteRepoVariable deletes a variable in a repository. GitHub API docs: https://docs.github.com/rest/actions/variables#delete-a-repository-variable DeleteRequiredWorkflow deletes a required workflow in an org. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows DeleteWorkflowRun deletes a workflow run by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#delete-a-workflow-run DeleteWorkflowRunLogs deletes all logs for a workflow run. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#delete-workflow-run-logs DisableWorkflowByFileName disables a workflow and sets the state of the workflow to "disabled_manually". GitHub API docs: https://docs.github.com/rest/actions/workflows#disable-a-workflow DisableWorkflowByID disables a workflow and sets the state of the workflow to "disabled_manually". GitHub API docs: https://docs.github.com/rest/actions/workflows#disable-a-workflow DownloadArtifact gets a redirect URL to download an archive for a repository. GitHub API docs: https://docs.github.com/rest/actions/artifacts#download-an-artifact EditActionsAllowed sets the actions that are allowed in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-organization EditActionsAllowedInEnterprise sets the actions that are allowed in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-enterprise EditActionsPermissions sets the permissions policy for repositories and allowed actions in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-github-actions-permissions-for-an-organization EditActionsPermissionsInEnterprise sets the permissions policy in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#set-github-actions-permissions-for-an-enterprise EditDefaultWorkflowPermissionsInEnterprise sets the GitHub Actions default workflow permissions for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#set-default-workflow-permissions-for-an-enterprise EditDefaultWorkflowPermissionsInOrganization sets the GitHub Actions default workflow permissions for an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-default-workflow-permissions-for-an-organization EnableWorkflowByFileName enables a workflow and sets the state of the workflow to "active". GitHub API docs: https://docs.github.com/rest/actions/workflows#enable-a-workflow EnableWorkflowByID enables a workflow and sets the state of the workflow to "active". GitHub API docs: https://docs.github.com/rest/actions/workflows#enable-a-workflow GenerateOrgJITConfig generate a just-in-time configuration for an organization. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization GenerateRepoJITConfig generates a just-in-time configuration for a repository. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository GetActionsAllowed gets the actions that are allowed in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-organization GetActionsAllowedInEnterprise gets the actions that are allowed in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-enterprise GetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-github-actions-permissions-for-an-organization GetActionsPermissionsInEnterprise gets the GitHub Actions permissions policy for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#get-github-actions-permissions-for-an-enterprise GetArtifact gets a specific artifact for a workflow run. GitHub API docs: https://docs.github.com/rest/actions/artifacts#get-an-artifact GetCacheUsageForRepo 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. Permissions: 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. GitHub API docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-a-repository GetDefaultWorkflowPermissionsInEnterprise gets the GitHub Actions default workflow permissions for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#get-default-workflow-permissions-for-an-enterprise GetDefaultWorkflowPermissionsInOrganization gets the GitHub Actions default workflow permissions for an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-default-workflow-permissions-for-an-organization GetEnvPublicKey gets a public key that should be used for secret encryption. GitHub API docs: https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#get-an-environment-public-key GetEnvSecret gets a single environment secret without revealing its encrypted value. GitHub API docs: https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#get-an-environment-secret GetEnvVariable gets a single environment variable. GitHub API docs: https://docs.github.com/rest/actions/variables#get-an-environment-variable GetOrgOIDCSubjectClaimCustomTemplate gets the subject claim customization template for an organization. GitHub API docs: https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization GetOrgPublicKey gets a public key that should be used for secret encryption. GitHub API docs: https://docs.github.com/rest/actions/secrets#get-an-organization-public-key GetOrgSecret gets a single organization secret without revealing its encrypted value. GitHub API docs: https://docs.github.com/rest/actions/secrets#get-an-organization-secret GetOrgVariable gets a single organization variable. GitHub API docs: https://docs.github.com/rest/actions/variables#get-an-organization-variable GetOrganizationRunner gets a specific self-hosted runner for an organization using its runner ID. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-an-organization GetOrganizationRunnerGroup gets a specific self-hosted runner group for an organization using its RunnerGroup ID. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization GetPendingDeployments get all deployment environments for a workflow run that are waiting for protection rules to pass. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run GetRepoOIDCSubjectClaimCustomTemplate gets the subject claim customization template for a repository. GitHub API docs: https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository GetRepoPublicKey gets a public key that should be used for secret encryption. GitHub API docs: https://docs.github.com/rest/actions/secrets#get-a-repository-public-key GetRepoSecret gets a single repository secret without revealing its encrypted value. GitHub API docs: https://docs.github.com/rest/actions/secrets#get-a-repository-secret GetRepoVariable gets a single repository variable. GitHub API docs: https://docs.github.com/rest/actions/variables#get-a-repository-variable GetRequiredWorkflowByID get the RequiredWorkflows for an org by its ID. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows GetRunner gets a specific self-hosted runner for a repository using its runner ID. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository GetTotalCacheUsageForEnterprise 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. Permissions: You must authenticate using an access token with the "admin:enterprise" scope to use this endpoint. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/cache#get-github-actions-cache-usage-for-an-enterprise GetTotalCacheUsageForOrg 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. Permissions: 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. GitHub API docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-an-organization GetWorkflowByFileName gets a specific workflow by file name. GitHub API docs: https://docs.github.com/rest/actions/workflows#get-a-workflow GetWorkflowByID gets a specific workflow by ID. GitHub API docs: https://docs.github.com/rest/actions/workflows#get-a-workflow GetWorkflowJobByID gets a specific job in a workflow run by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-jobs#get-a-job-for-a-workflow-run GetWorkflowJobLogs gets a redirect URL to download a plain text file of logs for a workflow job. GitHub API docs: https://docs.github.com/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run GetWorkflowRunAttempt gets a specific workflow run attempt. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run-attempt GetWorkflowRunAttemptLogs gets a redirect URL to download a plain text file of logs for a workflow run for attempt number. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-attempt-logs GetWorkflowRunByID gets a specific workflow run by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run GetWorkflowRunLogs gets a redirect URL to download a plain text file of logs for a workflow run. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-logs GetWorkflowRunUsageByID gets a specific workflow usage run by run ID in the unit of billable milliseconds. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#get-workflow-run-usage GetWorkflowUsageByFileName gets a specific workflow usage by file name in the unit of billable milliseconds. GitHub API docs: https://docs.github.com/rest/actions/workflows#get-workflow-usage GetWorkflowUsageByID gets a specific workflow usage by ID in the unit of billable milliseconds. GitHub API docs: https://docs.github.com/rest/actions/workflows#get-workflow-usage ListArtifacts lists all artifacts that belong to a repository. GitHub API docs: https://docs.github.com/rest/actions/artifacts#list-artifacts-for-a-repository ListCacheUsageByRepoForOrg 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. Permissions: 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. GitHub API docs: https://docs.github.com/rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization ListCaches lists the GitHub Actions caches for a repository. You must authenticate using an access token with the repo scope to use this endpoint. Permissions: must have the actions:read permission to use this endpoint. GitHub API docs: https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository ListEnabledOrgsInEnterprise lists the selected organizations that are enabled for GitHub Actions in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#list-selected-organizations-enabled-for-github-actions-in-an-enterprise ListEnabledReposInOrg lists the selected repositories that are enabled for GitHub Actions in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#list-selected-repositories-enabled-for-github-actions-in-an-organization ListEnvSecrets lists all secrets available in an environment. GitHub API docs: https://docs.github.com/enterprise-server@3.7/rest/actions/secrets#list-environment-secrets ListEnvVariables lists all variables available in an environment. GitHub API docs: https://docs.github.com/rest/actions/variables#list-environment-variables ListOrgRequiredWorkflows lists the RequiredWorkflows for an org. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows ListOrgSecrets lists all secrets available in an organization without revealing their encrypted values. GitHub API docs: https://docs.github.com/rest/actions/secrets#list-organization-secrets ListOrgVariables lists all variables available in an organization. GitHub API docs: https://docs.github.com/rest/actions/variables#list-organization-variables ListOrganizationRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#list-runner-applications-for-an-organization ListOrganizationRunnerGroups lists all self-hosted runner groups configured in an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-organization ListOrganizationRunners lists all the self-hosted runners for an organization. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-organization ListRepoOrgSecrets lists all organization secrets available in a repository without revealing their encrypted values. GitHub API docs: https://docs.github.com/rest/actions/secrets#list-repository-organization-secrets ListRepoOrgVariables lists all organization variables available in a repository. GitHub API docs: https://docs.github.com/rest/actions/variables#list-repository-organization-variables ListRepoRequiredWorkflows lists the RequiredWorkflows for a repo. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows ListRepoSecrets lists all secrets available in a repository without revealing their encrypted values. GitHub API docs: https://docs.github.com/rest/actions/secrets#list-repository-secrets ListRepoVariables lists all variables available in a repository. GitHub API docs: https://docs.github.com/rest/actions/variables#list-repository-variables ListRepositoryAccessRunnerGroup lists the repositories with access to a self-hosted runner group configured in an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization ListRepositoryWorkflowRuns lists all workflow runs for a repository. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository ListRequiredWorkflowSelectedRepos lists the Repositories selected for a workflow. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows ListRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository ListRunnerGroupRunners lists self-hosted runners that are in a specific organization group. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-organization ListRunners lists all the self-hosted runners for a repository. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#list-self-hosted-runners-for-a-repository ListSelectedReposForOrgSecret lists all repositories that have access to a secret. GitHub API docs: https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret ListSelectedReposForOrgVariable lists all repositories that have access to a variable. GitHub API docs: https://docs.github.com/rest/actions/variables#list-selected-repositories-for-an-organization-variable ListWorkflowJobs lists all jobs for a workflow run. GitHub API docs: https://docs.github.com/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run ListWorkflowJobsAttempt lists jobs for a workflow run Attempt. GitHub API docs: https://docs.github.com/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt ListWorkflowRunArtifacts lists all artifacts that belong to a workflow run. GitHub API docs: https://docs.github.com/rest/actions/artifacts#list-workflow-run-artifacts ListWorkflowRunsByFileName lists all workflow runs by workflow file name. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-workflow ListWorkflowRunsByID lists all workflow runs by workflow ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-workflow ListWorkflows lists all workflows in a repository. GitHub API docs: https://docs.github.com/rest/actions/workflows#list-repository-workflows PendingDeployments approve or reject pending deployments that are waiting on approval by a required reviewer. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run RemoveEnabledOrgInEnterprise removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#disable-a-selected-organization-for-github-actions-in-an-enterprise RemoveEnabledReposInOrg removes a single repository from the list of enabled repos for GitHub Actions in an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions#disable-a-selected-repository-for-github-actions-in-an-organization RemoveOrganizationRunner forces the removal of a self-hosted runner from an organization using the runner id. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization RemoveRepoFromRequiredWorkflow removes the Repository from a required workflow. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows RemoveRepositoryAccessRunnerGroup 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'. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization RemoveRunner forces the removal of a self-hosted runner in a repository using the runner id. GitHub API docs: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository RemoveRunnerGroupRunners removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-organization RemoveSelectedRepoFromOrgSecret removes a repository from an organization secret. GitHub API docs: https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret RemoveSelectedRepoFromOrgVariable removes a repository from an organization variable. GitHub API docs: https://docs.github.com/rest/actions/variables#remove-selected-repository-from-an-organization-variable RerunFailedJobsByID re-runs all of the failed jobs and their dependent jobs in a workflow run by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run RerunJobByID re-runs a job and its dependent jobs in a workflow run by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run RerunWorkflowByID re-runs a workflow by ID. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#re-run-a-workflow ReviewCustomDeploymentProtectionRule approves or rejects custom deployment protection rules provided by a GitHub App for a workflow run. GitHub API docs: https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run SetEnabledOrgsInEnterprise replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions#set-selected-organizations-enabled-for-github-actions-in-an-enterprise SetEnabledReposInOrg replaces the list of selected repositories that are enabled for GitHub Actions in an organization.. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-selected-repositories-enabled-for-github-actions-in-an-organization SetOrgOIDCSubjectClaimCustomTemplate sets the subject claim customization for an organization. GitHub API docs: https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization SetRepoOIDCSubjectClaimCustomTemplate sets the subject claim customization for a repository. GitHub API docs: https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository SetRepositoryAccessRunnerGroup replaces the list of repositories that have access to a self-hosted runner group configured in an organization with a new List of repositories. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#set-repository-access-for-a-self-hosted-runner-group-in-an-organization SetRequiredWorkflowSelectedRepos sets the Repositories selected for a workflow. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows SetRunnerGroupRunners replaces the list of self-hosted runners that are part of an organization runner group with a new list of runners. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-organization SetSelectedReposForOrgSecret sets the repositories that have access to a secret. GitHub API docs: https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret SetSelectedReposForOrgVariable sets the repositories that have access to a variable. GitHub API docs: https://docs.github.com/rest/actions/variables#set-selected-repositories-for-an-organization-variable UpdateEnvVariable updates an environment variable. GitHub API docs: https://docs.github.com/rest/actions/variables#update-an-environment-variable UpdateOrgVariable updates an organization variable. GitHub API docs: https://docs.github.com/rest/actions/variables#update-an-organization-variable UpdateOrganizationRunnerGroup updates a self-hosted runner group for an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization UpdateRepoVariable updates a repository variable. GitHub API docs: https://docs.github.com/rest/actions/variables#update-a-repository-variable UpdateRequiredWorkflow updates a required workflow in an org. GitHub API docs: https://docs.github.com/actions/using-workflows/required-workflows
ActionsVariable represents a repository action variable. CreatedAt *Timestamp Name string Used by ListOrgVariables and GetOrgVariables Used by UpdateOrgVariable and CreateOrgVariable UpdatedAt *Timestamp Value string Visibility *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. GetSelectedRepositoryIDs returns the SelectedRepositoryIDs field. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*ActionsService).GetEnvVariable(ctx context.Context, owner, repo, env, variableName string) (*ActionsVariable, *Response, error) func (*ActionsService).GetOrgVariable(ctx context.Context, org, name string) (*ActionsVariable, *Response, error) func (*ActionsService).GetRepoVariable(ctx context.Context, owner, repo, name string) (*ActionsVariable, *Response, error) func (*ActionsService).CreateEnvVariable(ctx context.Context, owner, repo, env string, variable *ActionsVariable) (*Response, error) func (*ActionsService).CreateOrgVariable(ctx context.Context, org string, variable *ActionsVariable) (*Response, error) func (*ActionsService).CreateRepoVariable(ctx context.Context, owner, repo string, variable *ActionsVariable) (*Response, error) func (*ActionsService).UpdateEnvVariable(ctx context.Context, owner, repo, env string, variable *ActionsVariable) (*Response, error) func (*ActionsService).UpdateOrgVariable(ctx context.Context, org string, variable *ActionsVariable) (*Response, error) func (*ActionsService).UpdateRepoVariable(ctx context.Context, owner, repo string, variable *ActionsVariable) (*Response, error)
ActionsVariables represents one item from the ListVariables response. TotalCount int Variables []*ActionsVariable func (*ActionsService).ListEnvVariables(ctx context.Context, owner, repo, env string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListOrgVariables(ctx context.Context, org string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRepoOrgVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRepoVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error)
ActiveCommitters represents the total active committers across all repositories in an Organization. MaximumAdvancedSecurityCommitters int PurchasedAdvancedSecurityCommitters int Repositories []*RepositoryActiveCommitters TotalAdvancedSecurityCommitters int TotalCount int func (*BillingService).GetAdvancedSecurityActiveCommittersOrg(ctx context.Context, org string, opts *ListOptions) (*ActiveCommitters, *Response, error)
ActivityListStarredOptions specifies the optional parameters to the ActivityService.ListStarred method. Direction in which to sort repositories. Possible values are: asc, desc. Default is "asc" when sort is "full_name", otherwise default is "desc". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. How to sort the repository list. Possible values are: created, updated, pushed, full_name. Default is "full_name". func (*ActivityService).ListStarred(ctx context.Context, user string, opts *ActivityListStarredOptions) ([]*StarredRepository, *Response, error)
ActivityService handles communication with the activity related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/activity/ DeleteRepositorySubscription deletes the subscription for the specified repository for the authenticated user. This is used to stop watching a repository. To control whether or not to receive notifications from a repository, use SetRepositorySubscription. GitHub API docs: https://docs.github.com/rest/activity/watching#delete-a-repository-subscription DeleteThreadSubscription deletes the subscription for the specified thread for the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/notifications#delete-a-thread-subscription GetRepositorySubscription 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. GitHub API docs: https://docs.github.com/rest/activity/watching#get-a-repository-subscription GetThread gets the specified notification thread. GitHub API docs: https://docs.github.com/rest/activity/notifications#get-a-thread GetThreadSubscription checks to see if the authenticated user is subscribed to a thread. GitHub API docs: https://docs.github.com/rest/activity/notifications#get-a-thread-subscription-for-the-authenticated-user IsStarred checks if a repository is starred by authenticated user. GitHub API docs: https://docs.github.com/rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user ListEvents drinks from the firehose of all public events across GitHub. GitHub API docs: https://docs.github.com/rest/activity/events#list-public-events ListEventsForOrganization lists public events for an organization. GitHub API docs: https://docs.github.com/rest/activity/events#list-public-organization-events ListEventsForRepoNetwork lists public events for a network of repositories. GitHub API docs: https://docs.github.com/rest/activity/events#list-public-events-for-a-network-of-repositories ListEventsPerformedByUser lists the events performed by a user. If publicOnly is true, only public events will be returned. GitHub API docs: https://docs.github.com/rest/activity/events#list-events-for-the-authenticated-user GitHub API docs: https://docs.github.com/rest/activity/events#list-public-events-for-a-user ListEventsReceivedByUser lists the events received by a user. If publicOnly is true, only public events will be returned. GitHub API docs: https://docs.github.com/rest/activity/events#list-events-received-by-the-authenticated-user GitHub API docs: https://docs.github.com/rest/activity/events#list-public-events-received-by-a-user ListFeeds lists all the feeds available to the authenticated user. GitHub provides several timeline resources in Atom format: Timeline: The GitHub global public timeline User: The public timeline for any user, using URI template Current user public: The public timeline for the authenticated user Current user: The private timeline for the authenticated user Current user actor: The private timeline for activity created by the authenticated user Current user organizations: The private timeline for the organizations the authenticated user is a member of. Note: Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens. GitHub API docs: https://docs.github.com/rest/activity/feeds#get-feeds ListIssueEventsForRepository lists issue events for a repository. GitHub API docs: https://docs.github.com/rest/issues/events#list-issue-events-for-a-repository ListNotifications lists all notifications for the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user ListRepositoryEvents lists events for a repository. GitHub API docs: https://docs.github.com/rest/activity/events#list-repository-events ListRepositoryNotifications lists all notifications in a given repository for the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user ListStargazers lists people who have starred the specified repo. GitHub API docs: https://docs.github.com/rest/activity/starring#list-stargazers ListStarred lists all the repos starred by a user. Passing the empty string will list the starred repositories for the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/starring#list-repositories-starred-by-a-user GitHub API docs: https://docs.github.com/rest/activity/starring#list-repositories-starred-by-the-authenticated-user ListUserEventsForOrganization provides the user’s organization dashboard. You must be authenticated as the user to view this. GitHub API docs: https://docs.github.com/rest/activity/events#list-organization-events-for-the-authenticated-user ListWatched lists the repositories the specified user is watching. Passing the empty string will fetch watched repos for the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/watching#list-repositories-watched-by-a-user GitHub API docs: https://docs.github.com/rest/activity/watching#list-repositories-watched-by-the-authenticated-user ListWatchers lists watchers of a particular repo. GitHub API docs: https://docs.github.com/rest/activity/watching#list-watchers MarkNotificationsRead marks all notifications up to lastRead as read. GitHub API docs: https://docs.github.com/rest/activity/notifications#mark-notifications-as-read MarkRepositoryNotificationsRead marks all notifications up to lastRead in the specified repository as read. GitHub API docs: https://docs.github.com/rest/activity/notifications#mark-repository-notifications-as-read MarkThreadDone 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. GitHub API docs: https://docs.github.com/rest/activity/notifications#mark-a-thread-as-done MarkThreadRead marks the specified thread as read. GitHub API docs: https://docs.github.com/rest/activity/notifications#mark-a-thread-as-read SetRepositorySubscription sets the subscription for the specified repository for the authenticated user. To 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. GitHub API docs: https://docs.github.com/rest/activity/watching#set-a-repository-subscription SetThreadSubscription sets the subscription for the specified thread for the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/notifications#set-a-thread-subscription Star a repository as the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/starring#star-a-repository-for-the-authenticated-user Unstar a repository as the authenticated user. GitHub API docs: https://docs.github.com/rest/activity/starring#unstar-a-repository-for-the-authenticated-user
ActorLocation contains information about reported location for an actor. CountryCode *string GetCountryCode returns the CountryCode field if it's non-nil, zero value otherwise. func (*AuditEntry).GetActorLocation() *ActorLocation
AdminEnforcedChanges represents the changes made to the AdminEnforced policy. From *bool GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetAdminEnforced() *AdminEnforcedChanges
AdminEnforcement represents the configuration to enforce required status checks for repository administrators. Enabled bool URL *string GetURL returns the URL field if it's non-nil, zero value otherwise. func (*Protection).GetEnforceAdmins() *AdminEnforcement func (*RepositoriesService).AddAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error) func (*RepositoriesService).GetAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error)
AdminService handles communication with the admin related methods of the GitHub API. These API routes are normally only accessible for GitHub Enterprise installations. GitHub API docs: https://docs.github.com/rest/enterprise-admin CreateOrg creates a new organization in GitHub Enterprise. Note that only a subset of the org fields are used and org must not be nil. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/orgs#create-an-organization CreateUser creates a new user in GitHub Enterprise. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#create-a-user CreateUserImpersonation creates an impersonation OAuth token. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#create-an-impersonation-oauth-token DeleteUser deletes a user in GitHub Enterprise. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#delete-a-user DeleteUserImpersonation deletes an impersonation OAuth token. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#delete-an-impersonation-oauth-token GetAdminStats returns a variety of metrics about a GitHub Enterprise installation. Please note that this is only available to site administrators, otherwise it will error with a 404 not found (instead of 401 or 403). GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/admin-stats#get-all-statistics RenameOrg renames an organization in GitHub Enterprise. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/orgs#update-an-organization-name RenameOrgByName renames an organization in GitHub Enterprise using its current name. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/orgs#update-an-organization-name UpdateTeamLDAPMapping updates the mapping between a GitHub team and an LDAP group. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team UpdateUserLDAPMapping updates the mapping between a GitHub user and an LDAP user. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user
AdminStats represents a variety of stats of a GitHub Enterprise installation. Comments *CommentStats Gists *GistStats Hooks *HookStats Issues *IssueStats Milestones *MilestoneStats Orgs *OrgStats Pages *PageStats Pulls *PullStats Repos *RepoStats Users *UserStats GetComments returns the Comments field. GetGists returns the Gists field. GetHooks returns the Hooks field. GetIssues returns the Issues field. GetMilestones returns the Milestones field. GetOrgs returns the Orgs field. GetPages returns the Pages field. GetPulls returns the Pulls field. GetRepos returns the Repos field. GetUsers returns the Users field. ( AdminStats) String() string AdminStats : expvar.Var AdminStats : fmt.Stringer func (*AdminService).GetAdminStats(ctx context.Context) (*AdminStats, *Response, error)
AdvancedSecurity specifies the state of advanced security on a repository. GitHub API docs: https://docs.github.com/github/getting-started-with-github/learning-about-github/about-github-advanced-security Status *string GetStatus returns the Status field if it's non-nil, zero value otherwise. ( AdvancedSecurity) String() string AdvancedSecurity : expvar.Var AdvancedSecurity : fmt.Stringer func (*SecurityAndAnalysis).GetAdvancedSecurity() *AdvancedSecurity
AdvancedSecurityCommittersBreakdown represents the user activity breakdown for ActiveCommitters. LastPushedDate *string UserLogin *string GetLastPushedDate returns the LastPushedDate field if it's non-nil, zero value otherwise. GetUserLogin returns the UserLogin field if it's non-nil, zero value otherwise.
AdvisoryCVSS represents the advisory pertaining to the Common Vulnerability Scoring System. Score *float64 VectorString *string GetScore returns the Score field. GetVectorString returns the VectorString field if it's non-nil, zero value otherwise. func (*DependabotSecurityAdvisory).GetCVSS() *AdvisoryCVSS func (*SecurityAdvisory).GetCVSS() *AdvisoryCVSS
AdvisoryCWEs represent the advisory pertaining to Common Weakness Enumeration. CWEID *string Name *string GetCWEID returns the CWEID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise.
AdvisoryIdentifier represents the identifier for a Security Advisory. Type *string Value *string GetType returns the Type field if it's non-nil, zero value otherwise. GetValue returns the Value field if it's non-nil, zero value otherwise.
AdvisoryReference represents the reference url for the security advisory. URL *string GetURL returns the URL field if it's non-nil, zero value otherwise.
AdvisoryVulnerability represents the vulnerability object for a Security Advisory. FirstPatchedVersion *FirstPatchedVersion Package *VulnerabilityPackage PatchedVersions and VulnerableFunctions are used in the following APIs: - https://docs.github.com/rest/security-advisories/repository-advisories#list-repository-security-advisories-for-an-organization - https://docs.github.com/rest/security-advisories/repository-advisories#list-repository-security-advisories Severity *string VulnerableFunctions []string VulnerableVersionRange *string GetFirstPatchedVersion returns the FirstPatchedVersion field. GetPackage returns the Package field. GetPatchedVersions returns the PatchedVersions field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. GetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise. func (*DependabotAlert).GetSecurityVulnerability() *AdvisoryVulnerability
Alert represents an individual GitHub Code Scanning Alert on a single repository. GitHub API docs: https://docs.github.com/rest/code-scanning ClosedAt *Timestamp ClosedBy *User CreatedAt *Timestamp DismissedAt *Timestamp DismissedBy *User DismissedComment *string DismissedReason *string FixedAt *Timestamp HTMLURL *string Instances []*MostRecentInstance InstancesURL *string MostRecentInstance *MostRecentInstance Number *int Repository *Repository Rule *Rule RuleDescription *string RuleID *string RuleSeverity *string State *string Tool *Tool URL *string UpdatedAt *Timestamp GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetClosedBy returns the ClosedBy field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. GetDismissedBy returns the DismissedBy field. GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetInstancesURL returns the InstancesURL field if it's non-nil, zero value otherwise. GetMostRecentInstance returns the MostRecentInstance field. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetRule returns the Rule field. GetRuleDescription returns the RuleDescription field if it's non-nil, zero value otherwise. GetRuleID returns the RuleID field if it's non-nil, zero value otherwise. GetRuleSeverity returns the RuleSeverity field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetTool returns the Tool field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ID returns the ID associated with an alert. It is the number at the end of the security alert's URL. func (*CodeScanningAlertEvent).GetAlert() *Alert func (*CodeScanningService).GetAlert(ctx context.Context, owner, repo string, id int64) (*Alert, *Response, error) func (*CodeScanningService).ListAlertsForOrg(ctx context.Context, org string, opts *AlertListOptions) ([]*Alert, *Response, error) func (*CodeScanningService).ListAlertsForRepo(ctx context.Context, owner, repo string, opts *AlertListOptions) ([]*Alert, *Response, error) func (*CodeScanningService).UpdateAlert(ctx context.Context, owner, repo string, id int64, stateInfo *CodeScanningAlertState) (*Alert, *Response, error)
AlertInstancesListOptions specifies optional parameters to the CodeScanningService.ListAlertInstances method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Return code scanning alert instances for a specific branch reference. The ref can be formatted as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge func (*CodeScanningService).ListAlertInstances(ctx context.Context, owner, repo string, id int64, opts *AlertInstancesListOptions) ([]*MostRecentInstance, *Response, error)
AlertListOptions specifies optional parameters to the CodeScanningService.ListAlerts method. ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. Add ListOptions so offset pagination with integer type "page" query parameter is accepted since ListCursorOptions accepts "page" as string only. Return code scanning alerts for a specific branch reference. The ref can be formatted as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge If specified, only code scanning alerts with this severity will be returned. Possible values are: critical, high, medium, low, warning, note, error. State of the code scanning alerts to list. Set to closed to list only closed code scanning alerts. Default: open The name of a code scanning tool. Only results by this tool will be listed. func (*CodeScanningService).ListAlertsForOrg(ctx context.Context, org string, opts *AlertListOptions) ([]*Alert, *Response, error) func (*CodeScanningService).ListAlertsForRepo(ctx context.Context, owner, repo string, opts *AlertListOptions) ([]*Alert, *Response, error)
AllowDeletions represents the configuration to accept deletion of protected branches. Enabled bool func (*Protection).GetAllowDeletions() *AllowDeletions
AllowDeletionsEnforcementLevelChanges represents the changes made to the AllowDeletionsEnforcementLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetAllowDeletionsEnforcementLevel() *AllowDeletionsEnforcementLevelChanges
AllowForcePushes represents the configuration to accept forced pushes on protected branches. Enabled bool func (*Protection).GetAllowForcePushes() *AllowForcePushes
AllowForkSyncing represents whether users can pull changes from upstream when the branch is locked. Enabled *bool GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. func (*Protection).GetAllowForkSyncing() *AllowForkSyncing
AnalysesListOptions specifies optional parameters to the CodeScanningService.ListAnalysesForRepo method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Return code scanning analyses for a specific branch reference. The ref can be formatted as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge Return code scanning analyses belonging to the same SARIF upload. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. func (*CodeScanningService).ListAnalysesForRepo(ctx context.Context, owner, repo string, opts *AnalysesListOptions) ([]*ScanningAnalysis, *Response, error)
APIMeta represents metadata about the GitHub API. An array of IP addresses in CIDR format specifying the addresses which serve GitHub APIs. An array of IP addresses in CIDR format specifying the IP addresses GitHub Actions will originate from. An array of IP addresses in CIDR format specifying the IP addresses Dependabot will originate from. GitHub services and their associated domains. Note that many of these domains are represented as wildcards (e.g. "*.github.com"). An array of IP addresses in CIDR format specifying the Git servers for GitHub.com. An array of IP addresses specifying the addresses that source imports will originate from on GitHub Enterprise Cloud. An array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from on GitHub.com. An array of IP addresses specifying the addresses that source imports will originate from on GitHub.com. An array of IP addresses in CIDR format specifying the addresses which serve GitHub Packages. An array of IP addresses in CIDR format specifying the addresses which serve GitHub Pages websites. A map of algorithms to SSH key fingerprints. An array of SSH keys. Whether authentication with username and password is supported. (GitHub Enterprise instances using CAS or OAuth for authentication will return false. Features like Basic Authentication with a username and password, sudo mode, and two-factor authentication are not supported on these servers.) An array of IP addresses in CIDR format specifying the addresses which serve GitHub websites. GetDomains returns the Domains field. GetSSHKeyFingerprints returns the SSHKeyFingerprints map if it's non-nil, an empty map otherwise. GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise. func (*Client).APIMeta(ctx context.Context) (*APIMeta, *Response, error) func (*MetaService).Get(ctx context.Context) (*APIMeta, *Response, error)
APIMetaArtifactAttestations represents the artifact attestation services domains. Services []string TrustDomain string func (*APIMetaDomains).GetArtifactAttestations() *APIMetaArtifactAttestations
APIMetaDomains represents the domains associated with GitHub services. Actions []string ArtifactAttestations *APIMetaArtifactAttestations Codespaces []string Copilot []string Packages []string Website []string GetArtifactAttestations returns the ArtifactAttestations field. func (*APIMeta).GetDomains() *APIMetaDomains
App represents a GitHub App. CreatedAt *Timestamp Description *string Events []string ExternalURL *string HTMLURL *string ID *int64 InstallationsCount *int Name *string NodeID *string Owner *User Permissions *InstallationPermissions Slug *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInstallationsCount returns the InstallationsCount field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPermissions returns the Permissions field. GetSlug returns the Slug field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*AppsService).Get(ctx context.Context, appSlug string) (*App, *Response, error) func (*CheckRun).GetApp() *App func (*CheckSuite).GetApp() *App func (*IssueEvent).GetPerformedViaGithubApp() *App func (*PullRequestEvent).GetPerformedViaGithubApp() *App func (*PullRequestTargetEvent).GetPerformedViaGithubApp() *App func (*RepositoriesService).AddAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error) func (*RepositoriesService).ListAppRestrictions(ctx context.Context, owner, repo, branch string) ([]*App, *Response, error) func (*RepositoriesService).ListApps(ctx context.Context, owner, repo, branch string) ([]*App, *Response, error) func (*RepositoriesService).RemoveAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error) func (*RepositoriesService).ReplaceAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error) func (*Timeline).GetPerformedViaGithubApp() *App
AppConfig describes the configuration of a GitHub App. ClientID *string ClientSecret *string CreatedAt *Timestamp Description *string ExternalURL *string HTMLURL *string ID *int64 Name *string NodeID *string Owner *User PEM *string Slug *string UpdatedAt *Timestamp WebhookSecret *string GetClientID returns the ClientID field if it's non-nil, zero value otherwise. GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPEM returns the PEM field if it's non-nil, zero value otherwise. GetSlug returns the Slug field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWebhookSecret returns the WebhookSecret field if it's non-nil, zero value otherwise. func (*AppsService).CompleteAppManifest(ctx context.Context, code string) (*AppConfig, *Response, error)
AppsService provides access to the installation related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/apps/ AddRepository adds a single repository to an installation. GitHub API docs: https://docs.github.com/rest/apps/installations#add-a-repository-to-an-app-installation CompleteAppManifest completes the App manifest handshake flow for the given code. GitHub API docs: https://docs.github.com/rest/apps/apps#create-a-github-app-from-a-manifest CreateAttachment creates a new attachment on user comment containing a url. GitHub API docs: https://docs.github.com/enterprise-server@3.3/rest/reference/apps#create-a-content-attachment CreateInstallationToken creates a new installation token. GitHub API docs: https://docs.github.com/rest/apps/apps#create-an-installation-access-token-for-an-app CreateInstallationTokenListRepos creates a new installation token with a list of all repositories in an installation which is not possible with CreateInstallationToken. It differs from CreateInstallationToken by taking InstallationTokenListRepoOptions as a parameter which does not omit RepositoryIDs if that field is nil or an empty array. GitHub API docs: https://docs.github.com/rest/apps/apps#create-an-installation-access-token-for-an-app DeleteInstallation deletes the specified installation. GitHub API docs: https://docs.github.com/rest/apps/apps#delete-an-installation-for-the-authenticated-app FindOrganizationInstallation finds the organization's installation information. GitHub API docs: https://docs.github.com/rest/apps/apps#get-an-organization-installation-for-the-authenticated-app FindRepositoryInstallation finds the repository's installation information. GitHub API docs: https://docs.github.com/rest/apps/apps#get-a-repository-installation-for-the-authenticated-app FindRepositoryInstallationByID finds the repository's installation information. Note: FindRepositoryInstallationByID uses the undocumented GitHub API endpoint "GET /repositories/{repository_id}/installation". FindUserInstallation finds the user's installation information. GitHub API docs: https://docs.github.com/rest/apps/apps#get-a-user-installation-for-the-authenticated-app Get a single GitHub App. Passing the empty string will get the authenticated GitHub App. Note: 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). GitHub API docs: https://docs.github.com/rest/apps/apps#get-an-app GitHub API docs: https://docs.github.com/rest/apps/apps#get-the-authenticated-app GetHookConfig returns the webhook configuration for a GitHub App. The underlying transport must be authenticated as an app. GitHub API docs: https://docs.github.com/rest/apps/webhooks#get-a-webhook-configuration-for-an-app GetHookDelivery returns the App webhook delivery with the specified ID. GitHub API docs: https://docs.github.com/rest/apps/webhooks#get-a-delivery-for-an-app-webhook GetInstallation returns the specified installation. GitHub API docs: https://docs.github.com/rest/apps/apps#get-an-installation-for-the-authenticated-app ListHookDeliveries lists deliveries of an App webhook. GitHub API docs: https://docs.github.com/rest/apps/webhooks#list-deliveries-for-an-app-webhook ListInstallationRequests lists the pending installation requests that the current GitHub App has. GitHub API docs: https://docs.github.com/rest/apps/apps#list-installation-requests-for-the-authenticated-app ListInstallations lists the installations that the current GitHub App has. GitHub API docs: https://docs.github.com/rest/apps/apps#list-installations-for-the-authenticated-app ListRepos lists the repositories that are accessible to the authenticated installation. GitHub API docs: https://docs.github.com/rest/apps/installations#list-repositories-accessible-to-the-app-installation ListUserInstallations lists installations that are accessible to the authenticated user. GitHub API docs: https://docs.github.com/rest/apps/installations#list-app-installations-accessible-to-the-user-access-token ListUserRepos lists repositories that are accessible to the authenticated user for an installation. GitHub API docs: https://docs.github.com/rest/apps/installations#list-repositories-accessible-to-the-user-access-token RedeliverHookDelivery redelivers a delivery for an App webhook. GitHub API docs: https://docs.github.com/rest/apps/webhooks#redeliver-a-delivery-for-an-app-webhook RemoveRepository removes a single repository from an installation. GitHub API docs: https://docs.github.com/rest/apps/installations#remove-a-repository-from-an-app-installation RevokeInstallationToken revokes an installation token. GitHub API docs: https://docs.github.com/rest/apps/installations#revoke-an-installation-access-token SuspendInstallation suspends the specified installation. GitHub API docs: https://docs.github.com/rest/apps/apps#suspend-an-app-installation UnsuspendInstallation unsuspends the specified installation. GitHub API docs: https://docs.github.com/rest/apps/apps#unsuspend-an-app-installation UpdateHookConfig updates the webhook configuration for a GitHub App. The underlying transport must be authenticated as an app. GitHub API docs: https://docs.github.com/rest/apps/webhooks#update-a-webhook-configuration-for-an-app
ArchivedAt represents an archiving date change. From *Timestamp To *Timestamp GetFrom returns the From field if it's non-nil, zero value otherwise. GetTo returns the To field if it's non-nil, zero value otherwise. func (*ProjectV2ItemChange).GetArchivedAt() *ArchivedAt
ArchiveFormat is used to define the archive type when calling GetArchiveLink. func (*RepositoriesService).GetArchiveLink(ctx context.Context, owner, repo string, archiveformat ArchiveFormat, opts *RepositoryContentGetOptions, maxRedirects int) (*url.URL, *Response, error) const Tarball const Zipball
Artifact represents a GitHub artifact. Artifacts allow sharing data between jobs in a workflow and provide storage for data once a workflow is complete. GitHub API docs: https://docs.github.com/rest/actions/artifacts ArchiveDownloadURL *string CreatedAt *Timestamp Expired *bool ExpiresAt *Timestamp ID *int64 Name *string NodeID *string SizeInBytes *int64 URL *string UpdatedAt *Timestamp WorkflowRun *ArtifactWorkflowRun GetArchiveDownloadURL returns the ArchiveDownloadURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetExpired returns the Expired field if it's non-nil, zero value otherwise. GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWorkflowRun returns the WorkflowRun field. func (*ActionsService).GetArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Artifact, *Response, error)
ArtifactList represents a list of GitHub artifacts. GitHub API docs: https://docs.github.com/rest/actions/artifacts#artifacts Artifacts []*Artifact TotalCount *int64 GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListArtifacts(ctx context.Context, owner, repo string, opts *ListOptions) (*ArtifactList, *Response, error) func (*ActionsService).ListWorkflowRunArtifacts(ctx context.Context, owner, repo string, runID int64, opts *ListOptions) (*ArtifactList, *Response, error)
ArtifactWorkflowRun represents a GitHub artifact's workflow run. GitHub API docs: https://docs.github.com/rest/actions/artifacts HeadBranch *string HeadRepositoryID *int64 HeadSHA *string ID *int64 RepositoryID *int64 GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. GetHeadRepositoryID returns the HeadRepositoryID field if it's non-nil, zero value otherwise. GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. func (*Artifact).GetWorkflowRun() *ArtifactWorkflowRun
Attachment represents a GitHub Apps attachment. Body *string ID *int64 Title *string GetBody returns the Body field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. func (*AppsService).CreateAttachment(ctx context.Context, contentReferenceID int64, title, body string) (*Attachment, *Response, error)
AuditEntry 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 // The name of the action that was performed, for example `user.login` or `repo.create`. // The actor who performed the action. ActorID *int64 ActorLocation *ActorLocation All fields that are not explicitly defined in the struct are captured here. Business *string BusinessID *int64 CreatedAt *Timestamp Some events types have a data field that contains additional information about the event. DocumentID *string ExternalIdentityNameID *string ExternalIdentityUsername *string HashedToken *string Org *string OrgID *int64 // The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time). TokenID *int64 TokenScopes *string // The user that was affected by the action performed (if available). UserID *int64 GetAction returns the Action field if it's non-nil, zero value otherwise. GetActor returns the Actor field if it's non-nil, zero value otherwise. GetActorID returns the ActorID field if it's non-nil, zero value otherwise. GetActorLocation returns the ActorLocation field. GetBusiness returns the Business field if it's non-nil, zero value otherwise. GetBusinessID returns the BusinessID field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDocumentID returns the DocumentID field if it's non-nil, zero value otherwise. GetExternalIdentityNameID returns the ExternalIdentityNameID field if it's non-nil, zero value otherwise. GetExternalIdentityUsername returns the ExternalIdentityUsername field if it's non-nil, zero value otherwise. GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. GetOrg returns the Org field if it's non-nil, zero value otherwise. GetOrgID returns the OrgID field if it's non-nil, zero value otherwise. GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. GetTokenID returns the TokenID field if it's non-nil, zero value otherwise. GetTokenScopes returns the TokenScopes field if it's non-nil, zero value otherwise. GetUser returns the User field if it's non-nil, zero value otherwise. GetUserID returns the UserID field if it's non-nil, zero value otherwise. (*AuditEntry) MarshalJSON() ([]byte, error) (*AuditEntry) UnmarshalJSON(data []byte) error *AuditEntry : github.com/goccy/go-json.Marshaler *AuditEntry : github.com/goccy/go-json.Unmarshaler *AuditEntry : encoding/json.Marshaler *AuditEntry : encoding/json.Unmarshaler func (*EnterpriseService).GetAuditLog(ctx context.Context, enterprise string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error) func (*OrganizationsService).GetAuditLog(ctx context.Context, org string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error)
Authorization represents an individual GitHub authorization. App *AuthorizationApp CreatedAt *Timestamp Fingerprint *string HashedToken *string ID *int64 Note *string NoteURL *string Scopes []Scope Token *string TokenLastEight *string URL *string UpdatedAt *Timestamp User is only populated by the Check and Reset methods. GetApp returns the App field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNote returns the Note field if it's non-nil, zero value otherwise. GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. GetToken returns the Token field if it's non-nil, zero value otherwise. GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( Authorization) String() string Authorization : expvar.Var Authorization : fmt.Stringer func (*AuthorizationsService).Check(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error) func (*AuthorizationsService).CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error) func (*AuthorizationsService).Reset(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error)
AuthorizationApp represents an individual GitHub app (in the context of authorization). ClientID *string Name *string URL *string GetClientID returns the ClientID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( AuthorizationApp) String() string AuthorizationApp : expvar.Var AuthorizationApp : fmt.Stringer func (*Authorization).GetApp() *AuthorizationApp func (*Grant).GetApp() *AuthorizationApp
AuthorizationRequest represents a request to create an authorization. ClientID *string ClientSecret *string Fingerprint *string Note *string NoteURL *string Scopes []Scope GetClientID returns the ClientID field if it's non-nil, zero value otherwise. GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. GetNote returns the Note field if it's non-nil, zero value otherwise. GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. ( AuthorizationRequest) String() string AuthorizationRequest : expvar.Var AuthorizationRequest : fmt.Stringer func (*AuthorizationsService).CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error)
AuthorizationsService handles communication with the authorization related methods of the GitHub API. This service requires HTTP Basic Authentication; it cannot be accessed using an OAuth token. GitHub API docs: https://docs.github.com/rest/oauth-authorizations Check if an OAuth token is valid for a specific app. Note 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. The returned Authorization.User field will be populated. GitHub API docs: https://docs.github.com/rest/apps/oauth-applications#check-a-token CreateImpersonation creates an impersonation OAuth token. This 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. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#create-an-impersonation-oauth-token DeleteGrant deletes an OAuth application grant. Deleting an application's grant will also delete all OAuth tokens associated with the application for the user. GitHub API docs: https://docs.github.com/rest/apps/oauth-applications#delete-an-app-authorization DeleteImpersonation deletes an impersonation OAuth token. NOTE: there can be only one at a time. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#delete-an-impersonation-oauth-token Reset 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. Note 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. The returned Authorization.User field will be populated. GitHub API docs: https://docs.github.com/rest/apps/oauth-applications#reset-a-token Revoke an authorization for an application. Note 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. GitHub API docs: https://docs.github.com/rest/apps/oauth-applications#delete-an-app-token
AuthorizationUpdateRequest represents a request to update an authorization. Note 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". GitHub API docs: https://docs.github.com/rest/oauth-authorizations#update-an-existing-authorization AddScopes []string Fingerprint *string Note *string NoteURL *string RemoveScopes []string Scopes []string GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. GetNote returns the Note field if it's non-nil, zero value otherwise. GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. ( AuthorizationUpdateRequest) String() string AuthorizationUpdateRequest : expvar.Var AuthorizationUpdateRequest : fmt.Stringer
AuthorizedActorNames represents who are authorized to edit the branch protection rules. From []string func (*ProtectionChanges).GetAuthorizedActorNames() *AuthorizedActorNames
AuthorizedActorsOnly represents if the branch rule can be edited by authorized actors only. From *bool GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetAuthorizedActorsOnly() *AuthorizedActorsOnly
AuthorizedDismissalActorsOnlyChanges represents the changes made to the AuthorizedDismissalActorsOnly policy. From *bool GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetAuthorizedDismissalActorsOnly() *AuthorizedDismissalActorsOnlyChanges
AutolinkOptions specifies parameters for RepositoriesService.AddAutolink method. IsAlphanumeric *bool KeyPrefix *string URLTemplate *string GetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise. GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. func (*RepositoriesService).AddAutolink(ctx context.Context, owner, repo string, opts *AutolinkOptions) (*Autolink, *Response, error)
AutomatedSecurityFixes represents their status. Enabled *bool Paused *bool GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. GetPaused returns the Paused field if it's non-nil, zero value otherwise. func (*RepositoriesService).GetAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*AutomatedSecurityFixes, *Response, error)
AutoTriggerCheck enables or disables automatic creation of CheckSuite events upon pushes to the repository. // The id of the GitHub App. (Required.) // Set to "true" to enable automatic creation of CheckSuite events upon pushes to the repository, or "false" to disable them. Default: "true" (Required.) GetAppID returns the AppID field if it's non-nil, zero value otherwise. GetSetting returns the Setting field if it's non-nil, zero value otherwise.
BasicAuthTransport 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. // one-time password for users with two-factor auth enabled // GitHub password Transport is the underlying HTTP transport to use when making requests. It will default to http.DefaultTransport if nil. // GitHub username Client returns an *http.Client that makes requests that are authenticated using HTTP Basic Authentication. RoundTrip implements the RoundTripper interface. *BasicAuthTransport : net/http.RoundTripper
BillingService provides access to the billing related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/billing GetActionsBillingOrg returns the summary of the free and paid GitHub Actions minutes used for an Org. GitHub API docs: https://docs.github.com/rest/billing/billing#get-github-actions-billing-for-an-organization GetActionsBillingUser returns the summary of the free and paid GitHub Actions minutes used for a user. GitHub API docs: https://docs.github.com/rest/billing/billing#get-github-actions-billing-for-a-user GetAdvancedSecurityActiveCommittersOrg returns the GitHub Advanced Security active committers for an organization per repository. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/billing/billing#get-github-advanced-security-active-committers-for-an-organization GetPackagesBillingOrg returns the free and paid storage used for GitHub Packages in gigabytes for an Org. GitHub API docs: https://docs.github.com/rest/billing/billing#get-github-packages-billing-for-an-organization GetPackagesBillingUser returns the free and paid storage used for GitHub Packages in gigabytes for a user. GitHub API docs: https://docs.github.com/rest/billing/billing#get-github-packages-billing-for-a-user GetStorageBillingOrg returns the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages in gigabytes for an Org. GitHub API docs: https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-an-organization GetStorageBillingUser returns the estimated paid and estimated total storage used for GitHub Actions and GitHub Packages in gigabytes for a user. GitHub API docs: https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-a-user
Blob represents a blob object. Content *string Encoding *string NodeID *string SHA *string Size *int URL *string GetContent returns the Content field if it's non-nil, zero value otherwise. GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*GitService).CreateBlob(ctx context.Context, owner string, repo string, blob *Blob) (*Blob, *Response, error) func (*GitService).GetBlob(ctx context.Context, owner string, repo string, sha string) (*Blob, *Response, error) func (*GitService).CreateBlob(ctx context.Context, owner string, repo string, blob *Blob) (*Blob, *Response, error)
BlockCreations 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. Enabled *bool GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. func (*Protection).GetBlockCreations() *BlockCreations
Branch represents a repository branch Commit *RepositoryCommit Name *string Protected *bool Protection will always be included in APIs which return the 'Branch With Protection' schema such as 'Get a branch', but may not be included in APIs that return the `Short Branch` schema such as 'List branches'. In such cases, if branch protection is enabled, Protected will be `true` but this will be nil, and additional protection details can be obtained by calling GetBranch(). GetCommit returns the Commit field. GetName returns the Name field if it's non-nil, zero value otherwise. GetProtected returns the Protected field if it's non-nil, zero value otherwise. GetProtection returns the Protection field. func (*RepositoriesService).GetBranch(ctx context.Context, owner, repo, branch string, maxRedirects int) (*Branch, *Response, error) func (*RepositoriesService).ListBranches(ctx context.Context, owner string, repo string, opts *BranchListOptions) ([]*Branch, *Response, error) func (*RepositoriesService).RenameBranch(ctx context.Context, owner, repo, branch, newName string) (*Branch, *Response, error)
BranchCommit is the result of listing branches with commit SHA. Commit *Commit Name *string Protected *bool GetCommit returns the Commit field. GetName returns the Name field if it's non-nil, zero value otherwise. GetProtected returns the Protected field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListBranchesHeadCommit(ctx context.Context, owner, repo, sha string) ([]*BranchCommit, *Response, error)
BranchListOptions specifies the optional parameters to the RepositoriesService.ListBranches method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Setting to true returns only protected branches. When set to false, only unprotected branches are returned. Omitting this parameter returns all branches. Default: nil GetProtected returns the Protected field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListBranches(ctx context.Context, owner string, repo string, opts *BranchListOptions) ([]*Branch, *Response, error)
BranchPolicy represents the options for whether a branch deployment policy is applied to this environment. CustomBranchPolicies *bool ProtectedBranches *bool GetCustomBranchPolicies returns the CustomBranchPolicies field if it's non-nil, zero value otherwise. GetProtectedBranches returns the ProtectedBranches field if it's non-nil, zero value otherwise. func (*CreateUpdateEnvironment).GetDeploymentBranchPolicy() *BranchPolicy func (*Environment).GetDeploymentBranchPolicy() *BranchPolicy
BranchProtectionRule represents the rule applied to a repositories branch. AdminEnforced *bool AllowDeletionsEnforcementLevel *string AllowForcePushesEnforcementLevel *string AuthorizedActorNames []string AuthorizedActorsOnly *bool AuthorizedDismissalActorsOnly *bool CreatedAt *Timestamp DismissStaleReviewsOnPush *bool ID *int64 IgnoreApprovalsFromContributors *bool LinearHistoryRequirementEnforcementLevel *string MergeQueueEnforcementLevel *string Name *string PullRequestReviewsEnforcementLevel *string RepositoryID *int64 RequireCodeOwnerReview *bool RequiredApprovingReviewCount *int RequiredConversationResolutionLevel *string RequiredDeploymentsEnforcementLevel *string RequiredStatusChecks []string RequiredStatusChecksEnforcementLevel *string SignatureRequirementEnforcementLevel *string StrictRequiredStatusChecksPolicy *bool UpdatedAt *Timestamp GetAdminEnforced returns the AdminEnforced field if it's non-nil, zero value otherwise. GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field if it's non-nil, zero value otherwise. GetAllowForcePushesEnforcementLevel returns the AllowForcePushesEnforcementLevel field if it's non-nil, zero value otherwise. GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field if it's non-nil, zero value otherwise. GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetIgnoreApprovalsFromContributors returns the IgnoreApprovalsFromContributors field if it's non-nil, zero value otherwise. GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field if it's non-nil, zero value otherwise. GetMergeQueueEnforcementLevel returns the MergeQueueEnforcementLevel field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field if it's non-nil, zero value otherwise. GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field if it's non-nil, zero value otherwise. GetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field if it's non-nil, zero value otherwise. GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field if it's non-nil, zero value otherwise. GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field if it's non-nil, zero value otherwise. GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field if it's non-nil, zero value otherwise. GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field if it's non-nil, zero value otherwise. GetStrictRequiredStatusChecksPolicy returns the StrictRequiredStatusChecksPolicy field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*BranchProtectionRuleEvent).GetRule() *BranchProtectionRule
BranchProtectionRuleEvent triggered when a check suite is "created", "edited", or "deleted". The Webhook event name is "branch_protection_rule". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule Action *string Changes *ProtectionChanges Installation *Installation Org *Organization Repo *Repository Rule *BranchProtectionRule Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetRule returns the Rule field. GetSender returns the Sender field.
BranchRestrictions represents the restriction that only certain users or teams may push to a branch. The list of app slugs with push access. The list of team slugs with push access. The list of user logins with push access. func (*Protection).GetRestrictions() *BranchRestrictions
BranchRestrictionsRequest 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. The list of app slugs with push access. The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.) The list of user logins with push access. (Required; use []string{} instead of nil for empty list.) func (*ProtectionRequest).GetRestrictions() *BranchRestrictionsRequest
BypassActor represents the bypass actors from a ruleset. ActorID *int64 Possible values for ActorType are: RepositoryRole, Team, Integration, OrganizationAdmin Possible values for BypassMode are: always, pull_request GetActorID returns the ActorID field if it's non-nil, zero value otherwise. GetActorType returns the ActorType field if it's non-nil, zero value otherwise. GetBypassMode returns the BypassMode field if it's non-nil, zero value otherwise.
BypassPullRequestAllowances represents the people, teams, or apps who are allowed to bypass required pull requests. The list of app slugs with push access. The list of team slugs with push access. The list of user logins with push access. func (*PullRequestReviewsEnforcement).GetBypassPullRequestAllowances() *BypassPullRequestAllowances
BypassPullRequestAllowancesRequest 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. The list of app slugs with push access. The list of team slugs with push access. (Required; use []string{} instead of nil for empty list.) The list of user logins with push access. (Required; use []string{} instead of nil for empty list.) func (*PullRequestReviewsEnforcementRequest).GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest func (*PullRequestReviewsEnforcementUpdate).GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest
CheckRun represents a GitHub check run on a repository associated with a GitHub app. App *App CheckSuite *CheckSuite CompletedAt *Timestamp Conclusion *string DetailsURL *string ExternalID *string HTMLURL *string HeadSHA *string ID *int64 Name *string NodeID *string Output *CheckRunOutput PullRequests []*PullRequest StartedAt *Timestamp Status *string URL *string GetApp returns the App field. GetCheckSuite returns the CheckSuite field. GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOutput returns the Output field. GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( CheckRun) String() string CheckRun : expvar.Var CheckRun : fmt.Stringer func (*CheckRunEvent).GetCheckRun() *CheckRun func (*ChecksService).CreateCheckRun(ctx context.Context, owner, repo string, opts CreateCheckRunOptions) (*CheckRun, *Response, error) func (*ChecksService).GetCheckRun(ctx context.Context, owner, repo string, checkRunID int64) (*CheckRun, *Response, error) func (*ChecksService).UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, opts UpdateCheckRunOptions) (*CheckRun, *Response, error)
CheckRunAction exposes further actions the integrator can perform, which a user may trigger. // A short explanation of what this action would do. The maximum size is 40 characters. (Required.) // A reference for the action on the integrator's system. The maximum size is 20 characters. (Required.) // The text to be displayed on a button in the web UI. The maximum size is 20 characters. (Required.)
CheckRunAnnotation represents an annotation object for a CheckRun output. AnnotationLevel *string EndColumn *int EndLine *int Message *string Path *string RawDetails *string StartColumn *int StartLine *int Title *string GetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise. GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise. GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. func (*ChecksService).ListCheckRunAnnotations(ctx context.Context, owner, repo string, checkRunID int64, opts *ListOptions) ([]*CheckRunAnnotation, *Response, error)
CheckRunEvent is triggered when a check run is "created", "completed", or "rerequested". The Webhook event name is "check_run". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#check_run The action performed. Possible values are: "created", "completed", "rerequested" or "requested_action". CheckRun *CheckRun Installation *Installation Org *Organization The following fields are only populated by Webhook events. The action requested by the user. Populated when the Action is "requested_action". Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetCheckRun returns the CheckRun field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetRequestedAction returns the RequestedAction field. GetSender returns the Sender field.
CheckRunImage represents an image object for a CheckRun output. Alt *string Caption *string ImageURL *string GetAlt returns the Alt field if it's non-nil, zero value otherwise. GetCaption returns the Caption field if it's non-nil, zero value otherwise. GetImageURL returns the ImageURL field if it's non-nil, zero value otherwise.
CheckRunOutput represents the output of a CheckRun. Annotations []*CheckRunAnnotation AnnotationsCount *int AnnotationsURL *string Images []*CheckRunImage Summary *string Text *string Title *string GetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise. GetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise. GetSummary returns the Summary field if it's non-nil, zero value otherwise. GetText returns the Text field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. func (*CheckRun).GetOutput() *CheckRunOutput func (*CreateCheckRunOptions).GetOutput() *CheckRunOutput func (*UpdateCheckRunOptions).GetOutput() *CheckRunOutput
ChecksService provides access to the Checks API in the GitHub API. GitHub API docs: https://docs.github.com/rest/checks/ CreateCheckRun creates a check run for repository. GitHub API docs: https://docs.github.com/rest/checks/runs#create-a-check-run CreateCheckSuite manually creates a check suite for a repository. GitHub API docs: https://docs.github.com/rest/checks/suites#create-a-check-suite GetCheckRun gets a check-run for a repository. GitHub API docs: https://docs.github.com/rest/checks/runs#get-a-check-run GetCheckSuite gets a single check suite. GitHub API docs: https://docs.github.com/rest/checks/suites#get-a-check-suite ListCheckRunAnnotations lists the annotations for a check run. GitHub API docs: https://docs.github.com/rest/checks/runs#list-check-run-annotations ListCheckRunsCheckSuite lists check runs for a check suite. GitHub API docs: https://docs.github.com/rest/checks/runs#list-check-runs-in-a-check-suite ListCheckRunsForRef lists check runs for a specific ref. GitHub API docs: https://docs.github.com/rest/checks/runs#list-check-runs-for-a-git-reference ListCheckSuitesForRef lists check suite for a specific ref. GitHub API docs: https://docs.github.com/rest/checks/suites#list-check-suites-for-a-git-reference ReRequestCheckRun triggers GitHub to rerequest an existing check run. GitHub API docs: https://docs.github.com/rest/checks/runs#rerequest-a-check-run ReRequestCheckSuite triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. GitHub API docs: https://docs.github.com/rest/checks/suites#rerequest-a-check-suite SetCheckSuitePreferences changes the default automatic flow when creating check suites. GitHub API docs: https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites UpdateCheckRun updates a check run for a specific commit in a repository. GitHub API docs: https://docs.github.com/rest/checks/runs#update-a-check-run
CheckSuite represents a suite of check runs. AfterSHA *string App *App BeforeSHA *string Conclusion *string CreatedAt *Timestamp HeadBranch *string The following fields are only populated by Webhook events. HeadSHA *string ID *int64 LatestCheckRunsCount *int64 NodeID *string PullRequests []*PullRequest Repository *Repository Rerequstable *bool RunsRerequstable *bool Status *string URL *string UpdatedAt *Timestamp GetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise. GetApp returns the App field. GetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. GetHeadCommit returns the HeadCommit field. GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLatestCheckRunsCount returns the LatestCheckRunsCount field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetRerequstable returns the Rerequstable field if it's non-nil, zero value otherwise. GetRunsRerequstable returns the RunsRerequstable field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( CheckSuite) String() string CheckSuite : expvar.Var CheckSuite : fmt.Stringer func (*CheckRun).GetCheckSuite() *CheckSuite func (*ChecksService).CreateCheckSuite(ctx context.Context, owner, repo string, opts CreateCheckSuiteOptions) (*CheckSuite, *Response, error) func (*ChecksService).GetCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*CheckSuite, *Response, error) func (*CheckSuiteEvent).GetCheckSuite() *CheckSuite
CheckSuiteEvent is triggered when a check suite is "completed", "requested", or "rerequested". The Webhook event name is "check_suite". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#check_suite The action performed. Possible values are: "completed", "requested" or "rerequested". CheckSuite *CheckSuite Installation *Installation Org *Organization The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetCheckSuite returns the CheckSuite field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
CheckSuitePreferenceOptions set options for check suite preferences for a repository. // A slice of auto trigger checks that can be set for a check suite in a repository. func (*ChecksService).SetCheckSuitePreferences(ctx context.Context, owner, repo string, opts CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error)
CheckSuitePreferenceResults represents the results of the preference set operation. Preferences *PreferenceList Repository *Repository GetPreferences returns the Preferences field. GetRepository returns the Repository field. func (*ChecksService).SetCheckSuitePreferences(ctx context.Context, owner, repo string, opts CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error)
A Client manages communication with the GitHub API. Services used for talking to different parts of the GitHub API. Activity *ActivityService Admin *AdminService Apps *AppsService Authorizations *AuthorizationsService Base URL for API requests. Defaults to the public GitHub API, but can be set to a domain endpoint to use with GitHub Enterprise. BaseURL should always be specified with a trailing slash. Billing *BillingService Checks *ChecksService CodeScanning *CodeScanningService CodesOfConduct *CodesOfConductService Codespaces *CodespacesService Copilot *CopilotService Dependabot *DependabotService DependencyGraph *DependencyGraphService Emojis *EmojisService Enterprise *EnterpriseService Gists *GistsService Git *GitService Gitignores *GitignoresService Interactions *InteractionsService IssueImport *IssueImportService Issues *IssuesService Licenses *LicensesService Markdown *MarkdownService Marketplace *MarketplaceService Meta *MetaService Migrations *MigrationService Organizations *OrganizationsService Projects *ProjectsService PullRequests *PullRequestsService RateLimit *RateLimitService Reactions *ReactionsService Repositories *RepositoriesService SCIM *SCIMService Search *SearchService SecretScanning *SecretScanningService SecurityAdvisories *SecurityAdvisoriesService Teams *TeamsService Base URL for uploading files. User agent used when communicating with the GitHub API. Users *UsersService APIMeta returns information about GitHub.com. Deprecated: Use MetaService.Get instead. BareDo 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. The provided ctx must be non-nil, if it is nil an error is returned. If it is canceled or times out, ctx.Err() will be returned. Client returns the http.Client used by this GitHub client. This should only be used for requests to the GitHub API because request headers will contain an authorization token. Do 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. The provided ctx must be non-nil, if it is nil an error is returned. If it is canceled or times out, ctx.Err() will be returned. GetCodeOfConduct returns an individual code of conduct. Deprecated: Use CodesOfConductService.Get instead ListCodesOfConduct returns all codes of conduct. Deprecated: Use CodesOfConductService.List instead ListEmojis returns the emojis available to use on GitHub. Deprecated: Use EmojisService.List instead NewFormRequest 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. NewRequest 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. NewUploadRequest 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. Octocat returns an ASCII art octocat with the specified message in a speech bubble. If message is empty, a random zen phrase is used. Deprecated: Use MetaService.Octocat instead. RateLimits returns the rate limits for the current client. Deprecated: Use RateLimitService.Get instead. WithAuthToken returns a copy of the client configured to use the provided token for the Authorization header. WithEnterpriseURLs returns a copy of the client configured to use the provided base and upload URLs. If the base URL does not have the suffix "/api/v3/", it will be added automatically. If the upload URL does not have the suffix "/api/uploads", it will be added automatically. Note that WithEnterpriseURLs is a convenience helper only; its behavior is equivalent to setting the BaseURL and UploadURL fields. Another important thing is that by default, the GitHub Enterprise URL format should be http(s)://[hostname]/api/v3/ or you will always receive the 406 status code. The upload URL format should be http(s)://[hostname]/api/uploads/. Zen returns a random line from The Zen of GitHub. Deprecated: Use MetaService.Zen instead. func NewClient(httpClient *http.Client) *Client func NewClientWithEnvProxy() *Client func NewEnterpriseClient(baseURL, uploadURL string, httpClient *http.Client) (*Client, error) func NewTokenClient(_ context.Context, token string) *Client func (*Client).WithAuthToken(token string) *Client func (*Client).WithEnterpriseURLs(baseURL, uploadURL string) (*Client, error)
CodeOfConduct represents a code of conduct. Body *string Key *string Name *string URL *string GetBody returns the Body field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. (*CodeOfConduct) String() string *CodeOfConduct : expvar.Var *CodeOfConduct : fmt.Stringer func (*Client).GetCodeOfConduct(ctx context.Context, key string) (*CodeOfConduct, *Response, error) func (*Client).ListCodesOfConduct(ctx context.Context) ([]*CodeOfConduct, *Response, error) func (*CodesOfConductService).Get(ctx context.Context, key string) (*CodeOfConduct, *Response, error) func (*CodesOfConductService).List(ctx context.Context) ([]*CodeOfConduct, *Response, error) func (*RepositoriesService).GetCodeOfConduct(ctx context.Context, owner, repo string) (*CodeOfConduct, *Response, error) func (*Repository).GetCodeOfConduct() *CodeOfConduct
CodeownersError represents a syntax error detected in the CODEOWNERS file. Column int Kind string Line int Message string Path string Source string Suggestion *string GetSuggestion returns the Suggestion field if it's non-nil, zero value otherwise.
CodeownersErrors represents a list of syntax errors detected in the CODEOWNERS file. Errors []*CodeownersError func (*RepositoriesService).GetCodeownersErrors(ctx context.Context, owner, repo string, opts *GetCodeownersErrorsOptions) (*CodeownersErrors, *Response, error)
CodeQLDatabase represents a metadata about the CodeQL database. GitHub API docs: https://docs.github.com/rest/code-scanning ContentType *string CreatedAt *Timestamp ID *int64 Language *string Name *string Size *int64 URL *string UpdatedAt *Timestamp Uploader *User GetContentType returns the ContentType field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLanguage returns the Language field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUploader returns the Uploader field. func (*CodeScanningService).GetCodeQLDatabase(ctx context.Context, owner, repo, language string) (*CodeQLDatabase, *Response, error) func (*CodeScanningService).ListCodeQLDatabases(ctx context.Context, owner, repo string) ([]*CodeQLDatabase, *Response, error)
CodeResult represents a single search result. HTMLURL *string Name *string Path *string Repository *Repository SHA *string TextMatches []*TextMatch GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetSHA returns the SHA field if it's non-nil, zero value otherwise. ( CodeResult) String() string CodeResult : expvar.Var CodeResult : fmt.Stringer
CodeScanningAlertEvent is triggered when a code scanning finds a potential vulnerability or error in your code. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#code_scanning_alert Action *string Alert *Alert CommitOID is the commit SHA of the code scanning alert Installation *Installation Org *Organization Ref *string Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAlert returns the Alert field. GetCommitOID returns the CommitOID field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetSender returns the Sender field.
CodeScanningAlertState specifies the state of a code scanning alert. GitHub API docs: https://docs.github.com/rest/code-scanning DismissedComment is associated with the dismissal of the alert. DismissedReason represents the reason for dismissing or closing the alert. It is required when the state is "dismissed". It can be one of: "false positive", "won't fix", "used in tests". State sets the state of the code scanning alert and is a required field. You must also provide DismissedReason when you set the state to "dismissed". State can be one of: "open", "dismissed". GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. func (*CodeScanningService).UpdateAlert(ctx context.Context, owner, repo string, id int64, stateInfo *CodeScanningAlertState) (*Alert, *Response, error)
CodeScanningService handles communication with the code scanning related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/code-scanning DeleteAnalysis deletes a single code scanning analysis from a repository. You 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. The security analysis_id is the ID of the analysis, as returned from the ListAnalysesForRepo operation. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository GetAlert gets a single code scanning alert for 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. The security alert_id is the number at the end of the security alert's URL. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-alert GetAnalysis gets a single code scanning analysis for 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. The security analysis_id is the ID of the analysis, as returned from the ListAnalysesForRepo operation. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository GetCodeQLDatabase gets a CodeQL database for a language in a repository. You 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository GetDefaultSetupConfiguration gets a code scanning default setup configuration. You 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration GetSARIF gets information about a SARIF upload. 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload ListAlertInstances lists instances of a code scanning alert. 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert ListAlertsForOrg lists code scanning alerts for an org. 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization ListAlertsForRepo lists code scanning alerts for a repository. Lists 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository ListAnalysesForRepo lists code scanning analyses for a repository. Lists 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository ListCodeQLDatabases lists the CodeQL databases that are available in a repository. You 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository UpdateAlert updates the state of a single code scanning alert for 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. The security alert_id is the number at the end of the security alert's URL. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-alert UpdateDefaultSetupConfiguration updates a code scanning default setup configuration. You 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. This 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration UploadSarif uploads the result of code scanning job to GitHub. For 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. GitHub API docs: https://docs.github.com/rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data
CodeSearchResult represents the result of a code search. CodeResults []*CodeResult IncompleteResults *bool Total *int GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Code(ctx context.Context, query string, opts *SearchOptions) (*CodeSearchResult, *Response, error)
CodesOfConductService provides access to code-of-conduct-related functions in the GitHub API. Get returns an individual code of conduct. GitHub API docs: https://docs.github.com/rest/codes-of-conduct/codes-of-conduct#get-a-code-of-conduct List returns all codes of conduct. GitHub API docs: https://docs.github.com/rest/codes-of-conduct/codes-of-conduct#get-all-codes-of-conduct
Codespace represents a codespace. GitHub API docs: https://docs.github.com/rest/codespaces BillableOwner *User CreatedAt *Timestamp DevcontainerPath *string DisplayName *string EnvironmentID *string GitStatus *CodespacesGitStatus ID *int64 IdleTimeoutMinutes *int IdleTimeoutNotice *string LastKnownStopNotice *string LastUsedAt *Timestamp Location *string Machine *CodespacesMachine MachinesURL *string Name *string Owner *User PendingOperation *bool PendingOperationDisabledReason *string Prebuild *bool PullsURL *string RecentFolders []string Repository *Repository RetentionExpiresAt *Timestamp RetentionPeriodMinutes *int RuntimeConstraints *CodespacesRuntimeConstraints StartURL *string State *string StopURL *string URL *string UpdatedAt *Timestamp WebURL *string GetBillableOwner returns the BillableOwner field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise. GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. GetEnvironmentID returns the EnvironmentID field if it's non-nil, zero value otherwise. GetGitStatus returns the GitStatus field. GetID returns the ID field if it's non-nil, zero value otherwise. GetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise. GetIdleTimeoutNotice returns the IdleTimeoutNotice field if it's non-nil, zero value otherwise. GetLastKnownStopNotice returns the LastKnownStopNotice field if it's non-nil, zero value otherwise. GetLastUsedAt returns the LastUsedAt field if it's non-nil, zero value otherwise. GetLocation returns the Location field if it's non-nil, zero value otherwise. GetMachine returns the Machine field. GetMachinesURL returns the MachinesURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPendingOperation returns the PendingOperation field if it's non-nil, zero value otherwise. GetPendingOperationDisabledReason returns the PendingOperationDisabledReason field if it's non-nil, zero value otherwise. GetPrebuild returns the Prebuild field if it's non-nil, zero value otherwise. GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetRetentionExpiresAt returns the RetentionExpiresAt field if it's non-nil, zero value otherwise. GetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise. GetRuntimeConstraints returns the RuntimeConstraints field. GetStartURL returns the StartURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetStopURL returns the StopURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWebURL returns the WebURL field if it's non-nil, zero value otherwise. func (*CodespacesService).CreateInRepo(ctx context.Context, owner, repo string, request *CreateCodespaceOptions) (*Codespace, *Response, error) func (*CodespacesService).Start(ctx context.Context, codespaceName string) (*Codespace, *Response, error) func (*CodespacesService).Stop(ctx context.Context, codespaceName string) (*Codespace, *Response, error)
CodespacesGitStatus represents the git status of a codespace. Ahead *int Behind *int HasUncommittedChanges *bool HasUnpushedChanges *bool Ref *string GetAhead returns the Ahead field if it's non-nil, zero value otherwise. GetBehind returns the Behind field if it's non-nil, zero value otherwise. GetHasUncommittedChanges returns the HasUncommittedChanges field if it's non-nil, zero value otherwise. GetHasUnpushedChanges returns the HasUnpushedChanges field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. func (*Codespace).GetGitStatus() *CodespacesGitStatus
CodespacesMachine represents the machine type of a codespace. CPUs *int DisplayName *string MemoryInBytes *int64 Name *string OperatingSystem *string PrebuildAvailability *string StorageInBytes *int64 GetCPUs returns the CPUs field if it's non-nil, zero value otherwise. GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. GetMemoryInBytes returns the MemoryInBytes field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOperatingSystem returns the OperatingSystem field if it's non-nil, zero value otherwise. GetPrebuildAvailability returns the PrebuildAvailability field if it's non-nil, zero value otherwise. GetStorageInBytes returns the StorageInBytes field if it's non-nil, zero value otherwise. func (*Codespace).GetMachine() *CodespacesMachine
CodespacesRuntimeConstraints represents the runtime constraints of a codespace. AllowedPortPrivacySettings []string func (*Codespace).GetRuntimeConstraints() *CodespacesRuntimeConstraints
CodespacesService handles communication with the Codespaces related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/codespaces/ AddSelectedRepoToOrgSecret adds a repository to the list of repositories that have been granted the ability to use an organization's codespace secret. Adds 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#add-selected-repository-to-an-organization-secret AddSelectedRepoToUserSecret adds a repository to the list of repositories that have been granted the ability to use a user's codespace secret. Adds 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret CreateInRepo creates a codespace in a repository. Creates 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. GitHub API docs: https://docs.github.com/rest/codespaces/codespaces#create-a-codespace-in-a-repository CreateOrUpdateOrgSecret creates or updates an orgs codespace secret Creates 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#create-or-update-an-organization-secret CreateOrUpdateRepoSecret creates or updates a repos codespace secret Creates 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. GitHub API docs: https://docs.github.com/rest/codespaces/repository-secrets#create-or-update-a-repository-secret CreateOrUpdateUserSecret creates or updates a users codespace secret Creates 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#create-or-update-a-secret-for-the-authenticated-user Delete deletes a codespace. 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. GitHub API docs: https://docs.github.com/rest/codespaces/codespaces#delete-a-codespace-for-the-authenticated-user DeleteOrgSecret deletes an orgs codespace secret Deletes an organization secret using the secret name. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#delete-an-organization-secret DeleteRepoSecret deletes a repos codespace secret Deletes 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. GitHub API docs: https://docs.github.com/rest/codespaces/repository-secrets#delete-a-repository-secret DeleteUserSecret deletes a users codespace secret Deletes 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#delete-a-secret-for-the-authenticated-user GetOrgPublicKey gets the org public key for encrypting codespace secrets Gets 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key GetOrgSecret gets an org codespace secret Gets an organization secret without revealing its encrypted value. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-secret GetRepoPublicKey gets the repo public key for encrypting codespace secrets Gets 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. GitHub API docs: https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key GetRepoSecret gets a repo codespace secret Gets 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. GitHub API docs: https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-secret GetUserPublicKey gets the users public key for encrypting codespace secrets Gets 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user GetUserSecret gets a users codespace secret Gets 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#get-a-secret-for-the-authenticated-user List lists codespaces for an authenticated user. Lists 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. GitHub API docs: https://docs.github.com/rest/codespaces/codespaces#list-codespaces-for-the-authenticated-user ListInRepo lists codespaces for a user in a repository. Lists 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. GitHub API docs: https://docs.github.com/rest/codespaces/codespaces#list-codespaces-in-a-repository-for-the-authenticated-user ListOrgSecrets list all secrets available to an org Lists 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#list-organization-secrets ListRepoSecrets list all secrets available to a repo Lists 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. GitHub API docs: https://docs.github.com/rest/codespaces/repository-secrets#list-repository-secrets ListSelectedReposForOrgSecret lists the repositories that have been granted the ability to use an organization's codespace secret. Lists 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret ListSelectedReposForUserSecret lists the repositories that have been granted the ability to use 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 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret ListUserSecrets list all secrets available for a users codespace Lists 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#list-secrets-for-the-authenticated-user RemoveSelectedRepoFromOrgSecret removes a repository from the list of repositories that have been granted the ability to use an organization's codespace secret. Removes 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret RemoveSelectedRepoFromUserSecret removes a repository from the list of repositories that have been granted the ability to use a user's codespace secret. Removes 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. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret SetSelectedReposForOrgSecret sets the repositories that have been granted the ability to use a user's codespace secret. Replaces 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. GitHub API docs: https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret SetSelectedReposForUserSecret sets the repositories that have been granted the ability to use 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 all referenced repositories to use this endpoint. GitHub API docs: https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret Start starts a codespace. You 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. GitHub API docs: https://docs.github.com/rest/codespaces/codespaces#start-a-codespace-for-the-authenticated-user Stop stops a codespace. You 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. GitHub API docs: https://docs.github.com/rest/codespaces/codespaces#stop-a-codespace-for-the-authenticated-user
CollaboratorInvitation represents an invitation created when adding a collaborator. GitHub API docs: https://docs.github.com/rest/repos/collaborators/#response-when-a-new-invitation-is-created CreatedAt *Timestamp HTMLURL *string ID *int64 Invitee *User Inviter *User Permissions *string Repo *Repository URL *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInvitee returns the Invitee field. GetInviter returns the Inviter field. GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*RepositoriesService).AddCollaborator(ctx context.Context, owner, repo, user string, opts *RepositoryAddCollaboratorOptions) (*CollaboratorInvitation, *Response, error)
CombinedStatus represents the combined status of a repository at a particular reference. CommitURL *string Name *string RepositoryURL *string SHA *string State is the combined state of the repository. Possible values are: failure, pending, or success. Statuses []*RepoStatus TotalCount *int GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. ( CombinedStatus) String() string CombinedStatus : expvar.Var CombinedStatus : fmt.Stringer func (*RepositoriesService).GetCombinedStatus(ctx context.Context, owner, repo, ref string, opts *ListOptions) (*CombinedStatus, *Response, error)
Comment represents comments of issue to import. Body string CreatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
CommentDiscussion represents a comment in a GitHub DiscussionCommentEvent. AuthorAssociation *string Body *string ChildCommentCount *int CreatedAt *Timestamp DiscussionID *int64 HTMLURL *string ID *int64 NodeID *string ParentID *int64 Reactions *Reactions RepositoryURL *string UpdatedAt *Timestamp User *User GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetChildCommentCount returns the ChildCommentCount field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDiscussionID returns the DiscussionID field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetParentID returns the ParentID field if it's non-nil, zero value otherwise. GetReactions returns the Reactions field. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*DiscussionCommentEvent).GetComment() *CommentDiscussion
CommentStats represents the number of total comments on commits, gists, issues and pull requests. TotalCommitComments *int TotalGistComments *int TotalIssueComments *int TotalPullRequestComments *int GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise. GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise. GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise. GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise. ( CommentStats) String() string CommentStats : expvar.Var CommentStats : fmt.Stringer func (*AdminStats).GetComments() *CommentStats
Commit represents a GitHub commit. Author *CommitAuthor CommentCount is the number of GitHub comments on the commit. This is only populated for requests that fetch GitHub data like Pulls.ListCommits, Repositories.ListCommits, etc. Committer *CommitAuthor HTMLURL *string Message *string NodeID *string Parents []*Commit SHA *string Stats *CommitStats Tree *Tree URL *string Verification *SignatureVerification GetAuthor returns the Author field. GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. GetCommitter returns the Committer field. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetStats returns the Stats field. GetTree returns the Tree field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetVerification returns the Verification field. ( Commit) String() string Commit : expvar.Var Commit : fmt.Stringer func (*BranchCommit).GetCommit() *Commit func (*CheckSuite).GetHeadCommit() *Commit func (*CommitResult).GetCommit() *Commit func (*GitService).CreateCommit(ctx context.Context, owner string, repo string, commit *Commit, opts *CreateCommitOptions) (*Commit, *Response, error) func (*GitService).GetCommit(ctx context.Context, owner string, repo string, sha string) (*Commit, *Response, error) func (*MergeGroup).GetHeadCommit() *Commit func (*RepositoryCommit).GetCommit() *Commit func (*RepositoryTag).GetCommit() *Commit func (*GitService).CreateCommit(ctx context.Context, owner string, repo string, commit *Commit, opts *CreateCommitOptions) (*Commit, *Response, error)
CommitAuthor represents the author or committer of a commit. The commit author may not correspond to a GitHub User. Date *Timestamp Email *string The following fields are only populated by Webhook events. // Renamed for go-github consistency. Name *string GetDate returns the Date field if it's non-nil, zero value otherwise. GetEmail returns the Email field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. ( CommitAuthor) String() string CommitAuthor : expvar.Var CommitAuthor : fmt.Stringer func (*Commit).GetAuthor() *CommitAuthor func (*Commit).GetCommitter() *CommitAuthor func (*HeadCommit).GetAuthor() *CommitAuthor func (*HeadCommit).GetCommitter() *CommitAuthor func (*PushEvent).GetPusher() *CommitAuthor func (*RepositoryContentFileOptions).GetAuthor() *CommitAuthor func (*RepositoryContentFileOptions).GetCommitter() *CommitAuthor func (*Tag).GetTagger() *CommitAuthor func (*Timeline).GetAuthor() *CommitAuthor func (*Timeline).GetCommitter() *CommitAuthor
CommitCommentEvent is triggered when a commit comment is created. The Webhook event name is "commit_comment". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#commit_comment The following fields are only populated by Webhook events. Comment *RepositoryComment Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetComment returns the Comment field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
CommitFile represents a file modified in a commit. Additions *int BlobURL *string Changes *int ContentsURL *string Deletions *int Filename *string Patch *string PreviousFilename *string RawURL *string SHA *string Status *string GetAdditions returns the Additions field if it's non-nil, zero value otherwise. GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. GetChanges returns the Changes field if it's non-nil, zero value otherwise. GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. GetFilename returns the Filename field if it's non-nil, zero value otherwise. GetPatch returns the Patch field if it's non-nil, zero value otherwise. GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise. GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. ( CommitFile) String() string CommitFile : expvar.Var CommitFile : fmt.Stringer func (*PullRequestsService).ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*CommitFile, *Response, error)
CommitResult represents a commit object as returned in commit search endpoint response. Author *User CommentsURL *string Commit *Commit Committer *User HTMLURL *string Parents []*Commit Repository *Repository SHA *string Score *float64 URL *string GetAuthor returns the Author field. GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. GetCommit returns the Commit field. GetCommitter returns the Committer field. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetScore returns the Score field. GetURL returns the URL field if it's non-nil, zero value otherwise.
CommitsComparison is the result of comparing two commits. See CompareCommits() for details. AheadBy *int BaseCommit *RepositoryCommit BehindBy *int Commits []*RepositoryCommit DiffURL *string Files []*CommitFile HTMLURL *string MergeBaseCommit *RepositoryCommit PatchURL *string PermalinkURL *string Head can be 'behind' or 'ahead' TotalCommits *int // API URL. GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. GetBaseCommit returns the BaseCommit field. GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetMergeBaseCommit returns the MergeBaseCommit field. GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( CommitsComparison) String() string CommitsComparison : expvar.Var CommitsComparison : fmt.Stringer func (*RepositoriesService).CompareCommits(ctx context.Context, owner, repo string, base, head string, opts *ListOptions) (*CommitsComparison, *Response, error)
CommitsListOptions specifies the optional parameters to the RepositoriesService.ListCommits method. Author of by which to filter Commits. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Path that should be touched by the returned Commits. SHA or branch to start listing Commits from. Since when should Commits be included in the response. Until when should Commits be included in the response. func (*RepositoriesService).ListCommits(ctx context.Context, owner, repo string, opts *CommitsListOptions) ([]*RepositoryCommit, *Response, error)
CommitsSearchResult represents the result of a commits search. Commits []*CommitResult IncompleteResults *bool Total *int GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Commits(ctx context.Context, query string, opts *SearchOptions) (*CommitsSearchResult, *Response, error)
CommitStats represents the number of additions / deletions from a file in a given RepositoryCommit or GistCommit. Additions *int Deletions *int Total *int GetAdditions returns the Additions field if it's non-nil, zero value otherwise. GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. ( CommitStats) String() string CommitStats : expvar.Var CommitStats : fmt.Stringer func (*Commit).GetStats() *CommitStats func (*GistCommit).GetChangeStatus() *CommitStats func (*RepositoryCommit).GetStats() *CommitStats
CommunityHealthFiles represents the different files in the community health metrics response. CodeOfConduct *Metric CodeOfConductFile *Metric Contributing *Metric IssueTemplate *Metric License *Metric PullRequestTemplate *Metric Readme *Metric GetCodeOfConduct returns the CodeOfConduct field. GetCodeOfConductFile returns the CodeOfConductFile field. GetContributing returns the Contributing field. GetIssueTemplate returns the IssueTemplate field. GetLicense returns the License field. GetPullRequestTemplate returns the PullRequestTemplate field. GetReadme returns the Readme field. func (*CommunityHealthMetrics).GetFiles() *CommunityHealthFiles
CommunityHealthMetrics represents a response containing the community metrics of a repository. ContentReportsEnabled *bool Description *string Documentation *string Files *CommunityHealthFiles HealthPercentage *int UpdatedAt *Timestamp GetContentReportsEnabled returns the ContentReportsEnabled field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetDocumentation returns the Documentation field if it's non-nil, zero value otherwise. GetFiles returns the Files field. GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*RepositoriesService).GetCommunityHealthMetrics(ctx context.Context, owner, repo string) (*CommunityHealthMetrics, *Response, error)
ContentReference represents a reference to a URL in an issue or pull request. ID *int64 NodeID *string Reference *string GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetReference returns the Reference field if it's non-nil, zero value otherwise. func (*ContentReferenceEvent).GetContentReference() *ContentReference
ContentReferenceEvent 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". GitHub API docs: https://developer.github.com/webhooks/event-payloads/#content_reference Action *string ContentReference *ContentReference Installation *Installation Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetContentReference returns the ContentReference field. GetInstallation returns the Installation field. GetRepo returns the Repo field. GetSender returns the Sender field.
Contributor represents a repository contributor AvatarURL *string Contributions *int Email *string EventsURL *string FollowersURL *string FollowingURL *string GistsURL *string GravatarID *string HTMLURL *string ID *int64 Login *string Name *string NodeID *string OrganizationsURL *string ReceivedEventsURL *string ReposURL *string SiteAdmin *bool StarredURL *string SubscriptionsURL *string Type *string URL *string GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. GetContributions returns the Contributions field if it's non-nil, zero value otherwise. GetEmail returns the Email field if it's non-nil, zero value otherwise. GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*ContributorStats).GetAuthor() *Contributor func (*RepositoriesService).ListContributors(ctx context.Context, owner string, repository string, opts *ListContributorsOptions) ([]*Contributor, *Response, error)
ContributorStats represents a contributor to a repository and their weekly contributions to a given repo. Author *Contributor Total *int Weeks []*WeeklyStats GetAuthor returns the Author field. GetTotal returns the Total field if it's non-nil, zero value otherwise. ( ContributorStats) String() string ContributorStats : expvar.Var ContributorStats : fmt.Stringer func (*RepositoriesService).ListContributorsStats(ctx context.Context, owner, repo string) ([]*ContributorStats, *Response, error)
CopilotOrganizationDetails represents the details of an organization's Copilot for Business subscription. CopilotChat string PublicCodeSuggestions string SeatBreakdown *CopilotSeatBreakdown SeatManagementSetting string GetSeatBreakdown returns the SeatBreakdown field. func (*CopilotService).GetCopilotBilling(ctx context.Context, org string) (*CopilotOrganizationDetails, *Response, error)
CopilotSeatBreakdown represents the breakdown of Copilot for Business seats for the organization. ActiveThisCycle int AddedThisCycle int InactiveThisCycle int PendingCancellation int PendingInvitation int Total int func (*CopilotOrganizationDetails).GetSeatBreakdown() *CopilotSeatBreakdown
CopilotSeatDetails represents the details of a Copilot for Business seat. Assignee can either be a User, Team, or Organization. AssigningTeam *Team CreatedAt *Timestamp LastActivityAt *Timestamp LastActivityEditor *string PendingCancellationDate *string UpdatedAt *Timestamp GetAssigningTeam returns the AssigningTeam field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetLastActivityAt returns the LastActivityAt field if it's non-nil, zero value otherwise. GetLastActivityEditor returns the LastActivityEditor field if it's non-nil, zero value otherwise. GetOrganization gets the Organization from the CopilotSeatDetails if the assignee is an organization. GetPendingCancellationDate returns the PendingCancellationDate field if it's non-nil, zero value otherwise. GetTeam gets the Team from the CopilotSeatDetails if the assignee is a team. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser gets the User from the CopilotSeatDetails if the assignee is a user. (*CopilotSeatDetails) UnmarshalJSON(data []byte) error *CopilotSeatDetails : github.com/goccy/go-json.Unmarshaler *CopilotSeatDetails : encoding/json.Unmarshaler func (*CopilotService).GetSeatDetails(ctx context.Context, org, user string) (*CopilotSeatDetails, *Response, error)
CopilotService provides access to the Copilot-related functions in the GitHub API. GitHub API docs: https://docs.github.com/en/rest/copilot/ AddCopilotTeams adds teams to the Copilot for Business subscription for an organization. GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#add-teams-to-the-copilot-subscription-for-an-organization AddCopilotUsers adds users to the Copilot for Business subscription for an organization GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization GetCopilotBilling gets Copilot for Business billing information and settings for an organization. GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-information-and-settings-for-an-organization GetSeatDetails gets Copilot for Business seat assignment details for a user. GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-a-user ListCopilotSeats lists Copilot for Business seat assignments for an organization. To paginate through all seats, populate 'Page' with the number of the last page. GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-organization RemoveCopilotTeams removes teams from the Copilot for Business subscription for an organization. GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#remove-teams-from-the-copilot-subscription-for-an-organization RemoveCopilotUsers removes users from the Copilot for Business subscription for an organization. GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization
CreateCheckRunOptions sets up parameters needed to create a CheckRun. // Possible further actions the integrator can perform, which a user may trigger. (Optional.) // The time the check completed. (Optional. Required if you provide conclusion.) // Can be one of "success", "failure", "neutral", "cancelled", "skipped", "timed_out", or "action_required". (Optional. Required if you provide a status of "completed".) // The URL of the integrator's site that has the full details of the check. (Optional.) // A reference for the run on the integrator's system. (Optional.) // The SHA of the commit. (Required.) // The name of the check (e.g., "code-coverage"). (Required.) // Provide descriptive details about the run. (Optional) // The time that the check run began. (Optional.) // The current status. Can be one of "queued", "in_progress", or "completed". Default: "queued". (Optional.) GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. GetOutput returns the Output field. GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. func (*ChecksService).CreateCheckRun(ctx context.Context, owner, repo string, opts CreateCheckRunOptions) (*CheckRun, *Response, error)
CreateCheckSuiteOptions sets up parameters to manually create a check suites // The name of the head branch where the code changes are implemented. // The sha of the head commit. (Required.) GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. func (*ChecksService).CreateCheckSuite(ctx context.Context, owner, repo string, opts CreateCheckSuiteOptions) (*CheckSuite, *Response, error)
CreateCodespaceOptions represents options for the creation of a codespace in a repository. ClientIP *string DevcontainerPath *string DisplayName *string Geo represents the geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces location, which is being deprecated. Geo can be one of: `EuropeWest`, `SoutheastAsia`, `UsEast`, `UsWest`. IdleTimeoutMinutes *int Machine *string MultiRepoPermissionsOptOut *bool Ref *string RetentionPeriodMinutes represents the duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days). WorkingDirectory *string GetClientIP returns the ClientIP field if it's non-nil, zero value otherwise. GetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise. GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. GetGeo returns the Geo field if it's non-nil, zero value otherwise. GetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise. GetMachine returns the Machine field if it's non-nil, zero value otherwise. GetMultiRepoPermissionsOptOut returns the MultiRepoPermissionsOptOut field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise. GetWorkingDirectory returns the WorkingDirectory field if it's non-nil, zero value otherwise. func (*CodespacesService).CreateInRepo(ctx context.Context, owner, repo string, request *CreateCodespaceOptions) (*Codespace, *Response, error)
CreateCommit will sign the commit with this signer. See MessageSigner doc for more details. Ignored on commits where Verification.Signature is defined. func (*GitService).CreateCommit(ctx context.Context, owner string, repo string, commit *Commit, opts *CreateCommitOptions) (*Commit, *Response, error)
CreateEnterpriseRunnerGroupRequest represents a request to create a Runner group for an enterprise. If set to True, public repos can use this runner group Name *string If true, the runner group will be restricted to running only the workflows specified in the SelectedWorkflows slice. Runners represent a list of runner IDs to add to the runner group. List of organization IDs that can access the runner group. List of workflows the runner group should be allowed to run. This setting will be ignored unless RestrictedToWorkflows is set to true. Visibility *string GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*EnterpriseService).CreateEnterpriseRunnerGroup(ctx context.Context, enterprise string, createReq CreateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error)
CreateEvent represents a created repository, branch, or tag. The Webhook event name is "create". Note: 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. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/github-event-types#createevent Description *string Installation *Installation MasterBranch *string Org *Organization PusherType *string Ref *string RefType is the object that was created. Possible values are: "repository", "branch", "tag". The following fields are only populated by Webhook events. Sender *User GetDescription returns the Description field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. GetOrg returns the Org field. GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRefType returns the RefType field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetSender returns the Sender field.
CreateOrgInvitationOptions specifies the parameters to the OrganizationService.Invite method. Email address of the person you are inviting, which can be an existing GitHub user. Not required if you provide InviteeID GitHub user ID for the person you are inviting. Not required if you provide Email. Specify role for new member. Can be one of: * admin - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. * direct_member - Non-owner organization members with ability to see other members and join teams by invitation. * billing_manager - Non-owner organization members with ability to manage the billing settings of your organization. Default is "direct_member". TeamID []int64 GetEmail returns the Email field if it's non-nil, zero value otherwise. GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise. GetRole returns the Role field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateOrgInvitation(ctx context.Context, org string, opts *CreateOrgInvitationOptions) (*Invitation, *Response, error)
CreateOrUpdateCustomRepoRoleOptions represents options required to create or update a custom repository role. BaseRole *string Description *string Name *string Permissions []string GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) func (*OrganizationsService).UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error)
CreateOrUpdateOrgRoleOptions represents options required to create or update a custom organization role. BaseRole *string Description *string Name *string Permissions []string GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateCustomOrgRole(ctx context.Context, org string, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error) func (*OrganizationsService).UpdateCustomOrgRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error)
CreateProtectedChanges represents the changes made to the CreateProtected policy. From *bool GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetCreateProtected() *CreateProtectedChanges
CreateRunnerGroupRequest represents a request to create a Runner group for an organization. If set to True, public repos can use this runner group Name *string If true, the runner group will be restricted to running only the workflows specified in the SelectedWorkflows slice. Runners represent a list of runner IDs to add to the runner group. List of repository IDs that can access the runner group. List of workflows the runner group should be allowed to run. This setting will be ignored unless RestrictedToWorkflows is set to true. Visibility *string GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*ActionsService).CreateOrganizationRunnerGroup(ctx context.Context, org string, createReq CreateRunnerGroupRequest) (*RunnerGroup, *Response, error)
CreateUpdateEnvironment represents the fields required for the create/update operation following the Create/Update release example. See 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. CanAdminsBypass *bool DeploymentBranchPolicy *BranchPolicy PreventSelfReview *bool Reviewers []*EnvReviewers WaitTimer *int GetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise. GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. GetPreventSelfReview returns the PreventSelfReview field if it's non-nil, zero value otherwise. GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. MarshalJSON 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. *CreateUpdateEnvironment : github.com/goccy/go-json.Marshaler *CreateUpdateEnvironment : encoding/json.Marshaler func (*RepositoriesService).CreateUpdateEnvironment(ctx context.Context, owner, repo, name string, environment *CreateUpdateEnvironment) (*Environment, *Response, error)
CreateUpdateRequiredWorkflowOptions represents the input object used to create or update required workflows. RepositoryID *int64 Scope *string SelectedRepositoryIDs *SelectedRepoIDs WorkflowFilePath *string GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. GetScope returns the Scope field if it's non-nil, zero value otherwise. GetSelectedRepositoryIDs returns the SelectedRepositoryIDs field. GetWorkflowFilePath returns the WorkflowFilePath field if it's non-nil, zero value otherwise. func (*ActionsService).CreateRequiredWorkflow(ctx context.Context, org string, createRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error) func (*ActionsService).UpdateRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64, updateRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error)
CreateUserProjectOptions specifies the parameters to the UsersService.CreateProject method. The description of the project. (Optional.) The name of the project. (Required.) GetBody returns the Body field if it's non-nil, zero value otherwise. func (*UsersService).CreateProject(ctx context.Context, opts *CreateUserProjectOptions) (*Project, *Response, error)
CreateUserRequest represents the fields sent to the `CreateUser` endpoint. Note that `Login` is a required field. Email *string Login string Suspended *bool GetEmail returns the Email field if it's non-nil, zero value otherwise. GetSuspended returns the Suspended field if it's non-nil, zero value otherwise. func (*AdminService).CreateUser(ctx context.Context, userReq CreateUserRequest) (*User, *Response, error)
CreateWorkflowDispatchEventRequest represents a request to create a workflow dispatch event. Inputs represents input keys and values configured in the workflow file. The maximum number of properties is 10. Default: Any default properties configured in the workflow file will be used when `inputs` are omitted. Ref represents the reference of the workflow run. The reference can be a branch or a tag. Ref is required when creating a workflow dispatch event. func (*ActionsService).CreateWorkflowDispatchEventByFileName(ctx context.Context, owner, repo, workflowFileName string, event CreateWorkflowDispatchEventRequest) (*Response, error) func (*ActionsService).CreateWorkflowDispatchEventByID(ctx context.Context, owner, repo string, workflowID int64, event CreateWorkflowDispatchEventRequest) (*Response, error)
CreationInfo represents when the SBOM was created and who created it. Created *Timestamp Creators []string GetCreated returns the Created field if it's non-nil, zero value otherwise. func (*SBOMInfo).GetCreationInfo() *CreationInfo
CredentialAuthorization represents a credential authorized through SAML SSO. The expiry for the token. This will only be present when the credential is a token. AuthorizedCredentialID *int64 The note given to the token. This will only be present when the credential is a token. The title given to the ssh key. This will only be present when the credential is an ssh key. Date when the credential was last accessed. May be null if it was never accessed. Date when the credential was authorized for use. Unique identifier for the credential. Human-readable description of the credential type. Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key. User login that owns the underlying credential. List of oauth scopes the token has been granted. Last eight characters of the credential. Only included in responses with credential_type of personal access token. GetAuthorizedCredentialExpiresAt returns the AuthorizedCredentialExpiresAt field if it's non-nil, zero value otherwise. GetAuthorizedCredentialID returns the AuthorizedCredentialID field if it's non-nil, zero value otherwise. GetAuthorizedCredentialNote returns the AuthorizedCredentialNote field if it's non-nil, zero value otherwise. GetAuthorizedCredentialTitle returns the AuthorizedCredentialTitle field if it's non-nil, zero value otherwise. GetCredentialAccessedAt returns the CredentialAccessedAt field if it's non-nil, zero value otherwise. GetCredentialAuthorizedAt returns the CredentialAuthorizedAt field if it's non-nil, zero value otherwise. GetCredentialID returns the CredentialID field if it's non-nil, zero value otherwise. GetCredentialType returns the CredentialType field if it's non-nil, zero value otherwise. GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. func (*OrganizationsService).ListCredentialAuthorizations(ctx context.Context, org string, opts *CredentialAuthorizationsListOptions) ([]*CredentialAuthorization, *Response, error)
CredentialAuthorizationsListOptions 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#list-saml-sso-authorizations-for-an-organization ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. For credentials authorizations for an organization, limit the list of authorizations to a specific login (aka github username) func (*OrganizationsService).ListCredentialAuthorizations(ctx context.Context, org string, opts *CredentialAuthorizationsListOptions) ([]*CredentialAuthorization, *Response, error)
Credit represents the credit object for a global security advisory. Type *string User *User GetType returns the Type field if it's non-nil, zero value otherwise. GetUser returns the User field.
CustomDeploymentProtectionRule represents a single deployment protection rule for an environment. App *CustomDeploymentProtectionRuleApp Enabled *bool ID *int64 NodeID *string GetApp returns the App field. GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, request *CustomDeploymentProtectionRuleRequest) (*CustomDeploymentProtectionRule, *Response, error) func (*RepositoriesService).GetCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, protectionRuleID int64) (*CustomDeploymentProtectionRule, *Response, error)
CustomDeploymentProtectionRuleApp represents a single deployment protection rule app for an environment. ID *int64 IntegrationURL *string NodeID *string Slug *string GetID returns the ID field if it's non-nil, zero value otherwise. GetIntegrationURL returns the IntegrationURL field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSlug returns the Slug field if it's non-nil, zero value otherwise. func (*CustomDeploymentProtectionRule).GetApp() *CustomDeploymentProtectionRuleApp
CustomDeploymentProtectionRuleRequest represents a deployment protection rule request. IntegrationID *int64 GetIntegrationID returns the IntegrationID field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, request *CustomDeploymentProtectionRuleRequest) (*CustomDeploymentProtectionRule, *Response, error)
CustomOrgRoles represents custom organization role available in specified organization. BaseRole *string CreatedAt *Timestamp Description *string ID *int64 Name *string Org *Organization Permissions []string Source *string UpdatedAt *Timestamp GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOrg returns the Org field. GetSource returns the Source field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateCustomOrgRole(ctx context.Context, org string, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error) func (*OrganizationsService).GetOrgRole(ctx context.Context, org string, roleID int64) (*CustomOrgRoles, *Response, error) func (*OrganizationsService).UpdateCustomOrgRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error)
CustomProperty represents an organization custom property object. An ordered list of the allowed values of the property. The property can have up to 200 allowed values. Default value of the property. Short description of the property. PropertyName is required for most endpoints except when calling CreateOrUpdateCustomProperty; where this is sent in the path and thus can be omitted. Whether the property is required. The type of the value for the property. Can be one of: string, single_select. Who can edit the values of the property. Can be one of: org_actors, org_and_repo_actors, nil (null). GetDefaultValue returns the DefaultValue field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetPropertyName returns the PropertyName field if it's non-nil, zero value otherwise. GetRequired returns the Required field if it's non-nil, zero value otherwise. GetValuesEditableBy returns the ValuesEditableBy field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateOrUpdateCustomProperties(ctx context.Context, org string, properties []*CustomProperty) ([]*CustomProperty, *Response, error) func (*OrganizationsService).CreateOrUpdateCustomProperty(ctx context.Context, org, customPropertyName string, property *CustomProperty) (*CustomProperty, *Response, error) func (*OrganizationsService).GetAllCustomProperties(ctx context.Context, org string) ([]*CustomProperty, *Response, error) func (*OrganizationsService).GetCustomProperty(ctx context.Context, org, name string) (*CustomProperty, *Response, error) func (*OrganizationsService).CreateOrUpdateCustomProperties(ctx context.Context, org string, properties []*CustomProperty) ([]*CustomProperty, *Response, error) func (*OrganizationsService).CreateOrUpdateCustomProperty(ctx context.Context, org, customPropertyName string, property *CustomProperty) (*CustomProperty, *Response, error)
CustomPropertyValue represents a custom property value. PropertyName string Value interface{} UnmarshalJSON implements the json.Unmarshaler interface. This helps us handle the fact that Value can be either a string, []string, or nil. *CustomPropertyValue : github.com/goccy/go-json.Unmarshaler *CustomPropertyValue : encoding/json.Unmarshaler func (*RepositoriesService).GetAllCustomPropertyValues(ctx context.Context, org, repo string) ([]*CustomPropertyValue, *Response, error) func (*OrganizationsService).CreateOrUpdateRepoCustomPropertyValues(ctx context.Context, org string, repoNames []string, properties []*CustomPropertyValue) (*Response, error) func (*RepositoriesService).CreateOrUpdateCustomProperties(ctx context.Context, org, repo string, customPropertyValues []*CustomPropertyValue) (*Response, error)
CustomRepoRoles 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 for more information. BaseRole *string CreatedAt *Timestamp Description *string ID *int64 Name *string Org *Organization Permissions []string UpdatedAt *Timestamp GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOrg returns the Org field. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) func (*OrganizationsService).UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error)
DefaultSetupConfiguration represents a code scanning default setup configuration. Languages []string QuerySuite *string State *string UpdatedAt *Timestamp GetQuerySuite returns the QuerySuite field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*CodeScanningService).GetDefaultSetupConfiguration(ctx context.Context, owner, repo string) (*DefaultSetupConfiguration, *Response, error)
DefaultWorkflowPermissionEnterprise represents the default permissions for GitHub Actions workflows for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions CanApprovePullRequestReviews *bool DefaultWorkflowPermissions *string GetCanApprovePullRequestReviews returns the CanApprovePullRequestReviews field if it's non-nil, zero value otherwise. GetDefaultWorkflowPermissions returns the DefaultWorkflowPermissions field if it's non-nil, zero value otherwise. func (*ActionsService).EditDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string, permissions DefaultWorkflowPermissionEnterprise) (*DefaultWorkflowPermissionEnterprise, *Response, error) func (*ActionsService).GetDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string) (*DefaultWorkflowPermissionEnterprise, *Response, error) func (*ActionsService).EditDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string, permissions DefaultWorkflowPermissionEnterprise) (*DefaultWorkflowPermissionEnterprise, *Response, error)
DefaultWorkflowPermissionOrganization represents the default permissions for GitHub Actions workflows for an organization. GitHub API docs: https://docs.github.com/rest/actions/permissions CanApprovePullRequestReviews *bool DefaultWorkflowPermissions *string GetCanApprovePullRequestReviews returns the CanApprovePullRequestReviews field if it's non-nil, zero value otherwise. GetDefaultWorkflowPermissions returns the DefaultWorkflowPermissions field if it's non-nil, zero value otherwise. func (*ActionsService).EditDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string, permissions DefaultWorkflowPermissionOrganization) (*DefaultWorkflowPermissionOrganization, *Response, error) func (*ActionsService).GetDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string) (*DefaultWorkflowPermissionOrganization, *Response, error) func (*ActionsService).EditDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string, permissions DefaultWorkflowPermissionOrganization) (*DefaultWorkflowPermissionOrganization, *Response, error)
DefaultWorkflowPermissionRepository represents the default permissions for GitHub Actions workflows for a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions CanApprovePullRequestReviews *bool DefaultWorkflowPermissions *string GetCanApprovePullRequestReviews returns the CanApprovePullRequestReviews field if it's non-nil, zero value otherwise. GetDefaultWorkflowPermissions returns the DefaultWorkflowPermissions field if it's non-nil, zero value otherwise. func (*RepositoriesService).EditDefaultWorkflowPermissions(ctx context.Context, owner, repo string, permissions DefaultWorkflowPermissionRepository) (*DefaultWorkflowPermissionRepository, *Response, error) func (*RepositoriesService).GetDefaultWorkflowPermissions(ctx context.Context, owner, repo string) (*DefaultWorkflowPermissionRepository, *Response, error) func (*RepositoriesService).EditDefaultWorkflowPermissions(ctx context.Context, owner, repo string, permissions DefaultWorkflowPermissionRepository) (*DefaultWorkflowPermissionRepository, *Response, error)
DeleteAnalysis represents a successful deletion of a code scanning analysis. Next deletable analysis in chain, with last analysis deletion confirmation Next deletable analysis in chain, without last analysis deletion confirmation GetConfirmDeleteURL returns the ConfirmDeleteURL field if it's non-nil, zero value otherwise. GetNextAnalysisURL returns the NextAnalysisURL field if it's non-nil, zero value otherwise. func (*CodeScanningService).DeleteAnalysis(ctx context.Context, owner, repo string, id int64) (*DeleteAnalysis, *Response, error)
DeleteEvent represents a deleted branch or tag. The Webhook event name is "delete". Note: webhooks will not receive this event for tags if more than three tags are deleted at once. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/github-event-types#deleteevent Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. The following fields are only populated by Webhook events. Ref *string RefType is the object that was deleted. Possible values are: "branch", "tag". Repo *Repository Sender *User GetInstallation returns the Installation field. GetOrg returns the Org field. GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRefType returns the RefType field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetSender returns the Sender field.
DependabotAlert represents a Dependabot alert. AutoDismissedAt *Timestamp CreatedAt *Timestamp Dependency *Dependency DismissedAt *Timestamp DismissedBy *User DismissedComment *string DismissedReason *string FixedAt *Timestamp HTMLURL *string Number *int The repository is always empty for events SecurityAdvisory *DependabotSecurityAdvisory SecurityVulnerability *AdvisoryVulnerability State *string URL *string UpdatedAt *Timestamp GetAutoDismissedAt returns the AutoDismissedAt field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDependency returns the Dependency field. GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. GetDismissedBy returns the DismissedBy field. GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetSecurityAdvisory returns the SecurityAdvisory field. GetSecurityVulnerability returns the SecurityVulnerability field. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*DependabotAlertEvent).GetAlert() *DependabotAlert func (*DependabotService).GetRepoAlert(ctx context.Context, owner, repo string, number int) (*DependabotAlert, *Response, error) func (*DependabotService).ListOrgAlerts(ctx context.Context, org string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error) func (*DependabotService).ListRepoAlerts(ctx context.Context, owner, repo string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error) func (*DependabotService).UpdateAlert(ctx context.Context, owner, repo string, number int, stateInfo *DependabotAlertState) (*DependabotAlert, *Response, error)
DependabotAlertEvent is triggered when there is activity relating to Dependabot alerts. The Webhook event name is "dependabot_alert". GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot_alert Action *string Alert *DependabotAlert Enterprise *Enterprise The following fields are only populated by Webhook events. The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAlert returns the Alert field. GetEnterprise returns the Enterprise field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepo returns the Repo field. GetSender returns the Sender field.
DependabotAlertState represents the state of a Dependabot alert to update. DismissedComment is associated with the dismissal of the alert. DismissedReason represents the reason for dismissing or closing the alert. It is required when the state is "dismissed". It can be one of: "false positive", "won't fix", "used in tests". State sets the state of the code scanning alert and is a required field. You must also provide DismissedReason when you set the state to "dismissed". State can be one of: "open", "dismissed". GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. func (*DependabotService).UpdateAlert(ctx context.Context, owner, repo string, number int, stateInfo *DependabotAlertState) (*DependabotAlert, *Response, error)
DependabotEncryptedSecret represents a secret that is encrypted using a public key for Dependabot. The value of EncryptedValue must be your secret, encrypted with LibSodium (see documentation here: https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved using the GetPublicKey method. EncryptedValue string KeyID string Name string SelectedRepositoryIDs DependabotSecretsSelectedRepoIDs Visibility string func (*DependabotService).CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *DependabotEncryptedSecret) (*Response, error) func (*DependabotService).CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *DependabotEncryptedSecret) (*Response, error)
DependabotSecretsSelectedRepoIDs are the repository IDs that have access to the dependabot secrets. func (*DependabotService).SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids DependabotSecretsSelectedRepoIDs) (*Response, error)
DependabotSecurityAdvisory represents the GitHub Security Advisory. CVEID *string CVSS *AdvisoryCVSS CWEs []*AdvisoryCWEs Description *string GHSAID *string Identifiers []*AdvisoryIdentifier PublishedAt *Timestamp References []*AdvisoryReference Severity *string Summary *string UpdatedAt *Timestamp Vulnerabilities []*AdvisoryVulnerability WithdrawnAt *Timestamp GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. GetCVSS returns the CVSS field. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. GetSummary returns the Summary field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. func (*DependabotAlert).GetSecurityAdvisory() *DependabotSecurityAdvisory
DependabotSecurityUpdates specifies the state of Dependabot security updates on a repository. GitHub API docs: https://docs.github.com/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates Status *string GetStatus returns the Status field if it's non-nil, zero value otherwise. ( DependabotSecurityUpdates) String() string DependabotSecurityUpdates : expvar.Var DependabotSecurityUpdates : fmt.Stringer func (*SecurityAndAnalysis).GetDependabotSecurityUpdates() *DependabotSecurityUpdates
DependabotService handles communication with the Dependabot related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/dependabot/ AddSelectedRepoToOrgSecret adds a repository to an organization Dependabot secret. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#add-selected-repository-to-an-organization-secret CreateOrUpdateOrgSecret creates or updates an organization Dependabot secret with an encrypted value. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#create-or-update-an-organization-secret CreateOrUpdateRepoSecret creates or updates a repository Dependabot secret with an encrypted value. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#create-or-update-a-repository-secret DeleteOrgSecret deletes a Dependabot secret in an organization using the secret name. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#delete-an-organization-secret DeleteRepoSecret deletes a Dependabot secret in a repository using the secret name. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#delete-a-repository-secret GetOrgPublicKey gets a public key that should be used for Dependabot secret encryption. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key GetOrgSecret gets a single organization Dependabot secret without revealing its encrypted value. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#get-an-organization-secret GetRepoAlert gets a single repository Dependabot alert. GitHub API docs: https://docs.github.com/rest/dependabot/alerts#get-a-dependabot-alert GetRepoPublicKey gets a public key that should be used for Dependabot secret encryption. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key GetRepoSecret gets a single repository Dependabot secret without revealing its encrypted value. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#get-a-repository-secret ListOrgAlerts lists all Dependabot alerts of an organization. GitHub API docs: https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization ListOrgSecrets lists all Dependabot secrets available in an organization without revealing their encrypted values. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#list-organization-secrets ListRepoAlerts lists all Dependabot alerts of a repository. GitHub API docs: https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository ListRepoSecrets lists all Dependabot secrets available in a repository without revealing their encrypted values. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#list-repository-secrets ListSelectedReposForOrgSecret lists all repositories that have access to a Dependabot secret. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret RemoveSelectedRepoFromOrgSecret removes a repository from an organization Dependabot secret. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret SetSelectedReposForOrgSecret sets the repositories that have access to a Dependabot secret. GitHub API docs: https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret UpdateAlert updates a Dependabot alert. GitHub API docs: https://docs.github.com/rest/dependabot/alerts#update-a-dependabot-alert
Dependency represents the vulnerable dependency. ManifestPath *string Package *VulnerabilityPackage Scope *string GetManifestPath returns the ManifestPath field if it's non-nil, zero value otherwise. GetPackage returns the Package field. GetScope returns the Scope field if it's non-nil, zero value otherwise. func (*DependabotAlert).GetDependency() *Dependency
CreateSnapshot creates a new snapshot of a repository's dependencies. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository GetSBOM fetches the software bill of materials for a repository. GitHub API docs: https://docs.github.com/rest/dependency-graph/sboms#export-a-software-bill-of-materials-sbom-for-a-repository
DependencyGraphSnapshot represent a snapshot of a repository's dependencies. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository Detector *DependencyGraphSnapshotDetector Job *DependencyGraphSnapshotJob Manifests map[string]*DependencyGraphSnapshotManifest Ref *string Scanned *Timestamp Sha *string Version int GetDetector returns the Detector field. GetJob returns the Job field. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetScanned returns the Scanned field if it's non-nil, zero value otherwise. GetSha returns the Sha field if it's non-nil, zero value otherwise. func (*DependencyGraphService).CreateSnapshot(ctx context.Context, owner, repo string, dependencyGraphSnapshot *DependencyGraphSnapshot) (*DependencyGraphSnapshotCreationData, *Response, error)
DependencyGraphSnapshotCreationData represents the dependency snapshot's creation result. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository CreatedAt *Timestamp ID int64 Message *string Represents the snapshot creation result. Can have the following values: - "SUCCESS": indicates that the snapshot was successfully created and the repository's dependencies were updated. - "ACCEPTED": indicates that the snapshot was successfully created, but the repository's dependencies were not updated. - "INVALID": indicates that the snapshot was malformed. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetResult returns the Result field if it's non-nil, zero value otherwise. func (*DependencyGraphService).CreateSnapshot(ctx context.Context, owner, repo string, dependencyGraphSnapshot *DependencyGraphSnapshot) (*DependencyGraphSnapshotCreationData, *Response, error)
DependencyGraphSnapshotDetector represents a description of the detector used. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository Name *string URL *string Version *string GetName returns the Name field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetVersion returns the Version field if it's non-nil, zero value otherwise. func (*DependencyGraphSnapshot).GetDetector() *DependencyGraphSnapshotDetector
DependencyGraphSnapshotJob represents the job that created the snapshot. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository Correlator *string HTMLURL *string ID *string GetCorrelator returns the Correlator field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. func (*DependencyGraphSnapshot).GetJob() *DependencyGraphSnapshotJob
DependencyGraphSnapshotManifest represents a collection of related dependencies declared in a file or representing a logical group of dependencies. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository File *DependencyGraphSnapshotManifestFile Name *string Resolved map[string]*DependencyGraphSnapshotResolvedDependency GetFile returns the File field. GetName returns the Name field if it's non-nil, zero value otherwise.
DependencyGraphSnapshotManifestFile represents the file declaring the repository's dependencies. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository SourceLocation *string GetSourceLocation returns the SourceLocation field if it's non-nil, zero value otherwise. func (*DependencyGraphSnapshotManifest).GetFile() *DependencyGraphSnapshotManifestFile
DependencyGraphSnapshotResolvedDependency represents a resolved dependency in a dependency graph snapshot. GitHub API docs: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository Dependencies []string PackageURL *string Represents whether the dependency is requested directly by the manifest or is a dependency of another dependency. Can have the following values: - "direct": indicates that the dependency is requested directly by the manifest. - "indirect": indicates that the dependency is a dependency of another dependency. Represents whether the dependency is required for the primary build artifact or is only used for development. Can have the following values: - "runtime": indicates that the dependency is required for the primary build artifact. - "development": indicates that the dependency is only used for development. GetPackageURL returns the PackageURL field if it's non-nil, zero value otherwise. GetRelationship returns the Relationship field if it's non-nil, zero value otherwise. GetScope returns the Scope field if it's non-nil, zero value otherwise.
DeployKeyEvent is triggered when a deploy key is added or removed from a repository. The Webhook event name is "deploy_key". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#deploy_key Action is the action that was performed. Possible values are: "created" or "deleted". Installation *Installation The deploy key resource. The following field is only present when the webhook is triggered on a repository belonging to an organization. The Repository where the event occurred The following fields are only populated by Webhook events. GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetKey returns the Key field. GetOrganization returns the Organization field. GetRepo returns the Repo field. GetSender returns the Sender field.
Deployment represents a deployment in a repo CreatedAt *Timestamp Creator *User Description *string Environment *string ID *int64 NodeID *string Payload json.RawMessage Ref *string RepositoryURL *string SHA *string StatusesURL *string Task *string URL *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. GetTask returns the Task field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ActionsService).PendingDeployments(ctx context.Context, owner, repo string, runID int64, request *PendingDeploymentsRequest) ([]*Deployment, *Response, error) func (*DeploymentEvent).GetDeployment() *Deployment func (*DeploymentProtectionRuleEvent).GetDeployment() *Deployment func (*DeploymentStatusEvent).GetDeployment() *Deployment func (*RepositoriesService).CreateDeployment(ctx context.Context, owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error) func (*RepositoriesService).GetDeployment(ctx context.Context, owner, repo string, deploymentID int64) (*Deployment, *Response, error) func (*RepositoriesService).ListDeployments(ctx context.Context, owner, repo string, opts *DeploymentsListOptions) ([]*Deployment, *Response, error)
DeploymentBranchPolicy represents a single deployment branch policy for an environment. ID *int64 Name *string NodeID *string Type *string GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error) func (*RepositoriesService).GetDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64) (*DeploymentBranchPolicy, *Response, error) func (*RepositoriesService).UpdateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error)
DeploymentBranchPolicyRequest represents a deployment branch policy request. Name *string Type *string GetName returns the Name field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error) func (*RepositoriesService).UpdateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error)
DeploymentBranchPolicyResponse represents the slightly different format of response that comes back when you list deployment branch policies. BranchPolicies []*DeploymentBranchPolicy TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListDeploymentBranchPolicies(ctx context.Context, owner, repo, environment string) (*DeploymentBranchPolicyResponse, *Response, error)
DeploymentEvent represents a deployment. The Webhook event name is "deployment". Events of this type are not visible in timelines, they are only used to trigger hooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#deployment Deployment *Deployment Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository The following fields are only populated by Webhook events. Workflow *Workflow WorkflowRun *WorkflowRun GetDeployment returns the Deployment field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetWorkflow returns the Workflow field. GetWorkflowRun returns the WorkflowRun field.
DeploymentProtectionRuleEvent represents a deployment protection rule event. The Webhook event name is "deployment_protection_rule". GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_protection_rule Action *string Deployment *Deployment The URL Github provides for a third-party to use in order to pass/fail a deployment gate Environment *string Event *string Installation *Installation Organization *Organization PullRequests []*PullRequest Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetDeployment returns the Deployment field. GetDeploymentCallbackURL returns the DeploymentCallbackURL field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetEvent returns the Event field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepo returns the Repo field. GetSender returns the Sender field.
DeploymentRequest represents a deployment request AutoMerge *bool Description *string Environment *string Payload interface{} ProductionEnvironment *bool Ref *string RequiredContexts *[]string Task *string TransientEnvironment *bool GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. GetTask returns the Task field if it's non-nil, zero value otherwise. GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateDeployment(ctx context.Context, owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error)
DeploymentReviewEvent represents a deployment review event. The Webhook event name is "deployment_review". GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads?#deployment_review The action performed. Possible values are: "requested", "approved", or "rejected". The following will be populated only if approved or rejected. Comment *string Enterprise *Enterprise Environment *string Installation *Installation Organization *Organization Repo *Repository The following will be populated only if requested. Reviewers []*RequiredReviewer Sender *User Since *string WorkflowJobRun *WorkflowJobRun WorkflowJobRuns []*WorkflowJobRun WorkflowRun *WorkflowRun GetAction returns the Action field if it's non-nil, zero value otherwise. GetApprover returns the Approver field. GetComment returns the Comment field if it's non-nil, zero value otherwise. GetEnterprise returns the Enterprise field. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepo returns the Repo field. GetRequester returns the Requester field. GetSender returns the Sender field. GetSince returns the Since field if it's non-nil, zero value otherwise. GetWorkflowJobRun returns the WorkflowJobRun field. GetWorkflowRun returns the WorkflowRun field.
DeploymentsListOptions specifies the optional parameters to the RepositoriesService.ListDeployments method. List deployments for a given environment. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. List deployments for a given ref. SHA of the Deployment. List deployments for a given task. func (*RepositoriesService).ListDeployments(ctx context.Context, owner, repo string, opts *DeploymentsListOptions) ([]*Deployment, *Response, error)
DeploymentStatus represents the status of a particular deployment. CreatedAt *Timestamp Creator *User DeploymentURL *string Description *string Environment *string EnvironmentURL *string ID *int64 LogURL *string NodeID *string RepositoryURL *string State is the deployment state. Possible values are: "pending", "success", "failure", "error", "inactive", "in_progress", "queued". TargetURL *string URL *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*DeploymentStatusEvent).GetDeploymentStatus() *DeploymentStatus func (*RepositoriesService).CreateDeploymentStatus(ctx context.Context, owner, repo string, deployment int64, request *DeploymentStatusRequest) (*DeploymentStatus, *Response, error) func (*RepositoriesService).GetDeploymentStatus(ctx context.Context, owner, repo string, deploymentID, deploymentStatusID int64) (*DeploymentStatus, *Response, error) func (*RepositoriesService).ListDeploymentStatuses(ctx context.Context, owner, repo string, deployment int64, opts *ListOptions) ([]*DeploymentStatus, *Response, error)
DeploymentStatusEvent represents a deployment status. The Webhook event name is "deployment_status". Events of this type are not visible in timelines, they are only used to trigger hooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#deployment_status Action *string Deployment *Deployment DeploymentStatus *DeploymentStatus Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository The following fields are only populated by Webhook events. GetAction returns the Action field if it's non-nil, zero value otherwise. GetDeployment returns the Deployment field. GetDeploymentStatus returns the DeploymentStatus field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
DeploymentStatusRequest represents a deployment request AutoInactive *bool Description *string Environment *string EnvironmentURL *string LogURL *string State *string GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateDeploymentStatus(ctx context.Context, owner, repo string, deployment int64, request *DeploymentStatusRequest) (*DeploymentStatus, *Response, error)
Discussion represents a discussion in a GitHub DiscussionEvent. ActiveLockReason *string AnswerChosenAt *Timestamp AnswerChosenBy *string AnswerHTMLURL *string AuthorAssociation *string Body *string Comments *int CreatedAt *Timestamp DiscussionCategory *DiscussionCategory HTMLURL *string ID *int64 Locked *bool NodeID *string Number *int RepositoryURL *string State *string Title *string UpdatedAt *Timestamp User *User GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. GetAnswerChosenAt returns the AnswerChosenAt field if it's non-nil, zero value otherwise. GetAnswerChosenBy returns the AnswerChosenBy field if it's non-nil, zero value otherwise. GetAnswerHTMLURL returns the AnswerHTMLURL field if it's non-nil, zero value otherwise. GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetComments returns the Comments field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDiscussionCategory returns the DiscussionCategory field. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLocked returns the Locked field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*DiscussionCommentEvent).GetDiscussion() *Discussion func (*DiscussionEvent).GetDiscussion() *Discussion
DiscussionCategory represents a discussion category in a GitHub DiscussionEvent. CreatedAt *Timestamp Description *string Emoji *string ID *int64 IsAnswerable *bool Name *string NodeID *string RepositoryID *int64 Slug *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetIsAnswerable returns the IsAnswerable field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. GetSlug returns the Slug field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*Discussion).GetDiscussionCategory() *DiscussionCategory
DiscussionComment represents a GitHub discussion in a team. Author *User Body *string BodyHTML *string BodyVersion *string CreatedAt *Timestamp DiscussionURL *string HTMLURL *string LastEditedAt *Timestamp NodeID *string Number *int Reactions *Reactions URL *string UpdatedAt *Timestamp GetAuthor returns the Author field. GetBody returns the Body field if it's non-nil, zero value otherwise. GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetReactions returns the Reactions field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( DiscussionComment) String() string DiscussionComment : expvar.Var DiscussionComment : fmt.Stringer func (*TeamsService).CreateCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).CreateCommentBySlug(ctx context.Context, org, slug string, discsusionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).EditCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).EditCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).GetCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error) func (*TeamsService).GetCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error) func (*TeamsService).ListCommentsByID(ctx context.Context, orgID, teamID int64, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error) func (*TeamsService).ListCommentsBySlug(ctx context.Context, org, slug string, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error) func (*TeamsService).CreateCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).CreateCommentBySlug(ctx context.Context, org, slug string, discsusionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).EditCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).EditCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error)
DiscussionCommentEvent represents a webhook event for a comment on discussion. The Webhook event name is "discussion_comment". GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion_comment Action is the action that was performed on the comment. Possible values are: "created", "edited", "deleted". ** check what all can be added Comment *CommentDiscussion Discussion *Discussion Installation *Installation Org *Organization Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetComment returns the Comment field. GetDiscussion returns the Discussion field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
DiscussionCommentListOptions specifies optional parameters to the TeamServices.ListComments method. Sorts the discussion comments by the date they were created. Accepted values are asc and desc. Default is desc. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*TeamsService).ListCommentsByID(ctx context.Context, orgID, teamID int64, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error) func (*TeamsService).ListCommentsBySlug(ctx context.Context, org, slug string, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error)
DiscussionEvent represents a webhook event for a discussion. The Webhook event name is "discussion". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion Action is the action that was performed. Possible values are: created, edited, deleted, pinned, unpinned, locked, unlocked, transferred, category_changed, answered, or unanswered. Discussion *Discussion Installation *Installation Org *Organization Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetDiscussion returns the Discussion field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
DiscussionListOptions specifies optional parameters to the TeamServices.ListDiscussions method. Sorts the discussion comments by the date they were created. Accepted values are asc and desc. Default is desc. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*TeamsService).ListDiscussionsByID(ctx context.Context, orgID, teamID int64, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) func (*TeamsService).ListDiscussionsBySlug(ctx context.Context, org, slug string, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error)
DismissalRestrictions specifies which users and teams can dismiss pull request reviews. The list of app slugs with push access. The list of team slugs with push access. The list of user logins with push access. func (*PullRequestReviewsEnforcement).GetDismissalRestrictions() *DismissalRestrictions
DismissalRestrictionsRequest 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. The list of app slugs which can dismiss pull request reviews. (Required; use nil to disable dismissal_restrictions or &[]string{} otherwise.) The list of team slugs which can dismiss pull request reviews. (Required; use nil to disable dismissal_restrictions or &[]string{} otherwise.) The list of user logins who can dismiss pull request reviews. (Required; use nil to disable dismissal_restrictions or &[]string{} otherwise.) GetApps returns the Apps field if it's non-nil, zero value otherwise. GetTeams returns the Teams field if it's non-nil, zero value otherwise. GetUsers returns the Users field if it's non-nil, zero value otherwise. func (*PullRequestReviewsEnforcementRequest).GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest func (*PullRequestReviewsEnforcementUpdate).GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest
DismissedReview represents details for 'dismissed_review' events. DismissalCommitID *string DismissalMessage *string ReviewID *int64 State represents the state of the dismissed review. Possible values are: "commented", "approved", and "changes_requested". GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise. GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise. GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. func (*IssueEvent).GetDismissedReview() *DismissedReview
DismissStaleReviewsOnPushChanges represents the changes made to the DismissStaleReviewsOnPushChanges policy. From *bool GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetDismissStaleReviewsOnPush() *DismissStaleReviewsOnPushChanges
DispatchRequestOptions represents a request to trigger a repository_dispatch event. ClientPayload is a custom JSON payload with extra information about the webhook event. Defaults to an empty JSON object. EventType is a custom webhook event name. (Required.) GetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise. func (*RepositoriesService).Dispatch(ctx context.Context, owner, repo string, opts DispatchRequestOptions) (*Repository, *Response, error)
DraftReviewComment represents a comment part of the review. Body *string Line *int Path *string Position *int Side *string StartLine *int The new comfort-fade-preview fields GetBody returns the Body field if it's non-nil, zero value otherwise. GetLine returns the Line field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetPosition returns the Position field if it's non-nil, zero value otherwise. GetSide returns the Side field if it's non-nil, zero value otherwise. GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. ( DraftReviewComment) String() string DraftReviewComment : expvar.Var DraftReviewComment : fmt.Stringer
EditBase represents the change of a pull-request base branch. Ref *EditRef SHA *EditSHA GetRef returns the Ref field. GetSHA returns the SHA field. func (*EditChange).GetBase() *EditBase
EditBody represents a change of pull-request body. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*EditChange).GetBody() *EditBody
EditChange represents the changes when an issue, pull request, comment, or repository has been edited. Base *EditBase Body *EditBody DefaultBranch *EditDefaultBranch Owner *EditOwner Repo *EditRepo Title *EditTitle Topics *EditTopics GetBase returns the Base field. GetBody returns the Body field. GetDefaultBranch returns the DefaultBranch field. GetOwner returns the Owner field. GetRepo returns the Repo field. GetTitle returns the Title field. GetTopics returns the Topics field. func (*IssueCommentEvent).GetChanges() *EditChange func (*IssuesEvent).GetChanges() *EditChange func (*LabelEvent).GetChanges() *EditChange func (*MilestoneEvent).GetChanges() *EditChange func (*PullRequestEvent).GetChanges() *EditChange func (*PullRequestReviewCommentEvent).GetChanges() *EditChange func (*PullRequestTargetEvent).GetChanges() *EditChange func (*RepositoryEvent).GetChanges() *EditChange
EditDefaultBranch represents a change of repository's default branch name. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*EditChange).GetDefaultBranch() *EditDefaultBranch
EditOwner represents a change of repository ownership. OwnerInfo *OwnerInfo GetOwnerInfo returns the OwnerInfo field. func (*EditChange).GetOwner() *EditOwner
EditRef represents a ref change of a pull-request. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*EditBase).GetRef() *EditRef
EditRepo represents a change of repository name. Name *RepoName GetName returns the Name field. func (*EditChange).GetRepo() *EditRepo
EditSHA represents a sha change of a pull-request. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*EditBase).GetSHA() *EditSHA
EditTitle represents a pull-request title change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*EditChange).GetTitle() *EditTitle
EditTopics represents a change of repository topics. From []string func (*EditChange).GetTopics() *EditTopics
EmojisService provides access to emoji-related functions in the GitHub API. List returns the emojis available to use on GitHub. GitHub API docs: https://docs.github.com/rest/emojis/emojis#get-emojis
EncryptedSecret represents a secret that is encrypted using a public key. The value of EncryptedValue must be your secret, encrypted with LibSodium (see documentation here: https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved using the GetPublicKey method. EncryptedValue string KeyID string Name string SelectedRepositoryIDs SelectedRepoIDs Visibility string func (*ActionsService).CreateOrUpdateEnvSecret(ctx context.Context, repoID int, env string, eSecret *EncryptedSecret) (*Response, error) func (*ActionsService).CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error) func (*ActionsService).CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error) func (*CodespacesService).CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error) func (*CodespacesService).CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error) func (*CodespacesService).CreateOrUpdateUserSecret(ctx context.Context, eSecret *EncryptedSecret) (*Response, error)
Enterprise represents the GitHub enterprise profile. AvatarURL *string CreatedAt *Timestamp Description *string HTMLURL *string ID *int Name *string NodeID *string Slug *string UpdatedAt *Timestamp WebsiteURL *string GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSlug returns the Slug field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise. ( Enterprise) String() string Enterprise : expvar.Var Enterprise : fmt.Stringer func (*DependabotAlertEvent).GetEnterprise() *Enterprise func (*DeploymentReviewEvent).GetEnterprise() *Enterprise func (*InstallationTargetEvent).GetEnterprise() *Enterprise func (*SecretScanningAlertEvent).GetEnterprise() *Enterprise func (*SecurityAdvisoryEvent).GetEnterprise() *Enterprise func (*SecurityAndAnalysisEvent).GetEnterprise() *Enterprise func (*UserEvent).GetEnterprise() *Enterprise
EnterpriseRunnerGroup represents a self-hosted runner group configured in an enterprise. AllowsPublicRepositories *bool Default *bool ID *int64 Inherited *bool Name *string RestrictedToWorkflows *bool RunnersURL *string SelectedOrganizationsURL *string SelectedWorkflows []string Visibility *string WorkflowRestrictionsReadOnly *bool GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. GetDefault returns the Default field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInherited returns the Inherited field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. GetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise. GetSelectedOrganizationsURL returns the SelectedOrganizationsURL field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. GetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise. func (*EnterpriseService).CreateEnterpriseRunnerGroup(ctx context.Context, enterprise string, createReq CreateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error) func (*EnterpriseService).GetEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64) (*EnterpriseRunnerGroup, *Response, error) func (*EnterpriseService).UpdateEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64, updateReq UpdateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error)
EnterpriseRunnerGroups represents a collection of self-hosted runner groups configured for an enterprise. RunnerGroups []*EnterpriseRunnerGroup TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*EnterpriseService).ListRunnerGroups(ctx context.Context, enterprise string, opts *ListEnterpriseRunnerGroupOptions) (*EnterpriseRunnerGroups, *Response, error)
EnterpriseSecurityAnalysisSettings represents security analysis settings for an enterprise. AdvancedSecurityEnabledForNewRepositories *bool SecretScanningEnabledForNewRepositories *bool SecretScanningPushProtectionCustomLink *string SecretScanningPushProtectionEnabledForNewRepositories *bool SecretScanningValidityChecksEnabled *bool GetAdvancedSecurityEnabledForNewRepositories returns the AdvancedSecurityEnabledForNewRepositories field if it's non-nil, zero value otherwise. GetSecretScanningEnabledForNewRepositories returns the SecretScanningEnabledForNewRepositories field if it's non-nil, zero value otherwise. GetSecretScanningPushProtectionCustomLink returns the SecretScanningPushProtectionCustomLink field if it's non-nil, zero value otherwise. GetSecretScanningPushProtectionEnabledForNewRepositories returns the SecretScanningPushProtectionEnabledForNewRepositories field if it's non-nil, zero value otherwise. GetSecretScanningValidityChecksEnabled returns the SecretScanningValidityChecksEnabled field if it's non-nil, zero value otherwise. func (*EnterpriseService).GetCodeSecurityAndAnalysis(ctx context.Context, enterprise string) (*EnterpriseSecurityAnalysisSettings, *Response, error) func (*EnterpriseService).UpdateCodeSecurityAndAnalysis(ctx context.Context, enterprise string, settings *EnterpriseSecurityAnalysisSettings) (*Response, error)
EnterpriseService provides access to the enterprise related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/enterprise-admin/ AddOrganizationAccessRunnerGroup 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'. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise AddRunnerGroupRunners adds a self-hosted runner to a runner group configured in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-enterprise CreateEnterpriseRunnerGroup creates a new self-hosted runner group for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-enterprise CreateRegistrationToken creates a token that can be used to add a self-hosted runner. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#create-a-registration-token-for-an-enterprise DeleteEnterpriseRunnerGroup deletes a self-hosted runner group from an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-enterprise EnableDisableSecurityFeature enables or disables a security feature for all repositories in an enterprise. Valid values for securityProduct: "advanced_security", "secret_scanning", "secret_scanning_push_protection". Valid values for enablement: "enable_all", "disable_all". GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis#enable-or-disable-a-security-feature GenerateEnterpriseJITConfig generates a just-in-time configuration for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-enterprise GetAuditLog gets the audit-log entries for an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/audit-log#get-the-audit-log-for-an-enterprise GetCodeSecurityAndAnalysis gets code security and analysis features for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis#get-code-security-and-analysis-features-for-an-enterprise GetEnterpriseRunnerGroup gets a specific self-hosted runner group for an enterprise using its RunnerGroup ID. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-enterprise GetRunner gets a specific self-hosted runner configured in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-an-enterprise ListOrganizationAccessRunnerGroup lists the organizations with access to a self-hosted runner group configured in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#list-organization-access-to-a-self-hosted-runner-group-in-an-enterprise ListRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#list-runner-applications-for-an-enterprise ListRunnerGroupRunners lists self-hosted runners that are in a specific enterprise group. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-enterprise ListRunnerGroups lists all self-hosted runner groups configured in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-enterprise ListRunners lists all the self-hosted runners for a enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#list-self-hosted-runners-for-an-enterprise RemoveOrganizationAccessRunnerGroup 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'. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise RemoveRunner forces the removal of a self-hosted runner from an enterprise using the runner id. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-enterprise RemoveRunnerGroupRunners removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-enterprise SetOrganizationAccessRunnerGroup replaces the list of organizations that have access to a self-hosted runner group configured in an enterprise with a new List of organizations. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#set-organization-access-for-a-self-hosted-runner-group-in-an-enterprise SetRunnerGroupRunners replaces the list of self-hosted runners that are part of an enterprise runner group with a new list of runners. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-enterprise UpdateCodeSecurityAndAnalysis updates code security and analysis features for new repositories in an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/enterprise-admin/code-security-and-analysis#update-code-security-and-analysis-features-for-an-enterprise UpdateEnterpriseRunnerGroup updates a self-hosted runner group for an enterprise. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-enterprise
Environment represents a single environment in a repository. CanAdminsBypass *bool CreatedAt *Timestamp DeploymentBranchPolicy *BranchPolicy EnvironmentName *string HTMLURL *string Return/response only values Name *string NodeID *string Owner *string ProtectionRules []*ProtectionRule Repo *string Reviewers []*EnvReviewers URL *string UpdatedAt *Timestamp WaitTimer *int GetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOwner returns the Owner field if it's non-nil, zero value otherwise. GetRepo returns the Repo field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateUpdateEnvironment(ctx context.Context, owner, repo, name string, environment *CreateUpdateEnvironment) (*Environment, *Response, error) func (*RepositoriesService).GetEnvironment(ctx context.Context, owner, repo, name string) (*Environment, *Response, error)
EnvironmentListOptions specifies the optional parameters to the RepositoriesService.ListEnvironments method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*RepositoriesService).ListEnvironments(ctx context.Context, owner, repo string, opts *EnvironmentListOptions) (*EnvResponse, *Response, error)
EnvResponse represents the slightly different format of response that comes back when you list an environment. Environments []*Environment TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListEnvironments(ctx context.Context, owner, repo string, opts *EnvironmentListOptions) (*EnvResponse, *Response, error)
EnvReviewers represents a single environment reviewer entry. ID *int64 Type *string GetID returns the ID field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise.
An Error reports more details on an individual error in an ErrorResponse. These are the possible validation error codes: missing: resource does not exist missing_field: a required field on a resource has not been set invalid: the formatting of a field is invalid already_exists: another resource has the same valid as this field custom: some resources return this (e.g. github.User.CreateKey()), additional information is set in the Message field of the Error GitHub 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. GitHub API docs: https://docs.github.com/rest/#client-errors // validation error code // field on which the error occurred // Message describing the error. Errors with Code == "custom" will always have this set. // resource on which the error occurred (*Error) Error() string (*Error) UnmarshalJSON(data []byte) error *Error : github.com/goccy/go-json.Unmarshaler *Error : error *Error : encoding/json.Unmarshaler
ErrorBlock 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/ for more information. CreatedAt *Timestamp Reason string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. func (*ErrorResponse).GetBlock() *ErrorBlock
An ErrorResponse reports one or more errors caused by an API request. GitHub API docs: https://docs.github.com/rest/#client-errors Block is only populated on certain types of errors such as code 451. Most errors will also include a documentation_url field pointing to some content that might help you resolve the error, see https://docs.github.com/rest/#client-errors // more detail on individual errors // error message // HTTP response that caused this error (*ErrorResponse) Error() string GetBlock returns the Block field. Is returns whether the provided error equals this error. *ErrorResponse : error
Event represents a GitHub event. Actor *User CreatedAt *Timestamp ID *string Org *Organization Public *bool RawPayload *json.RawMessage Repo *Repository Type *string GetActor returns the Actor field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetOrg returns the Org field. GetPublic returns the Public field if it's non-nil, zero value otherwise. GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetType returns the Type field if it's non-nil, zero value otherwise. ParsePayload parses the event payload. For recognized event types, a value of the corresponding struct type will be returned. Payload returns the parsed event payload. For recognized event types, a value of the corresponding struct type will be returned. Deprecated: Use ParsePayload instead, which returns an error rather than panics if JSON unmarshaling raw payload fails. ( Event) String() string Event : expvar.Var Event : fmt.Stringer func (*ActivityService).ListEvents(ctx context.Context, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsForOrganization(ctx context.Context, org string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListUserEventsForOrganization(ctx context.Context, org, user string, opts *ListOptions) ([]*Event, *Response, error)
ExternalGroup represents an external group. GroupID *int64 GroupName *string Members []*ExternalGroupMember Teams []*ExternalGroupTeam UpdatedAt *Timestamp GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*TeamsService).GetExternalGroup(ctx context.Context, org string, groupID int64) (*ExternalGroup, *Response, error) func (*TeamsService).UpdateConnectedExternalGroup(ctx context.Context, org, slug string, eg *ExternalGroup) (*ExternalGroup, *Response, error) func (*TeamsService).UpdateConnectedExternalGroup(ctx context.Context, org, slug string, eg *ExternalGroup) (*ExternalGroup, *Response, error)
ExternalGroupList represents a list of external groups. Groups []*ExternalGroup func (*TeamsService).ListExternalGroups(ctx context.Context, org string, opts *ListExternalGroupsOptions) (*ExternalGroupList, *Response, error) func (*TeamsService).ListExternalGroupsForTeamBySlug(ctx context.Context, org, slug string) (*ExternalGroupList, *Response, error)
ExternalGroupMember represents a member of an external group. MemberEmail *string MemberID *int64 MemberLogin *string MemberName *string GetMemberEmail returns the MemberEmail field if it's non-nil, zero value otherwise. GetMemberID returns the MemberID field if it's non-nil, zero value otherwise. GetMemberLogin returns the MemberLogin field if it's non-nil, zero value otherwise. GetMemberName returns the MemberName field if it's non-nil, zero value otherwise.
ExternalGroupTeam represents a team connected to an external group. TeamID *int64 TeamName *string GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. GetTeamName returns the TeamName field if it's non-nil, zero value otherwise.
Feeds represents timeline resources in Atom format. CurrentUserActorURL *string CurrentUserOrganizationURL *string CurrentUserOrganizationURLs []string CurrentUserPublicURL *string CurrentUserURL *string Links *FeedLinks TimelineURL *string UserURL *string GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. GetLinks returns the Links field. GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. func (*ActivityService).ListFeeds(ctx context.Context) (*Feeds, *Response, error)
FirstPatchedVersion represents the identifier for the first patched version of that vulnerability. Identifier *string GetIdentifier returns the Identifier field if it's non-nil, zero value otherwise. func (*AdvisoryVulnerability).GetFirstPatchedVersion() *FirstPatchedVersion
ForkEvent is triggered when a user forks a repository. The Webhook event name is "fork". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#fork Forkee is the created repository. Installation *Installation The following fields are only populated by Webhook events. Sender *User GetForkee returns the Forkee field. GetInstallation returns the Installation field. GetRepo returns the Repo field. GetSender returns the Sender field.
GenerateJITConfigRequest specifies body parameters to GenerateRepoJITConfig. Labels represents the names of the custom labels to add to the runner. Minimum items: 1. Maximum items: 100. Name string RunnerGroupID int64 WorkFolder *string GetWorkFolder returns the WorkFolder field if it's non-nil, zero value otherwise. func (*ActionsService).GenerateOrgJITConfig(ctx context.Context, org string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*ActionsService).GenerateRepoJITConfig(ctx context.Context, owner, repo string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*EnterpriseService).GenerateEnterpriseJITConfig(ctx context.Context, enterprise string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error)
GenerateNotesOptions represents the options to generate release notes. PreviousTagName *string TagName string TargetCommitish *string GetPreviousTagName returns the PreviousTagName field if it's non-nil, zero value otherwise. GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. func (*RepositoriesService).GenerateReleaseNotes(ctx context.Context, owner, repo string, opts *GenerateNotesOptions) (*RepositoryReleaseNotes, *Response, error)
GetAuditLogOptions sets up optional parameters to query audit-log endpoint. // Event type includes. Can be one of "web", "git", "all". Default: "web". (Optional.) ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. // The order of audit log events. Can be one of "asc" or "desc". Default: "desc". (Optional.) // A search phrase. (Optional.) GetInclude returns the Include field if it's non-nil, zero value otherwise. GetOrder returns the Order field if it's non-nil, zero value otherwise. GetPhrase returns the Phrase field if it's non-nil, zero value otherwise. func (*EnterpriseService).GetAuditLog(ctx context.Context, enterprise string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error) func (*OrganizationsService).GetAuditLog(ctx context.Context, org string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error)
GetCodeownersErrorsOptions specifies the optional parameters to the RepositoriesService.GetCodeownersErrors method. A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. main). func (*RepositoriesService).GetCodeownersErrors(ctx context.Context, owner, repo string, opts *GetCodeownersErrorsOptions) (*CodeownersErrors, *Response, error)
Gist represents a GitHub's gist. Comments *int CreatedAt *Timestamp Description *string Files map[GistFilename]GistFile GitPullURL *string GitPushURL *string HTMLURL *string ID *string NodeID *string Owner *User Public *bool UpdatedAt *Timestamp GetComments returns the Comments field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetFiles returns the Files map if it's non-nil, an empty map otherwise. GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPublic returns the Public field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Gist) String() string Gist : expvar.Var Gist : fmt.Stringer func (*GistsService).Create(ctx context.Context, gist *Gist) (*Gist, *Response, error) func (*GistsService).Edit(ctx context.Context, id string, gist *Gist) (*Gist, *Response, error) func (*GistsService).Fork(ctx context.Context, id string) (*Gist, *Response, error) func (*GistsService).Get(ctx context.Context, id string) (*Gist, *Response, error) func (*GistsService).GetRevision(ctx context.Context, id, sha string) (*Gist, *Response, error) func (*GistsService).List(ctx context.Context, user string, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).ListAll(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).ListStarred(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).Create(ctx context.Context, gist *Gist) (*Gist, *Response, error) func (*GistsService).Edit(ctx context.Context, id string, gist *Gist) (*Gist, *Response, error)
GistComment represents a Gist comment. Body *string CreatedAt *Timestamp ID *int64 URL *string User *User GetBody returns the Body field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUser returns the User field. ( GistComment) String() string GistComment : expvar.Var GistComment : fmt.Stringer func (*GistsService).CreateComment(ctx context.Context, gistID string, comment *GistComment) (*GistComment, *Response, error) func (*GistsService).EditComment(ctx context.Context, gistID string, commentID int64, comment *GistComment) (*GistComment, *Response, error) func (*GistsService).GetComment(ctx context.Context, gistID string, commentID int64) (*GistComment, *Response, error) func (*GistsService).ListComments(ctx context.Context, gistID string, opts *ListOptions) ([]*GistComment, *Response, error) func (*GistsService).CreateComment(ctx context.Context, gistID string, comment *GistComment) (*GistComment, *Response, error) func (*GistsService).EditComment(ctx context.Context, gistID string, commentID int64, comment *GistComment) (*GistComment, *Response, error)
GistCommit represents a commit on a gist. ChangeStatus *CommitStats CommittedAt *Timestamp NodeID *string URL *string User *User Version *string GetChangeStatus returns the ChangeStatus field. GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUser returns the User field. GetVersion returns the Version field if it's non-nil, zero value otherwise. ( GistCommit) String() string GistCommit : expvar.Var GistCommit : fmt.Stringer func (*GistsService).ListCommits(ctx context.Context, id string, opts *ListOptions) ([]*GistCommit, *Response, error)
GistFile represents a file on a gist. Content *string Filename *string Language *string RawURL *string Size *int Type *string GetContent returns the Content field if it's non-nil, zero value otherwise. GetFilename returns the Filename field if it's non-nil, zero value otherwise. GetLanguage returns the Language field if it's non-nil, zero value otherwise. GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. ( GistFile) String() string GistFile : expvar.Var GistFile : fmt.Stringer func (*Gist).GetFiles() map[GistFilename]GistFile
GistFilename represents filename on a gist. func (*Gist).GetFiles() map[GistFilename]GistFile
GistFork represents a fork of a gist. CreatedAt *Timestamp ID *string NodeID *string URL *string UpdatedAt *Timestamp User *User GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( GistFork) String() string GistFork : expvar.Var GistFork : fmt.Stringer func (*GistsService).ListForks(ctx context.Context, id string, opts *ListOptions) ([]*GistFork, *Response, error)
GistListOptions specifies the optional parameters to the GistsService.List, GistsService.ListAll, and GistsService.ListStarred methods. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Since filters Gists by time. func (*GistsService).List(ctx context.Context, user string, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).ListAll(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).ListStarred(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error)
GistsService handles communication with the Gist related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/gists Create a gist for authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists#create-a-gist CreateComment creates a comment for a gist. GitHub API docs: https://docs.github.com/rest/gists/comments#create-a-gist-comment Delete a gist. GitHub API docs: https://docs.github.com/rest/gists/gists#delete-a-gist DeleteComment deletes a gist comment. GitHub API docs: https://docs.github.com/rest/gists/comments#delete-a-gist-comment Edit a gist. GitHub API docs: https://docs.github.com/rest/gists/gists#update-a-gist EditComment edits an existing gist comment. GitHub API docs: https://docs.github.com/rest/gists/comments#update-a-gist-comment Fork a gist. GitHub API docs: https://docs.github.com/rest/gists/gists#fork-a-gist Get a single gist. GitHub API docs: https://docs.github.com/rest/gists/gists#get-a-gist GetComment retrieves a single comment from a gist. GitHub API docs: https://docs.github.com/rest/gists/comments#get-a-gist-comment GetRevision gets a specific revision of a gist. GitHub API docs: https://docs.github.com/rest/gists/gists#get-a-gist-revision IsStarred checks if a gist is starred by authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists#check-if-a-gist-is-starred List 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. GitHub API docs: https://docs.github.com/rest/gists/gists#list-gists-for-a-user GitHub API docs: https://docs.github.com/rest/gists/gists#list-gists-for-the-authenticated-user ListAll lists all public gists. GitHub API docs: https://docs.github.com/rest/gists/gists#list-public-gists ListComments lists all comments for a gist. GitHub API docs: https://docs.github.com/rest/gists/comments#list-gist-comments ListCommits lists commits of a gist. GitHub API docs: https://docs.github.com/rest/gists/gists#list-gist-commits ListForks lists forks of a gist. GitHub API docs: https://docs.github.com/rest/gists/gists#list-gist-forks ListStarred lists starred gists of authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists#list-starred-gists Star a gist on behalf of authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists#star-a-gist Unstar a gist on a behalf of authenticated user. GitHub API docs: https://docs.github.com/rest/gists/gists#unstar-a-gist
GistStats represents the number of total, private and public gists. PrivateGists *int PublicGists *int TotalGists *int GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise. ( GistStats) String() string GistStats : expvar.Var GistStats : fmt.Stringer func (*AdminStats).GetGists() *GistStats
GitHubAppAuthorizationEvent is triggered when a user's authorization for a GitHub Application is revoked. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#github_app_authorization The action performed. Possible value is: "revoked". Installation *Installation The following fields are only populated by Webhook events. GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetSender returns the Sender field.
Gitignore represents a .gitignore file as returned by the GitHub API. Name *string Source *string GetName returns the Name field if it's non-nil, zero value otherwise. GetSource returns the Source field if it's non-nil, zero value otherwise. ( Gitignore) String() string Gitignore : expvar.Var Gitignore : fmt.Stringer func (*GitignoresService).Get(ctx context.Context, name string) (*Gitignore, *Response, error)
GitignoresService provides access to the gitignore related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/gitignore/ Get a Gitignore by name. GitHub API docs: https://docs.github.com/rest/gitignore/gitignore#get-a-gitignore-template List all available Gitignore templates. GitHub API docs: https://docs.github.com/rest/gitignore/gitignore#get-all-gitignore-templates
GitObject represents a Git object. SHA *string Type *string URL *string GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( GitObject) String() string GitObject : expvar.Var GitObject : fmt.Stringer func (*Reference).GetObject() *GitObject func (*Tag).GetObject() *GitObject
GitService handles communication with the git data related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/git/ CreateBlob creates a blob object. GitHub API docs: https://docs.github.com/rest/git/blobs#create-a-blob CreateCommit creates a new commit in a repository. commit must not be nil. The 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. GitHub API docs: https://docs.github.com/rest/git/commits#create-a-commit CreateRef creates a new ref in a repository. GitHub API docs: https://docs.github.com/rest/git/refs#create-a-reference CreateTag creates a tag object. GitHub API docs: https://docs.github.com/rest/git/tags#create-a-tag-object CreateTree 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. GitHub API docs: https://docs.github.com/rest/git/trees#create-a-tree DeleteRef deletes a ref from a repository. GitHub API docs: https://docs.github.com/rest/git/refs#delete-a-reference GetBlob fetches a blob from a repo given a SHA. GitHub API docs: https://docs.github.com/rest/git/blobs#get-a-blob GetBlobRaw fetches a blob's contents from a repo. Unlike GetBlob, it returns the raw bytes rather than the base64-encoded data. GitHub API docs: https://docs.github.com/rest/git/blobs#get-a-blob GetCommit fetches the Commit object for a given SHA. GitHub API docs: https://docs.github.com/rest/git/commits#get-a-commit-object GetRef fetches a single reference in a repository. GitHub API docs: https://docs.github.com/rest/git/refs#get-a-reference GetTag fetches a tag from a repo given a SHA. GitHub API docs: https://docs.github.com/rest/git/tags#get-a-tag GetTree fetches the Tree object for a given sha hash from a repository. GitHub API docs: https://docs.github.com/rest/git/trees#get-a-tree ListMatchingRefs lists references in a repository that match a supplied ref. Use an empty ref to list all references. GitHub API docs: https://docs.github.com/rest/git/refs#list-matching-references UpdateRef updates an existing ref in a repository. GitHub API docs: https://docs.github.com/rest/git/refs#update-a-reference
GlobalSecurityAdvisory represents the global security advisory object response. Credits []*Credit GithubReviewedAt *Timestamp ID *int64 NVDPublishedAt *Timestamp References []string RepositoryAdvisoryURL *string SecurityAdvisory SecurityAdvisory SecurityAdvisory.Author *User SecurityAdvisory.CVEID *string SecurityAdvisory.CVSS *AdvisoryCVSS SecurityAdvisory.CWEIDs []string SecurityAdvisory.CWEs []*AdvisoryCWEs SecurityAdvisory.ClosedAt *Timestamp SecurityAdvisory.CollaboratingTeams []*Team SecurityAdvisory.CollaboratingUsers []*User SecurityAdvisory.CreatedAt *Timestamp SecurityAdvisory.CreditsDetailed []*RepoAdvisoryCreditDetailed SecurityAdvisory.Description *string SecurityAdvisory.GHSAID *string SecurityAdvisory.HTMLURL *string SecurityAdvisory.Identifiers []*AdvisoryIdentifier SecurityAdvisory.PrivateFork *Repository SecurityAdvisory.PublishedAt *Timestamp SecurityAdvisory.Publisher *User SecurityAdvisory.Severity *string SecurityAdvisory.State *string SecurityAdvisory.Submission *SecurityAdvisorySubmission SecurityAdvisory.Summary *string SecurityAdvisory.URL *string SecurityAdvisory.UpdatedAt *Timestamp SecurityAdvisory.WithdrawnAt *Timestamp SourceCodeLocation *string Type *string Vulnerabilities []*GlobalSecurityVulnerability GetAuthor returns the Author field. GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. GetCVSS returns the CVSS field. GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. GetGithubReviewedAt returns the GithubReviewedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNVDPublishedAt returns the NVDPublishedAt field if it's non-nil, zero value otherwise. GetPrivateFork returns the PrivateFork field. GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. GetPublisher returns the Publisher field. GetRepositoryAdvisoryURL returns the RepositoryAdvisoryURL field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. GetSourceCodeLocation returns the SourceCodeLocation field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetSubmission returns the Submission field. GetSummary returns the Summary field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. func (*SecurityAdvisoriesService).GetGlobalSecurityAdvisories(ctx context.Context, ghsaID string) (*GlobalSecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).ListGlobalSecurityAdvisories(ctx context.Context, opts *ListGlobalSecurityAdvisoriesOptions) ([]*GlobalSecurityAdvisory, *Response, error)
GlobalSecurityVulnerability represents a vulnerability for a global security advisory. FirstPatchedVersion *string Package *VulnerabilityPackage VulnerableFunctions []string VulnerableVersionRange *string GetFirstPatchedVersion returns the FirstPatchedVersion field if it's non-nil, zero value otherwise. GetPackage returns the Package field. GetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise.
GollumEvent is triggered when a Wiki page is created or updated. The Webhook event name is "gollum". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#gollum Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Pages []*Page The following fields are only populated by Webhook events. Sender *User GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
GPGEmail represents an email address associated to a GPG key. Email *string Verified *bool GetEmail returns the Email field if it's non-nil, zero value otherwise. GetVerified returns the Verified field if it's non-nil, zero value otherwise.
GPGKey represents a GitHub user's public GPG key used to verify GPG signed commits and tags. https://developer.github.com/changes/2016-04-04-git-signing-api-preview/ CanCertify *bool CanEncryptComms *bool CanEncryptStorage *bool CanSign *bool CreatedAt *Timestamp Emails []*GPGEmail ExpiresAt *Timestamp ID *int64 KeyID *string PrimaryKeyID *int64 PublicKey *string RawKey *string Subkeys []*GPGKey GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. GetRawKey returns the RawKey field if it's non-nil, zero value otherwise. String stringifies a GPGKey. GPGKey : expvar.Var GPGKey : fmt.Stringer func (*UsersService).CreateGPGKey(ctx context.Context, armoredPublicKey string) (*GPGKey, *Response, error) func (*UsersService).GetGPGKey(ctx context.Context, id int64) (*GPGKey, *Response, error) func (*UsersService).ListGPGKeys(ctx context.Context, user string, opts *ListOptions) ([]*GPGKey, *Response, error)
Grant represents an OAuth application that has been granted access to an account. App *AuthorizationApp CreatedAt *Timestamp ID *int64 Scopes []string URL *string UpdatedAt *Timestamp GetApp returns the App field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Grant) String() string Grant : expvar.Var Grant : fmt.Stringer
HeadCommit represents a git commit in a GitHub PushEvent. Added []string Author *CommitAuthor Committer *CommitAuthor Distinct *bool The following fields are only populated by Webhook events. Message *string Modified []string Removed []string The following fields are only populated by Events API. Timestamp *Timestamp TreeID *string URL *string GetAuthor returns the Author field. GetCommitter returns the Committer field. GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( HeadCommit) String() string HeadCommit : expvar.Var HeadCommit : fmt.Stringer func (*PushEvent).GetCommits() []*HeadCommit func (*PushEvent).GetHeadCommit() *HeadCommit func (*WorkflowRun).GetHeadCommit() *HeadCommit
Hook represents a GitHub (web and service) hook for a repository. Active *bool Only the following fields are used when creating a hook. Config is required. CreatedAt *Timestamp Events []string ID *int64 LastResponse map[string]interface{} Name *string PingURL *string TestURL *string Type *string URL *string UpdatedAt *Timestamp GetActive returns the Active field if it's non-nil, zero value otherwise. GetConfig returns the Config field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPingURL returns the PingURL field if it's non-nil, zero value otherwise. GetTestURL returns the TestURL field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Hook) String() string Hook : expvar.Var Hook : fmt.Stringer func (*MetaEvent).GetHook() *Hook func (*OrganizationsService).CreateHook(ctx context.Context, org string, hook *Hook) (*Hook, *Response, error) func (*OrganizationsService).EditHook(ctx context.Context, org string, id int64, hook *Hook) (*Hook, *Response, error) func (*OrganizationsService).GetHook(ctx context.Context, org string, id int64) (*Hook, *Response, error) func (*OrganizationsService).ListHooks(ctx context.Context, org string, opts *ListOptions) ([]*Hook, *Response, error) func (*PingEvent).GetHook() *Hook func (*RepositoriesService).CreateHook(ctx context.Context, owner, repo string, hook *Hook) (*Hook, *Response, error) func (*RepositoriesService).EditHook(ctx context.Context, owner, repo string, id int64, hook *Hook) (*Hook, *Response, error) func (*RepositoriesService).GetHook(ctx context.Context, owner, repo string, id int64) (*Hook, *Response, error) func (*RepositoriesService).ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Hook, *Response, error) func (*OrganizationsService).CreateHook(ctx context.Context, org string, hook *Hook) (*Hook, *Response, error) func (*OrganizationsService).EditHook(ctx context.Context, org string, id int64, hook *Hook) (*Hook, *Response, error) func (*RepositoriesService).CreateHook(ctx context.Context, owner, repo string, hook *Hook) (*Hook, *Response, error) func (*RepositoriesService).EditHook(ctx context.Context, owner, repo string, id int64, hook *Hook) (*Hook, *Response, error)
HookConfig describes metadata about a webhook configuration. The media type used to serialize the payloads Possible values are `json` and `form`, the field is not specified the default is `form` The possible values are 0 and 1. Setting it to 1 will allow skip certificate verification for the host, potentially exposing to MitM attacks: https://en.wikipedia.org/wiki/Man-in-the-middle_attack Secret is returned obfuscated by GitHub, but it can be set for outgoing requests. URL *string GetContentType returns the ContentType field if it's non-nil, zero value otherwise. GetInsecureSSL returns the InsecureSSL field if it's non-nil, zero value otherwise. GetSecret returns the Secret field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*AppsService).GetHookConfig(ctx context.Context) (*HookConfig, *Response, error) func (*AppsService).UpdateHookConfig(ctx context.Context, config *HookConfig) (*HookConfig, *Response, error) func (*Hook).GetConfig() *HookConfig func (*OrganizationsService).EditHookConfiguration(ctx context.Context, org string, id int64, config *HookConfig) (*HookConfig, *Response, error) func (*OrganizationsService).GetHookConfiguration(ctx context.Context, org string, id int64) (*HookConfig, *Response, error) func (*RepositoriesService).EditHookConfiguration(ctx context.Context, owner, repo string, id int64, config *HookConfig) (*HookConfig, *Response, error) func (*RepositoriesService).GetHookConfiguration(ctx context.Context, owner, repo string, id int64) (*HookConfig, *Response, error) func (*AppsService).UpdateHookConfig(ctx context.Context, config *HookConfig) (*HookConfig, *Response, error) func (*OrganizationsService).EditHookConfiguration(ctx context.Context, org string, id int64, config *HookConfig) (*HookConfig, *Response, error) func (*RepositoriesService).EditHookConfiguration(ctx context.Context, owner, repo string, id int64, config *HookConfig) (*HookConfig, *Response, error)
HookDelivery represents the data that is received from GitHub's Webhook Delivery API GitHub API docs: - https://docs.github.com/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook - https://docs.github.com/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook Action *string DeliveredAt *Timestamp Duration *float64 Event *string GUID *string ID *int64 InstallationID *int64 Redelivery *bool RepositoryID *int64 Request is populated by GetHookDelivery. Response is populated by GetHookDelivery. Status *string StatusCode *int GetAction returns the Action field if it's non-nil, zero value otherwise. GetDeliveredAt returns the DeliveredAt field if it's non-nil, zero value otherwise. GetDuration returns the Duration field. GetEvent returns the Event field if it's non-nil, zero value otherwise. GetGUID returns the GUID field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInstallationID returns the InstallationID field if it's non-nil, zero value otherwise. GetRedelivery returns the Redelivery field if it's non-nil, zero value otherwise. GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. GetRequest returns the Request field. GetResponse returns the Response field. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetStatusCode returns the StatusCode field if it's non-nil, zero value otherwise. ParseRequestPayload parses the request payload. For recognized event types, a value of the corresponding struct type will be returned. ( HookDelivery) String() string HookDelivery : expvar.Var HookDelivery : fmt.Stringer func (*AppsService).GetHookDelivery(ctx context.Context, deliveryID int64) (*HookDelivery, *Response, error) func (*AppsService).ListHookDeliveries(ctx context.Context, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*AppsService).RedeliverHookDelivery(ctx context.Context, deliveryID int64) (*HookDelivery, *Response, error) func (*OrganizationsService).GetHookDelivery(ctx context.Context, owner string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*OrganizationsService).ListHookDeliveries(ctx context.Context, org string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*OrganizationsService).RedeliverHookDelivery(ctx context.Context, owner string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*RepositoriesService).GetHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*RepositoriesService).ListHookDeliveries(ctx context.Context, owner, repo string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*RepositoriesService).RedeliverHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error)
HookRequest is a part of HookDelivery that contains the HTTP headers and the JSON payload of the webhook request. Headers map[string]string RawPayload *json.RawMessage GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. ( HookRequest) String() string HookRequest : expvar.Var HookRequest : fmt.Stringer func (*HookDelivery).GetRequest() *HookRequest
HookResponse is a part of HookDelivery that contains the HTTP headers and the response body served by the webhook endpoint. Headers map[string]string RawPayload *json.RawMessage GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. ( HookResponse) String() string HookResponse : expvar.Var HookResponse : fmt.Stringer func (*HookDelivery).GetResponse() *HookResponse
HookStats represents the number of total, active and inactive hooks. ActiveHooks *int InactiveHooks *int TotalHooks *int GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise. GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise. GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise. ( HookStats) String() string HookStats : expvar.Var HookStats : fmt.Stringer func (*AdminStats).GetHooks() *HookStats
Hovercard represents hovercard information about a user. Contexts []*UserContext func (*UsersService).GetHovercard(ctx context.Context, user string, opts *HovercardOptions) (*Hovercard, *Response, error)
HovercardOptions specifies optional parameters to the UsersService.GetHovercard method. SubjectID specifies the ID for the SubjectType. (Required when using subject_type.) SubjectType specifies the additional information to be received about the hovercard. Possible values are: organization, repository, issue, pull_request. (Required when using subject_id.) func (*UsersService).GetHovercard(ctx context.Context, user string, opts *HovercardOptions) (*Hovercard, *Response, error)
IDPGroup represents an external identity provider (IDP) group. GroupDescription *string GroupID *string GroupName *string GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise. GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. GetGroupName returns the GroupName field if it's non-nil, zero value otherwise.
IDPGroupList represents a list of external identity provider (IDP) groups. Groups []*IDPGroup func (*TeamsService).CreateOrUpdateIDPGroupConnectionsByID(ctx context.Context, orgID, teamID int64, opts IDPGroupList) (*IDPGroupList, *Response, error) func (*TeamsService).CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org, slug string, opts IDPGroupList) (*IDPGroupList, *Response, error) func (*TeamsService).ListIDPGroupsForTeamByID(ctx context.Context, orgID, teamID int64) (*IDPGroupList, *Response, error) func (*TeamsService).ListIDPGroupsForTeamBySlug(ctx context.Context, org, slug string) (*IDPGroupList, *Response, error) func (*TeamsService).ListIDPGroupsInOrganization(ctx context.Context, org string, opts *ListIDPGroupsOptions) (*IDPGroupList, *Response, error) func (*TeamsService).CreateOrUpdateIDPGroupConnectionsByID(ctx context.Context, orgID, teamID int64, opts IDPGroupList) (*IDPGroupList, *Response, error) func (*TeamsService).CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org, slug string, opts IDPGroupList) (*IDPGroupList, *Response, error)
ImpersonateUserOptions represents the scoping for the OAuth token. Scopes []string func (*AdminService).CreateUserImpersonation(ctx context.Context, username string, opts *ImpersonateUserOptions) (*UserAuthorization, *Response, error)
Import represents a repository import request. AuthorsCount *int AuthorsURL *string CommitCount *int FailedStep *string HTMLURL *string Describes whether files larger than 100MB were found during the importing step. Human readable display name, provided when the Import appears as part of ProjectChoices. The total number of files larger than 100MB found in the originating repository. To see a list of these files, call LargeFiles. The total size in gigabytes of files larger than 100MB found in the originating repository. Message *string Percent *int When the importer finds several projects or repositories at the provided URLs, this will identify the available choices. Call UpdateImport with the selected Import value. PushPercent *int RepositoryURL *string Identifies the current status of an import. An import that does not have errors will progress through these steps: detecting - the "detection" step of the import is in progress because the request did not include a VCS parameter. The import is identifying the type of source control present at the URL. importing - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include CommitCount (the total number of raw commits that will be imported) and Percent (0 - 100, the current progress through the import). mapping - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information. pushing - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include PushPercent, which is the percent value reported by git push when it is "Writing objects". complete - the import is complete, and the repository is ready on GitHub. If there are problems, you will see one of these in the status field: auth_failed - the import requires authentication in order to connect to the original repository. Make an UpdateImport request, and include VCSUsername and VCSPassword. error - the import encountered an error. The import progress response will include the FailedStep and an error message. Contact GitHub support for more information. detection_needs_auth - the importer requires authentication for the originating repository to continue detection. Make an UpdateImport request, and include VCSUsername and VCSPassword. detection_found_nothing - the importer didn't recognize any source control at the URL. detection_found_multiple - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a ProjectChoices field with the possible project choices as values. Make an UpdateImport request, and include VCS and (if applicable) TFVCProject. StatusText *string For a tfvc import, the name of the project that is being imported. URL *string Describes whether the import has been opted in or out of using Git LFS. The value can be 'opt_in', 'opt_out', or 'undecided' if no action has been taken. The originating VCS type. Can be one of 'subversion', 'git', 'mercurial', or 'tfvc'. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. VCSPassword *string The URL of the originating repository. VCSUsername and VCSPassword are only used for StartImport calls that are importing a password-protected repository. GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetPercent returns the Percent field if it's non-nil, zero value otherwise. GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. GetVCS returns the VCS field if it's non-nil, zero value otherwise. GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. ( Import) String() string Import : expvar.Var Import : fmt.Stringer func (*MigrationService).ImportProgress(ctx context.Context, owner, repo string) (*Import, *Response, error) func (*MigrationService).SetLFSPreference(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).StartImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).UpdateImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).SetLFSPreference(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).StartImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).UpdateImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)
Installation represents a GitHub Apps installation. AccessTokensURL *string Account *User AppID *int64 AppSlug *string CreatedAt *Timestamp Events []string HTMLURL *string HasMultipleSingleFiles *bool ID *int64 NodeID *string Permissions *InstallationPermissions RepositoriesURL *string RepositorySelection *string SingleFileName *string SingleFilePaths []string SuspendedAt *Timestamp SuspendedBy *User TargetID *int64 TargetType *string UpdatedAt *Timestamp GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. GetAccount returns the Account field. GetAppID returns the AppID field if it's non-nil, zero value otherwise. GetAppSlug returns the AppSlug field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHasMultipleSingleFiles returns the HasMultipleSingleFiles field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPermissions returns the Permissions field. GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise. GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. GetSuspendedBy returns the SuspendedBy field. GetTargetID returns the TargetID field if it's non-nil, zero value otherwise. GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Installation) String() string Installation : expvar.Var Installation : fmt.Stringer func (*AppsService).FindOrganizationInstallation(ctx context.Context, org string) (*Installation, *Response, error) func (*AppsService).FindRepositoryInstallation(ctx context.Context, owner, repo string) (*Installation, *Response, error) func (*AppsService).FindRepositoryInstallationByID(ctx context.Context, id int64) (*Installation, *Response, error) func (*AppsService).FindUserInstallation(ctx context.Context, user string) (*Installation, *Response, error) func (*AppsService).GetInstallation(ctx context.Context, id int64) (*Installation, *Response, error) func (*AppsService).ListInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error) func (*AppsService).ListUserInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error) func (*BranchProtectionRuleEvent).GetInstallation() *Installation func (*CheckRunEvent).GetInstallation() *Installation func (*CheckSuiteEvent).GetInstallation() *Installation func (*CodeScanningAlertEvent).GetInstallation() *Installation func (*CommitCommentEvent).GetInstallation() *Installation func (*ContentReferenceEvent).GetInstallation() *Installation func (*CreateEvent).GetInstallation() *Installation func (*DeleteEvent).GetInstallation() *Installation func (*DependabotAlertEvent).GetInstallation() *Installation func (*DeployKeyEvent).GetInstallation() *Installation func (*DeploymentEvent).GetInstallation() *Installation func (*DeploymentProtectionRuleEvent).GetInstallation() *Installation func (*DeploymentReviewEvent).GetInstallation() *Installation func (*DeploymentStatusEvent).GetInstallation() *Installation func (*DiscussionCommentEvent).GetInstallation() *Installation func (*DiscussionEvent).GetInstallation() *Installation func (*ForkEvent).GetInstallation() *Installation func (*GitHubAppAuthorizationEvent).GetInstallation() *Installation func (*GollumEvent).GetInstallation() *Installation func (*InstallationEvent).GetInstallation() *Installation func (*InstallationRepositoriesEvent).GetInstallation() *Installation func (*InstallationTargetEvent).GetInstallation() *Installation func (*IssueCommentEvent).GetInstallation() *Installation func (*IssuesEvent).GetInstallation() *Installation func (*LabelEvent).GetInstallation() *Installation func (*MarketplacePurchaseEvent).GetInstallation() *Installation func (*MemberEvent).GetInstallation() *Installation func (*MembershipEvent).GetInstallation() *Installation func (*MergeGroupEvent).GetInstallation() *Installation func (*MetaEvent).GetInstallation() *Installation func (*MilestoneEvent).GetInstallation() *Installation func (*OrganizationEvent).GetInstallation() *Installation func (*OrgBlockEvent).GetInstallation() *Installation func (*PackageEvent).GetInstallation() *Installation func (*PageBuildEvent).GetInstallation() *Installation func (*PersonalAccessTokenRequestEvent).GetInstallation() *Installation func (*PingEvent).GetInstallation() *Installation func (*ProjectCardEvent).GetInstallation() *Installation func (*ProjectColumnEvent).GetInstallation() *Installation func (*ProjectEvent).GetInstallation() *Installation func (*ProjectV2Event).GetInstallation() *Installation func (*ProjectV2ItemEvent).GetInstallation() *Installation func (*PublicEvent).GetInstallation() *Installation func (*PullRequestEvent).GetInstallation() *Installation func (*PullRequestReviewCommentEvent).GetInstallation() *Installation func (*PullRequestReviewEvent).GetInstallation() *Installation func (*PullRequestReviewThreadEvent).GetInstallation() *Installation func (*PullRequestTargetEvent).GetInstallation() *Installation func (*PushEvent).GetInstallation() *Installation func (*ReleaseEvent).GetInstallation() *Installation func (*RepositoryDispatchEvent).GetInstallation() *Installation func (*RepositoryEvent).GetInstallation() *Installation func (*RepositoryVulnerabilityAlertEvent).GetInstallation() *Installation func (*SecretScanningAlertEvent).GetInstallation() *Installation func (*SecurityAdvisoryEvent).GetInstallation() *Installation func (*SecurityAndAnalysisEvent).GetInstallation() *Installation func (*SponsorshipEvent).GetInstallation() *Installation func (*StarEvent).GetInstallation() *Installation func (*StatusEvent).GetInstallation() *Installation func (*TeamAddEvent).GetInstallation() *Installation func (*TeamEvent).GetInstallation() *Installation func (*UserEvent).GetInstallation() *Installation func (*WatchEvent).GetInstallation() *Installation func (*WorkflowDispatchEvent).GetInstallation() *Installation func (*WorkflowJobEvent).GetInstallation() *Installation func (*WorkflowRunEvent).GetInstallation() *Installation
InstallationChanges represents a change in slug or login on an installation. Login *InstallationLoginChange Slug *InstallationSlugChange GetLogin returns the Login field. GetSlug returns the Slug field. func (*InstallationTargetEvent).GetChanges() *InstallationChanges
InstallationEvent is triggered when a GitHub App has been installed, uninstalled, suspend, unsuspended or new permissions have been accepted. The Webhook event name is "installation". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#installation The action that was performed. Can be either "created", "deleted", "suspend", "unsuspend" or "new_permissions_accepted". Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Repositories []*Repository Requester *User Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRequester returns the Requester field. GetSender returns the Sender field.
InstallationLoginChange represents a change in login on an installation. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*InstallationChanges).GetLogin() *InstallationLoginChange
InstallationPermissions lists the repository and organization permissions for an installation. Permission names taken from: https://docs.github.com/enterprise-server@3.0/rest/apps#create-an-installation-access-token-for-an-app https://docs.github.com/rest/apps#create-an-installation-access-token-for-an-app Actions *string ActionsVariables *string Administration *string Blocking *string Checks *string ContentReferences *string Contents *string Deployments *string Emails *string Environments *string Followers *string Issues *string Members *string Metadata *string OrganizationAdministration *string OrganizationCustomOrgRoles *string OrganizationCustomProperties *string OrganizationCustomRoles *string OrganizationHooks *string OrganizationPackages *string OrganizationPersonalAccessTokenRequests *string OrganizationPersonalAccessTokens *string OrganizationPlan *string OrganizationPreReceiveHooks *string OrganizationProjects *string OrganizationSecrets *string OrganizationSelfHostedRunners *string OrganizationUserBlocking *string Packages *string Pages *string PullRequests *string RepositoryHooks *string RepositoryPreReceiveHooks *string RepositoryProjects *string SecretScanningAlerts *string Secrets *string SecurityEvents *string SingleFile *string Statuses *string TeamDiscussions *string VulnerabilityAlerts *string Workflows *string GetActions returns the Actions field if it's non-nil, zero value otherwise. GetActionsVariables returns the ActionsVariables field if it's non-nil, zero value otherwise. GetAdministration returns the Administration field if it's non-nil, zero value otherwise. GetBlocking returns the Blocking field if it's non-nil, zero value otherwise. GetChecks returns the Checks field if it's non-nil, zero value otherwise. GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise. GetContents returns the Contents field if it's non-nil, zero value otherwise. GetDeployments returns the Deployments field if it's non-nil, zero value otherwise. GetEmails returns the Emails field if it's non-nil, zero value otherwise. GetEnvironments returns the Environments field if it's non-nil, zero value otherwise. GetFollowers returns the Followers field if it's non-nil, zero value otherwise. GetIssues returns the Issues field if it's non-nil, zero value otherwise. GetMembers returns the Members field if it's non-nil, zero value otherwise. GetMetadata returns the Metadata field if it's non-nil, zero value otherwise. GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise. GetOrganizationCustomOrgRoles returns the OrganizationCustomOrgRoles field if it's non-nil, zero value otherwise. GetOrganizationCustomProperties returns the OrganizationCustomProperties field if it's non-nil, zero value otherwise. GetOrganizationCustomRoles returns the OrganizationCustomRoles field if it's non-nil, zero value otherwise. GetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise. GetOrganizationPackages returns the OrganizationPackages field if it's non-nil, zero value otherwise. GetOrganizationPersonalAccessTokenRequests returns the OrganizationPersonalAccessTokenRequests field if it's non-nil, zero value otherwise. GetOrganizationPersonalAccessTokens returns the OrganizationPersonalAccessTokens field if it's non-nil, zero value otherwise. GetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise. GetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise. GetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise. GetOrganizationSecrets returns the OrganizationSecrets field if it's non-nil, zero value otherwise. GetOrganizationSelfHostedRunners returns the OrganizationSelfHostedRunners field if it's non-nil, zero value otherwise. GetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise. GetPackages returns the Packages field if it's non-nil, zero value otherwise. GetPages returns the Pages field if it's non-nil, zero value otherwise. GetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise. GetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise. GetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise. GetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise. GetSecretScanningAlerts returns the SecretScanningAlerts field if it's non-nil, zero value otherwise. GetSecrets returns the Secrets field if it's non-nil, zero value otherwise. GetSecurityEvents returns the SecurityEvents field if it's non-nil, zero value otherwise. GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise. GetStatuses returns the Statuses field if it's non-nil, zero value otherwise. GetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise. GetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise. GetWorkflows returns the Workflows field if it's non-nil, zero value otherwise. func (*App).GetPermissions() *InstallationPermissions func (*Installation).GetPermissions() *InstallationPermissions func (*InstallationToken).GetPermissions() *InstallationPermissions func (*InstallationTokenListRepoOptions).GetPermissions() *InstallationPermissions func (*InstallationTokenOptions).GetPermissions() *InstallationPermissions
InstallationRepositoriesEvent is triggered when a repository is added or removed from an installation. The Webhook event name is "installation_repositories". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#installation_repositories The action that was performed. Can be either "added" or "removed". Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. RepositoriesAdded []*Repository RepositoriesRemoved []*Repository RepositorySelection *string Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. GetSender returns the Sender field.
InstallationRequest represents a pending GitHub App installation request. Account *User CreatedAt *Timestamp ID *int64 NodeID *string Requester *User GetAccount returns the Account field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRequester returns the Requester field. func (*AppsService).ListInstallationRequests(ctx context.Context, opts *ListOptions) ([]*InstallationRequest, *Response, error)
InstallationSlugChange represents a change in slug on an installation. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*InstallationChanges).GetSlug() *InstallationSlugChange
InstallationTargetEvent is triggered when there is activity on an installation from a user or organization account. The Webhook event name is "installation_target". GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#installation_target Account *User Action *string Changes *InstallationChanges Enterprise *Enterprise Installation *Installation Organization *Organization Repository *Repository Sender *User TargetType *string GetAccount returns the Account field. GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetEnterprise returns the Enterprise field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepository returns the Repository field. GetSender returns the Sender field. GetTargetType returns the TargetType field if it's non-nil, zero value otherwise.
InstallationToken represents an installation token. ExpiresAt *Timestamp Permissions *InstallationPermissions Repositories []*Repository Token *string GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetPermissions returns the Permissions field. GetToken returns the Token field if it's non-nil, zero value otherwise. func (*AppsService).CreateInstallationToken(ctx context.Context, id int64, opts *InstallationTokenOptions) (*InstallationToken, *Response, error) func (*AppsService).CreateInstallationTokenListRepos(ctx context.Context, id int64, opts *InstallationTokenListRepoOptions) (*InstallationToken, *Response, error)
The permissions granted to the access token. The permissions object includes the permission names and their access type. The names of the repositories that the installation token can access. Providing repository names restricts the access of an installation token to specific repositories. The IDs of the repositories that the installation token can access. Providing repository IDs restricts the access of an installation token to specific repositories. GetPermissions returns the Permissions field. func (*AppsService).CreateInstallationTokenListRepos(ctx context.Context, id int64, opts *InstallationTokenListRepoOptions) (*InstallationToken, *Response, error)
InstallationTokenOptions allow restricting a token's access to specific repositories. The permissions granted to the access token. The permissions object includes the permission names and their access type. The names of the repositories that the installation token can access. Providing repository names restricts the access of an installation token to specific repositories. The IDs of the repositories that the installation token can access. Providing repository IDs restricts the access of an installation token to specific repositories. GetPermissions returns the Permissions field. func (*AppsService).CreateInstallationToken(ctx context.Context, id int64, opts *InstallationTokenOptions) (*InstallationToken, *Response, error)
InteractionRestriction represents the interaction restrictions for repository and organization. ExpiresAt specifies the time after which the interaction restrictions expire. The default expiry time is 24 hours from the time restriction is created. 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" and "collaborators_only". Origin specifies the type of the resource to interact with. Possible values are: "repository" and "organization". GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetLimit returns the Limit field if it's non-nil, zero value otherwise. GetOrigin returns the Origin field if it's non-nil, zero value otherwise. func (*InteractionsService).GetRestrictionsForOrg(ctx context.Context, organization string) (*InteractionRestriction, *Response, error) func (*InteractionsService).GetRestrictionsForRepo(ctx context.Context, owner, repo string) (*InteractionRestriction, *Response, error) func (*InteractionsService).UpdateRestrictionsForOrg(ctx context.Context, organization, limit string) (*InteractionRestriction, *Response, error) func (*InteractionsService).UpdateRestrictionsForRepo(ctx context.Context, owner, repo, limit string) (*InteractionRestriction, *Response, error)
InteractionsService handles communication with the repository and organization related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/interactions/ GetRestrictionsForOrg fetches the interaction restrictions for an organization. GitHub API docs: https://docs.github.com/rest/interactions/orgs#get-interaction-restrictions-for-an-organization GetRestrictionsForRepo fetches the interaction restrictions for a repository. GitHub API docs: https://docs.github.com/rest/interactions/repos#get-interaction-restrictions-for-a-repository RemoveRestrictionsFromOrg removes the interaction restrictions for an organization. GitHub API docs: https://docs.github.com/rest/interactions/orgs#remove-interaction-restrictions-for-an-organization RemoveRestrictionsFromRepo removes the interaction restrictions for a repository. GitHub API docs: https://docs.github.com/rest/interactions/repos#remove-interaction-restrictions-for-a-repository UpdateRestrictionsForOrg adds or updates the interaction restrictions for an organization. limit 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". GitHub API docs: https://docs.github.com/rest/interactions/orgs#set-interaction-restrictions-for-an-organization UpdateRestrictionsForRepo adds or updates the interaction restrictions for a repository. limit 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". GitHub API docs: https://docs.github.com/rest/interactions/repos#set-interaction-restrictions-for-a-repository
Invitation represents a team member's invitation status. CreatedAt *Timestamp Email *string FailedAt *Timestamp FailedReason *string ID *int64 InvitationTeamURL *string Inviter *User Login *string NodeID *string Role can be one of the values - 'direct_member', 'admin', 'billing_manager', 'hiring_manager', or 'reinstate'. TeamCount *int GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetEmail returns the Email field if it's non-nil, zero value otherwise. GetFailedAt returns the FailedAt field if it's non-nil, zero value otherwise. GetFailedReason returns the FailedReason field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise. GetInviter returns the Inviter field. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRole returns the Role field if it's non-nil, zero value otherwise. GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise. ( Invitation) String() string Invitation : expvar.Var Invitation : fmt.Stringer func (*OrganizationEvent).GetInvitation() *Invitation func (*OrganizationsService).CreateOrgInvitation(ctx context.Context, org string, opts *CreateOrgInvitationOptions) (*Invitation, *Response, error) func (*OrganizationsService).ListFailedOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error) func (*OrganizationsService).ListPendingOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error) func (*TeamsService).ListPendingTeamInvitationsByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Invitation, *Response, error) func (*TeamsService).ListPendingTeamInvitationsBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Invitation, *Response, error)
Issue represents a GitHub 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. ActiveLockReason is populated only when LockReason is provided while locking the issue. Possible values are: "off-topic", "too heated", "resolved", and "spam". Assignee *User Assignees []*User AuthorAssociation *string Body *string ClosedAt *Timestamp ClosedBy *User Comments *int CommentsURL *string CreatedAt *Timestamp Draft *bool EventsURL *string HTMLURL *string ID *int64 Labels []*Label LabelsURL *string Locked *bool Milestone *Milestone NodeID *string Number *int PullRequestLinks *PullRequestLinks Reactions *Reactions Repository *Repository RepositoryURL *string State *string StateReason can be one of: "completed", "not_planned", "reopened". TextMatches is only populated from search results that request text matches See: search.go and https://docs.github.com/rest/search/#text-match-metadata Title *string URL *string UpdatedAt *Timestamp User *User GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. GetAssignee returns the Assignee field. GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetClosedBy returns the ClosedBy field. GetComments returns the Comments field if it's non-nil, zero value otherwise. GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDraft returns the Draft field if it's non-nil, zero value otherwise. GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. GetLocked returns the Locked field if it's non-nil, zero value otherwise. GetMilestone returns the Milestone field. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetPullRequestLinks returns the PullRequestLinks field. GetReactions returns the Reactions field. GetRepository returns the Repository field. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetStateReason returns the StateReason field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. IsPullRequest 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. ( Issue) String() string Issue : expvar.Var Issue : fmt.Stringer func (*IssueCommentEvent).GetIssue() *Issue func (*IssueEvent).GetIssue() *Issue func (*IssuesEvent).GetIssue() *Issue func (*IssuesService).AddAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error) func (*IssuesService).Create(ctx context.Context, owner string, repo string, issue *IssueRequest) (*Issue, *Response, error) func (*IssuesService).Edit(ctx context.Context, owner string, repo string, number int, issue *IssueRequest) (*Issue, *Response, error) func (*IssuesService).Get(ctx context.Context, owner string, repo string, number int) (*Issue, *Response, error) func (*IssuesService).List(ctx context.Context, all bool, opts *IssueListOptions) ([]*Issue, *Response, error) func (*IssuesService).ListByOrg(ctx context.Context, org string, opts *IssueListOptions) ([]*Issue, *Response, error) func (*IssuesService).ListByRepo(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error) func (*IssuesService).RemoveAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error) func (*IssuesService).RemoveMilestone(ctx context.Context, owner, repo string, issueNumber int) (*Issue, *Response, error) func (*Source).GetIssue() *Issue
IssueComment represents a comment left on an issue. AuthorAssociation is the comment author's relationship to the issue's repository. Possible values are "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIMER", "FIRST_TIME_CONTRIBUTOR", "MEMBER", "OWNER", or "NONE". Body *string CreatedAt *Timestamp HTMLURL *string ID *int64 IssueURL *string NodeID *string Reactions *Reactions URL *string UpdatedAt *Timestamp User *User GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetReactions returns the Reactions field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( IssueComment) String() string IssueComment : expvar.Var IssueComment : fmt.Stringer func (*IssueCommentEvent).GetComment() *IssueComment func (*IssuesService).CreateComment(ctx context.Context, owner string, repo string, number int, comment *IssueComment) (*IssueComment, *Response, error) func (*IssuesService).EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *IssueComment) (*IssueComment, *Response, error) func (*IssuesService).GetComment(ctx context.Context, owner string, repo string, commentID int64) (*IssueComment, *Response, error) func (*IssuesService).ListComments(ctx context.Context, owner string, repo string, number int, opts *IssueListCommentsOptions) ([]*IssueComment, *Response, error) func (*IssuesService).CreateComment(ctx context.Context, owner string, repo string, number int, comment *IssueComment) (*IssueComment, *Response, error) func (*IssuesService).EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *IssueComment) (*IssueComment, *Response, error)
IssueCommentEvent is triggered when an issue comment is created on an issue or pull request. The Webhook event name is "issue_comment". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment Action is the action that was performed on the comment. Possible values are: "created", "edited", "deleted". The following fields are only populated by Webhook events. Comment *IssueComment Installation *Installation Issue *Issue The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetComment returns the Comment field. GetInstallation returns the Installation field. GetIssue returns the Issue field. GetOrganization returns the Organization field. GetRepo returns the Repo field. GetSender returns the Sender field.
IssueEvent represents an event that occurred around an Issue or Pull Request. The action corresponding to the event. The User that generated this event. Assignee *User Assigner *User CommitID *string CreatedAt *Timestamp DismissedReview *DismissedReview Event identifies the actual type of Event that occurred. Possible values are: closed The Actor closed the issue. If the issue was closed by commit message, CommitID holds the SHA1 hash of the commit. merged The Actor merged into master a branch containing a commit mentioning the issue. CommitID holds the SHA1 of the merge commit. referenced The Actor committed to master a commit mentioning the issue in its commit message. CommitID holds the SHA1 of the commit. reopened, unlocked The Actor did that to the issue. locked The Actor locked the issue. LockReason holds the reason of locking the issue (if provided while locking). renamed The Actor changed the issue title from Rename.From to Rename.To. mentioned Someone unspecified @mentioned the Actor [sic] in an issue comment body. assigned, unassigned The Assigner assigned the issue to or removed the assignment from the Assignee. labeled, unlabeled The Actor added or removed the Label from the issue. milestoned, demilestoned The Actor added or removed the issue from the Milestone. subscribed, unsubscribed The Actor subscribed to or unsubscribed from notifications for an issue. head_ref_deleted, head_ref_restored The pull request’s branch was deleted or restored. review_dismissed The review was dismissed and `DismissedReview` will be populated below. review_requested, review_request_removed The Actor requested or removed the request for a review. RequestedReviewer or RequestedTeam, and ReviewRequester will be populated below. ID *int64 Issue *Issue Label *Label LockReason *string Milestone *Milestone PerformedViaGithubApp *App ProjectCard *ProjectCard Rename *Rename Only present on certain events; see above. RequestedReviewer *User RequestedTeam *Team ReviewRequester *User URL *string GetActor returns the Actor field. GetAssignee returns the Assignee field. GetAssigner returns the Assigner field. GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDismissedReview returns the DismissedReview field. GetEvent returns the Event field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetIssue returns the Issue field. GetLabel returns the Label field. GetLockReason returns the LockReason field if it's non-nil, zero value otherwise. GetMilestone returns the Milestone field. GetPerformedViaGithubApp returns the PerformedViaGithubApp field. GetProjectCard returns the ProjectCard field. GetRename returns the Rename field. GetRepository returns the Repository field. GetRequestedReviewer returns the RequestedReviewer field. GetRequestedTeam returns the RequestedTeam field. GetReviewRequester returns the ReviewRequester field. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*ActivityService).ListIssueEventsForRepository(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*IssuesService).GetEvent(ctx context.Context, owner, repo string, id int64) (*IssueEvent, *Response, error) func (*IssuesService).ListIssueEvents(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*IssuesService).ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error)
IssueImport represents body of issue to import. Assignee *string Body string Closed *bool ClosedAt *Timestamp CreatedAt *Timestamp Labels []string Milestone *int Title string UpdatedAt *Timestamp GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. GetClosed returns the Closed field if it's non-nil, zero value otherwise. GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
IssueImportError represents errors of an issue import create request. Code *string Field *string Location *string Resource *string Value *string GetCode returns the Code field if it's non-nil, zero value otherwise. GetField returns the Field field if it's non-nil, zero value otherwise. GetLocation returns the Location field if it's non-nil, zero value otherwise. GetResource returns the Resource field if it's non-nil, zero value otherwise. GetValue returns the Value field if it's non-nil, zero value otherwise.
IssueImportRequest represents a request to create an issue. https://gist.github.com/jonmagic/5282384165e0f86ef105#supported-issue-and-comment-fields Comments []*Comment IssueImport IssueImport func (*IssueImportService).Create(ctx context.Context, owner, repo string, issue *IssueImportRequest) (*IssueImportResponse, *Response, error)
IssueImportResponse represents the response of an issue import create request. https://gist.github.com/jonmagic/5282384165e0f86ef105#import-issue-response CreatedAt *Timestamp DocumentationURL *string Errors []*IssueImportError ID *int ImportIssuesURL *string Message *string RepositoryURL *string Status *string URL *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDocumentationURL returns the DocumentationURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetImportIssuesURL returns the ImportIssuesURL field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*IssueImportService).CheckStatus(ctx context.Context, owner, repo string, issueID int64) (*IssueImportResponse, *Response, error) func (*IssueImportService).CheckStatusSince(ctx context.Context, owner, repo string, since Timestamp) ([]*IssueImportResponse, *Response, error) func (*IssueImportService).Create(ctx context.Context, owner, repo string, issue *IssueImportRequest) (*IssueImportResponse, *Response, error)
IssueImportService handles communication with the issue import related methods of the Issue Import GitHub API. CheckStatus checks the status of an imported issue. GitHub API docs: https://gist.github.com/jonmagic/5282384165e0f86ef105#import-status-request CheckStatusSince checks the status of multiple imported issues since a given date. GitHub API docs: https://gist.github.com/jonmagic/5282384165e0f86ef105#check-status-of-multiple-issues Create a new imported issue on the specified repository. GitHub API docs: https://gist.github.com/jonmagic/5282384165e0f86ef105#start-an-issue-import
IssueListByRepoOptions specifies the optional parameters to the IssuesService.ListByRepo method. Assignee filters issues based on their assignee. Possible values are a user name, "none" for issues that are not assigned, "*" for issues with any assigned user. Creator filters issues based on their creator. Direction in which to sort issues. Possible values are: asc, desc. Default is "desc". Labels filters issues based on their label. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Mentioned filters issues to those mentioned a specific user. Milestone limits issues for the specified milestone. Possible values are a milestone number, "none" for issues with no milestone, "*" for issues with any milestone. Since filters issues by time. Sort specifies how to sort issues. Possible values are: created, updated, and comments. Default value is "created". State filters issues based on their state. Possible values are: open, closed, all. Default is "open". func (*IssuesService).ListByRepo(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error)
IssueListCommentsOptions specifies the optional parameters to the IssuesService.ListComments method. Direction in which to sort comments. Possible values are: asc, desc. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Since filters comments by time. Sort specifies how to sort comments. Possible values are: created, updated. GetDirection returns the Direction field if it's non-nil, zero value otherwise. GetSince returns the Since field if it's non-nil, zero value otherwise. GetSort returns the Sort field if it's non-nil, zero value otherwise. func (*IssuesService).ListComments(ctx context.Context, owner string, repo string, number int, opts *IssueListCommentsOptions) ([]*IssueComment, *Response, error)
IssueListOptions specifies the optional parameters to the IssuesService.List and IssuesService.ListByOrg methods. Direction in which to sort issues. Possible values are: asc, desc. Default is "desc". Filter specifies which issues to list. Possible values are: assigned, created, mentioned, subscribed, all. Default is "assigned". Labels filters issues based on their label. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Since filters issues by time. Sort specifies how to sort issues. Possible values are: created, updated, and comments. Default value is "created". State filters issues based on their state. Possible values are: open, closed, all. Default is "open". func (*IssuesService).List(ctx context.Context, all bool, opts *IssueListOptions) ([]*Issue, *Response, error) func (*IssuesService).ListByOrg(ctx context.Context, org string, opts *IssueListOptions) ([]*Issue, *Response, error)
IssueRequest represents a request to create/edit an issue. It is separate from Issue above because otherwise Labels and Assignee fail to serialize to the correct JSON. Assignee *string Assignees *[]string Body *string Labels *[]string Milestone *int State *string StateReason can be 'completed' or 'not_planned'. Title *string GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetLabels returns the Labels field if it's non-nil, zero value otherwise. GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetStateReason returns the StateReason field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. func (*IssuesService).Create(ctx context.Context, owner string, repo string, issue *IssueRequest) (*Issue, *Response, error) func (*IssuesService).Edit(ctx context.Context, owner string, repo string, number int, issue *IssueRequest) (*Issue, *Response, error)
IssuesEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#issues Action is the action that was performed. Possible values are: "opened", "edited", "deleted", "transferred", "pinned", "unpinned", "closed", "reopened", "assigned", "unassigned", "labeled", "unlabeled", "locked", "unlocked", "milestoned", or "demilestoned". Assignee *User The following fields are only populated by Webhook events. Installation *Installation Issue *Issue Label *Label Milestone *Milestone The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAssignee returns the Assignee field. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetIssue returns the Issue field. GetLabel returns the Label field. GetMilestone returns the Milestone field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
IssuesSearchResult represents the result of an issues search. IncompleteResults *bool Issues []*Issue Total *int GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Issues(ctx context.Context, query string, opts *SearchOptions) (*IssuesSearchResult, *Response, error)
IssuesService handles communication with the issue related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/issues/ AddAssignees adds the provided GitHub users as assignees to the issue. GitHub API docs: https://docs.github.com/rest/issues/assignees#add-assignees-to-an-issue AddLabelsToIssue adds labels to an issue. GitHub API docs: https://docs.github.com/rest/issues/labels#add-labels-to-an-issue Create a new issue on the specified repository. GitHub API docs: https://docs.github.com/rest/issues/issues#create-an-issue CreateComment creates a new comment on the specified issue. GitHub API docs: https://docs.github.com/rest/issues/comments#create-an-issue-comment CreateLabel creates a new label on the specified repository. GitHub API docs: https://docs.github.com/rest/issues/labels#create-a-label CreateMilestone creates a new milestone on the specified repository. GitHub API docs: https://docs.github.com/rest/issues/milestones#create-a-milestone DeleteComment deletes an issue comment. GitHub API docs: https://docs.github.com/rest/issues/comments#delete-an-issue-comment DeleteLabel deletes a label. GitHub API docs: https://docs.github.com/rest/issues/labels#delete-a-label DeleteMilestone deletes a milestone. GitHub API docs: https://docs.github.com/rest/issues/milestones#delete-a-milestone Edit (update) an issue. GitHub API docs: https://docs.github.com/rest/issues/issues#update-an-issue EditComment updates an issue comment. A non-nil comment.Body must be provided. Other comment fields should be left nil. GitHub API docs: https://docs.github.com/rest/issues/comments#update-an-issue-comment EditLabel edits a label. GitHub API docs: https://docs.github.com/rest/issues/labels#update-a-label EditMilestone edits a milestone. GitHub API docs: https://docs.github.com/rest/issues/milestones#update-a-milestone Get a single issue. GitHub API docs: https://docs.github.com/rest/issues/issues#get-an-issue GetComment fetches the specified issue comment. GitHub API docs: https://docs.github.com/rest/issues/comments#get-an-issue-comment GetEvent returns the specified issue event. GitHub API docs: https://docs.github.com/rest/issues/events#get-an-issue-event GetLabel gets a single label. GitHub API docs: https://docs.github.com/rest/issues/labels#get-a-label GetMilestone gets a single milestone. GitHub API docs: https://docs.github.com/rest/issues/milestones#get-a-milestone IsAssignee checks if a user is an assignee for the specified repository. GitHub API docs: https://docs.github.com/rest/issues/assignees#check-if-a-user-can-be-assigned List the issues for the authenticated user. If all is true, list issues across all the user's visible repositories including owned, member, and organization repositories; if false, list only owned and member repositories. GitHub API docs: https://docs.github.com/rest/issues/issues#list-issues-assigned-to-the-authenticated-user GitHub API docs: https://docs.github.com/rest/issues/issues#list-user-account-issues-assigned-to-the-authenticated-user ListAssignees fetches all available assignees (owners and collaborators) to which issues may be assigned. GitHub API docs: https://docs.github.com/rest/issues/assignees#list-assignees ListByOrg fetches the issues in the specified organization for the authenticated user. GitHub API docs: https://docs.github.com/rest/issues/issues#list-organization-issues-assigned-to-the-authenticated-user ListByRepo lists the issues for the specified repository. GitHub API docs: https://docs.github.com/rest/issues/issues#list-repository-issues ListComments lists all comments on the specified issue. Specifying an issue number of 0 will return all comments on all issues for the repository. GitHub API docs: https://docs.github.com/rest/issues/comments#list-issue-comments GitHub API docs: https://docs.github.com/rest/issues/comments#list-issue-comments-for-a-repository ListIssueEvents lists events for the specified issue. GitHub API docs: https://docs.github.com/rest/issues/events#list-issue-events ListIssueTimeline lists events for the specified issue. GitHub API docs: https://docs.github.com/rest/issues/timeline#list-timeline-events-for-an-issue ListLabels lists all labels for a repository. GitHub API docs: https://docs.github.com/rest/issues/labels#list-labels-for-a-repository ListLabelsByIssue lists all labels for an issue. GitHub API docs: https://docs.github.com/rest/issues/labels#list-labels-for-an-issue ListLabelsForMilestone lists labels for every issue in a milestone. GitHub API docs: https://docs.github.com/rest/issues/labels#list-labels-for-issues-in-a-milestone ListMilestones lists all milestones for a repository. GitHub API docs: https://docs.github.com/rest/issues/milestones#list-milestones ListRepositoryEvents lists events for the specified repository. GitHub API docs: https://docs.github.com/rest/issues/events#list-issue-events-for-a-repository Lock an issue's conversation. GitHub API docs: https://docs.github.com/rest/issues/issues#lock-an-issue RemoveAssignees removes the provided GitHub users as assignees from the issue. GitHub API docs: https://docs.github.com/rest/issues/assignees#remove-assignees-from-an-issue RemoveLabelForIssue removes a label for an issue. GitHub API docs: https://docs.github.com/rest/issues/labels#remove-a-label-from-an-issue RemoveLabelsForIssue removes all labels for an issue. GitHub API docs: https://docs.github.com/rest/issues/labels#remove-all-labels-from-an-issue RemoveMilestone removes a milestone from an issue. This is a helper method to explicitly update an issue with a `null` milestone, thereby removing it. GitHub API docs: https://docs.github.com/rest/issues/issues#update-an-issue ReplaceLabelsForIssue replaces all labels for an issue. GitHub API docs: https://docs.github.com/rest/issues/labels#set-labels-for-an-issue Unlock an issue's conversation. GitHub API docs: https://docs.github.com/rest/issues/issues#unlock-an-issue
IssueStats represents the number of total, open and closed issues. ClosedIssues *int OpenIssues *int TotalIssues *int GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise. ( IssueStats) String() string IssueStats : expvar.Var IssueStats : fmt.Stringer func (*AdminStats).GetIssues() *IssueStats
JITRunnerConfig represents encoded JIT configuration that can be used to bootstrap a self-hosted runner. EncodedJITConfig *string Runner *Runner GetEncodedJITConfig returns the EncodedJITConfig field if it's non-nil, zero value otherwise. GetRunner returns the Runner field. func (*ActionsService).GenerateOrgJITConfig(ctx context.Context, org string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*ActionsService).GenerateRepoJITConfig(ctx context.Context, owner, repo string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*EnterpriseService).GenerateEnterpriseJITConfig(ctx context.Context, enterprise string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error)
Jobs represents a slice of repository action workflow job. Jobs []*WorkflowJob TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, opts *ListWorkflowJobsOptions) (*Jobs, *Response, error) func (*ActionsService).ListWorkflowJobsAttempt(ctx context.Context, owner, repo string, runID, attemptNumber int64, opts *ListOptions) (*Jobs, *Response, error)
Key represents a public SSH key used to authenticate a user or deploy script. AddedBy *string CreatedAt *Timestamp ID *int64 Key *string LastUsed *Timestamp ReadOnly *bool Title *string URL *string Verified *bool GetAddedBy returns the AddedBy field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetLastUsed returns the LastUsed field if it's non-nil, zero value otherwise. GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetVerified returns the Verified field if it's non-nil, zero value otherwise. ( Key) String() string Key : expvar.Var Key : fmt.Stringer func (*DeployKeyEvent).GetKey() *Key func (*RepositoriesService).CreateKey(ctx context.Context, owner string, repo string, key *Key) (*Key, *Response, error) func (*RepositoriesService).GetKey(ctx context.Context, owner string, repo string, id int64) (*Key, *Response, error) func (*RepositoriesService).ListKeys(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Key, *Response, error) func (*UsersService).CreateKey(ctx context.Context, key *Key) (*Key, *Response, error) func (*UsersService).GetKey(ctx context.Context, id int64) (*Key, *Response, error) func (*UsersService).ListKeys(ctx context.Context, user string, opts *ListOptions) ([]*Key, *Response, error) func (*RepositoriesService).CreateKey(ctx context.Context, owner string, repo string, key *Key) (*Key, *Response, error) func (*UsersService).CreateKey(ctx context.Context, key *Key) (*Key, *Response, error) func (*UsersService).CreateSSHSigningKey(ctx context.Context, key *Key) (*SSHSigningKey, *Response, error)
Label represents a GitHub label on an Issue Color *string Default *bool Description *string ID *int64 Name *string NodeID *string URL *string GetColor returns the Color field if it's non-nil, zero value otherwise. GetDefault returns the Default field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( Label) String() string Label : expvar.Var Label : fmt.Stringer func (*IssueEvent).GetLabel() *Label func (*IssuesEvent).GetLabel() *Label func (*IssuesService).AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error) func (*IssuesService).CreateLabel(ctx context.Context, owner string, repo string, label *Label) (*Label, *Response, error) func (*IssuesService).EditLabel(ctx context.Context, owner string, repo string, name string, label *Label) (*Label, *Response, error) func (*IssuesService).GetLabel(ctx context.Context, owner string, repo string, name string) (*Label, *Response, error) func (*IssuesService).ListLabels(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ReplaceLabelsForIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error) func (*LabelEvent).GetLabel() *Label func (*PullRequestEvent).GetLabel() *Label func (*PullRequestTargetEvent).GetLabel() *Label func (*Timeline).GetLabel() *Label func (*IssuesService).CreateLabel(ctx context.Context, owner string, repo string, label *Label) (*Label, *Response, error) func (*IssuesService).EditLabel(ctx context.Context, owner string, repo string, name string, label *Label) (*Label, *Response, error)
LabelEvent is triggered when a repository's label is created, edited, or deleted. The Webhook event name is "label" GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#label Action is the action that was performed. Possible values are: "created", "edited", "deleted" Changes *EditChange Installation *Installation Label *Label Org *Organization The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetLabel returns the Label field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
LabelResult represents a single search result. Color *string Default *bool Description *string ID *int64 Name *string Score *float64 URL *string GetColor returns the Color field if it's non-nil, zero value otherwise. GetDefault returns the Default field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetScore returns the Score field. GetURL returns the URL field if it's non-nil, zero value otherwise. ( LabelResult) String() string LabelResult : expvar.Var LabelResult : fmt.Stringer
LabelsSearchResult represents the result of a code search. IncompleteResults *bool Labels []*LabelResult Total *int GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Labels(ctx context.Context, repoID int64, query string, opts *SearchOptions) (*LabelsSearchResult, *Response, error)
LargeFile identifies a file larger than 100MB found during a repository import. GitHub API docs: https://docs.github.com/rest/migration/source_imports/#get-large-files OID *string Path *string RefName *string Size *int GetOID returns the OID field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetRefName returns the RefName field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. ( LargeFile) String() string LargeFile : expvar.Var LargeFile : fmt.Stringer func (*MigrationService).LargeFiles(ctx context.Context, owner, repo string) ([]*LargeFile, *Response, error)
License represents an open source license. Body *string Conditions *[]string Description *string Featured *bool HTMLURL *string Implementation *string Key *string Limitations *[]string Name *string Permissions *[]string SPDXID *string URL *string GetBody returns the Body field if it's non-nil, zero value otherwise. GetConditions returns the Conditions field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetFeatured returns the Featured field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( License) String() string License : expvar.Var License : fmt.Stringer func (*LicensesService).Get(ctx context.Context, licenseName string) (*License, *Response, error) func (*LicensesService).List(ctx context.Context) ([]*License, *Response, error) func (*Repository).GetLicense() *License func (*RepositoryLicense).GetLicense() *License
LicensesService handles communication with the license related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/licenses/ Get extended metadata for one license. GitHub API docs: https://docs.github.com/rest/licenses/licenses#get-a-license List popular open source licenses. GitHub API docs: https://docs.github.com/rest/licenses/licenses#get-all-commonly-used-licenses
LinearHistoryRequirementEnforcementLevelChanges represents the changes made to the LinearHistoryRequirementEnforcementLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetLinearHistoryRequirementEnforcementLevel() *LinearHistoryRequirementEnforcementLevelChanges
ListAlertsOptions specifies the optional parameters to the DependabotService.ListRepoAlerts and DependabotService.ListOrgAlerts methods. Direction *string Ecosystem *string ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. ListOptions ListOptions Package *string Scope *string Severity *string Sort *string State *string GetDirection returns the Direction field if it's non-nil, zero value otherwise. GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. GetPackage returns the Package field if it's non-nil, zero value otherwise. GetScope returns the Scope field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. GetSort returns the Sort field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. func (*DependabotService).ListOrgAlerts(ctx context.Context, org string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error) func (*DependabotService).ListRepoAlerts(ctx context.Context, owner, repo string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error)
ListCheckRunsOptions represents parameters to list check runs. // Filters check runs by GitHub App ID. // Returns check runs with the specified name. // Filters check runs by their completed_at timestamp. Can be one of "latest" (returning the most recent check runs) or "all". Default: "latest" ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. // Returns check runs with the specified status. Can be one of "queued", "in_progress", or "completed". GetAppID returns the AppID field if it's non-nil, zero value otherwise. GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. GetFilter returns the Filter field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. func (*ChecksService).ListCheckRunsCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error) func (*ChecksService).ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)
ListCheckRunsResults represents the result of a check run list. CheckRuns []*CheckRun Total *int GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*ChecksService).ListCheckRunsCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error) func (*ChecksService).ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)
ListCheckSuiteOptions represents parameters to list check suites. // Filters check suites by GitHub App id. // Filters checks suites by the name of the check run. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. GetAppID returns the AppID field if it's non-nil, zero value otherwise. GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. func (*ChecksService).ListCheckSuitesForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckSuiteOptions) (*ListCheckSuiteResults, *Response, error)
ListCheckSuiteResults represents the result of a check run list. CheckSuites []*CheckSuite Total *int GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*ChecksService).ListCheckSuitesForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckSuiteOptions) (*ListCheckSuiteResults, *Response, error)
ListCodespaces represents the response from the list codespaces endpoints. Codespaces []*Codespace TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*CodespacesService).List(ctx context.Context, opts *ListCodespacesOptions) (*ListCodespaces, *Response, error) func (*CodespacesService).ListInRepo(ctx context.Context, owner, repo string, opts *ListOptions) (*ListCodespaces, *Response, error)
ListCodespacesOptions represents the options for listing codespaces for a user. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. RepositoryID int64 func (*CodespacesService).List(ctx context.Context, opts *ListCodespacesOptions) (*ListCodespaces, *Response, error)
ListCollaboratorOptions specifies the optional parameters to the ProjectsService.ListProjectCollaborators method. Affiliation specifies how collaborators should be filtered by their affiliation. Possible values are: "outside" - All outside collaborators of an organization-owned repository "direct" - All collaborators with permissions to an organization-owned repository, regardless of organization membership status "all" - All collaborators the authenticated user can see Default value is "all". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise. func (*ProjectsService).ListProjectCollaborators(ctx context.Context, id int64, opts *ListCollaboratorOptions) ([]*User, *Response, error)
ListCollaboratorsOptions specifies the optional parameters to the RepositoriesService.ListCollaborators method. Affiliation specifies how collaborators should be filtered by their affiliation. Possible values are: outside - All outside collaborators of an organization-owned repository direct - All collaborators with permissions to an organization-owned repository, regardless of organization membership status all - All collaborators the authenticated user can see Default value is "all". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Permission specifies how collaborators should be filtered by the permissions they have on the repository. Possible values are: "pull", "triage", "push", "maintain", "admin" If not specified, all collaborators will be returned. func (*RepositoriesService).ListCollaborators(ctx context.Context, owner, repo string, opts *ListCollaboratorsOptions) ([]*User, *Response, error)
ListCommentReactionOptions specifies the optional parameters to the ReactionsService.ListCommentReactions method. Content restricts the returned comment reactions to only those with the given type. Omit this parameter to list all reactions to a commit comment. Possible values are: "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", or "eyes". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*ReactionsService).ListCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListCommentReactionOptions) ([]*Reaction, *Response, error)
ListContributorsOptions specifies the optional parameters to the RepositoriesService.ListContributors method. Include anonymous contributors in results or not ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*RepositoriesService).ListContributors(ctx context.Context, owner string, repository string, opts *ListContributorsOptions) ([]*Contributor, *Response, error)
ListCopilotSeatsResponse represents the Copilot for Business seat assignments for an organization. Seats []*CopilotSeatDetails TotalSeats int64 func (*CopilotService).ListCopilotSeats(ctx context.Context, org string, opts *ListOptions) (*ListCopilotSeatsResponse, *Response, error)
ListCursorOptions specifies the optional parameters to various List methods that support cursor pagination. A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*AppsService).ListHookDeliveries(ctx context.Context, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*OrganizationsService).ListHookDeliveries(ctx context.Context, org string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*RepositoriesService).ListHookDeliveries(ctx context.Context, owner, repo string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error)
ListCustomDeploymentRuleIntegrationsResponse represents the slightly different response that comes back when you list custom deployment rule integrations. AvailableIntegrations []*CustomDeploymentProtectionRuleApp TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListCustomDeploymentRuleIntegrations(ctx context.Context, owner, repo, environment string) (*ListCustomDeploymentRuleIntegrationsResponse, *Response, error)
ListDeploymentProtectionRuleResponse represents the response that comes back when you list deployment protection rules. ProtectionRules []*CustomDeploymentProtectionRule TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*RepositoriesService).GetAllDeploymentProtectionRules(ctx context.Context, owner, repo, environment string) (*ListDeploymentProtectionRuleResponse, *Response, error)
ListEnterpriseRunnerGroupOptions extend ListOptions to have the optional parameters VisibleToOrganization. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Only return runner groups that are allowed to be used by this organization. func (*EnterpriseService).ListRunnerGroups(ctx context.Context, enterprise string, opts *ListEnterpriseRunnerGroupOptions) (*EnterpriseRunnerGroups, *Response, error)
ListExternalGroupsOptions specifies the optional parameters to the TeamsService.ListExternalGroups method. DisplayName *string ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. func (*TeamsService).ListExternalGroups(ctx context.Context, org string, opts *ListExternalGroupsOptions) (*ExternalGroupList, *Response, error)
ListFineGrainedPATOptions specifies optional parameters to ListFineGrainedPersonalAccessTokens. The direction to sort the results by. Default: desc Value: asc, desc Only show fine-grained personal access tokens used after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Only show fine-grained personal access tokens used before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. A list of owner usernames to use to filter the results. The permission to use to filter the results. The name of the repository to use to filter the results. The property by which to sort the results. Default: created_at Value: created_at func (*OrganizationsService).ListFineGrainedPersonalAccessTokens(ctx context.Context, org string, opts *ListFineGrainedPATOptions) ([]*PersonalAccessToken, *Response, error)
ListGlobalSecurityAdvisoriesOptions specifies the optional parameters to list the global security advisories. If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified. If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. Example: affects=package1,package2@1.0.0,package3@^2.0.0 or affects[]=package1&affects[]=package2@1.0.0 If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned. If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. Example: cwes=79,284,22 or cwes[]=79&cwes[]=284&cwes[]=22 If specified, only advisories for these ecosystems will be returned. Can be one of: actions, composer, erlang, go, maven, npm, nuget, other, pip, pub, rubygems, rust If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned. Whether to only return advisories that have been withdrawn. ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. If specified, only show advisories that were updated or published on a date or date range. If specified, only return advisories that were published on a date or date range. If specified, only advisories with these severities will be returned. Can be one of: unknown, low, medium, high, critical If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware. Default: reviewed Can be one of: reviewed, malware, unreviewed If specified, only return advisories that were updated on a date or date range. GetAffects returns the Affects field if it's non-nil, zero value otherwise. GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. GetIsWithdrawn returns the IsWithdrawn field if it's non-nil, zero value otherwise. GetModified returns the Modified field if it's non-nil, zero value otherwise. GetPublished returns the Published field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetUpdated returns the Updated field if it's non-nil, zero value otherwise. func (*SecurityAdvisoriesService).ListGlobalSecurityAdvisories(ctx context.Context, opts *ListGlobalSecurityAdvisoriesOptions) ([]*GlobalSecurityAdvisory, *Response, error)
ListIDPGroupsOptions specifies the optional parameters to the ListIDPGroupsInOrganization method. ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Filters the results to return only those that begin with the value specified by this parameter. func (*TeamsService).ListIDPGroupsInOrganization(ctx context.Context, org string, opts *ListIDPGroupsOptions) (*IDPGroupList, *Response, error)
ListMembersOptions specifies optional parameters to the OrganizationsService.ListMembers method. Filter members returned in the list. Possible values are: 2fa_disabled, all. Default is "all". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. If true (or if the authenticated user is not an owner of the organization), list only publicly visible members. Role filters members returned by their role in the organization. Possible values are: all - all members of the organization, regardless of role admin - organization owners member - non-owner organization members Default is "all". func (*OrganizationsService).ListMembers(ctx context.Context, org string, opts *ListMembersOptions) ([]*User, *Response, error)
ListOptions specifies the optional parameters to various List methods that support offset pagination. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*ActionsService).ListArtifacts(ctx context.Context, owner, repo string, opts *ListOptions) (*ArtifactList, *Response, error) func (*ActionsService).ListCacheUsageByRepoForOrg(ctx context.Context, org string, opts *ListOptions) (*ActionsCacheUsageList, *Response, error) func (*ActionsService).ListEnabledOrgsInEnterprise(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnEnterpriseRepos, *Response, error) func (*ActionsService).ListEnabledReposInOrg(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnOrgRepos, *Response, error) func (*ActionsService).ListEnvSecrets(ctx context.Context, repoID int, env string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListEnvVariables(ctx context.Context, owner, repo, env string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListOrgRequiredWorkflows(ctx context.Context, org string, opts *ListOptions) (*OrgRequiredWorkflows, *Response, error) func (*ActionsService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListOrgVariables(ctx context.Context, org string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRepoOrgSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListRepoOrgVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRepoRequiredWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*RepoRequiredWorkflows, *Response, error) func (*ActionsService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, opts *ListOptions) (*ListRepositories, *Response, error) func (*ActionsService).ListRepoVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, opts *ListOptions) (*RequiredWorkflowSelectedRepos, *Response, error) func (*ActionsService).ListRunnerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) func (*ActionsService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*ActionsService).ListSelectedReposForOrgVariable(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*ActionsService).ListWorkflowJobsAttempt(ctx context.Context, owner, repo string, runID, attemptNumber int64, opts *ListOptions) (*Jobs, *Response, error) func (*ActionsService).ListWorkflowRunArtifacts(ctx context.Context, owner, repo string, runID int64, opts *ListOptions) (*ArtifactList, *Response, error) func (*ActionsService).ListWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*Workflows, *Response, error) func (*ActivityService).ListEvents(ctx context.Context, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsForOrganization(ctx context.Context, org string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListIssueEventsForRepository(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*ActivityService).ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListStargazers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Stargazer, *Response, error) func (*ActivityService).ListUserEventsForOrganization(ctx context.Context, org, user string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListWatched(ctx context.Context, user string, opts *ListOptions) ([]*Repository, *Response, error) func (*ActivityService).ListWatchers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error) func (*AppsService).ListInstallationRequests(ctx context.Context, opts *ListOptions) ([]*InstallationRequest, *Response, error) func (*AppsService).ListInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error) func (*AppsService).ListRepos(ctx context.Context, opts *ListOptions) (*ListRepositories, *Response, error) func (*AppsService).ListUserInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error) func (*AppsService).ListUserRepos(ctx context.Context, id int64, opts *ListOptions) (*ListRepositories, *Response, error) func (*BillingService).GetAdvancedSecurityActiveCommittersOrg(ctx context.Context, org string, opts *ListOptions) (*ActiveCommitters, *Response, error) func (*ChecksService).ListCheckRunAnnotations(ctx context.Context, owner, repo string, checkRunID int64, opts *ListOptions) ([]*CheckRunAnnotation, *Response, error) func (*CodespacesService).ListInRepo(ctx context.Context, owner, repo string, opts *ListOptions) (*ListCodespaces, *Response, error) func (*CodespacesService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*CodespacesService).ListSelectedReposForUserSecret(ctx context.Context, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*CodespacesService).ListUserSecrets(ctx context.Context, opts *ListOptions) (*Secrets, *Response, error) func (*CopilotService).ListCopilotSeats(ctx context.Context, org string, opts *ListOptions) (*ListCopilotSeatsResponse, *Response, error) func (*DependabotService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*DependabotService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*DependabotService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*EnterpriseService).ListOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*ListOrganizations, *Response, error) func (*EnterpriseService).ListRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*Runners, *Response, error) func (*GistsService).ListComments(ctx context.Context, gistID string, opts *ListOptions) ([]*GistComment, *Response, error) func (*GistsService).ListCommits(ctx context.Context, id string, opts *ListOptions) ([]*GistCommit, *Response, error) func (*GistsService).ListForks(ctx context.Context, id string, opts *ListOptions) ([]*GistFork, *Response, error) func (*IssuesService).ListAssignees(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error) func (*IssuesService).ListIssueEvents(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*IssuesService).ListIssueTimeline(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Timeline, *Response, error) func (*IssuesService).ListLabels(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*MarketplaceService).ListMarketplacePurchasesForUser(ctx context.Context, opts *ListOptions) ([]*MarketplacePurchase, *Response, error) func (*MarketplaceService).ListPlanAccountsForPlan(ctx context.Context, planID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error) func (*MarketplaceService).ListPlans(ctx context.Context, opts *ListOptions) ([]*MarketplacePlan, *Response, error) func (*MigrationService).ListMigrations(ctx context.Context, org string, opts *ListOptions) ([]*Migration, *Response, error) func (*MigrationService).ListUserMigrations(ctx context.Context, opts *ListOptions) ([]*UserMigration, *Response, error) func (*OrganizationsService).List(ctx context.Context, user string, opts *ListOptions) ([]*Organization, *Response, error) func (*OrganizationsService).ListBlockedUsers(ctx context.Context, org string, opts *ListOptions) ([]*User, *Response, error) func (*OrganizationsService).ListCustomPropertyValues(ctx context.Context, org string, opts *ListOptions) ([]*RepoCustomPropertyValue, *Response, error) func (*OrganizationsService).ListFailedOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error) func (*OrganizationsService).ListHooks(ctx context.Context, org string, opts *ListOptions) ([]*Hook, *Response, error) func (*OrganizationsService).ListInstallations(ctx context.Context, org string, opts *ListOptions) (*OrganizationInstallations, *Response, error) func (*OrganizationsService).ListOrgInvitationTeams(ctx context.Context, org, invitationID string, opts *ListOptions) ([]*Team, *Response, error) func (*OrganizationsService).ListPendingOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error) func (*OrganizationsService).ListTeamsAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*Team, *Response, error) func (*OrganizationsService).ListUsersAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*User, *Response, error) func (*ProjectsService).ListProjectColumns(ctx context.Context, projectID int64, opts *ListOptions) ([]*ProjectColumn, *Response, error) func (*PullRequestsService).ListCommits(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*RepositoryCommit, *Response, error) func (*PullRequestsService).ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*CommitFile, *Response, error) func (*PullRequestsService).ListPullRequestsWithCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*PullRequest, *Response, error) func (*PullRequestsService).ListReviewComments(ctx context.Context, owner, repo string, number int, reviewID int64, opts *ListOptions) ([]*PullRequestComment, *Response, error) func (*PullRequestsService).ListReviewers(ctx context.Context, owner, repo string, number int, opts *ListOptions) (*Reviewers, *Response, error) func (*PullRequestsService).ListReviews(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*PullRequestReview, *Response, error) func (*ReactionsService).ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListIssueReactions(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListPullRequestCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListTeamDiscussionCommentReactions(ctx context.Context, teamID int64, discussionNumber, commentNumber int, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListTeamDiscussionReactions(ctx context.Context, teamID int64, discussionNumber int, opts *ListOptions) ([]*Reaction, *Response, error) func (*RepositoriesService).CompareCommits(ctx context.Context, owner, repo string, base, head string, opts *ListOptions) (*CommitsComparison, *Response, error) func (*RepositoriesService).GetCombinedStatus(ctx context.Context, owner, repo, ref string, opts *ListOptions) (*CombinedStatus, *Response, error) func (*RepositoriesService).GetCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) (*RepositoryCommit, *Response, error) func (*RepositoriesService).ListAutolinks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Autolink, *Response, error) func (*RepositoriesService).ListComments(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryComment, *Response, error) func (*RepositoriesService).ListCommitComments(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*RepositoryComment, *Response, error) func (*RepositoriesService).ListDeploymentStatuses(ctx context.Context, owner, repo string, deployment int64, opts *ListOptions) ([]*DeploymentStatus, *Response, error) func (*RepositoriesService).ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Hook, *Response, error) func (*RepositoriesService).ListInvitations(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryInvitation, *Response, error) func (*RepositoriesService).ListKeys(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Key, *Response, error) func (*RepositoriesService).ListPagesBuilds(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PagesBuild, *Response, error) func (*RepositoriesService).ListPreReceiveHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PreReceiveHook, *Response, error) func (*RepositoriesService).ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*ReleaseAsset, *Response, error) func (*RepositoriesService).ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryRelease, *Response, error) func (*RepositoriesService).ListStatuses(ctx context.Context, owner, repo, ref string, opts *ListOptions) ([]*RepoStatus, *Response, error) func (*RepositoriesService).ListTags(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*RepositoryTag, *Response, error) func (*RepositoriesService).ListTeams(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Team, *Response, error) func (*SecretScanningService).ListLocationsForAlert(ctx context.Context, owner, repo string, number int64, opts *ListOptions) ([]*SecretScanningAlertLocation, *Response, error) func (*TeamsService).ListChildTeamsByParentID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListChildTeamsByParentSlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListPendingTeamInvitationsByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Invitation, *Response, error) func (*TeamsService).ListPendingTeamInvitationsBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Invitation, *Response, error) func (*TeamsService).ListTeamReposByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Repository, *Response, error) func (*TeamsService).ListTeamReposBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Repository, *Response, error) func (*TeamsService).ListTeams(ctx context.Context, org string, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListUserTeams(ctx context.Context, opts *ListOptions) ([]*Team, *Response, error) func (*UsersService).ListBlockedUsers(ctx context.Context, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListEmails(ctx context.Context, opts *ListOptions) ([]*UserEmail, *Response, error) func (*UsersService).ListFollowers(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListFollowing(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListGPGKeys(ctx context.Context, user string, opts *ListOptions) ([]*GPGKey, *Response, error) func (*UsersService).ListInvitations(ctx context.Context, opts *ListOptions) ([]*RepositoryInvitation, *Response, error) func (*UsersService).ListKeys(ctx context.Context, user string, opts *ListOptions) ([]*Key, *Response, error) func (*UsersService).ListSSHSigningKeys(ctx context.Context, user string, opts *ListOptions) ([]*SSHSigningKey, *Response, error)
ListOrganizations represents the response from the list orgs endpoints. Organizations []*Organization TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*EnterpriseService).ListOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*ListOrganizations, *Response, error)
ListOrgMembershipsOptions specifies optional parameters to the OrganizationsService.ListOrgMemberships method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Filter memberships to include only those with the specified state. Possible values are: "active", "pending". func (*OrganizationsService).ListOrgMemberships(ctx context.Context, opts *ListOrgMembershipsOptions) ([]*Membership, *Response, error)
ListOrgRunnerGroupOptions extend ListOptions to have the optional parameters VisibleToRepository. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Only return runner groups that are allowed to be used by this repository. func (*ActionsService).ListOrganizationRunnerGroups(ctx context.Context, org string, opts *ListOrgRunnerGroupOptions) (*RunnerGroups, *Response, error)
ListOutsideCollaboratorsOptions specifies optional parameters to the OrganizationsService.ListOutsideCollaborators method. Filter specifies how jobs should be filtered by their completed_at timestamp. Possible values are: latest - Returns jobs from the most recent execution of the workflow run all - Returns all jobs for a workflow run, including from old executions of the workflow run Default value is "latest". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*OrganizationsService).ListOutsideCollaborators(ctx context.Context, org string, opts *ListOutsideCollaboratorsOptions) ([]*User, *Response, error)
ListRepositories represents the response from the list repos endpoints. Repositories []*Repository TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, opts *ListOptions) (*ListRepositories, *Response, error) func (*AppsService).ListRepos(ctx context.Context, opts *ListOptions) (*ListRepositories, *Response, error) func (*AppsService).ListUserRepos(ctx context.Context, id int64, opts *ListOptions) (*ListRepositories, *Response, error)
ListRepositorySecurityAdvisoriesOptions specifies the optional parameters to list the repository security advisories. Direction in which to sort advisories. Possible values are: asc, desc. Default is "asc". ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Sort specifies how to sort advisories. Possible values are: created, updated, and published. Default value is "created". State filters advisories based on their state. Possible values are: triage, draft, published, closed. func (*SecurityAdvisoriesService).ListRepositorySecurityAdvisories(ctx context.Context, owner, repo string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).ListRepositorySecurityAdvisoriesForOrg(ctx context.Context, org string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error)
ListRunnersOptions specifies the optional parameters to the ListRunners and ListOrganizationRunners methods. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Name *string GetName returns the Name field if it's non-nil, zero value otherwise. func (*ActionsService).ListOrganizationRunners(ctx context.Context, org string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*ActionsService).ListRunners(ctx context.Context, owner, repo string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*EnterpriseService).ListRunners(ctx context.Context, enterprise string, opts *ListRunnersOptions) (*Runners, *Response, error)
ListSCIMProvisionedIdentitiesOptions represents options for ListSCIMProvisionedIdentities. GitHub API docs: https://docs.github.com/rest/scim#list-scim-provisioned-identities--parameters // Used for pagination: the number of results to return. (Optional.) Filter results using the equals query parameter operator (eq). You can filter results that are equal to id, userName, emails, and external_id. For example, to search for an identity with the userName Octocat, you would use this query: ?filter=userName%20eq%20\"Octocat\". To filter results for the identity with the email octocat@github.com, you would use this query: ?filter=emails%20eq%20\"octocat@github.com\". (Optional.) // Used for pagination: the index of the first result to return. (Optional.) GetCount returns the Count field if it's non-nil, zero value otherwise. GetFilter returns the Filter field if it's non-nil, zero value otherwise. GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. func (*SCIMService).ListSCIMProvisionedIdentities(ctx context.Context, org string, opts *ListSCIMProvisionedIdentitiesOptions) (*SCIMProvisionedIdentities, *Response, error)
ListWorkflowJobsOptions specifies optional parameters to ListWorkflowJobs. Filter specifies how jobs should be filtered by their completed_at timestamp. Possible values are: latest - Returns jobs from the most recent execution of the workflow run all - Returns all jobs for a workflow run, including from old executions of the workflow run Default value is "latest". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. func (*ActionsService).ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, opts *ListWorkflowJobsOptions) (*Jobs, *Response, error)
ListWorkflowRunsOptions specifies optional parameters to ListWorkflowRuns. Actor string Branch string CheckSuiteID int64 Created string Event string ExcludePullRequests bool HeadSHA string ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Status string func (*ActionsService).ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListWorkflowRunsByID(ctx context.Context, owner, repo string, workflowID int64, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)
Location represents the exact location of the GitHub Code Scanning Alert in the scanned project. EndColumn *int EndLine *int Path *string StartColumn *int StartLine *int GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. func (*MostRecentInstance).GetLocation() *Location
LockBranch represents if the branch is marked as read-only. If this is true, users will not be able to push to the branch. Enabled *bool GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. func (*Protection).GetLockBranch() *LockBranch
LockIssueOptions specifies the optional parameters to the IssuesService.Lock method. LockReason specifies the reason to lock this issue. Providing a lock reason can help make it clearer to contributors why an issue was locked. Possible values are: "off-topic", "too heated", "resolved", and "spam". func (*IssuesService).Lock(ctx context.Context, owner string, repo string, number int, opts *LockIssueOptions) (*Response, error)
MarkdownOptions specifies optional parameters to the Render method. Context identifies the repository context. Only taken into account when rendering as "gfm". Mode identifies the rendering mode. Possible values are: markdown - render a document as plain Render, just like README files are rendered. gfm - to render a document as user-content, e.g. like user comments or issues are rendered. In GFM mode, hard line breaks are always taken into account, and issue and user mentions are linked accordingly. Default is "markdown". func (*MarkdownService).Render(ctx context.Context, text string, opts *MarkdownOptions) (string, *Response, error)
MarkdownService provides access to markdown-related functions in the GitHub API. Render renders an arbitrary Render document. GitHub API docs: https://docs.github.com/rest/markdown/markdown#render-a-markdown-document
MarketplacePendingChange represents a pending change to a GitHub Apps Marketplace Plan. EffectiveDate *Timestamp ID *int64 Plan *MarketplacePlan UnitCount *int GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetPlan returns the Plan field. GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. func (*MarketplacePlanAccount).GetMarketplacePendingChange() *MarketplacePendingChange
MarketplacePlan represents a GitHub Apps Marketplace Listing Plan. AccountsURL *string Bullets *[]string Description *string HasFreeTrial *bool ID *int64 MonthlyPriceInCents *int Name *string Number *int The pricing model for this listing. Can be one of "flat-rate", "per-unit", or "free". State can be one of the values "draft" or "published". URL *string UnitName *string YearlyPriceInCents *int GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise. GetBullets returns the Bullets field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUnitName returns the UnitName field if it's non-nil, zero value otherwise. GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise. func (*MarketplacePendingChange).GetPlan() *MarketplacePlan func (*MarketplacePurchase).GetPlan() *MarketplacePlan func (*MarketplaceService).ListPlans(ctx context.Context, opts *ListOptions) ([]*MarketplacePlan, *Response, error)
MarketplacePlanAccount represents a GitHub Account (user or organization) on a specific plan. ID *int64 Login *string MarketplacePendingChange *MarketplacePendingChange MarketplacePurchase *MarketplacePurchase OrganizationBillingEmail *string Type *string URL *string GetID returns the ID field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetMarketplacePendingChange returns the MarketplacePendingChange field. GetMarketplacePurchase returns the MarketplacePurchase field. GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*MarketplaceService).GetPlanAccountForAccount(ctx context.Context, accountID int64) (*MarketplacePlanAccount, *Response, error) func (*MarketplaceService).ListPlanAccountsForPlan(ctx context.Context, planID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error)
MarketplacePurchase represents a GitHub Apps Marketplace Purchase. Account *MarketplacePurchaseAccount BillingCycle can be one of the values "yearly", "monthly" or nil. FreeTrialEndsOn *Timestamp NextBillingDate *Timestamp OnFreeTrial *bool Plan *MarketplacePlan UnitCount *int UpdatedAt *Timestamp GetAccount returns the Account field. GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise. GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise. GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise. GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise. GetPlan returns the Plan field. GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*MarketplacePlanAccount).GetMarketplacePurchase() *MarketplacePurchase func (*MarketplacePurchaseEvent).GetMarketplacePurchase() *MarketplacePurchase func (*MarketplacePurchaseEvent).GetPreviousMarketplacePurchase() *MarketplacePurchase func (*MarketplaceService).ListMarketplacePurchasesForUser(ctx context.Context, opts *ListOptions) ([]*MarketplacePurchase, *Response, error)
MarketplacePurchaseAccount represents a GitHub Account (user or organization) for a Purchase. Email *string ID *int64 Login *string NodeID *string OrganizationBillingEmail *string Type *string URL *string GetEmail returns the Email field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*MarketplacePurchase).GetAccount() *MarketplacePurchaseAccount
MarketplacePurchaseEvent is triggered when a user purchases, cancels, or changes their GitHub Marketplace plan. Webhook event name "marketplace_purchase". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#marketplace_purchase Action is the action that was performed. Possible values are: "purchased", "cancelled", "pending_change", "pending_change_cancelled", "changed". The following fields are only populated by Webhook events. Installation *Installation MarketplacePurchase *MarketplacePurchase The following field is only present when the webhook is triggered on a repository belonging to an organization. PreviousMarketplacePurchase *MarketplacePurchase Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetMarketplacePurchase returns the MarketplacePurchase field. GetOrg returns the Org field. GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. GetSender returns the Sender field.
MarketplaceService handles communication with the marketplace related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/apps#marketplace Stubbed controls whether endpoints that return stubbed data are used instead of production endpoints. Stubbed data is fake data that's useful for testing your GitHub Apps. Stubbed data is hard-coded and will not change based on actual subscriptions. GitHub API docs: https://docs.github.com/rest/apps#testing-with-stubbed-endpoints GetPlanAccountForAccount get GitHub account (user or organization) associated with an account. GitHub API docs: https://docs.github.com/rest/apps/marketplace#get-a-subscription-plan-for-an-account GitHub API docs: https://docs.github.com/rest/apps/marketplace#get-a-subscription-plan-for-an-account-stubbed ListMarketplacePurchasesForUser lists all GitHub marketplace purchases made by a user. GitHub API docs: https://docs.github.com/rest/apps/marketplace#list-subscriptions-for-the-authenticated-user GitHub API docs: https://docs.github.com/rest/apps/marketplace#list-subscriptions-for-the-authenticated-user-stubbed ListPlanAccountsForPlan lists all GitHub accounts (user or organization) on a specific plan. GitHub API docs: https://docs.github.com/rest/apps/marketplace#list-accounts-for-a-plan GitHub API docs: https://docs.github.com/rest/apps/marketplace#list-accounts-for-a-plan-stubbed ListPlans lists all plans for your Marketplace listing. GitHub API docs: https://docs.github.com/rest/apps/marketplace#list-plans GitHub API docs: https://docs.github.com/rest/apps/marketplace#list-plans-stubbed
Match represents a single text match. Indices []int Text *string GetText returns the Text field if it's non-nil, zero value otherwise.
MemberChanges represents changes to a repository collaborator's role or permission. Permission *MemberChangesPermission RoleName *MemberChangesRoleName GetPermission returns the Permission field. GetRoleName returns the RoleName field. func (*MemberEvent).GetChanges() *MemberChanges
MemberChangesPermission represents changes to a repository collaborator's permissions. From *string To *string GetFrom returns the From field if it's non-nil, zero value otherwise. GetTo returns the To field if it's non-nil, zero value otherwise. func (*MemberChanges).GetPermission() *MemberChangesPermission
MemberChangesRoleName represents changes to a repository collaborator's role. From *string To *string GetFrom returns the From field if it's non-nil, zero value otherwise. GetTo returns the To field if it's non-nil, zero value otherwise. func (*MemberChanges).GetRoleName() *MemberChangesRoleName
MemberEvent is triggered when a user's membership as a collaborator to a repository changes. The Webhook event name is "member". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#member Action is the action that was performed. Possible values are: "added", "edited", "removed". Changes *MemberChanges Installation *Installation Member *User The following field is only present when the webhook is triggered on a repository belonging to an organization. The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetMember returns the Member field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
Membership represents the status of a user's membership in an organization or team. For organization membership, the organization the membership is for. For organization membership, the API URL of the organization. Role identifies the user's role within the organization or team. Possible values for organization membership: member - non-owner organization member admin - organization owner Possible values for team membership are: member - a normal member of the team maintainer - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team’s name and description State is the user's status within the organization or team. Possible values are: "active", "pending" URL *string For organization membership, the user the membership is for. GetOrganization returns the Organization field. GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. GetRole returns the Role field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUser returns the User field. ( Membership) String() string Membership : expvar.Var Membership : fmt.Stringer func (*OrganizationEvent).GetMembership() *Membership func (*OrganizationsService).EditOrgMembership(ctx context.Context, user, org string, membership *Membership) (*Membership, *Response, error) func (*OrganizationsService).GetOrgMembership(ctx context.Context, user, org string) (*Membership, *Response, error) func (*OrganizationsService).ListOrgMemberships(ctx context.Context, opts *ListOrgMembershipsOptions) ([]*Membership, *Response, error) func (*TeamsService).AddTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error) func (*TeamsService).AddTeamMembershipBySlug(ctx context.Context, org, slug, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error) func (*TeamsService).GetTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string) (*Membership, *Response, error) func (*TeamsService).GetTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*Membership, *Response, error) func (*OrganizationsService).EditOrgMembership(ctx context.Context, user, org string, membership *Membership) (*Membership, *Response, error)
MembershipEvent is triggered when a user is added or removed from a team. The Webhook event name is "membership". Events of this type are not visible in timelines, they are only used to trigger organization webhooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#membership Action is the action that was performed. Possible values are: "added", "removed". Installation *Installation Member *User The following fields are only populated by Webhook events. Scope is the scope of the membership. Possible value is: "team". Sender *User Team *Team GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetMember returns the Member field. GetOrg returns the Org field. GetScope returns the Scope field if it's non-nil, zero value otherwise. GetSender returns the Sender field. GetTeam returns the Team field.
MergeGroup represents the merge group in a merge queue. The full ref of the branch the merge group will be merged into. The SHA of the merge group's parent commit. An expanded representation of the head_sha commit. The full ref of the merge group. The SHA of the merge group. GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. GetBaseSHA returns the BaseSHA field if it's non-nil, zero value otherwise. GetHeadCommit returns the HeadCommit field. GetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise. GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. func (*MergeGroupEvent).GetMergeGroup() *MergeGroup
MergeGroupEvent represents activity related to merge groups in a merge queue. The type of activity is specified in the action property of the payload object. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#merge_group The action that was performed. Currently, can only be checks_requested. Installation *Installation The merge group. Org *Organization The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetMergeGroup returns the MergeGroup field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
MergeQueueRuleParameters represents the merge_queue rule parameters. CheckResponseTimeoutMinutes int Possible values for GroupingStrategy are: ALLGREEN, HEADGREEN MaxEntriesToBuild int MaxEntriesToMerge int Possible values for MergeMethod are: MERGE, SQUASH, REBASE MinEntriesToMerge int MinEntriesToMergeWaitMinutes int func NewMergeQueueRule(params *MergeQueueRuleParameters) (rule *RepositoryRule)
Message is a part of MostRecentInstance struct which provides the appropriate message when any action is performed on the analysis object. Text *string GetText returns the Text field if it's non-nil, zero value otherwise. func (*MostRecentInstance).GetMessage() *Message
MessageSigner is used by GitService.CreateCommit to sign a commit. To create a MessageSigner that signs a commit with a [golang.org/x/crypto/openpgp.Entity], or [github.com/ProtonMail/go-crypto/openpgp.Entity], use: commit.Signer = github.MessageSignerFunc(func(w io.Writer, r io.Reader) error { return openpgp.ArmoredDetachSign(w, openpgpEntity, r, nil) }) ( MessageSigner) Sign(w io.Writer, r io.Reader) error MessageSignerFunc
MessageSignerFunc is a single function implementation of MessageSigner. ( MessageSignerFunc) Sign(w io.Writer, r io.Reader) error MessageSignerFunc : MessageSigner
MetaEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#meta Action is the action that was performed. Possible value is: "deleted". The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace. The ID of the modified webhook. Installation *Installation Org *Organization The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetHook returns the Hook field. GetHookID returns the HookID field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
MetaService provides access to functions in the GitHub API that GitHub categorizes as "meta". Get 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. GitHub API docs: https://docs.github.com/rest/meta/meta#get-github-meta-information Octocat returns an ASCII art octocat with the specified message in a speech bubble. If message is empty, a random zen phrase is used. GitHub API docs: https://docs.github.com/rest/meta/meta#get-octocat Zen returns a random line from The Zen of GitHub. See also: http://warpspire.com/posts/taste/ GitHub API docs: https://docs.github.com/rest/meta/meta#get-the-zen-of-github
Metric represents the different fields for one file in community health files. HTMLURL *string Key *string Name *string NodeID *string SPDXID *string URL *string GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*CommunityHealthFiles).GetCodeOfConduct() *Metric func (*CommunityHealthFiles).GetCodeOfConductFile() *Metric func (*CommunityHealthFiles).GetContributing() *Metric func (*CommunityHealthFiles).GetIssueTemplate() *Metric func (*CommunityHealthFiles).GetLicense() *Metric func (*CommunityHealthFiles).GetPullRequestTemplate() *Metric func (*CommunityHealthFiles).GetReadme() *Metric
Migration represents a GitHub migration (archival). CreatedAt *string ExcludeAttachments indicates whether attachments should be excluded from the migration (to reduce migration archive file size). GUID *string ID *int64 LockRepositories indicates whether repositories are locked (to prevent manipulation) while migrating data. Repositories []*Repository State is the current state of a migration. Possible values are: "pending" which means the migration hasn't started yet, "exporting" which means the migration is in progress, "exported" which means the migration finished successfully, or "failed" which means the migration failed. URL *string UpdatedAt *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. GetGUID returns the GUID field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Migration) String() string Migration : expvar.Var Migration : fmt.Stringer func (*MigrationService).ListMigrations(ctx context.Context, org string, opts *ListOptions) ([]*Migration, *Response, error) func (*MigrationService).MigrationStatus(ctx context.Context, org string, id int64) (*Migration, *Response, error) func (*MigrationService).StartMigration(ctx context.Context, org string, repos []string, opts *MigrationOptions) (*Migration, *Response, error)
MigrationOptions specifies the optional parameters to Migration methods. ExcludeAttachments indicates whether attachments should be excluded from the migration (to reduce migration archive file size). LockRepositories indicates whether repositories should be locked (to prevent manipulation) while migrating data. func (*MigrationService).StartMigration(ctx context.Context, org string, repos []string, opts *MigrationOptions) (*Migration, *Response, error)
MigrationService provides access to the migration related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/migration/ CancelImport stops an import for a repository. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#cancel-an-import CommitAuthors gets the authors mapped from the original repository. Each 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 <hubot@12341234-abab-fefe-8787-fedcba987654>". This method and MapCommitAuthor allow you to provide correct Git author information. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#get-commit-authors DeleteMigration deletes a previous migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/orgs#delete-an-organization-migration-archive DeleteUserMigration will delete a previous migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/users#delete-a-user-migration-archive ImportProgress queries for the status and progress of an ongoing repository import. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#get-an-import-status LargeFiles lists files larger than 100MB found during the import. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#get-large-files ListMigrations lists the most recent migrations. GitHub API docs: https://docs.github.com/rest/migrations/orgs#list-organization-migrations ListUserMigrations lists the most recent migrations. GitHub API docs: https://docs.github.com/rest/migrations/users#list-user-migrations MapCommitAuthor updates an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#map-a-commit-author MigrationArchiveURL fetches a migration archive URL. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/orgs#download-an-organization-migration-archive MigrationStatus gets the status of a specific migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/orgs#get-an-organization-migration-status SetLFSPreference sets whether imported repositories should use Git LFS for files larger than 100MB. Only the UseLFS field on the provided Import is used. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference StartImport initiates a repository import. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#start-an-import StartMigration starts the generation of a migration archive. repos is a slice of repository names to migrate. GitHub API docs: https://docs.github.com/rest/migrations/orgs#start-an-organization-migration StartUserMigration starts the generation of a migration archive. repos is a slice of repository names to migrate. GitHub API docs: https://docs.github.com/rest/migrations/users#start-a-user-migration UnlockRepo 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. GitHub API docs: https://docs.github.com/rest/migrations/orgs#unlock-an-organization-repository UnlockUserRepo 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. GitHub API docs: https://docs.github.com/rest/migrations/users#unlock-a-user-repository UpdateImport initiates a repository import. GitHub API docs: https://docs.github.com/rest/migrations/source-imports#update-an-import UserMigrationArchiveURL gets the URL for a specific migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/users#download-a-user-migration-archive UserMigrationStatus gets the status of a specific migration archive. id is the migration ID. GitHub API docs: https://docs.github.com/rest/migrations/users#get-a-user-migration-status
Milestone represents a GitHub repository milestone. ClosedAt *Timestamp ClosedIssues *int CreatedAt *Timestamp Creator *User Description *string DueOn *Timestamp HTMLURL *string ID *int64 LabelsURL *string NodeID *string Number *int OpenIssues *int State *string Title *string URL *string UpdatedAt *Timestamp GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Milestone) String() string Milestone : expvar.Var Milestone : fmt.Stringer func (*Issue).GetMilestone() *Milestone func (*IssueEvent).GetMilestone() *Milestone func (*IssuesEvent).GetMilestone() *Milestone func (*IssuesService).CreateMilestone(ctx context.Context, owner string, repo string, milestone *Milestone) (*Milestone, *Response, error) func (*IssuesService).EditMilestone(ctx context.Context, owner string, repo string, number int, milestone *Milestone) (*Milestone, *Response, error) func (*IssuesService).GetMilestone(ctx context.Context, owner string, repo string, number int) (*Milestone, *Response, error) func (*IssuesService).ListMilestones(ctx context.Context, owner string, repo string, opts *MilestoneListOptions) ([]*Milestone, *Response, error) func (*MilestoneEvent).GetMilestone() *Milestone func (*PullRequest).GetMilestone() *Milestone func (*Timeline).GetMilestone() *Milestone func (*IssuesService).CreateMilestone(ctx context.Context, owner string, repo string, milestone *Milestone) (*Milestone, *Response, error) func (*IssuesService).EditMilestone(ctx context.Context, owner string, repo string, number int, milestone *Milestone) (*Milestone, *Response, error)
MilestoneEvent is triggered when a milestone is created, closed, opened, edited, or deleted. The Webhook event name is "milestone". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#milestone Action is the action that was performed. Possible values are: "created", "closed", "opened", "edited", "deleted" The following fields are only populated by Webhook events. Installation *Installation Milestone *Milestone Org *Organization Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetMilestone returns the Milestone field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
MilestoneListOptions specifies the optional parameters to the IssuesService.ListMilestones method. Direction in which to sort milestones. Possible values are: asc, desc. Default is "asc". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Sort specifies how to sort milestones. Possible values are: due_on, completeness. Default value is "due_on". State filters milestones based on their state. Possible values are: open, closed, all. Default is "open". func (*IssuesService).ListMilestones(ctx context.Context, owner string, repo string, opts *MilestoneListOptions) ([]*Milestone, *Response, error)
MilestoneStats represents the number of total, open and close milestones. ClosedMilestones *int OpenMilestones *int TotalMilestones *int GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise. GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise. GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise. ( MilestoneStats) String() string MilestoneStats : expvar.Var MilestoneStats : fmt.Stringer func (*AdminStats).GetMilestones() *MilestoneStats
MinutesUsedBreakdown counts the actions minutes used by machine type (e.g. UBUNTU, WINDOWS, MACOS).
MostRecentInstance provides details of the most recent instance of this alert for the default branch or for the specified Git reference. AnalysisKey *string Category *string Classifications []string CommitSHA *string Environment *string HTMLURL *string Location *Location Message *Message Ref *string State *string GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. GetCategory returns the Category field if it's non-nil, zero value otherwise. GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetLocation returns the Location field. GetMessage returns the Message field. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. func (*Alert).GetMostRecentInstance() *MostRecentInstance func (*CodeScanningService).ListAlertInstances(ctx context.Context, owner, repo string, id int64, opts *AlertInstancesListOptions) ([]*MostRecentInstance, *Response, error)
NewPullRequest represents a new pull request to be created. The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. Body *string Draft *bool The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch. HeadRepo *string Issue *int MaintainerCanModify *bool Title *string GetBase returns the Base field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetDraft returns the Draft field if it's non-nil, zero value otherwise. GetHead returns the Head field if it's non-nil, zero value otherwise. GetHeadRepo returns the HeadRepo field if it's non-nil, zero value otherwise. GetIssue returns the Issue field if it's non-nil, zero value otherwise. GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. func (*PullRequestsService).Create(ctx context.Context, owner string, repo string, pull *NewPullRequest) (*PullRequest, *Response, error)
NewTeam represents a team to be created or modified. Description *string LDAPDN may be used in GitHub Enterprise when the team membership is synchronized with LDAP. Maintainers []string // Name of the team. (Required.) NotificationSetting can be one of: "notifications_enabled", "notifications_disabled". ParentTeamID *int64 Deprecated: Permission is deprecated when creating or editing a team in an org using the new GitHub permission model. It no longer identifies the permission a team has on its repos, but only specifies the default permission a repo is initially added with. Avoid confusion by specifying a permission value when calling AddTeamRepo. Privacy identifies the level of privacy this team should have. Possible values are: secret - only visible to organization owners and members of this team closed - visible to all members of this organization Default is "secret". RepoNames []string GetDescription returns the Description field if it's non-nil, zero value otherwise. GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. GetNotificationSetting returns the NotificationSetting field if it's non-nil, zero value otherwise. GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise. GetPermission returns the Permission field if it's non-nil, zero value otherwise. GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. ( NewTeam) String() string NewTeam : expvar.Var NewTeam : fmt.Stringer func (*TeamsService).CreateTeam(ctx context.Context, org string, team NewTeam) (*Team, *Response, error) func (*TeamsService).EditTeamByID(ctx context.Context, orgID, teamID int64, team NewTeam, removeParent bool) (*Team, *Response, error) func (*TeamsService).EditTeamBySlug(ctx context.Context, org, slug string, team NewTeam, removeParent bool) (*Team, *Response, error)
Notification identifies a GitHub notification for a user. ID *string LastReadAt *Timestamp Reason identifies the event that triggered the notification. GitHub API docs: https://docs.github.com/rest/activity#notification-reasons Repository *Repository Subject *NotificationSubject URL *string Unread *bool UpdatedAt *Timestamp GetID returns the ID field if it's non-nil, zero value otherwise. GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. GetReason returns the Reason field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetSubject returns the Subject field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUnread returns the Unread field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ActivityService).GetThread(ctx context.Context, id string) (*Notification, *Response, error) func (*ActivityService).ListNotifications(ctx context.Context, opts *NotificationListOptions) ([]*Notification, *Response, error) func (*ActivityService).ListRepositoryNotifications(ctx context.Context, owner, repo string, opts *NotificationListOptions) ([]*Notification, *Response, error)
NotificationListOptions specifies the optional parameters to the ActivityService.ListNotifications method. All bool Before time.Time ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Participating bool Since time.Time func (*ActivityService).ListNotifications(ctx context.Context, opts *NotificationListOptions) ([]*Notification, *Response, error) func (*ActivityService).ListRepositoryNotifications(ctx context.Context, owner, repo string, opts *NotificationListOptions) ([]*Notification, *Response, error)
NotificationSubject identifies the subject of a notification. LatestCommentURL *string Title *string Type *string URL *string GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*Notification).GetSubject() *NotificationSubject
OAuthAPP represents the GitHub Site Administrator OAuth app. ClientID *string Name *string URL *string GetClientID returns the ClientID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( OAuthAPP) String() string OAuthAPP : expvar.Var OAuthAPP : fmt.Stringer func (*UserAuthorization).GetApp() *OAuthAPP
OIDCSubjectClaimCustomTemplate represents an OIDC subject claim customization template. IncludeClaimKeys []string UseDefault *bool GetUseDefault returns the UseDefault field if it's non-nil, zero value otherwise. func (*ActionsService).GetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string) (*OIDCSubjectClaimCustomTemplate, *Response, error) func (*ActionsService).GetRepoOIDCSubjectClaimCustomTemplate(ctx context.Context, owner, repo string) (*OIDCSubjectClaimCustomTemplate, *Response, error) func (*ActionsService).SetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string, template *OIDCSubjectClaimCustomTemplate) (*Response, error) func (*ActionsService).SetRepoOIDCSubjectClaimCustomTemplate(ctx context.Context, owner, repo string, template *OIDCSubjectClaimCustomTemplate) (*Response, error)
Organization represents a GitHub organization account. AdvancedSecurityAuditLogEnabled toggles whether the advanced security audit log is enabled. AvatarURL *string BillingEmail *string Blog *string Collaborators *int Company *string CreatedAt *Timestamp DefaultRepoPermission can be one of: "read", "write", "admin", or "none". (Default: "read"). It is only used in OrganizationsService.Edit. DefaultRepoSettings can be one of: "read", "write", "admin", or "none". (Default: "read"). It is only used in OrganizationsService.Get. DependabotAlertsEnabled toggles whether dependabot alerts are enabled. DependabotSecurityUpdatesEnabled toggles whether dependabot security updates are enabled. DependabotGraphEnabledForNewRepos toggles whether dependabot graph is enabled on new repositories. Description *string DiskUsage *int Email *string EventsURL *string Followers *int Following *int HTMLURL *string HasOrganizationProjects *bool HasRepositoryProjects *bool HooksURL *string ID *int64 IsVerified *bool IssuesURL *string Location *string Login *string MembersAllowedRepositoryCreationType denotes if organization members can create repositories and the type of repositories they can create. Possible values are: "all", "private", or "none". Deprecated: Use MembersCanCreatePublicRepos, MembersCanCreatePrivateRepos, MembersCanCreateInternalRepos instead. The new fields overrides the existing MembersAllowedRepositoryCreationType during 'edit' operation and does not consider 'internal' repositories during 'get' operation MembersCanCreateInternalRepos *bool MembersCanCreatePages toggles whether organization members can create GitHub Pages sites. MembersCanCreatePrivatePages toggles whether organization members can create private GitHub Pages sites. MembersCanCreatePrivateRepos *bool MembersCanCreatePublicPages toggles whether organization members can create public GitHub Pages sites. https://developer.github.com/changes/2019-12-03-internal-visibility-changes/#rest-v3-api MembersCanCreateRepos default value is true and is only used in Organizations.Edit. MembersCanForkPrivateRepos toggles whether organization members can fork private organization repositories. MembersURL *string Name *string NodeID *string OwnedPrivateRepos *int64 Plan *Plan PrivateGists *int PublicGists *int PublicMembersURL *string PublicRepos *int ReposURL *string SecretScanningEnabled toggles whether secret scanning is enabled on new repositories. SecretScanningPushProtectionEnabledForNewRepos toggles whether secret scanning push protection is enabled on new repositories. SecretScanningValidityChecksEnabled toggles whether secret scanning validity check is enabled. TotalPrivateRepos *int64 TwitterUsername *string TwoFactorRequirementEnabled *bool Type *string API URLs UpdatedAt *Timestamp WebCommitSignoffRequire toggles GetAdvancedSecurityEnabledForNewRepos returns the AdvancedSecurityEnabledForNewRepos field if it's non-nil, zero value otherwise. GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. GetBlog returns the Blog field if it's non-nil, zero value otherwise. GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. GetCompany returns the Company field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise. GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise. GetDependabotAlertsEnabledForNewRepos returns the DependabotAlertsEnabledForNewRepos field if it's non-nil, zero value otherwise. GetDependabotSecurityUpdatesEnabledForNewRepos returns the DependabotSecurityUpdatesEnabledForNewRepos field if it's non-nil, zero value otherwise. GetDependencyGraphEnabledForNewRepos returns the DependencyGraphEnabledForNewRepos field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. GetEmail returns the Email field if it's non-nil, zero value otherwise. GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. GetFollowers returns the Followers field if it's non-nil, zero value otherwise. GetFollowing returns the Following field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise. GetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise. GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise. GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. GetLocation returns the Location field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise. GetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise. GetMembersCanCreatePages returns the MembersCanCreatePages field if it's non-nil, zero value otherwise. GetMembersCanCreatePrivatePages returns the MembersCanCreatePrivatePages field if it's non-nil, zero value otherwise. GetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise. GetMembersCanCreatePublicPages returns the MembersCanCreatePublicPages field if it's non-nil, zero value otherwise. GetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise. GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise. GetMembersCanForkPrivateRepos returns the MembersCanForkPrivateRepos field if it's non-nil, zero value otherwise. GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. GetPlan returns the Plan field. GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. GetSecretScanningEnabledForNewRepos returns the SecretScanningEnabledForNewRepos field if it's non-nil, zero value otherwise. GetSecretScanningPushProtectionEnabledForNewRepos returns the SecretScanningPushProtectionEnabledForNewRepos field if it's non-nil, zero value otherwise. GetSecretScanningValidityChecksEnabled returns the SecretScanningValidityChecksEnabled field if it's non-nil, zero value otherwise. GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise. ( Organization) String() string Organization : expvar.Var Organization : fmt.Stringer func (*AdminService).CreateOrg(ctx context.Context, org *Organization, admin string) (*Organization, *Response, error) func (*BranchProtectionRuleEvent).GetOrg() *Organization func (*CheckRunEvent).GetOrg() *Organization func (*CheckSuiteEvent).GetOrg() *Organization func (*CodeScanningAlertEvent).GetOrg() *Organization func (*CommitCommentEvent).GetOrg() *Organization func (*CopilotSeatDetails).GetOrganization() (*Organization, bool) func (*CreateEvent).GetOrg() *Organization func (*CustomOrgRoles).GetOrg() *Organization func (*CustomRepoRoles).GetOrg() *Organization func (*DeleteEvent).GetOrg() *Organization func (*DependabotAlertEvent).GetOrganization() *Organization func (*DeployKeyEvent).GetOrganization() *Organization func (*DeploymentEvent).GetOrg() *Organization func (*DeploymentProtectionRuleEvent).GetOrganization() *Organization func (*DeploymentReviewEvent).GetOrganization() *Organization func (*DeploymentStatusEvent).GetOrg() *Organization func (*DiscussionCommentEvent).GetOrg() *Organization func (*DiscussionEvent).GetOrg() *Organization func (*Event).GetOrg() *Organization func (*GollumEvent).GetOrg() *Organization func (*InstallationEvent).GetOrg() *Organization func (*InstallationRepositoriesEvent).GetOrg() *Organization func (*InstallationTargetEvent).GetOrganization() *Organization func (*IssueCommentEvent).GetOrganization() *Organization func (*IssuesEvent).GetOrg() *Organization func (*LabelEvent).GetOrg() *Organization func (*MarketplacePurchaseEvent).GetOrg() *Organization func (*MemberEvent).GetOrg() *Organization func (*Membership).GetOrganization() *Organization func (*MembershipEvent).GetOrg() *Organization func (*MergeGroupEvent).GetOrg() *Organization func (*MetaEvent).GetOrg() *Organization func (*MilestoneEvent).GetOrg() *Organization func (*OrganizationEvent).GetOrganization() *Organization func (*OrganizationsService).Edit(ctx context.Context, name string, org *Organization) (*Organization, *Response, error) func (*OrganizationsService).Get(ctx context.Context, org string) (*Organization, *Response, error) func (*OrganizationsService).GetByID(ctx context.Context, id int64) (*Organization, *Response, error) func (*OrganizationsService).List(ctx context.Context, user string, opts *ListOptions) ([]*Organization, *Response, error) func (*OrganizationsService).ListAll(ctx context.Context, opts *OrganizationsListOptions) ([]*Organization, *Response, error) func (*OrgBlockEvent).GetOrganization() *Organization func (*PackageEvent).GetOrg() *Organization func (*PageBuildEvent).GetOrg() *Organization func (*PersonalAccessTokenRequest).GetOrg() *Organization func (*PersonalAccessTokenRequestEvent).GetOrg() *Organization func (*PingEvent).GetOrg() *Organization func (*ProjectCardEvent).GetOrg() *Organization func (*ProjectColumnEvent).GetOrg() *Organization func (*ProjectEvent).GetOrg() *Organization func (*ProjectV2Event).GetOrg() *Organization func (*ProjectV2ItemEvent).GetOrg() *Organization func (*PublicEvent).GetOrg() *Organization func (*PullRequestEvent).GetOrganization() *Organization func (*PullRequestReviewCommentEvent).GetOrg() *Organization func (*PullRequestReviewEvent).GetOrganization() *Organization func (*PullRequestReviewThreadEvent).GetOrg() *Organization func (*PullRequestTargetEvent).GetOrganization() *Organization func (*PushEvent).GetOrganization() *Organization func (*ReleaseEvent).GetOrg() *Organization func (*Repository).GetOrganization() *Organization func (*RepositoryDispatchEvent).GetOrg() *Organization func (*RepositoryEvent).GetOrg() *Organization func (*RepositoryImportEvent).GetOrg() *Organization func (*RepositoryVulnerabilityAlertEvent).GetOrg() *Organization func (*SecretScanningAlertEvent).GetOrganization() *Organization func (*SecurityAdvisoryEvent).GetOrganization() *Organization func (*SecurityAndAnalysisEvent).GetOrganization() *Organization func (*SponsorshipEvent).GetOrganization() *Organization func (*StarEvent).GetOrg() *Organization func (*StatusEvent).GetOrg() *Organization func (*Team).GetOrganization() *Organization func (*TeamAddEvent).GetOrg() *Organization func (*TeamEvent).GetOrg() *Organization func (*WatchEvent).GetOrg() *Organization func (*WorkflowDispatchEvent).GetOrg() *Organization func (*WorkflowJobEvent).GetOrg() *Organization func (*WorkflowRunEvent).GetOrg() *Organization func (*AdminService).CreateOrg(ctx context.Context, org *Organization, admin string) (*Organization, *Response, error) func (*AdminService).RenameOrg(ctx context.Context, org *Organization, newName string) (*RenameOrgResponse, *Response, error) func (*OrganizationsService).Edit(ctx context.Context, name string, org *Organization) (*Organization, *Response, error)
OrganizationCustomRepoRoles represents custom repository roles available in specified organization. CustomRepoRoles []*CustomRepoRoles TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*OrganizationsService).ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error)
OrganizationCustomRoles represents custom organization roles available in specified organization. CustomRepoRoles []*CustomOrgRoles TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*OrganizationsService).ListRoles(ctx context.Context, org string) (*OrganizationCustomRoles, *Response, error)
OrganizationEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#organization Action is the action that was performed. Possible values are: "deleted", "renamed", "member_added", "member_removed", or "member_invited". Installation *Installation Invitation is the invitation for the user or email if the action is "member_invited". Membership is the membership between the user and the organization. Not present when the action is "member_invited". Organization *Organization Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetInvitation returns the Invitation field. GetMembership returns the Membership field. GetOrganization returns the Organization field. GetSender returns the Sender field.
OrganizationInstallations represents GitHub app installations for an organization. Installations []*Installation TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*OrganizationsService).ListInstallations(ctx context.Context, org string, opts *ListOptions) (*OrganizationInstallations, *Response, error)
OrganizationsListOptions specifies the optional parameters to the OrganizationsService.ListAll method. Note: Pagination is powered exclusively by the Since parameter, ListOptions.Page has no effect. ListOptions.PerPage controls an undocumented GitHub API parameter. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Since filters Organizations by ID. func (*OrganizationsService).ListAll(ctx context.Context, opts *OrganizationsListOptions) ([]*Organization, *Response, error)
OrganizationsService provides access to the organization related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/orgs/ AddSecurityManagerTeam adds a team to the list of security managers for an organization. GitHub API docs: https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team AssignOrgRoleToTeam 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team AssignOrgRoleToUser 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-user BlockUser blocks specified user from an organization. GitHub API docs: https://docs.github.com/rest/orgs/blocking#block-a-user-from-an-organization CancelInvite cancels an organization invitation. GitHub API docs: https://docs.github.com/rest/orgs/members#cancel-an-organization-invitation ConcealMembership conceals a user's membership in an organization. GitHub API docs: https://docs.github.com/rest/orgs/members#remove-public-organization-membership-for-the-authenticated-user ConvertMemberToOutsideCollaborator 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. GitHub API docs: https://docs.github.com/rest/orgs/outside-collaborators#convert-an-organization-member-to-outside-collaborator CreateCustomOrgRole creates a custom role in this organization. In order to create custom roles in an organization, the authenticated user must be an organization owner. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#create-a-custom-organization-role CreateCustomRepoRole 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. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#create-a-custom-repository-role CreateHook creates a Hook for the specified org. Config is a required field. Note that only a subset of the hook fields are used and hook must not be nil. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#create-an-organization-webhook CreateOrUpdateCustomProperties creates new or updates existing custom properties that are defined for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization CreateOrUpdateCustomProperty creates a new or updates an existing custom property that is defined for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization CreateOrUpdateRepoCustomPropertyValues creates new or updates existing custom property values across multiple repositories for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories CreateOrgInvitation 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. GitHub API docs: https://docs.github.com/rest/orgs/members#create-an-organization-invitation CreateOrganizationRuleset creates a ruleset for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/rules#create-an-organization-repository-ruleset CreateProject creates a GitHub Project for the specified organization. GitHub API docs: https://docs.github.com/rest/projects/projects#create-an-organization-project Delete an organization by name. GitHub API docs: https://docs.github.com/rest/orgs/orgs#delete-an-organization DeleteCustomOrgRole 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#delete-a-custom-organization-role DeleteCustomRepoRole 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. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#delete-a-custom-repository-role DeleteHook deletes a specified Hook. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#delete-an-organization-webhook DeleteOrganizationRuleset deletes a ruleset from the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/rules#delete-an-organization-repository-ruleset DeletePackage deletes a package from an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#delete-a-package-for-an-organization Edit an organization. GitHub API docs: https://docs.github.com/rest/orgs/orgs#update-an-organization EditActionsAllowed sets the actions that are allowed in an organization. Deprecated: please use `client.Actions.EditActionsAllowed` instead. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-organization EditActionsPermissions sets the permissions policy for repositories and allowed actions in an organization. Deprecated: please use `client.Actions.EditActionsPermissions` instead. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-github-actions-permissions-for-an-organization EditHook updates a specified Hook. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#update-an-organization-webhook EditHookConfiguration updates the configuration for the specified organization webhook. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization EditOrgMembership edits the membership for user in specified organization. Passing an empty string for user will edit the membership for the authenticated user. GitHub API docs: https://docs.github.com/rest/orgs/members#set-organization-membership-for-a-user GitHub API docs: https://docs.github.com/rest/orgs/members#update-an-organization-membership-for-the-authenticated-user Get fetches an organization by name. GitHub API docs: https://docs.github.com/rest/orgs/orgs#get-an-organization GetActionsAllowed gets the actions that are allowed in an organization. Deprecated: please use `client.Actions.GetActionsAllowed` instead. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-organization GetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in an organization. Deprecated: please use `client.Actions.GetActionsPermissions` instead. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-github-actions-permissions-for-an-organization GetAllCustomProperties gets all custom properties that are defined for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization GetAllOrganizationRulesets gets all the rulesets for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/rules#get-all-organization-repository-rulesets GetAuditLog gets the audit-log entries for an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs#get-the-audit-log-for-an-organization GetByID fetches an organization. Note: GetByID uses the undocumented GitHub API endpoint "GET /organizations/{organization_id}". GetCustomProperty gets a custom property that is defined for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization GetHook returns a single specified Hook. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#get-an-organization-webhook GetHookConfiguration returns the configuration for the specified organization webhook. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization GetHookDelivery returns a delivery for a webhook configured in an organization. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#get-a-webhook-delivery-for-an-organization-webhook GetOrgMembership gets the membership for a user in a specified organization. Passing an empty string for user will get the membership for the authenticated user. GitHub API docs: https://docs.github.com/rest/orgs/members#get-an-organization-membership-for-the-authenticated-user GitHub API docs: https://docs.github.com/rest/orgs/members#get-organization-membership-for-a-user GetOrgRole 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#get-an-organization-role GetOrganizationRuleset gets a ruleset from the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/rules#get-an-organization-repository-ruleset GetPackage gets a package by name from an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#get-a-package-for-an-organization IsBlocked reports whether specified user is blocked from an organization. GitHub API docs: https://docs.github.com/rest/orgs/blocking#check-if-a-user-is-blocked-by-an-organization IsMember checks if a user is a member of an organization. GitHub API docs: https://docs.github.com/rest/orgs/members#check-organization-membership-for-a-user IsPublicMember checks if a user is a public member of an organization. GitHub API docs: https://docs.github.com/rest/orgs/members#check-public-organization-membership-for-a-user List the organizations for a user. Passing the empty string will list organizations for the authenticated user. GitHub API docs: https://docs.github.com/rest/orgs/orgs#list-organizations-for-a-user GitHub API docs: https://docs.github.com/rest/orgs/orgs#list-organizations-for-the-authenticated-user ListAll lists all organizations, in the order that they were created on GitHub. Note: 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. GitHub API docs: https://docs.github.com/rest/orgs/orgs#list-organizations ListBlockedUsers lists all the users blocked by an organization. GitHub API docs: https://docs.github.com/rest/orgs/blocking#list-users-blocked-by-an-organization ListCredentialAuthorizations lists credentials authorized through SAML SSO for a given organization. Only available with GitHub Enterprise Cloud. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs#list-saml-sso-authorizations-for-an-organization ListCustomPropertyValues lists all custom property values for repositories in the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories ListCustomRepoRoles 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. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization ListFailedOrgInvitations returns a list of failed invitations. GitHub API docs: https://docs.github.com/rest/orgs/members#list-failed-organization-invitations ListFineGrainedPersonalAccessTokens 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). GitHub API docs: https://docs.github.com/rest/orgs/personal-access-tokens#list-fine-grained-personal-access-tokens-with-access-to-organization-resources ListHookDeliveries lists webhook deliveries for a webhook configured in an organization. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#list-deliveries-for-an-organization-webhook ListHooks lists all Hooks for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#list-organization-webhooks ListInstallations lists installations for an organization. GitHub API docs: https://docs.github.com/rest/orgs/orgs#list-app-installations-for-an-organization ListMembers 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. GitHub API docs: https://docs.github.com/rest/orgs/members#list-organization-members GitHub API docs: https://docs.github.com/rest/orgs/members#list-public-organization-members ListOrgInvitationTeams lists all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. GitHub API docs: https://docs.github.com/rest/orgs/members#list-organization-invitation-teams ListOrgMemberships lists the organization memberships for the authenticated user. GitHub API docs: https://docs.github.com/rest/orgs/members#list-organization-memberships-for-the-authenticated-user ListOutsideCollaborators lists outside collaborators of organization's repositories. This will only work if the authenticated user is an owner of the organization. Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. GitHub API docs: https://docs.github.com/rest/orgs/outside-collaborators#list-outside-collaborators-for-an-organization ListPackages lists the packages for an organization. GitHub API docs: https://docs.github.com/rest/packages/packages#list-packages-for-an-organization ListPendingOrgInvitations returns a list of pending invitations. GitHub API docs: https://docs.github.com/rest/orgs/members#list-pending-organization-invitations ListProjects lists the projects for an organization. GitHub API docs: https://docs.github.com/rest/projects/projects#list-organization-projects ListRoles 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#get-all-organization-roles-for-an-organization ListSecurityManagerTeams lists all security manager teams for an organization. GitHub API docs: https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams ListTeamsAssignedToOrgRole 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role ListUsersAssignedToOrgRole 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role PackageDeleteVersion deletes a package version from an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#delete-package-version-for-an-organization PackageGetAllVersions gets all versions of a package in an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#list-package-versions-for-a-package-owned-by-an-organization PackageGetVersion gets a specific version of a package in an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#get-a-package-version-for-an-organization PackageRestoreVersion restores a package version to an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#restore-package-version-for-an-organization PingHook triggers a 'ping' event to be sent to the Hook. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#ping-an-organization-webhook PublicizeMembership publicizes a user's membership in an organization. (A user cannot publicize the membership for another user.) GitHub API docs: https://docs.github.com/rest/orgs/members#set-public-organization-membership-for-the-authenticated-user RedeliverHookDelivery redelivers a delivery for a webhook configured in an organization. GitHub API docs: https://docs.github.com/rest/orgs/webhooks#redeliver-a-delivery-for-an-organization-webhook RemoveCredentialAuthorization revokes the SAML SSO authorization for a given credential within an organization. Only available with GitHub Enterprise Cloud. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/orgs#remove-a-saml-sso-authorization-for-an-organization RemoveCustomProperty removes a custom property that is defined for the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization RemoveMember removes a user from all teams of an organization. GitHub API docs: https://docs.github.com/rest/orgs/members#remove-an-organization-member RemoveOrgMembership removes user from the specified organization. If the user has been invited to the organization, this will cancel their invitation. GitHub API docs: https://docs.github.com/rest/orgs/members#remove-organization-membership-for-a-user RemoveOrgRoleFromTeam 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-team RemoveOrgRoleFromUser 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. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-user RemoveOutsideCollaborator removes a user from the list of outside collaborators; consequently, removing them from all the organization's repositories. GitHub API docs: https://docs.github.com/rest/orgs/outside-collaborators#remove-outside-collaborator-from-an-organization RemoveSecurityManagerTeam removes a team from the list of security managers for an organization. GitHub API docs: https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team RestorePackage restores a package to an organization. Note that packageName is escaped for the URL path so that you don't need to. GitHub API docs: https://docs.github.com/rest/packages/packages#restore-a-package-for-an-organization ReviewPersonalAccessTokenRequest 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`. GitHub API docs: https://docs.github.com/rest/orgs/personal-access-tokens#review-a-request-to-access-organization-resources-with-a-fine-grained-personal-access-token UnblockUser unblocks specified user from an organization. GitHub API docs: https://docs.github.com/rest/orgs/blocking#unblock-a-user-from-an-organization UpdateCustomOrgRole updates a custom role in this organization. In order to update custom roles in an organization, the authenticated user must be an organization owner. GitHub API docs: https://docs.github.com/rest/orgs/organization-roles#update-a-custom-organization-role UpdateCustomRepoRole 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. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#update-a-custom-repository-role UpdateOrganizationRuleset updates a ruleset from the specified organization. GitHub API docs: https://docs.github.com/rest/orgs/rules#update-an-organization-repository-ruleset
OrgBlockEvent is triggered when an organization blocks or unblocks a user. The Webhook event name is "org_block". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#org_block Action is the action that was performed. Can be "blocked" or "unblocked". BlockedUser *User The following fields are only populated by Webhook events. Organization *Organization Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetBlockedUser returns the BlockedUser field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetSender returns the Sender field.
OrgRequiredWorkflow represents a required workflow object at the org level. CreatedAt *Timestamp ID *int64 Name *string Path *string Ref *string Repository *Repository Scope *string SelectedRepositoriesURL *string State *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetScope returns the Scope field if it's non-nil, zero value otherwise. GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ActionsService).CreateRequiredWorkflow(ctx context.Context, org string, createRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error) func (*ActionsService).GetRequiredWorkflowByID(ctx context.Context, owner string, requiredWorkflowID int64) (*OrgRequiredWorkflow, *Response, error) func (*ActionsService).UpdateRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64, updateRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error)
OrgRequiredWorkflows represents the required workflows for the org. RequiredWorkflows []*OrgRequiredWorkflow TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListOrgRequiredWorkflows(ctx context.Context, org string, opts *ListOptions) (*OrgRequiredWorkflows, *Response, error)
OrgStats represents the number of total, disabled organizations and the team and team member count. DisabledOrgs *int TotalOrgs *int TotalTeamMembers *int TotalTeams *int GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise. GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise. GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise. ( OrgStats) String() string OrgStats : expvar.Var OrgStats : fmt.Stringer func (*AdminStats).GetOrgs() *OrgStats
OwnerInfo represents the account info of the owner of the repo (could be User or Organization but both are User structs). Org *User User *User GetOrg returns the Org field. GetUser returns the User field. func (*EditOwner).GetOwnerInfo() *OwnerInfo
Package represents a GitHub package. CreatedAt *Timestamp HTMLURL *string ID *int64 Name *string Owner *User PackageType *string PackageVersion *PackageVersion Registry *PackageRegistry Repository *Repository URL *string UpdatedAt *Timestamp VersionCount *int64 Visibility *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. GetPackageVersion returns the PackageVersion field. GetRegistry returns the Registry field. GetRepository returns the Repository field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetVersionCount returns the VersionCount field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. ( Package) String() string Package : expvar.Var Package : fmt.Stringer func (*OrganizationsService).GetPackage(ctx context.Context, org, packageType, packageName string) (*Package, *Response, error) func (*OrganizationsService).ListPackages(ctx context.Context, org string, opts *PackageListOptions) ([]*Package, *Response, error) func (*PackageEvent).GetPackage() *Package func (*UsersService).GetPackage(ctx context.Context, user, packageType, packageName string) (*Package, *Response, error) func (*UsersService).ListPackages(ctx context.Context, user string, opts *PackageListOptions) ([]*Package, *Response, error)
PackageBilling represents a GitHub Package billing. IncludedGigabytesBandwidth float64 TotalGigabytesBandwidthUsed int TotalPaidGigabytesBandwidthUsed int func (*BillingService).GetPackagesBillingOrg(ctx context.Context, org string) (*PackageBilling, *Response, error) func (*BillingService).GetPackagesBillingUser(ctx context.Context, user string) (*PackageBilling, *Response, error)
PackageContainerMetadata represents container metadata for docker container packages. Tags []string ( PackageContainerMetadata) String() string PackageContainerMetadata : expvar.Var PackageContainerMetadata : fmt.Stringer func (*PackageMetadata).GetContainer() *PackageContainerMetadata
PackageEvent represents activity related to GitHub Packages. The Webhook event name is "package". This event is triggered when a GitHub Package is published or updated. GitHub API docs: https://developer.github.com/webhooks/event-payloads/#package Action is the action that was performed. Can be "published" or "updated". The following fields are only populated by Webhook events. Org *Organization Package *Package Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetPackage returns the Package field. GetRepo returns the Repo field. GetSender returns the Sender field.
PackageFile represents a GitHub package version release file. Author *User ContentType *string CreatedAt *Timestamp DownloadURL *string ID *int64 MD5 *string Name *string SHA1 *string SHA256 *string Size *int64 State *string UpdatedAt *Timestamp GetAuthor returns the Author field. GetContentType returns the ContentType field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetMD5 returns the MD5 field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise. GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( PackageFile) String() string PackageFile : expvar.Var PackageFile : fmt.Stringer
PackageListOptions represents the optional list options for a package. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. PackageType represents the type of package. It can be one of "npm", "maven", "rubygems", "nuget", "docker", or "container". State of package either "active" or "deleted". Visibility of packages "public", "internal" or "private". GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*OrganizationsService).ListPackages(ctx context.Context, org string, opts *PackageListOptions) ([]*Package, *Response, error) func (*OrganizationsService).PackageGetAllVersions(ctx context.Context, org, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error) func (*UsersService).ListPackages(ctx context.Context, user string, opts *PackageListOptions) ([]*Package, *Response, error) func (*UsersService).PackageGetAllVersions(ctx context.Context, user, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error)
PackageMetadata represents metadata from a package. Container *PackageContainerMetadata PackageType *string GetContainer returns the Container field. GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. ( PackageMetadata) String() string PackageMetadata : expvar.Var PackageMetadata : fmt.Stringer func (*PackageVersion).GetMetadata() *PackageMetadata
PackageRegistry represents a GitHub package registry. AboutURL *string Name *string Type *string URL *string Vendor *string GetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetVendor returns the Vendor field if it's non-nil, zero value otherwise. ( PackageRegistry) String() string PackageRegistry : expvar.Var PackageRegistry : fmt.Stringer func (*Package).GetRegistry() *PackageRegistry
PackageRelease represents a GitHub package version release. Author *User CreatedAt *Timestamp Draft *bool HTMLURL *string ID *int64 Name *string Prerelease *bool PublishedAt *Timestamp TagName *string TargetCommitish *string URL *string GetAuthor returns the Author field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDraft returns the Draft field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. GetTagName returns the TagName field if it's non-nil, zero value otherwise. GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( PackageRelease) String() string PackageRelease : expvar.Var PackageRelease : fmt.Stringer func (*PackageVersion).GetRelease() *PackageRelease
PackageVersion represents a GitHub package version. Author *User Body *string BodyHTML *string CreatedAt *Timestamp Draft *bool HTMLURL *string ID *int64 InstallationCommand *string Manifest *string Metadata *PackageMetadata Name *string PackageFiles []*PackageFile PackageHTMLURL *string Prerelease *bool Release *PackageRelease Summary *string TagName *string TargetCommitish *string TargetOID *string URL *string UpdatedAt *Timestamp Version *string GetAuthor returns the Author field. GetBody returns the Body field if it's non-nil, zero value otherwise. GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDraft returns the Draft field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise. GetManifest returns the Manifest field if it's non-nil, zero value otherwise. GetMetadata returns the Metadata field. GetName returns the Name field if it's non-nil, zero value otherwise. GetPackageHTMLURL returns the PackageHTMLURL field if it's non-nil, zero value otherwise. GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. GetRelease returns the Release field. GetSummary returns the Summary field if it's non-nil, zero value otherwise. GetTagName returns the TagName field if it's non-nil, zero value otherwise. GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. GetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetVersion returns the Version field if it's non-nil, zero value otherwise. ( PackageVersion) String() string PackageVersion : expvar.Var PackageVersion : fmt.Stringer func (*OrganizationsService).PackageGetAllVersions(ctx context.Context, org, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error) func (*OrganizationsService).PackageGetVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error) func (*Package).GetPackageVersion() *PackageVersion func (*UsersService).PackageGetAllVersions(ctx context.Context, user, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error) func (*UsersService).PackageGetVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error)
Page represents a single Wiki page. Action *string HTMLURL *string PageName *string SHA *string Summary *string Title *string GetAction returns the Action field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetPageName returns the PageName field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSummary returns the Summary field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise.
PageBuildEvent represents an attempted build of a GitHub Pages site, whether successful or not. The Webhook event name is "page_build". This event is triggered on push to a GitHub Pages enabled branch (gh-pages for project pages, master for user and organization pages). Events of this type are not visible in timelines, they are only used to trigger hooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#page_build Build *PagesBuild The following fields are only populated by Webhook events. Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository Sender *User GetBuild returns the Build field. GetID returns the ID field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
Pages represents a GitHub Pages site configuration. BuildType *string CNAME *string Custom404 *bool HTMLURL *string HTTPSCertificate *PagesHTTPSCertificate HTTPSEnforced *bool Public *bool Source *PagesSource Status *string URL *string GetBuildType returns the BuildType field if it's non-nil, zero value otherwise. GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHTTPSCertificate returns the HTTPSCertificate field. GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. GetPublic returns the Public field if it's non-nil, zero value otherwise. GetSource returns the Source field. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*RepositoriesService).EnablePages(ctx context.Context, owner, repo string, pages *Pages) (*Pages, *Response, error) func (*RepositoriesService).GetPagesInfo(ctx context.Context, owner, repo string) (*Pages, *Response, error) func (*RepositoriesService).EnablePages(ctx context.Context, owner, repo string, pages *Pages) (*Pages, *Response, error)
PagesBuild represents the build information for a GitHub Pages site. Commit *string CreatedAt *Timestamp Duration *int Error *PagesError Pusher *User Status *string URL *string UpdatedAt *Timestamp GetCommit returns the Commit field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDuration returns the Duration field if it's non-nil, zero value otherwise. GetError returns the Error field. GetPusher returns the Pusher field. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*PageBuildEvent).GetBuild() *PagesBuild func (*RepositoriesService).GetLatestPagesBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error) func (*RepositoriesService).GetPageBuild(ctx context.Context, owner, repo string, id int64) (*PagesBuild, *Response, error) func (*RepositoriesService).ListPagesBuilds(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PagesBuild, *Response, error) func (*RepositoriesService).RequestPageBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error)
PagesDomain represents a domain associated with a GitHub Pages site. CAAError *string DNSResolves *bool EnforcesHTTPS *bool HTTPSError *string HasCNAMERecord *bool HasMXRecordsPresent *bool Host *string IsARecord *bool IsApexDomain *bool IsCNAMEToFastly *bool IsCNAMEToGithubUserDomain *bool IsCNAMEToPagesDotGithubDotCom *bool IsCloudflareIP *bool IsFastlyIP *bool IsHTTPSEligible *bool IsNonGithubPagesIPPresent *bool IsOldIPAddress *bool IsPagesDomain *bool IsPointedToGithubPagesIP *bool IsProxied *bool IsServedByPages *bool IsValid *bool IsValidDomain *bool Nameservers *string Reason *string RespondsToHTTPS *bool ShouldBeARecord *bool URI *string GetCAAError returns the CAAError field if it's non-nil, zero value otherwise. GetDNSResolves returns the DNSResolves field if it's non-nil, zero value otherwise. GetEnforcesHTTPS returns the EnforcesHTTPS field if it's non-nil, zero value otherwise. GetHTTPSError returns the HTTPSError field if it's non-nil, zero value otherwise. GetHasCNAMERecord returns the HasCNAMERecord field if it's non-nil, zero value otherwise. GetHasMXRecordsPresent returns the HasMXRecordsPresent field if it's non-nil, zero value otherwise. GetHost returns the Host field if it's non-nil, zero value otherwise. GetIsARecord returns the IsARecord field if it's non-nil, zero value otherwise. GetIsApexDomain returns the IsApexDomain field if it's non-nil, zero value otherwise. GetIsCNAMEToFastly returns the IsCNAMEToFastly field if it's non-nil, zero value otherwise. GetIsCNAMEToGithubUserDomain returns the IsCNAMEToGithubUserDomain field if it's non-nil, zero value otherwise. GetIsCNAMEToPagesDotGithubDotCom returns the IsCNAMEToPagesDotGithubDotCom field if it's non-nil, zero value otherwise. GetIsCloudflareIP returns the IsCloudflareIP field if it's non-nil, zero value otherwise. GetIsFastlyIP returns the IsFastlyIP field if it's non-nil, zero value otherwise. GetIsHTTPSEligible returns the IsHTTPSEligible field if it's non-nil, zero value otherwise. GetIsNonGithubPagesIPPresent returns the IsNonGithubPagesIPPresent field if it's non-nil, zero value otherwise. GetIsOldIPAddress returns the IsOldIPAddress field if it's non-nil, zero value otherwise. GetIsPagesDomain returns the IsPagesDomain field if it's non-nil, zero value otherwise. GetIsPointedToGithubPagesIP returns the IsPointedToGithubPagesIP field if it's non-nil, zero value otherwise. GetIsProxied returns the IsProxied field if it's non-nil, zero value otherwise. GetIsServedByPages returns the IsServedByPages field if it's non-nil, zero value otherwise. GetIsValid returns the IsValid field if it's non-nil, zero value otherwise. GetIsValidDomain returns the IsValidDomain field if it's non-nil, zero value otherwise. GetNameservers returns the Nameservers field if it's non-nil, zero value otherwise. GetReason returns the Reason field if it's non-nil, zero value otherwise. GetRespondsToHTTPS returns the RespondsToHTTPS field if it's non-nil, zero value otherwise. GetShouldBeARecord returns the ShouldBeARecord field if it's non-nil, zero value otherwise. GetURI returns the URI field if it's non-nil, zero value otherwise. func (*PagesHealthCheckResponse).GetAltDomain() *PagesDomain func (*PagesHealthCheckResponse).GetDomain() *PagesDomain
PagesError represents a build error for a GitHub Pages site. Message *string GetMessage returns the Message field if it's non-nil, zero value otherwise. func (*PagesBuild).GetError() *PagesError
PagesHealthCheckResponse represents the response given for the health check of a GitHub Pages site. AltDomain *PagesDomain Domain *PagesDomain GetAltDomain returns the AltDomain field. GetDomain returns the Domain field. func (*RepositoriesService).GetPageHealthCheck(ctx context.Context, owner, repo string) (*PagesHealthCheckResponse, *Response, error)
PagesHTTPSCertificate represents the HTTPS Certificate information for a GitHub Pages site. Description *string Domains []string GitHub's API doesn't return a standard Timestamp, rather it returns a YYYY-MM-DD string. State *string GetDescription returns the Description field if it's non-nil, zero value otherwise. GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. func (*Pages).GetHTTPSCertificate() *PagesHTTPSCertificate
PagesSource represents a GitHub page's source. Branch *string Path *string GetBranch returns the Branch field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. func (*Pages).GetSource() *PagesSource func (*PagesUpdate).GetSource() *PagesSource
PageStats represents the total number of github pages. TotalPages *int GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise. ( PageStats) String() string PageStats : expvar.Var PageStats : fmt.Stringer func (*AdminStats).GetPages() *PageStats
PagesUpdate sets up parameters needed to update a GitHub Pages site. BuildType is optional and can either be "legacy" or "workflow". "workflow" - You are using a github workflow to build your pages. "legacy" - You are deploying from a branch. CNAME represents a custom domain for the repository. Leaving CNAME empty will remove the custom domain. HTTPSEnforced specifies whether HTTPS should be enforced for the repository. Public configures access controls for the site. If "true", the site will be accessible to anyone on the internet. If "false", the site will be accessible to anyone with read access to the repository that published the site. Source must include the branch name, and may optionally specify the subdirectory "/docs". Possible values for Source.Branch are usually "gh-pages", "main", and "master", or any other existing branch name. Possible values for Source.Path are: "/", and "/docs". GetBuildType returns the BuildType field if it's non-nil, zero value otherwise. GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. GetPublic returns the Public field if it's non-nil, zero value otherwise. GetSource returns the Source field. func (*RepositoriesService).UpdatePages(ctx context.Context, owner, repo string, opts *PagesUpdate) (*Response, error)
PendingDeployment represents the pending_deployments response. CurrentUserCanApprove *bool Environment *PendingDeploymentEnvironment Reviewers []*RequiredReviewer WaitTimer *int64 WaitTimerStartedAt *Timestamp GetCurrentUserCanApprove returns the CurrentUserCanApprove field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field. GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. GetWaitTimerStartedAt returns the WaitTimerStartedAt field if it's non-nil, zero value otherwise. func (*ActionsService).GetPendingDeployments(ctx context.Context, owner, repo string, runID int64) ([]*PendingDeployment, *Response, error)
PendingDeploymentEnvironment represents pending deployment environment properties. HTMLURL *string ID *int64 Name *string NodeID *string URL *string GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*PendingDeployment).GetEnvironment() *PendingDeploymentEnvironment
PendingDeploymentsRequest specifies body parameters to PendingDeployments. Comment string EnvironmentIDs []int64 State can be one of: "approved", "rejected". func (*ActionsService).PendingDeployments(ctx context.Context, owner, repo string, runID int64, request *PendingDeploymentsRequest) ([]*Deployment, *Response, error)
PersonalAccessToken represents the minimal representation of an organization programmatic access grant. GitHub API docs: https://docs.github.com/en/rest/orgs/personal-access-tokens?apiVersion=2022-11-28 Date and time when the fine-grained personal access token was approved to access the organization. "Unique identifier of the fine-grained personal access token. The `pat_id` used to get details about an approved fine-grained personal access token. Owner is the GitHub user associated with the token. Permissions are the permissions requested, categorized by type. URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`. RepositorySelection is the type of repository selection requested. Possible values are: "none", "all", "subset". Whether the associated fine-grained personal access token has expired. Date and time when the associated fine-grained personal access token expires. Date and time when the associated fine-grained personal access token was last used for authentication. GetAccessGrantedAt returns the AccessGrantedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPermissions returns the Permissions field. GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. GetTokenExpired returns the TokenExpired field if it's non-nil, zero value otherwise. GetTokenExpiresAt returns the TokenExpiresAt field if it's non-nil, zero value otherwise. GetTokenLastUsedAt returns the TokenLastUsedAt field if it's non-nil, zero value otherwise. func (*OrganizationsService).ListFineGrainedPersonalAccessTokens(ctx context.Context, org string, opts *ListFineGrainedPATOptions) ([]*PersonalAccessToken, *Response, error)
PersonalAccessTokenPermissions represents the original or newly requested scope of permissions for a fine-grained personal access token within a PersonalAccessTokenRequest. Org map[string]string Other map[string]string Repo map[string]string GetOrg returns the Org map if it's non-nil, an empty map otherwise. GetOther returns the Other map if it's non-nil, an empty map otherwise. GetRepo returns the Repo map if it's non-nil, an empty map otherwise. func (*PersonalAccessToken).GetPermissions() *PersonalAccessTokenPermissions func (*PersonalAccessTokenRequest).GetPermissionsAdded() *PersonalAccessTokenPermissions func (*PersonalAccessTokenRequest).GetPermissionsResult() *PersonalAccessTokenPermissions func (*PersonalAccessTokenRequest).GetPermissionsUpgraded() *PersonalAccessTokenPermissions
PersonalAccessTokenRequest contains the details of a PersonalAccessTokenRequestEvent. Date and time when the request for access was created. Unique identifier of the request for access via fine-grained personal access token. Used as the pat_request_id parameter in the list and review API calls. The following field is only present when the webhook is triggered on a repository belonging to an organization. Owner *User New requested permissions, categorized by type of permission. Permissions requested, categorized by type of permission. This field incorporates permissions_added and permissions_upgraded. Requested permissions that elevate access for a previously approved request for access, categorized by type of permission. An array of repository objects the token is requesting access to. This field is only populated when repository_selection is subset. The number of repositories the token is requesting access to. This field is only populated when repository_selection is subset. Type of repository selection requested. Possible values are: "none", "all" or "subset" Whether the associated fine-grained personal access token has expired. Date and time when the associated fine-grained personal access token expires. Date and time when the associated fine-grained personal access token was last used for authentication. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetOrg returns the Org field. GetOwner returns the Owner field. GetPermissionsAdded returns the PermissionsAdded field. GetPermissionsResult returns the PermissionsResult field. GetPermissionsUpgraded returns the PermissionsUpgraded field. GetRepositoryCount returns the RepositoryCount field if it's non-nil, zero value otherwise. GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. GetTokenExpired returns the TokenExpired field if it's non-nil, zero value otherwise. GetTokenExpiresAt returns the TokenExpiresAt field if it's non-nil, zero value otherwise. GetTokenLastUsedAt returns the TokenLastUsedAt field if it's non-nil, zero value otherwise. func (*PersonalAccessTokenRequestEvent).GetPersonalAccessTokenRequest() *PersonalAccessTokenRequest
PersonalAccessTokenRequestEvent 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". GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#personal_access_token_request Action is the action that was performed. Possible values are: "approved", "cancelled", "created" or "denied" Installation *Installation Org *Organization PersonalAccessTokenRequest *PersonalAccessTokenRequest Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetPersonalAccessTokenRequest returns the PersonalAccessTokenRequest field. GetSender returns the Sender field.
PingEvent is triggered when a Webhook is added to GitHub. GitHub API docs: https://developer.github.com/webhooks/#ping-event The webhook configuration. The ID of the webhook that triggered the ping. Installation *Installation Org *Organization The following fields are only populated by Webhook events. Sender *User Random string of GitHub zen. GetHook returns the Hook field. GetHookID returns the HookID field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetZen returns the Zen field if it's non-nil, zero value otherwise.
Plan represents the payment plan for an account. See plans at https://github.com/plans. Collaborators *int FilledSeats *int Name *string PrivateRepos *int64 Seats *int Space *int GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. GetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. GetSeats returns the Seats field if it's non-nil, zero value otherwise. GetSpace returns the Space field if it's non-nil, zero value otherwise. ( Plan) String() string Plan : expvar.Var Plan : fmt.Stringer func (*Organization).GetPlan() *Plan func (*User).GetPlan() *Plan
PreferenceList represents a list of auto trigger checks for repository // A slice of auto trigger checks that can be set for a check suite in a repository. func (*CheckSuitePreferenceResults).GetPreferences() *PreferenceList
PreReceiveHook represents a GitHub pre-receive hook for a repository. ConfigURL *string Enforcement *string ID *int64 Name *string GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise. GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. ( PreReceiveHook) String() string PreReceiveHook : expvar.Var PreReceiveHook : fmt.Stringer func (*RepositoriesService).GetPreReceiveHook(ctx context.Context, owner, repo string, id int64) (*PreReceiveHook, *Response, error) func (*RepositoriesService).ListPreReceiveHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PreReceiveHook, *Response, error) func (*RepositoriesService).UpdatePreReceiveHook(ctx context.Context, owner, repo string, id int64, hook *PreReceiveHook) (*PreReceiveHook, *Response, error) func (*RepositoriesService).UpdatePreReceiveHook(ctx context.Context, owner, repo string, id int64, hook *PreReceiveHook) (*PreReceiveHook, *Response, error)
Project represents a GitHub Project. Body *string ColumnsURL *string CreatedAt *Timestamp The User object that generated the project. HTMLURL *string ID *int64 Name *string NodeID *string Number *int OrganizationPermission *string OwnerURL *string Private *bool State *string URL *string UpdatedAt *Timestamp GetBody returns the Body field if it's non-nil, zero value otherwise. GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. GetPrivate returns the Private field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( Project) String() string Project : expvar.Var Project : fmt.Stringer func (*OrganizationsService).CreateProject(ctx context.Context, org string, opts *ProjectOptions) (*Project, *Response, error) func (*OrganizationsService).ListProjects(ctx context.Context, org string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*ProjectEvent).GetProject() *Project func (*ProjectsService).GetProject(ctx context.Context, id int64) (*Project, *Response, error) func (*ProjectsService).UpdateProject(ctx context.Context, id int64, opts *ProjectOptions) (*Project, *Response, error) func (*RepositoriesService).CreateProject(ctx context.Context, owner, repo string, opts *ProjectOptions) (*Project, *Response, error) func (*RepositoriesService).ListProjects(ctx context.Context, owner, repo string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*TeamsService).ListTeamProjectsByID(ctx context.Context, orgID, teamID int64) ([]*Project, *Response, error) func (*TeamsService).ListTeamProjectsBySlug(ctx context.Context, org, slug string) ([]*Project, *Response, error) func (*TeamsService).ReviewTeamProjectsByID(ctx context.Context, orgID, teamID, projectID int64) (*Project, *Response, error) func (*TeamsService).ReviewTeamProjectsBySlug(ctx context.Context, org, slug string, projectID int64) (*Project, *Response, error) func (*UsersService).CreateProject(ctx context.Context, opts *CreateUserProjectOptions) (*Project, *Response, error) func (*UsersService).ListProjects(ctx context.Context, user string, opts *ProjectListOptions) ([]*Project, *Response, error)
ProjectBody represents a project body change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProjectChange).GetBody() *ProjectBody
ProjectCard represents a card in a column of a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards/#get-a-project-card Archived *bool The following fields are only populated by Webhook events. ColumnName *string ColumnURL *string ContentURL *string CreatedAt *Timestamp Creator *User ID *int64 NodeID *string Note *string // Populated in "moved_columns_in_project" event deliveries. The following fields are only populated by Events API. ProjectURL *string URL *string UpdatedAt *Timestamp GetArchived returns the Archived field if it's non-nil, zero value otherwise. GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise. GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise. GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNote returns the Note field if it's non-nil, zero value otherwise. GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*IssueEvent).GetProjectCard() *ProjectCard func (*ProjectCardEvent).GetProjectCard() *ProjectCard func (*ProjectsService).CreateProjectCard(ctx context.Context, columnID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error) func (*ProjectsService).GetProjectCard(ctx context.Context, cardID int64) (*ProjectCard, *Response, error) func (*ProjectsService).ListProjectCards(ctx context.Context, columnID int64, opts *ProjectCardListOptions) ([]*ProjectCard, *Response, error) func (*ProjectsService).UpdateProjectCard(ctx context.Context, cardID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error) func (*Timeline).GetProjectCard() *ProjectCard
ProjectCardChange represents the changes when a project card has been edited. Note *ProjectCardNote GetNote returns the Note field. func (*ProjectCardEvent).GetChanges() *ProjectCardChange
ProjectCardEvent is triggered when a project card is created, updated, moved, converted to an issue, or deleted. The webhook event name is "project_card". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#project_card Action *string AfterID *int64 Changes *ProjectCardChange Installation *Installation Org *Organization ProjectCard *ProjectCard The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetProjectCard returns the ProjectCard field. GetRepo returns the Repo field. GetSender returns the Sender field.
ProjectCardListOptions specifies the optional parameters to the ProjectsService.ListProjectCards method. ArchivedState is used to list all, archived, or not_archived project cards. Defaults to not_archived when you omit this parameter. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. func (*ProjectsService).ListProjectCards(ctx context.Context, columnID int64, opts *ProjectCardListOptions) ([]*ProjectCard, *Response, error)
ProjectCardMoveOptions specifies the parameters to the ProjectsService.MoveProjectCard method. ColumnID is the ID of a column in the same project. Note that ColumnID is required when using Position "after:<card-id>" when that card is in another column; otherwise it is optional. Position can be one of "top", "bottom", or "after:<card-id>", where <card-id> is the ID of a card in the same project. func (*ProjectsService).MoveProjectCard(ctx context.Context, cardID int64, opts *ProjectCardMoveOptions) (*Response, error)
ProjectCardNote represents a change of a note of a project card. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProjectCardChange).GetNote() *ProjectCardNote
ProjectCardOptions specifies the parameters to the ProjectsService.CreateProjectCard and ProjectsService.UpdateProjectCard methods. Use true to archive a project card. Specify false if you need to restore a previously archived project card. The ID (not Number) of the Issue to associate with this card. Note and ContentID are mutually exclusive. The type of content to associate with this card. Possible values are: "Issue" and "PullRequest". The note of the card. Note and ContentID are mutually exclusive. GetArchived returns the Archived field if it's non-nil, zero value otherwise. func (*ProjectsService).CreateProjectCard(ctx context.Context, columnID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error) func (*ProjectsService).UpdateProjectCard(ctx context.Context, cardID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error)
ProjectChange represents the changes when a project has been edited. Body *ProjectBody Name *ProjectName GetBody returns the Body field. GetName returns the Name field. func (*ProjectEvent).GetChanges() *ProjectChange
ProjectCollaboratorOptions specifies the optional parameters to the ProjectsService.AddProjectCollaborator method. Permission specifies the permission to grant to the collaborator. Possible values are: "read" - can read, but not write to or administer this project. "write" - can read and write, but not administer this project. "admin" - can read, write and administer this project. Default value is "write" GetPermission returns the Permission field if it's non-nil, zero value otherwise. func (*ProjectsService).AddProjectCollaborator(ctx context.Context, id int64, username string, opts *ProjectCollaboratorOptions) (*Response, error)
ProjectColumn represents a column of a GitHub Project. GitHub API docs: https://docs.github.com/rest/repos/projects/ CardsURL *string CreatedAt *Timestamp ID *int64 Name *string NodeID *string ProjectURL *string URL *string UpdatedAt *Timestamp GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ProjectColumnEvent).GetProjectColumn() *ProjectColumn func (*ProjectsService).CreateProjectColumn(ctx context.Context, projectID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error) func (*ProjectsService).GetProjectColumn(ctx context.Context, id int64) (*ProjectColumn, *Response, error) func (*ProjectsService).ListProjectColumns(ctx context.Context, projectID int64, opts *ListOptions) ([]*ProjectColumn, *Response, error) func (*ProjectsService).UpdateProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error)
ProjectColumnChange represents the changes when a project column has been edited. Name *ProjectColumnName GetName returns the Name field. func (*ProjectColumnEvent).GetChanges() *ProjectColumnChange
ProjectColumnEvent is triggered when a project column is created, updated, moved, or deleted. The webhook event name is "project_column". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#project_column Action *string AfterID *int64 Changes *ProjectColumnChange Installation *Installation Org *Organization ProjectColumn *ProjectColumn The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetProjectColumn returns the ProjectColumn field. GetRepo returns the Repo field. GetSender returns the Sender field.
ProjectColumnMoveOptions specifies the parameters to the ProjectsService.MoveProjectColumn method. Position can be one of "first", "last", or "after:<column-id>", where <column-id> is the ID of a column in the same project. (Required.) func (*ProjectsService).MoveProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnMoveOptions) (*Response, error)
ProjectColumnName represents a project column name change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProjectColumnChange).GetName() *ProjectColumnName
ProjectColumnOptions specifies the parameters to the ProjectsService.CreateProjectColumn and ProjectsService.UpdateProjectColumn methods. The name of the project column. (Required for creation and update.) func (*ProjectsService).CreateProjectColumn(ctx context.Context, projectID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error) func (*ProjectsService).UpdateProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error)
ProjectEvent is triggered when project is created, modified or deleted. The webhook event name is "project". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#project Action *string Changes *ProjectChange Installation *Installation Org *Organization Project *Project The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetProject returns the Project field. GetRepo returns the Repo field. GetSender returns the Sender field.
ProjectListOptions specifies the optional parameters to the OrganizationsService.ListProjects and RepositoriesService.ListProjects methods. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Filter memberships to include only those with the specified state. Possible values are: "active", "pending". func (*OrganizationsService).ListProjects(ctx context.Context, org string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*RepositoriesService).ListProjects(ctx context.Context, owner, repo string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*UsersService).ListProjects(ctx context.Context, user string, opts *ProjectListOptions) ([]*Project, *Response, error)
ProjectName represents a project name change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProjectChange).GetName() *ProjectName
ProjectOptions specifies the parameters to the RepositoriesService.CreateProject and ProjectsService.UpdateProject methods. The body of the project. (Optional.) The name of the project. (Required for creation; optional for update.) The permission level that all members of the project's organization will have on this project. Setting the organization permission is only available for organization projects. (Optional.) Sets visibility of the project within the organization. Setting visibility is only available for organization projects.(Optional.) State of the project. Either "open" or "closed". (Optional.) GetBody returns the Body field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. GetPrivate returns the Private field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateProject(ctx context.Context, org string, opts *ProjectOptions) (*Project, *Response, error) func (*ProjectsService).UpdateProject(ctx context.Context, id int64, opts *ProjectOptions) (*Project, *Response, error) func (*RepositoriesService).CreateProject(ctx context.Context, owner, repo string, opts *ProjectOptions) (*Project, *Response, error)
ProjectPermissionLevel represents the permission level an organization member has for a given project. Possible values: "admin", "write", "read", "none" User *User GetPermission returns the Permission field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*ProjectsService).ReviewProjectCollaboratorPermission(ctx context.Context, id int64, username string) (*ProjectPermissionLevel, *Response, error)
ProjectsService provides access to the projects functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/projects AddProjectCollaborator adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project admin to add a collaborator. GitHub API docs: https://docs.github.com/rest/projects/collaborators#add-project-collaborator CreateProjectCard creates a card in the specified column of a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards#create-a-project-card CreateProjectColumn creates a column for the specified (by number) project. GitHub API docs: https://docs.github.com/rest/projects/columns#create-a-project-column DeleteProject deletes a GitHub Project from a repository. GitHub API docs: https://docs.github.com/rest/projects/projects#delete-a-project DeleteProjectCard deletes a card from a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards#delete-a-project-card DeleteProjectColumn deletes a column from a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/columns#delete-a-project-column GetProject gets a GitHub Project for a repo. GitHub API docs: https://docs.github.com/rest/projects/projects#get-a-project GetProjectCard gets a card in a column of a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards#get-a-project-card GetProjectColumn gets a column of a GitHub Project for a repo. GitHub API docs: https://docs.github.com/rest/projects/columns#get-a-project-column ListProjectCards lists the cards in a column of a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards#list-project-cards ListProjectCollaborators lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project admin to list collaborators. GitHub API docs: https://docs.github.com/rest/projects/collaborators#list-project-collaborators ListProjectColumns lists the columns of a GitHub Project for a repo. GitHub API docs: https://docs.github.com/rest/projects/columns#list-project-columns MoveProjectCard moves a card within a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards#move-a-project-card MoveProjectColumn moves a column within a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/columns#move-a-project-column RemoveProjectCollaborator removes a collaborator from an organization project. You must be an organization owner or a project admin to remove a collaborator. GitHub API docs: https://docs.github.com/rest/projects/collaborators#remove-user-as-a-collaborator ReviewProjectCollaboratorPermission returns the collaborator's permission level for an organization project. Possible values for the permission key: "admin", "write", "read", "none". You must be an organization owner or a project admin to review a user's permission level. GitHub API docs: https://docs.github.com/rest/projects/collaborators#get-project-permission-for-a-user UpdateProject updates a repository project. GitHub API docs: https://docs.github.com/rest/projects/projects#update-a-project UpdateProjectCard updates a card of a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/cards#update-an-existing-project-card UpdateProjectColumn updates a column of a GitHub Project. GitHub API docs: https://docs.github.com/rest/projects/columns#update-an-existing-project-column
ProjectsV2 represents a projects v2 project. ClosedAt *Timestamp CreatedAt *Timestamp Creator *User DeletedAt *Timestamp DeletedBy *User Description *string ID *int64 NodeID *string Number *int Owner *User Public *bool ShortDescription *string Title *string UpdatedAt *Timestamp GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetDeletedAt returns the DeletedAt field if it's non-nil, zero value otherwise. GetDeletedBy returns the DeletedBy field. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPublic returns the Public field if it's non-nil, zero value otherwise. GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ProjectV2Event).GetProjectsV2() *ProjectsV2
ProjectV2Event is triggered when there is activity relating to an organization-level project. The Webhook event name is "projects_v2". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2 Action *string The following fields are only populated by Webhook events. Org *Organization ProjectsV2 *ProjectsV2 Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetProjectsV2 returns the ProjectsV2 field. GetSender returns the Sender field.
ProjectV2Item represents an item belonging to a project. ArchivedAt *Timestamp ContentNodeID *string ContentType *string CreatedAt *Timestamp Creator *User ID *int64 NodeID *string ProjectNodeID *string UpdatedAt *Timestamp GetArchivedAt returns the ArchivedAt field if it's non-nil, zero value otherwise. GetContentNodeID returns the ContentNodeID field if it's non-nil, zero value otherwise. GetContentType returns the ContentType field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetProjectNodeID returns the ProjectNodeID field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ProjectV2ItemEvent).GetProjectV2Item() *ProjectV2Item
ProjectV2ItemChange represents a project v2 item change. ArchivedAt *ArchivedAt GetArchivedAt returns the ArchivedAt field. func (*ProjectV2ItemEvent).GetChanges() *ProjectV2ItemChange
ProjectV2ItemEvent is triggered when there is activity relating to an item on an organization-level project. The Webhook event name is "projects_v2_item". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#projects_v2_item Action *string Changes *ProjectV2ItemChange The following fields are only populated by Webhook events. Org *Organization ProjectV2Item *ProjectV2Item Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetProjectV2Item returns the ProjectV2Item field. GetSender returns the Sender field.
Protection represents a repository branch's protection. AllowDeletions *AllowDeletions AllowForcePushes *AllowForcePushes AllowForkSyncing *AllowForkSyncing BlockCreations *BlockCreations EnforceAdmins *AdminEnforcement LockBranch *LockBranch RequireLinearHistory *RequireLinearHistory RequiredConversationResolution *RequiredConversationResolution RequiredPullRequestReviews *PullRequestReviewsEnforcement RequiredSignatures *SignaturesProtectedBranch RequiredStatusChecks *RequiredStatusChecks Restrictions *BranchRestrictions URL *string GetAllowDeletions returns the AllowDeletions field. GetAllowForcePushes returns the AllowForcePushes field. GetAllowForkSyncing returns the AllowForkSyncing field. GetBlockCreations returns the BlockCreations field. GetEnforceAdmins returns the EnforceAdmins field. GetLockBranch returns the LockBranch field. GetRequireLinearHistory returns the RequireLinearHistory field. GetRequiredConversationResolution returns the RequiredConversationResolution field. GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. GetRequiredSignatures returns the RequiredSignatures field. GetRequiredStatusChecks returns the RequiredStatusChecks field. GetRestrictions returns the Restrictions field. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*Branch).GetProtection() *Protection func (*RepositoriesService).GetBranchProtection(ctx context.Context, owner, repo, branch string) (*Protection, *Response, error) func (*RepositoriesService).UpdateBranchProtection(ctx context.Context, owner, repo, branch string, preq *ProtectionRequest) (*Protection, *Response, error)
ProtectionChanges represents the changes to the rule if the BranchProtection was edited. AdminEnforced *AdminEnforcedChanges AllowDeletionsEnforcementLevel *AllowDeletionsEnforcementLevelChanges AuthorizedActorNames *AuthorizedActorNames AuthorizedActorsOnly *AuthorizedActorsOnly AuthorizedDismissalActorsOnly *AuthorizedDismissalActorsOnlyChanges CreateProtected *CreateProtectedChanges DismissStaleReviewsOnPush *DismissStaleReviewsOnPushChanges LinearHistoryRequirementEnforcementLevel *LinearHistoryRequirementEnforcementLevelChanges PullRequestReviewsEnforcementLevel *PullRequestReviewsEnforcementLevelChanges RequireCodeOwnerReview *RequireCodeOwnerReviewChanges RequiredConversationResolutionLevel *RequiredConversationResolutionLevelChanges RequiredDeploymentsEnforcementLevel *RequiredDeploymentsEnforcementLevelChanges RequiredStatusChecks *RequiredStatusChecksChanges RequiredStatusChecksEnforcementLevel *RequiredStatusChecksEnforcementLevelChanges SignatureRequirementEnforcementLevel *SignatureRequirementEnforcementLevelChanges GetAdminEnforced returns the AdminEnforced field. GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field. GetAuthorizedActorNames returns the AuthorizedActorNames field. GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field. GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field. GetCreateProtected returns the CreateProtected field. GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field. GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field. GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field. GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field. GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field. GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field. GetRequiredStatusChecks returns the RequiredStatusChecks field. GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field. GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field. func (*BranchProtectionRuleEvent).GetChanges() *ProtectionChanges
ProtectionRequest represents a request to create/edit a branch's protection. Allows deletion of the protected branch by anyone with write access to the repository. Permits force pushes to the protected branch by anyone with write access to the repository. AllowForkSyncing, if set to true, will allow users to pull changes from upstream when the branch is locked. BlockCreations, if set to true, will cause the restrictions setting to also block pushes which create new branches, unless initiated by a user, team, app with the ability to push. EnforceAdmins bool LockBranch, if set to true, will prevent users from pushing to the branch. Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. RequiredConversationResolution, if set to true, requires all comments on the pull request to be resolved before it can be merged to a protected branch. RequiredPullRequestReviews *PullRequestReviewsEnforcementRequest RequiredStatusChecks *RequiredStatusChecks Restrictions *BranchRestrictionsRequest GetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise. GetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise. GetAllowForkSyncing returns the AllowForkSyncing field if it's non-nil, zero value otherwise. GetBlockCreations returns the BlockCreations field if it's non-nil, zero value otherwise. GetLockBranch returns the LockBranch field if it's non-nil, zero value otherwise. GetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise. GetRequiredConversationResolution returns the RequiredConversationResolution field if it's non-nil, zero value otherwise. GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. GetRequiredStatusChecks returns the RequiredStatusChecks field. GetRestrictions returns the Restrictions field. func (*RepositoriesService).UpdateBranchProtection(ctx context.Context, owner, repo, branch string, preq *ProtectionRequest) (*Protection, *Response, error)
ProtectionRule represents a single protection rule applied to the environment. ID *int64 NodeID *string PreventSelfReview *bool Reviewers []*RequiredReviewer Type *string WaitTimer *int GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPreventSelfReview returns the PreventSelfReview field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise.
PublicEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#public Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. The following fields are only populated by Webhook events. Sender *User GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
PublicKey represents the public key that should be used to encrypt secrets. Key *string KeyID *string GetKey returns the Key field if it's non-nil, zero value otherwise. GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. UnmarshalJSON implements the json.Unmarshaler interface. This ensures GitHub Enterprise versions which return a numeric key id do not error out when unmarshaling. *PublicKey : github.com/goccy/go-json.Unmarshaler *PublicKey : encoding/json.Unmarshaler func (*ActionsService).GetEnvPublicKey(ctx context.Context, repoID int, env string) (*PublicKey, *Response, error) func (*ActionsService).GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) func (*ActionsService).GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) func (*CodespacesService).GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) func (*CodespacesService).GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) func (*CodespacesService).GetUserPublicKey(ctx context.Context) (*PublicKey, *Response, error) func (*DependabotService).GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) func (*DependabotService).GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error)
PullRequest represents a GitHub pull request on a repository. ActiveLockReason is populated only when LockReason is provided while locking the pull request. Possible values are: "off-topic", "too heated", "resolved", and "spam". Additions *int Assignee *User Assignees []*User AuthorAssociation *string AutoMerge *PullRequestAutoMerge Base *PullRequestBranch Body *string ChangedFiles *int ClosedAt *Timestamp Comments *int CommentsURL *string Commits *int CommitsURL *string CreatedAt *Timestamp Deletions *int DiffURL *string Draft *bool HTMLURL *string Head *PullRequestBranch ID *int64 IssueURL *string Labels []*Label Links *PRLinks Locked *bool MaintainerCanModify *bool MergeCommitSHA *string Mergeable *bool MergeableState *string Merged *bool MergedAt *Timestamp MergedBy *User Milestone *Milestone NodeID *string Number *int PatchURL *string Rebaseable *bool RequestedReviewers []*User RequestedTeams is populated as part of the PullRequestEvent. See, https://docs.github.com/developers/webhooks-and-events/github-event-types#pullrequestevent for an example. ReviewCommentURL *string ReviewComments *int ReviewCommentsURL *string State *string StatusesURL *string Title *string URL *string UpdatedAt *Timestamp User *User GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. GetAdditions returns the Additions field if it's non-nil, zero value otherwise. GetAssignee returns the Assignee field. GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetAutoMerge returns the AutoMerge field. GetBase returns the Base field. GetBody returns the Body field if it's non-nil, zero value otherwise. GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetComments returns the Comments field if it's non-nil, zero value otherwise. GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. GetCommits returns the Commits field if it's non-nil, zero value otherwise. GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. GetDraft returns the Draft field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHead returns the Head field. GetID returns the ID field if it's non-nil, zero value otherwise. GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. GetLinks returns the Links field. GetLocked returns the Locked field if it's non-nil, zero value otherwise. GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. GetMerged returns the Merged field if it's non-nil, zero value otherwise. GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. GetMergedBy returns the MergedBy field. GetMilestone returns the Milestone field. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise. GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( PullRequest) String() string PullRequest : expvar.Var PullRequest : fmt.Stringer func (*PullRequestEvent).GetPullRequest() *PullRequest func (*PullRequestReviewCommentEvent).GetPullRequest() *PullRequest func (*PullRequestReviewEvent).GetPullRequest() *PullRequest func (*PullRequestReviewThreadEvent).GetPullRequest() *PullRequest func (*PullRequestsService).Create(ctx context.Context, owner string, repo string, pull *NewPullRequest) (*PullRequest, *Response, error) func (*PullRequestsService).Edit(ctx context.Context, owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error) func (*PullRequestsService).Get(ctx context.Context, owner string, repo string, number int) (*PullRequest, *Response, error) func (*PullRequestsService).List(ctx context.Context, owner string, repo string, opts *PullRequestListOptions) ([]*PullRequest, *Response, error) func (*PullRequestsService).ListPullRequestsWithCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*PullRequest, *Response, error) func (*PullRequestsService).RequestReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*PullRequest, *Response, error) func (*PullRequestTargetEvent).GetPullRequest() *PullRequest func (*PullRequestsService).Edit(ctx context.Context, owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error)
PullRequestAutoMerge represents the "auto_merge" response for a PullRequest. CommitMessage *string CommitTitle *string EnabledBy *User MergeMethod *string GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. GetCommitTitle returns the CommitTitle field if it's non-nil, zero value otherwise. GetEnabledBy returns the EnabledBy field. GetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise. func (*PullRequest).GetAutoMerge() *PullRequestAutoMerge
PullRequestBranch represents a base or head branch in a GitHub pull request. Label *string Ref *string Repo *Repository SHA *string User *User GetLabel returns the Label field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*PullRequest).GetBase() *PullRequestBranch func (*PullRequest).GetHead() *PullRequestBranch
PullRequestBranchUpdateOptions specifies the optional parameters to the PullRequestsService.UpdateBranch method. ExpectedHeadSHA specifies the most recent commit on the pull request's branch. Default value is the SHA of the pull request's current HEAD ref. GetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise. func (*PullRequestsService).UpdateBranch(ctx context.Context, owner, repo string, number int, opts *PullRequestBranchUpdateOptions) (*PullRequestBranchUpdateResponse, *Response, error)
PullRequestBranchUpdateResponse specifies the response of pull request branch update. Message *string URL *string GetMessage returns the Message field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*PullRequestsService).UpdateBranch(ctx context.Context, owner, repo string, number int, opts *PullRequestBranchUpdateOptions) (*PullRequestBranchUpdateResponse, *Response, error)
PullRequestComment represents a comment left on a pull request. AuthorAssociation is the comment author's relationship to the pull request's repository. Possible values are "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIMER", "FIRST_TIME_CONTRIBUTOR", "MEMBER", "OWNER", or "NONE". Body *string CommitID *string CreatedAt *Timestamp DiffHunk *string HTMLURL *string ID *int64 InReplyTo *int64 Line *int NodeID *string OriginalCommitID *string OriginalLine *int OriginalPosition *int OriginalStartLine *int Path *string Position *int PullRequestReviewID *int64 PullRequestURL *string Reactions *Reactions Side *string StartLine *int StartSide *string Can be one of: LINE, FILE from https://docs.github.com/rest/pulls/comments#create-a-review-comment-for-a-pull-request URL *string UpdatedAt *Timestamp User *User GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. GetLine returns the Line field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. GetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise. GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. GetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetPosition returns the Position field if it's non-nil, zero value otherwise. GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. GetReactions returns the Reactions field. GetSide returns the Side field if it's non-nil, zero value otherwise. GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. GetSubjectType returns the SubjectType field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( PullRequestComment) String() string PullRequestComment : expvar.Var PullRequestComment : fmt.Stringer func (*PullRequestReviewCommentEvent).GetComment() *PullRequestComment func (*PullRequestsService).CreateComment(ctx context.Context, owner, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error) func (*PullRequestsService).CreateCommentInReplyTo(ctx context.Context, owner, repo string, number int, body string, commentID int64) (*PullRequestComment, *Response, error) func (*PullRequestsService).EditComment(ctx context.Context, owner, repo string, commentID int64, comment *PullRequestComment) (*PullRequestComment, *Response, error) func (*PullRequestsService).GetComment(ctx context.Context, owner, repo string, commentID int64) (*PullRequestComment, *Response, error) func (*PullRequestsService).ListComments(ctx context.Context, owner, repo string, number int, opts *PullRequestListCommentsOptions) ([]*PullRequestComment, *Response, error) func (*PullRequestsService).ListReviewComments(ctx context.Context, owner, repo string, number int, reviewID int64, opts *ListOptions) ([]*PullRequestComment, *Response, error) func (*PullRequestsService).CreateComment(ctx context.Context, owner, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error) func (*PullRequestsService).EditComment(ctx context.Context, owner, repo string, commentID int64, comment *PullRequestComment) (*PullRequestComment, *Response, error)
PullRequestEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/github-event-types#pullrequestevent Action is the action that was performed. Possible values are: "assigned", "unassigned", "review_requested", "review_request_removed", "labeled", "unlabeled", "opened", "edited", "closed", "ready_for_review", "locked", "unlocked", or "reopened". If the action is "closed" and the "merged" key is "false", the pull request was closed with unmerged commits. If the action is "closed" and the "merged" key is "true", the pull request was merged. While webhooks are also triggered when a pull request is synchronized, Events API timelines don't include pull request events with the "synchronize" action. After *string Assignee *User The following fields are only populated when the Action is "synchronize". The following fields are only populated by Webhook events. Installation *Installation // Populated in "labeled" event deliveries. Number *int The following field is only present when the webhook is triggered on a repository belonging to an organization. The following will be populated if the event was performed by an App PullRequest *PullRequest Repo *Repository RequestedReviewer is populated in "review_requested", "review_request_removed" event deliveries. A request affecting multiple reviewers at once is split into multiple such event deliveries, each with a single, different RequestedReviewer. In the event that a team is requested instead of a user, "requested_team" gets sent in place of "requested_user" with the same delivery behavior. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAfter returns the After field if it's non-nil, zero value otherwise. GetAssignee returns the Assignee field. GetBefore returns the Before field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetLabel returns the Label field. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetOrganization returns the Organization field. GetPerformedViaGithubApp returns the PerformedViaGithubApp field. GetPullRequest returns the PullRequest field. GetRepo returns the Repo field. GetRequestedReviewer returns the RequestedReviewer field. GetRequestedTeam returns the RequestedTeam field. GetSender returns the Sender field.
PullRequestListCommentsOptions specifies the optional parameters to the PullRequestsService.ListComments method. Direction in which to sort comments. Possible values are: asc, desc. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Since filters comments by time. Sort specifies how to sort comments. Possible values are: created, updated. func (*PullRequestsService).ListComments(ctx context.Context, owner, repo string, number int, opts *PullRequestListCommentsOptions) ([]*PullRequestComment, *Response, error)
PullRequestListOptions specifies the optional parameters to the PullRequestsService.List method. Base filters pull requests by base branch name. Direction in which to sort pull requests. Possible values are: asc, desc. If Sort is "created" or not specified, Default is "desc", otherwise Default is "asc" Head filters pull requests by head user and branch name in the format of: "user:ref-name". ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Sort specifies how to sort pull requests. Possible values are: created, updated, popularity, long-running. Default is "created". State filters pull requests based on their state. Possible values are: open, closed, all. Default is "open". func (*PullRequestsService).List(ctx context.Context, owner string, repo string, opts *PullRequestListOptions) ([]*PullRequest, *Response, error)
PullRequestMergeResult represents the result of merging a pull request. Merged *bool Message *string SHA *string GetMerged returns the Merged field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. func (*PullRequestsService).Merge(ctx context.Context, owner string, repo string, number int, commitMessage string, options *PullRequestOptions) (*PullRequestMergeResult, *Response, error)
PullRequestOptions lets you define how a pull request will be merged. // Title for the automatic commit message. (Optional.) If false, an empty string commit message will use the default commit message. If true, an empty string commit message will be used. The merge method to use. Possible values include: "merge", "squash", and "rebase" with the default being merge. (Optional.) // SHA that pull request head must match to allow merge. (Optional.) func (*PullRequestsService).Merge(ctx context.Context, owner string, repo string, number int, commitMessage string, options *PullRequestOptions) (*PullRequestMergeResult, *Response, error)
PullRequestReview represents a review of a pull request. AuthorAssociation is the comment author's relationship to the issue's repository. Possible values are "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIMER", "FIRST_TIME_CONTRIBUTOR", "MEMBER", "OWNER", or "NONE". Body *string CommitID *string HTMLURL *string ID *int64 NodeID *string PullRequestURL *string State *string SubmittedAt *Timestamp User *User GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. GetBody returns the Body field if it's non-nil, zero value otherwise. GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( PullRequestReview) String() string PullRequestReview : expvar.Var PullRequestReview : fmt.Stringer func (*PullRequestReviewEvent).GetReview() *PullRequestReview func (*PullRequestsService).CreateReview(ctx context.Context, owner, repo string, number int, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).DeletePendingReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error) func (*PullRequestsService).DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewDismissalRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).GetReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error) func (*PullRequestsService).ListReviews(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*PullRequestReview, *Response, error) func (*PullRequestsService).SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).UpdateReview(ctx context.Context, owner, repo string, number int, reviewID int64, body string) (*PullRequestReview, *Response, error)
PullRequestReviewCommentEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_comment Action is the action that was performed on the comment. Possible values are: "created", "edited", "deleted". The following fields are only populated by Webhook events. Comment *PullRequestComment Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. PullRequest *PullRequest Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetComment returns the Comment field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetPullRequest returns the PullRequest field. GetRepo returns the Repo field. GetSender returns the Sender field.
PullRequestReviewDismissalRequest represents a request to dismiss a review. Message *string GetMessage returns the Message field if it's non-nil, zero value otherwise. ( PullRequestReviewDismissalRequest) String() string PullRequestReviewDismissalRequest : expvar.Var PullRequestReviewDismissalRequest : fmt.Stringer func (*PullRequestsService).DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewDismissalRequest) (*PullRequestReview, *Response, error)
PullRequestReviewEvent is triggered when a review is submitted on a pull request. The Webhook event name is "pull_request_review". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review Action is always "submitted". Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. PullRequest *PullRequest The following fields are only populated by Webhook events. Review *PullRequestReview Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetPullRequest returns the PullRequest field. GetRepo returns the Repo field. GetReview returns the Review field. GetSender returns the Sender field.
PullRequestReviewRequest represents a request to create a review. Body *string Comments []*DraftReviewComment CommitID *string Event *string NodeID *string GetBody returns the Body field if it's non-nil, zero value otherwise. GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. GetEvent returns the Event field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. ( PullRequestReviewRequest) String() string PullRequestReviewRequest : expvar.Var PullRequestReviewRequest : fmt.Stringer func (*PullRequestsService).CreateReview(ctx context.Context, owner, repo string, number int, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error)
PullRequestReviewsEnforcement represents the pull request reviews enforcement of a protected branch. Allow specific users, teams, or apps to bypass pull request requirements. Specifies if approved reviews are dismissed automatically, when a new commit is pushed. Specifies which users, teams and apps can dismiss pull request reviews. RequireCodeOwnerReviews specifies if an approved review is required in pull requests including files with a designated code owner. RequireLastPushApproval specifies whether the last pusher to a pull request branch can approve it. RequiredApprovingReviewCount specifies the number of approvals required before the pull request can be merged. Valid values are 1-6. GetBypassPullRequestAllowances returns the BypassPullRequestAllowances field. GetDismissalRestrictions returns the DismissalRestrictions field. func (*Protection).GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement func (*RepositoriesService).DisableDismissalRestrictions(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error) func (*RepositoriesService).GetPullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error) func (*RepositoriesService).UpdatePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string, patch *PullRequestReviewsEnforcementUpdate) (*PullRequestReviewsEnforcement, *Response, error)
PullRequestReviewsEnforcementLevelChanges represents the changes made to the PullRequestReviewsEnforcementLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetPullRequestReviewsEnforcementLevel() *PullRequestReviewsEnforcementLevelChanges
PullRequestReviewsEnforcementRequest 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. Allow specific users, teams, or apps to bypass pull request requirements. Specifies if approved reviews can be dismissed automatically, when a new commit is pushed. (Required) Specifies which users, teams and apps should be allowed to dismiss pull request reviews. User, team and app dismissal restrictions are only available for organization-owned repositories. Must be nil for personal repositories. RequireCodeOwnerReviews specifies if an approved review is required in pull requests including files with a designated code owner. RequireLastPushApproval specifies whether the last pusher to a pull request branch can approve it. RequiredApprovingReviewCount specifies the number of approvals required before the pull request can be merged. Valid values are 1-6. GetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field. GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. GetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise. func (*ProtectionRequest).GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest
PullRequestReviewsEnforcementUpdate 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. Allow specific users, teams, or apps to bypass pull request requirements. Specifies if approved reviews can be dismissed automatically, when a new commit is pushed. Can be omitted. Specifies which users, teams and apps can dismiss pull request reviews. Can be omitted. RequireCodeOwnerReviews specifies if merging pull requests is blocked until code owners have reviewed. RequireLastPushApproval specifies whether the last pusher to a pull request branch can approve it. RequiredApprovingReviewCount specifies the number of approvals required before the pull request can be merged. Valid values are 1 - 6 or 0 to not require reviewers. GetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field. GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. GetRequireCodeOwnerReviews returns the RequireCodeOwnerReviews field if it's non-nil, zero value otherwise. GetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise. func (*RepositoriesService).UpdatePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string, patch *PullRequestReviewsEnforcementUpdate) (*PullRequestReviewsEnforcement, *Response, error)
PullRequestReviewThreadEvent 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". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_thread Action is the action that was performed on the comment. Possible values are: "resolved", "unresolved". Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. PullRequest *PullRequest The following fields are only populated by Webhook events. Sender *User Thread *PullRequestThread GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetPullRequest returns the PullRequest field. GetRepo returns the Repo field. GetSender returns the Sender field. GetThread returns the Thread field.
PullRequestRuleParameters represents the pull_request rule parameters. DismissStaleReviewsOnPush bool RequireCodeOwnerReview bool RequireLastPushApproval bool RequiredApprovingReviewCount int RequiredReviewThreadResolution bool func NewPullRequestRule(params *PullRequestRuleParameters) (rule *RepositoryRule)
PullRequestsService handles communication with the pull request related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/pulls/ Create a new pull request on the specified repository. GitHub API docs: https://docs.github.com/rest/pulls/pulls#create-a-pull-request CreateComment creates a new comment on the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/comments#create-a-review-comment-for-a-pull-request CreateCommentInReplyTo creates a new comment as a reply to an existing pull request comment. GitHub API docs: https://docs.github.com/rest/pulls/comments#create-a-review-comment-for-a-pull-request CreateReview creates a new review on the specified pull request. In 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: [Start]Side, and [Start]Line. These new fields must be used for ALL comments (including single-line), with the following restrictions (empirically observed, so subject to change). For single-line "comfort fade" comments, you must use: Path: &path, // as before Body: &body, // as before Side: &"RIGHT" (or "LEFT") Line: &123, // NOT THE SAME AS POSITION, this is an actual line number. If StartSide or StartLine is used with single-line comments, a 422 is returned. For multi-line "comfort fade" comments, you must use: Path: &path, // as before Body: &body, // as before StartSide: &"RIGHT" (or "LEFT") Side: &"RIGHT" (or "LEFT") StartLine: &120, Line: &125, Suggested 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): ```suggestion Use this instead. It is waaaaaay better. ``` GitHub API docs: https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request DeleteComment deletes a pull request comment. GitHub API docs: https://docs.github.com/rest/pulls/comments#delete-a-review-comment-for-a-pull-request DeletePendingReview deletes the specified pull request pending review. GitHub API docs: https://docs.github.com/rest/pulls/reviews#delete-a-pending-review-for-a-pull-request DismissReview dismisses a specified review on the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/reviews#dismiss-a-review-for-a-pull-request Edit a pull request. pull must not be nil. The following fields are editable: Title, Body, State, Base.Ref and MaintainerCanModify. Base.Ref updates the base branch of the pull request. GitHub API docs: https://docs.github.com/rest/pulls/pulls#update-a-pull-request EditComment updates a pull request comment. A non-nil comment.Body must be provided. Other comment fields should be left nil. GitHub API docs: https://docs.github.com/rest/pulls/comments#update-a-review-comment-for-a-pull-request Get a single pull request. GitHub API docs: https://docs.github.com/rest/pulls/pulls#get-a-pull-request GetComment fetches the specified pull request comment. GitHub API docs: https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request GetRaw gets a single pull request in raw (diff or patch) format. GitHub API docs: https://docs.github.com/rest/pulls/pulls#get-a-pull-request GetReview fetches the specified pull request review. GitHub API docs: https://docs.github.com/rest/pulls/reviews#get-a-review-for-a-pull-request IsMerged checks if a pull request has been merged. GitHub API docs: https://docs.github.com/rest/pulls/pulls#check-if-a-pull-request-has-been-merged List the pull requests for the specified repository. GitHub API docs: https://docs.github.com/rest/pulls/pulls#list-pull-requests ListComments 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. GitHub API docs: https://docs.github.com/rest/pulls/comments#list-review-comments-in-a-repository GitHub API docs: https://docs.github.com/rest/pulls/comments#list-review-comments-on-a-pull-request ListCommits lists the commits in a pull request. GitHub API docs: https://docs.github.com/rest/pulls/pulls#list-commits-on-a-pull-request ListFiles lists the files in a pull request. GitHub API docs: https://docs.github.com/rest/pulls/pulls#list-pull-requests-files ListPullRequestsWithCommit returns pull requests associated with a commit SHA. The results may include open and closed pull requests. By default, the PullRequestListOptions State filters for "open". GitHub API docs: https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit ListReviewComments lists all the comments for the specified review. GitHub API docs: https://docs.github.com/rest/pulls/reviews#list-comments-for-a-pull-request-review ListReviewers lists reviewers whose reviews have been requested on the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/review-requests#get-all-requested-reviewers-for-a-pull-request ListReviews lists all reviews on the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request Merge a pull request. commitMessage is an extra detail to append to automatic commit message. GitHub API docs: https://docs.github.com/rest/pulls/pulls#merge-a-pull-request RemoveReviewers removes the review request for the provided reviewers for the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request RequestReviewers creates a review request for the provided reviewers for the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request SubmitReview submits a specified review on the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request UpdateBranch updates the pull request branch with latest upstream changes. This 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. GitHub API docs: https://docs.github.com/rest/pulls/pulls#update-a-pull-request-branch UpdateReview updates the review summary on the specified pull request. GitHub API docs: https://docs.github.com/rest/pulls/reviews#update-a-review-for-a-pull-request
PullRequestTargetEvent 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". GitHub API docs: https://docs.github.com/actions/events-that-trigger-workflows#pull_request_target Action is the action that was performed. Possible values are: "assigned", "unassigned", "review_requested", "review_request_removed", "labeled", "unlabeled", "opened", "edited", "closed", "ready_for_review", "locked", "unlocked", or "reopened". If the action is "closed" and the "merged" key is "false", the pull request was closed with unmerged commits. If the action is "closed" and the "merged" key is "true", the pull request was merged. While webhooks are also triggered when a pull request is synchronized, Events API timelines don't include pull request events with the "synchronize" action. After *string Assignee *User The following fields are only populated when the Action is "synchronize". The following fields are only populated by Webhook events. Installation *Installation // Populated in "labeled" event deliveries. Number *int The following field is only present when the webhook is triggered on a repository belonging to an organization. The following will be populated if the event was performed by an App PullRequest *PullRequest Repo *Repository RequestedReviewer is populated in "review_requested", "review_request_removed" event deliveries. A request affecting multiple reviewers at once is split into multiple such event deliveries, each with a single, different RequestedReviewer. In the event that a team is requested instead of a user, "requested_team" gets sent in place of "requested_user" with the same delivery behavior. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetAfter returns the After field if it's non-nil, zero value otherwise. GetAssignee returns the Assignee field. GetBefore returns the Before field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetLabel returns the Label field. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetOrganization returns the Organization field. GetPerformedViaGithubApp returns the PerformedViaGithubApp field. GetPullRequest returns the PullRequest field. GetRepo returns the Repo field. GetRequestedReviewer returns the RequestedReviewer field. GetRequestedTeam returns the RequestedTeam field. GetSender returns the Sender field.
PullRequestThread represents a thread of comments on a pull request. Comments []*PullRequestComment ID *int64 NodeID *string GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. ( PullRequestThread) String() string PullRequestThread : expvar.Var PullRequestThread : fmt.Stringer func (*PullRequestReviewThreadEvent).GetThread() *PullRequestThread
PullStats represents the number of total, merged, mergable and unmergeable pull-requests. MergablePulls *int MergedPulls *int TotalPulls *int UnmergablePulls *int GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. ( PullStats) String() string PullStats : expvar.Var PullStats : fmt.Stringer func (*AdminStats).GetPulls() *PullStats
PunchCard represents the number of commits made during a given hour of a day of the week. // Number of commits. // Day of the week (0-6: =Sunday - Saturday). // Hour of day (0-23). GetCommits returns the Commits field if it's non-nil, zero value otherwise. GetDay returns the Day field if it's non-nil, zero value otherwise. GetHour returns the Hour field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListPunchCard(ctx context.Context, owner, repo string) ([]*PunchCard, *Response, error)
PushEvent represents a git push to a GitHub repository. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#push The following fields are only populated by Webhook events. After *string BaseRef *string Before *string Commits []*HeadCommit Compare *string Created *bool Deleted *bool DistinctSize *int Forced *bool Head *string HeadCommit *HeadCommit Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. PushID *int64 Pusher *CommitAuthor Ref *string Repo *PushEventRepository Sender *User Size *int GetAction returns the Action field if it's non-nil, zero value otherwise. GetAfter returns the After field if it's non-nil, zero value otherwise. GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. GetBefore returns the Before field if it's non-nil, zero value otherwise. GetCommits returns the Commits slice if it's non-nil, nil otherwise. GetCompare returns the Compare field if it's non-nil, zero value otherwise. GetCreated returns the Created field if it's non-nil, zero value otherwise. GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. GetForced returns the Forced field if it's non-nil, zero value otherwise. GetHead returns the Head field if it's non-nil, zero value otherwise. GetHeadCommit returns the HeadCommit field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetPushID returns the PushID field if it's non-nil, zero value otherwise. GetPusher returns the Pusher field. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetSender returns the Sender field. GetSize returns the Size field if it's non-nil, zero value otherwise. ( PushEvent) String() string PushEvent : expvar.Var PushEvent : fmt.Stringer
PushEventRepoOwner is a basic representation of user/org in a PushEvent payload. Email *string Name *string GetEmail returns the Email field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise.
PushEventRepository represents the repo object in a PushEvent payload. ArchiveURL *string Archived *bool CloneURL *string CreatedAt *Timestamp CustomProperties map[string]interface{} DefaultBranch *string Description *string Disabled *bool Fork *bool ForksCount *int FullName *string GitURL *string HTMLURL *string HasDownloads *bool HasIssues *bool HasPages *bool HasWiki *bool Homepage *string ID *int64 Language *string MasterBranch *string Name *string NodeID *string OpenIssuesCount *int Organization *string Owner *User Private *bool PullsURL *string PushedAt *Timestamp SSHURL *string SVNURL *string Size *int StargazersCount *int StatusesURL *string Topics []string URL *string UpdatedAt *Timestamp WatchersCount *int GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. GetArchived returns the Archived field if it's non-nil, zero value otherwise. GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. GetFork returns the Fork field if it's non-nil, zero value otherwise. GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. GetFullName returns the FullName field if it's non-nil, zero value otherwise. GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLanguage returns the Language field if it's non-nil, zero value otherwise. GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. GetOrganization returns the Organization field if it's non-nil, zero value otherwise. GetOwner returns the Owner field. GetPrivate returns the Private field if it's non-nil, zero value otherwise. GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. func (*PushEvent).GetRepo() *PushEventRepository
Rate represents the rate limit for the current client. The number of requests per hour the client is currently limited to. The number of remaining requests the client can make this hour. The time at which the current rate limit will reset. ( Rate) String() string Rate : expvar.Var Rate : fmt.Stringer func (*RateLimits).GetActionsRunnerRegistration() *Rate func (*RateLimits).GetAuditLog() *Rate func (*RateLimits).GetCodeScanningUpload() *Rate func (*RateLimits).GetCodeSearch() *Rate func (*RateLimits).GetCore() *Rate func (*RateLimits).GetDependencySnapshots() *Rate func (*RateLimits).GetGraphQL() *Rate func (*RateLimits).GetIntegrationManifest() *Rate func (*RateLimits).GetSCIM() *Rate func (*RateLimits).GetSearch() *Rate func (*RateLimits).GetSourceImport() *Rate
func GetRateLimitCategory(method, path string) RateLimitCategory const ActionsRunnerRegistrationCategory const AuditLogCategory const Categories const CodeScanningUploadCategory const CodeSearchCategory const CoreCategory const DependencySnapshotsCategory const GraphqlCategory const IntegrationManifestCategory const ScimCategory const SearchCategory const SourceImportCategory
RateLimitError occurs when GitHub returns 403 Forbidden response with a rate limit remaining value of 0. // error message // Rate specifies last known rate limit for the client // HTTP response that caused this error (*RateLimitError) Error() string Is returns whether the provided error equals this error. *RateLimitError : error
RateLimits represents the rate limits for the current client. ActionsRunnerRegistration *Rate AuditLog *Rate CodeScanningUpload *Rate CodeSearch *Rate The rate limit for non-search API requests. Unauthenticated requests are limited to 60 per hour. Authenticated requests are limited to 5,000 per hour. GitHub API docs: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting DependencySnapshots *Rate GitHub API docs: https://docs.github.com/en/graphql/overview/resource-limitations#rate-limit GitHub API dos: https://docs.github.com/en/rest/rate-limit SCIM *Rate The rate limit for search API requests. Unauthenticated requests are limited to 10 requests per minutes. Authenticated requests are limited to 30 per minute. GitHub API docs: https://docs.github.com/en/rest/search#rate-limit SourceImport *Rate GetActionsRunnerRegistration returns the ActionsRunnerRegistration field. GetAuditLog returns the AuditLog field. GetCodeScanningUpload returns the CodeScanningUpload field. GetCodeSearch returns the CodeSearch field. GetCore returns the Core field. GetDependencySnapshots returns the DependencySnapshots field. GetGraphQL returns the GraphQL field. GetIntegrationManifest returns the IntegrationManifest field. GetSCIM returns the SCIM field. GetSearch returns the Search field. GetSourceImport returns the SourceImport field. ( RateLimits) String() string RateLimits : expvar.Var RateLimits : fmt.Stringer func (*Client).RateLimits(ctx context.Context) (*RateLimits, *Response, error) func (*RateLimitService).Get(ctx context.Context) (*RateLimits, *Response, error)
RateLimitService provides access to rate limit functions in the GitHub API. Get returns the rate limits for the current client. GitHub API docs: https://docs.github.com/rest/rate-limit/rate-limit#get-rate-limit-status-for-the-authenticated-user
RawOptions specifies parameters when user wants to get raw format of a response instead of JSON. Type RawType func (*PullRequestsService).GetRaw(ctx context.Context, owner string, repo string, number int, opts RawOptions) (string, *Response, error) func (*RepositoriesService).CompareCommitsRaw(ctx context.Context, owner, repo, base, head string, opts RawOptions) (string, *Response, error) func (*RepositoriesService).GetCommitRaw(ctx context.Context, owner string, repo string, sha string, opts RawOptions) (string, *Response, error)
RawType represents type of raw format of a request instead of JSON. const Diff const Patch
Reaction represents a GitHub reaction. Content is the type of reaction. Possible values are: "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", or "eyes". ID is the Reaction ID. NodeID *string User *User GetContent returns the Content field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetUser returns the User field. ( Reaction) String() string Reaction : expvar.Var Reaction : fmt.Stringer func (*ReactionsService).CreateCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateIssueCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateIssueReaction(ctx context.Context, owner, repo string, number int, content string) (*Reaction, *Response, error) func (*ReactionsService).CreatePullRequestCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateReleaseReaction(ctx context.Context, owner, repo string, releaseID int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateTeamDiscussionCommentReaction(ctx context.Context, teamID int64, discussionNumber, commentNumber int, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateTeamDiscussionReaction(ctx context.Context, teamID int64, discussionNumber int, content string) (*Reaction, *Response, error) func (*ReactionsService).ListCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListCommentReactionOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListIssueReactions(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListPullRequestCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListTeamDiscussionCommentReactions(ctx context.Context, teamID int64, discussionNumber, commentNumber int, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListTeamDiscussionReactions(ctx context.Context, teamID int64, discussionNumber int, opts *ListOptions) ([]*Reaction, *Response, error)
Reactions represents a summary of GitHub reactions. Confused *int Eyes *int Heart *int Hooray *int Laugh *int MinusOne *int PlusOne *int Rocket *int TotalCount *int URL *string GetConfused returns the Confused field if it's non-nil, zero value otherwise. GetEyes returns the Eyes field if it's non-nil, zero value otherwise. GetHeart returns the Heart field if it's non-nil, zero value otherwise. GetHooray returns the Hooray field if it's non-nil, zero value otherwise. GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. GetRocket returns the Rocket field if it's non-nil, zero value otherwise. GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*CommentDiscussion).GetReactions() *Reactions func (*DiscussionComment).GetReactions() *Reactions func (*Issue).GetReactions() *Reactions func (*IssueComment).GetReactions() *Reactions func (*PullRequestComment).GetReactions() *Reactions func (*RepositoryComment).GetReactions() *Reactions func (*TeamDiscussion).GetReactions() *Reactions
ReactionsService provides access to the reactions-related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/reactions CreateCommentReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-commit-comment CreateIssueCommentReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-an-issue-comment CreateIssueReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-an-issue CreatePullRequestCommentReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment CreateReleaseReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-release CreateTeamDiscussionCommentReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment-legacy CreateTeamDiscussionReaction 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". GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-legacy DeleteCommentReaction deletes the reaction for a commit comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-a-commit-comment-reaction DeleteCommentReactionByID deletes the reaction for a commit comment by repository ID. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-a-commit-comment-reaction DeleteIssueCommentReaction deletes the reaction to an issue comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-an-issue-comment-reaction DeleteIssueCommentReactionByID deletes the reaction to an issue comment by repository ID. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-an-issue-comment-reaction DeleteIssueReaction deletes the reaction to an issue. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-an-issue-reaction DeleteIssueReactionByID deletes the reaction to an issue by repository ID. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-an-issue-reaction DeletePullRequestCommentReaction deletes the reaction to a pull request review comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-a-pull-request-comment-reaction DeletePullRequestCommentReactionByID deletes the reaction to a pull request review comment by repository ID. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-a-pull-request-comment-reaction DeleteTeamDiscussionCommentReaction deletes the reaction to a team discussion comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-team-discussion-comment-reaction DeleteTeamDiscussionCommentReactionByOrgIDAndTeamID deletes the reaction to a team discussion comment by organization ID and team ID. GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment DeleteTeamDiscussionReaction deletes the reaction to a team discussion. GitHub API docs: https://docs.github.com/rest/reactions/reactions#delete-team-discussion-reaction DeleteTeamDiscussionReactionByOrgIDAndTeamID deletes the reaction to a team discussion by organization ID and team ID. GitHub API docs: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion ListCommentReactions lists the reactions for a commit comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-commit-comment ListIssueCommentReactions lists the reactions for an issue comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#list-reactions-for-an-issue-comment ListIssueReactions lists the reactions for an issue. GitHub API docs: https://docs.github.com/rest/reactions/reactions#list-reactions-for-an-issue ListPullRequestCommentReactions lists the reactions for a pull request review comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-pull-request-review-comment ListTeamDiscussionCommentReactions lists the reactions for a team discussion comment. GitHub API docs: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment-legacy ListTeamDiscussionReactions lists the reactions for a team discussion. GitHub API docs: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-legacy
Reference represents a GitHub reference. NodeID *string Object *GitObject Ref *string URL *string GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetObject returns the Object field. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( Reference) String() string Reference : expvar.Var Reference : fmt.Stringer func (*GitService).CreateRef(ctx context.Context, owner string, repo string, ref *Reference) (*Reference, *Response, error) func (*GitService).GetRef(ctx context.Context, owner string, repo string, ref string) (*Reference, *Response, error) func (*GitService).ListMatchingRefs(ctx context.Context, owner, repo string, opts *ReferenceListOptions) ([]*Reference, *Response, error) func (*GitService).UpdateRef(ctx context.Context, owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error) func (*GitService).CreateRef(ctx context.Context, owner string, repo string, ref *Reference) (*Reference, *Response, error) func (*GitService).UpdateRef(ctx context.Context, owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error)
Path *string Ref *string SHA *string GetPath returns the Path field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise.
ReferenceListOptions specifies optional parameters to the GitService.ListMatchingRefs method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Ref string func (*GitService).ListMatchingRefs(ctx context.Context, owner, repo string, opts *ReferenceListOptions) ([]*Reference, *Response, error)
RegistrationToken represents a token that can be used to add a self-hosted runner to a repository. ExpiresAt *Timestamp Token *string GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetToken returns the Token field if it's non-nil, zero value otherwise. func (*ActionsService).CreateOrganizationRegistrationToken(ctx context.Context, org string) (*RegistrationToken, *Response, error) func (*ActionsService).CreateRegistrationToken(ctx context.Context, owner, repo string) (*RegistrationToken, *Response, error) func (*EnterpriseService).CreateRegistrationToken(ctx context.Context, enterprise string) (*RegistrationToken, *Response, error)
ReleaseAsset represents a GitHub release asset in a repository. BrowserDownloadURL *string ContentType *string CreatedAt *Timestamp DownloadCount *int ID *int64 Label *string Name *string NodeID *string Size *int State *string URL *string UpdatedAt *Timestamp Uploader *User GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. GetContentType returns the ContentType field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLabel returns the Label field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUploader returns the Uploader field. ( ReleaseAsset) String() string ReleaseAsset : expvar.Var ReleaseAsset : fmt.Stringer func (*RepositoriesService).EditReleaseAsset(ctx context.Context, owner, repo string, id int64, release *ReleaseAsset) (*ReleaseAsset, *Response, error) func (*RepositoriesService).GetReleaseAsset(ctx context.Context, owner, repo string, id int64) (*ReleaseAsset, *Response, error) func (*RepositoriesService).ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*ReleaseAsset, *Response, error) func (*RepositoriesService).UploadReleaseAsset(ctx context.Context, owner, repo string, id int64, opts *UploadOptions, file *os.File) (*ReleaseAsset, *Response, error) func (*RepositoriesService).EditReleaseAsset(ctx context.Context, owner, repo string, id int64, release *ReleaseAsset) (*ReleaseAsset, *Response, error)
ReleaseEvent is triggered when a release is published, unpublished, created, edited, deleted, or prereleased. The Webhook event name is "release". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#release Action is the action that was performed. Possible values are: "published", "unpublished", "created", "edited", "deleted", or "prereleased". Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. Release *RepositoryRelease The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRelease returns the Release field. GetRepo returns the Repo field. GetSender returns the Sender field.
RemoveToken represents a token that can be used to remove a self-hosted runner from a repository. ExpiresAt *Timestamp Token *string GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. GetToken returns the Token field if it's non-nil, zero value otherwise. func (*ActionsService).CreateOrganizationRemoveToken(ctx context.Context, org string) (*RemoveToken, *Response, error) func (*ActionsService).CreateRemoveToken(ctx context.Context, owner, repo string) (*RemoveToken, *Response, error)
Rename contains details for 'renamed' events. From *string To *string GetFrom returns the From field if it's non-nil, zero value otherwise. GetTo returns the To field if it's non-nil, zero value otherwise. ( Rename) String() string Rename : expvar.Var Rename : fmt.Stringer func (*IssueEvent).GetRename() *Rename func (*Timeline).GetRename() *Rename
RenameOrgResponse is the response given when renaming an Organization. Message *string URL *string GetMessage returns the Message field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*AdminService).RenameOrg(ctx context.Context, org *Organization, newName string) (*RenameOrgResponse, *Response, error) func (*AdminService).RenameOrgByName(ctx context.Context, org, newName string) (*RenameOrgResponse, *Response, error)
RepoAdvisoryCredit represents the credit object for a repository Security Advisory. Login *string Type *string GetLogin returns the Login field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise.
RepoAdvisoryCreditDetailed represents a credit given to a user for a repository Security Advisory. State *string Type *string User *User GetState returns the State field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetUser returns the User field.
RepoCustomPropertyValue represents a repository custom property value. Properties []*CustomPropertyValue RepositoryFullName string RepositoryID int64 RepositoryName string func (*OrganizationsService).ListCustomPropertyValues(ctx context.Context, org string, opts *ListOptions) ([]*RepoCustomPropertyValue, *Response, error)
RepoDependencies represents the dependencies of a repo. DownloadLocation *string FilesAnalyzed *bool LicenseConcluded *string LicenseDeclared *string Package name SPDXID *string VersionInfo *string GetDownloadLocation returns the DownloadLocation field if it's non-nil, zero value otherwise. GetFilesAnalyzed returns the FilesAnalyzed field if it's non-nil, zero value otherwise. GetLicenseConcluded returns the LicenseConcluded field if it's non-nil, zero value otherwise. GetLicenseDeclared returns the LicenseDeclared field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. GetVersionInfo returns the VersionInfo field if it's non-nil, zero value otherwise.
RepoMergeUpstreamRequest represents a request to sync a branch of a forked repository to keep it up-to-date with the upstream repository. Branch *string GetBranch returns the Branch field if it's non-nil, zero value otherwise. func (*RepositoriesService).MergeUpstream(ctx context.Context, owner, repo string, request *RepoMergeUpstreamRequest) (*RepoMergeUpstreamResult, *Response, error)
RepoMergeUpstreamResult represents the result of syncing a branch of a forked repository with the upstream repository. BaseBranch *string MergeType *string Message *string GetBaseBranch returns the BaseBranch field if it's non-nil, zero value otherwise. GetMergeType returns the MergeType field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. func (*RepositoriesService).MergeUpstream(ctx context.Context, owner, repo string, request *RepoMergeUpstreamRequest) (*RepoMergeUpstreamResult, *Response, error)
RepoName represents a change of repository name. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*EditRepo).GetName() *RepoName
RepoRequiredWorkflow represents a required workflow object at the repo level. BadgeURL *string CreatedAt *Timestamp HTMLURL *string ID *int64 Name *string NodeID *string Path *string SourceRepository *Repository State *string URL *string UpdatedAt *Timestamp GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetSourceRepository returns the SourceRepository field. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
RepoRequiredWorkflows represents the required workflows for a repo. RequiredWorkflows []*RepoRequiredWorkflow TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListRepoRequiredWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*RepoRequiredWorkflows, *Response, error)
RepositoriesSearchResult represents the result of a repositories search. IncompleteResults *bool Repositories []*Repository Total *int GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Repositories(ctx context.Context, query string, opts *SearchOptions) (*RepositoriesSearchResult, *Response, error)
RepositoriesService handles communication with the repository related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/repos/ AddAdminEnforcement adds admin enforcement to a protected branch. It requires admin access and branch protection to be enabled. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#set-admin-branch-protection AddAppRestrictions grants the specified apps push access to a given protected branch. It requires the GitHub apps to have `write` access to the `content` permission. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#add-app-access-restrictions AddAutolink creates an autolink reference for a repository. Users with admin access to the repository can create an autolink. GitHub API docs: https://docs.github.com/rest/repos/autolinks#create-an-autolink-reference-for-a-repository AddCollaborator sends an invitation to the specified GitHub user to become a collaborator to the given repo. GitHub API docs: https://docs.github.com/rest/collaborators/collaborators#add-a-repository-collaborator AddTeamRestrictions grants the specified teams push access to a given protected branch. It requires the GitHub teams to have `write` access to the `content` permission. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#add-team-access-restrictions AddUserRestrictions grants the specified users push access to a given protected branch. It requires the GitHub users to have `write` access to the `content` permission. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#add-user-access-restrictions CompareCommits compares a range of commits with each other. GitHub API docs: https://docs.github.com/rest/commits/commits#compare-two-commits CompareCommitsRaw compares a range of commits with each other in raw (diff or patch) format. Both "base" and "head" must be branch names in "repo". To compare branches across other repositories in the same network as "repo", use the format "<USERNAME>:branch". GitHub API docs: https://docs.github.com/rest/commits/commits#compare-two-commits Create 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. Note that only a subset of the repo fields are used and repo must not be nil. Also 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. GitHub API docs: https://docs.github.com/rest/repos/repos#create-a-repository-for-the-authenticated-user GitHub API docs: https://docs.github.com/rest/repos/repos#create-an-organization-repository CreateComment creates a comment for the given commit. Note: GitHub allows for comments to be created for non-existing files and positions. GitHub API docs: https://docs.github.com/rest/commits/comments#create-a-commit-comment CreateCustomDeploymentProtectionRule creates a custom deployment protection rule on an environment. GitHub API docs: https://docs.github.com/rest/deployments/protection-rules#create-a-custom-deployment-protection-rule-on-an-environment CreateDeployment creates a new deployment for a repository. GitHub API docs: https://docs.github.com/rest/deployments/deployments#create-a-deployment CreateDeploymentBranchPolicy creates a deployment branch policy for an environment. GitHub API docs: https://docs.github.com/rest/deployments/branch-policies#create-a-deployment-branch-policy CreateDeploymentStatus creates a new status for a deployment. GitHub API docs: https://docs.github.com/rest/deployments/statuses#create-a-deployment-status CreateFile creates a new file in a repository at the given path and returns the commit and file metadata. GitHub API docs: https://docs.github.com/rest/repos/contents#create-or-update-file-contents CreateFork creates a fork of the specified repository. This 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. GitHub API docs: https://docs.github.com/rest/repos/forks#create-a-fork CreateFromTemplate generates a repository from a template. GitHub API docs: https://docs.github.com/rest/repos/repos#create-a-repository-using-a-template CreateHook creates a Hook for the specified repository. Config is a required field. Note that only a subset of the hook fields are used and hook must not be nil. GitHub API docs: https://docs.github.com/rest/repos/webhooks#create-a-repository-webhook CreateKey adds a deploy key for a repository. GitHub API docs: https://docs.github.com/rest/deploy-keys/deploy-keys#create-a-deploy-key CreateOrUpdateCustomProperties creates new or updates existing custom property values for a repository. GitHub API docs: https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository CreateProject creates a GitHub Project for the specified repository. GitHub API docs: https://docs.github.com/rest/projects/projects#create-a-repository-project CreateRelease adds a new release for a repository. Note that only a subset of the release fields are used. See RepositoryRelease for more information. GitHub API docs: https://docs.github.com/rest/releases/releases#create-a-release CreateRuleset creates a ruleset for the specified repository. GitHub API docs: https://docs.github.com/rest/repos/rules#create-a-repository-ruleset CreateStatus creates a new status for a repository at the specified reference. Ref can be a SHA, a branch name, or a tag name. GitHub API docs: https://docs.github.com/rest/commits/statuses#create-a-commit-status CreateTagProtection creates the tag protection of the specified repository. GitHub API docs: https://docs.github.com/rest/repos/tags#create-a-tag-protection-state-for-a-repository CreateUpdateEnvironment create or update a new environment for a repository. GitHub API docs: https://docs.github.com/rest/deployments/environments#create-or-update-an-environment Delete a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#delete-a-repository DeleteAutolink deletes a single autolink reference by ID that was configured for the given repository. Information about autolinks are only available to repository administrators. GitHub API docs: https://docs.github.com/rest/repos/autolinks#delete-an-autolink-reference-from-a-repository DeleteComment deletes a single comment from a repository. GitHub API docs: https://docs.github.com/rest/commits/comments#delete-a-commit-comment DeleteDeployment deletes an existing deployment for a repository. GitHub API docs: https://docs.github.com/rest/deployments/deployments#delete-a-deployment DeleteDeploymentBranchPolicy deletes a deployment branch policy for an environment. GitHub API docs: https://docs.github.com/rest/deployments/branch-policies#delete-a-deployment-branch-policy DeleteEnvironment delete an environment from a repository. GitHub API docs: https://docs.github.com/rest/deployments/environments#delete-an-environment DeleteFile deletes a file from a repository and returns the commit. Requires the blob SHA of the file to be deleted. GitHub API docs: https://docs.github.com/rest/repos/contents#delete-a-file DeleteHook deletes a specified Hook. GitHub API docs: https://docs.github.com/rest/repos/webhooks#delete-a-repository-webhook DeleteInvitation deletes a repository invitation. GitHub API docs: https://docs.github.com/rest/collaborators/invitations#delete-a-repository-invitation DeleteKey deletes a deploy key. GitHub API docs: https://docs.github.com/rest/deploy-keys/deploy-keys#delete-a-deploy-key DeletePreReceiveHook deletes a specified pre-receive hook. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/repo-pre-receive-hooks#remove-pre-receive-hook-enforcement-for-a-repository DeleteRelease delete a single release from a repository. GitHub API docs: https://docs.github.com/rest/releases/releases#delete-a-release DeleteReleaseAsset delete a single release asset from a repository. GitHub API docs: https://docs.github.com/rest/releases/assets#delete-a-release-asset DeleteRuleset deletes a ruleset for the specified repository. GitHub API docs: https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset DeleteTagProtection deletes a tag protection from the specified repository. GitHub API docs: https://docs.github.com/rest/repos/tags#delete-a-tag-protection-state-for-a-repository DisableAutomatedSecurityFixes disables vulnerability alerts and the dependency graph for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#disable-automated-security-fixes DisableCustomDeploymentProtectionRule disables a custom deployment protection rule for an environment. GitHub API docs: https://docs.github.com/rest/deployments/protection-rules#disable-a-custom-protection-rule-for-an-environment DisableDismissalRestrictions disables dismissal restrictions of a protected branch. It requires admin access and branch protection to be enabled. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#update-pull-request-review-protection DisableLFS turns the LFS (Large File Storage) feature OFF for the selected repo. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/repos/lfs#disable-git-lfs-for-a-repository DisablePages disables GitHub Pages for the named repo. GitHub API docs: https://docs.github.com/rest/pages/pages#delete-a-github-pages-site DisablePrivateReporting disables private reporting of vulnerabilities for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository DisableVulnerabilityAlerts disables vulnerability alerts and the dependency graph for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#disable-vulnerability-alerts Dispatch triggers a repository_dispatch event in a GitHub Actions workflow. GitHub API docs: https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event DownloadContents 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. It 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. GitHub API docs: https://docs.github.com/rest/repos/contents#get-repository-content DownloadContentsWithMeta 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. It 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. GitHub API docs: https://docs.github.com/rest/repos/contents#get-repository-content DownloadReleaseAsset downloads a release asset or returns a redirect URL. DownloadReleaseAsset 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. followRedirectsClient can be passed to download the asset from a redirected location. Passing http.DefaultClient is recommended unless special circumstances exist, but it's possible to pass any http.Client. If nil is passed the redirectURL will be returned instead. GitHub API docs: https://docs.github.com/rest/releases/assets#get-a-release-asset Edit updates a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#update-a-repository EditActionsAccessLevel sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository EditActionsAllowed sets the allowed actions and reusable workflows for a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository EditActionsPermissions sets the permissions policy for repositories and allowed actions in a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-github-actions-permissions-for-a-repository EditDefaultWorkflowPermissions sets the GitHub Actions default workflow permissions in a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-default-workflow-permissions-for-a-repository EditHook updates a specified Hook. GitHub API docs: https://docs.github.com/rest/repos/webhooks#update-a-repository-webhook EditHookConfiguration updates the configuration for the specified repository webhook. GitHub API docs: https://docs.github.com/rest/repos/webhooks#update-a-webhook-configuration-for-a-repository EditRelease edits a repository release. Note that only a subset of the release fields are used. See RepositoryRelease for more information. GitHub API docs: https://docs.github.com/rest/releases/releases#update-a-release EditReleaseAsset edits a repository release asset. GitHub API docs: https://docs.github.com/rest/releases/assets#update-a-release-asset EnableAutomatedSecurityFixes enables the automated security fixes for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#enable-automated-security-fixes EnableLFS turns the LFS (Large File Storage) feature ON for the selected repo. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/repos/lfs#enable-git-lfs-for-a-repository EnablePages enables GitHub Pages for the named repo. GitHub API docs: https://docs.github.com/rest/pages/pages#create-a-github-pages-site EnablePrivateReporting enables private reporting of vulnerabilities for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository EnableVulnerabilityAlerts enables vulnerability alerts and the dependency graph for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#enable-vulnerability-alerts GenerateReleaseNotes generates the release notes for the given tag. GitHub API docs: https://docs.github.com/rest/releases/releases#generate-release-notes-content-for-a-release Get fetches a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#get-a-repository GetActionsAccessLevel gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository GetActionsAllowed gets the allowed actions and reusable workflows for a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository GetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-github-actions-permissions-for-a-repository GetAdminEnforcement gets admin enforcement information of a protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-admin-branch-protection GetAllCustomPropertyValues gets all custom property values that are set for a repository. GitHub API docs: https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository GetAllDeploymentProtectionRules gets all the deployment protection rules for an environment. GitHub API docs: https://docs.github.com/rest/deployments/protection-rules#get-all-deployment-protection-rules-for-an-environment GetAllRulesets gets all the rules that apply to the specified repository. If includesParents is true, rulesets configured at the organization level that apply to the repository will be returned. GitHub API docs: https://docs.github.com/rest/repos/rules#get-all-repository-rulesets GetArchiveLink 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. GitHub API docs: https://docs.github.com/rest/repos/contents#download-a-repository-archive-tar GitHub API docs: https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip GetAutolink returns a single autolink reference by ID that was configured for the given repository. Information about autolinks are only available to repository administrators. GitHub API docs: https://docs.github.com/rest/repos/autolinks#get-an-autolink-reference-of-a-repository GetAutomatedSecurityFixes checks if the automated security fixes for a repository are enabled. GitHub API docs: https://docs.github.com/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository GetBranch gets the specified branch for a repository. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branches#get-a-branch GetBranchProtection gets the protection of a given branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-branch-protection GetByID fetches a repository. Note: GetByID uses the undocumented GitHub API endpoint "GET /repositories/{repository_id}". GetCodeOfConduct gets the contents of a repository's code of conduct. Note that https://docs.github.com/rest/codes-of-conduct#about-the-codes-of-conduct-api says to use the GET /repos/{owner}/{repo} endpoint. GitHub API docs: https://docs.github.com/rest/repos/repos#get-a-repository GetCodeownersErrors lists any syntax errors that are detected in the CODEOWNERS file. GitHub API docs: https://docs.github.com/rest/repos/repos#list-codeowners-errors GetCombinedStatus returns the combined status of a repository at the specified reference. ref can be a SHA, a branch name, or a tag name. GitHub API docs: https://docs.github.com/rest/commits/statuses#get-the-combined-status-for-a-specific-reference GetComment gets a single comment from a repository. GitHub API docs: https://docs.github.com/rest/commits/comments#get-a-commit-comment GetCommit fetches the specified commit, including all details about it. GitHub API docs: https://docs.github.com/rest/commits/commits#get-a-commit GetCommitRaw fetches the specified commit in raw (diff or patch) format. GitHub API docs: https://docs.github.com/rest/commits/commits#get-a-commit GetCommitSHA1 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. GitHub API docs: https://docs.github.com/rest/commits/commits#get-a-commit GetCommunityHealthMetrics retrieves all the community health metrics for a repository. GitHub API docs: https://docs.github.com/rest/metrics/community#get-community-profile-metrics GetContents 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. Due to an auth vulnerability issue in the GitHub v3 API, ".." is not allowed to appear anywhere in the "path" or this method will return an error. GitHub API docs: https://docs.github.com/rest/repos/contents#get-repository-content GetCustomDeploymentProtectionRule gets a custom deployment protection rule for an environment. GitHub API docs: https://docs.github.com/rest/deployments/protection-rules#get-a-custom-deployment-protection-rule GetDefaultWorkflowPermissions gets the GitHub Actions default workflow permissions in a repository. GitHub API docs: https://docs.github.com/rest/actions/permissions#get-default-workflow-permissions-for-a-repository GetDeployment returns a single deployment of a repository. GitHub API docs: https://docs.github.com/rest/deployments/deployments#get-a-deployment GetDeploymentBranchPolicy gets a deployment branch policy for an environment. GitHub API docs: https://docs.github.com/rest/deployments/branch-policies#get-a-deployment-branch-policy GetDeploymentStatus returns a single deployment status of a repository. GitHub API docs: https://docs.github.com/rest/deployments/statuses#get-a-deployment-status GetEnvironment get a single environment for a repository. GitHub API docs: https://docs.github.com/rest/deployments/environments#get-an-environment GetHook returns a single specified Hook. GitHub API docs: https://docs.github.com/rest/repos/webhooks#get-a-repository-webhook GetHookConfiguration returns the configuration for the specified repository webhook. GitHub API docs: https://docs.github.com/rest/repos/webhooks#get-a-webhook-configuration-for-a-repository GetHookDelivery returns a delivery for a webhook configured in a repository. GitHub API docs: https://docs.github.com/rest/repos/webhooks#get-a-delivery-for-a-repository-webhook GetKey fetches a single deploy key. GitHub API docs: https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key GetLatestPagesBuild fetches the latest build information for a GitHub pages site. GitHub API docs: https://docs.github.com/rest/pages/pages#get-latest-pages-build GetLatestRelease fetches the latest published release for the repository. GitHub API docs: https://docs.github.com/rest/releases/releases#get-the-latest-release GetPageBuild fetches the specific build information for a GitHub pages site. GitHub API docs: https://docs.github.com/rest/pages/pages#get-github-pages-build GetPageHealthCheck gets a DNS health check for the CNAME record configured for a repository's GitHub Pages. GitHub API docs: https://docs.github.com/rest/pages/pages#get-a-dns-health-check-for-github-pages GetPagesInfo fetches information about a GitHub Pages site. GitHub API docs: https://docs.github.com/rest/pages/pages#get-a-github-pages-site GetPermissionLevel retrieves the specific permission level a collaborator has for a given repository. GitHub API docs: https://docs.github.com/rest/collaborators/collaborators#get-repository-permissions-for-a-user GetPreReceiveHook returns a single specified pre-receive hook. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/repo-pre-receive-hooks#get-a-pre-receive-hook-for-a-repository GetPullRequestReviewEnforcement gets pull request review enforcement of a protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-pull-request-review-protection GetReadme gets the Readme file for the repository. GitHub API docs: https://docs.github.com/rest/repos/contents#get-a-repository-readme GetRelease fetches a single release. GitHub API docs: https://docs.github.com/rest/releases/releases#get-a-release GetReleaseAsset fetches a single release asset. GitHub API docs: https://docs.github.com/rest/releases/assets#get-a-release-asset GetReleaseByTag fetches a release with the specified tag. GitHub API docs: https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name GetRequiredStatusChecks gets the required status checks for a given protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-status-checks-protection GetRulesForBranch gets all the rules that apply to the specified branch. GitHub API docs: https://docs.github.com/rest/repos/rules#get-rules-for-a-branch GetRuleset gets a ruleset for the specified repository. If includesParents is true, rulesets configured at the organization level that apply to the repository will be returned. GitHub API docs: https://docs.github.com/rest/repos/rules#get-a-repository-ruleset GetSignaturesProtectedBranch gets required signatures of protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-commit-signature-protection GetVulnerabilityAlerts checks if vulnerability alerts are enabled for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository IsCollaborator 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. GitHub API docs: https://docs.github.com/rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator IsPrivateReportingEnabled checks if private vulnerability reporting is enabled for the repository and returns a boolean indicating the status. GitHub API docs: https://docs.github.com/rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository License gets the contents of a repository's license if one is detected. GitHub API docs: https://docs.github.com/rest/licenses/licenses#get-the-license-for-a-repository List calls either RepositoriesService.ListByUser or RepositoriesService.ListByAuthenticatedUser depending on whether user is empty. Deprecated: Use RepositoriesService.ListByUser or RepositoriesService.ListByAuthenticatedUser instead. GitHub API docs: https://docs.github.com/rest/repos/repos#list-repositories-for-a-user GitHub API docs: https://docs.github.com/rest/repos/repos#list-repositories-for-the-authenticated-user ListAll lists all GitHub repositories in the order that they were created. GitHub API docs: https://docs.github.com/rest/repos/repos#list-public-repositories ListAllTopics lists topics for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#get-all-repository-topics ListAppRestrictions 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. Note: This is a wrapper around ListApps so a naming convention with ListUserRestrictions and ListTeamRestrictions is preserved. GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch ListApps 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. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . Deprecated: Please use ListAppRestrictions instead. GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch ListAutolinks returns a list of autolinks configured for the given repository. Information about autolinks are only available to repository administrators. GitHub API docs: https://docs.github.com/rest/repos/autolinks#get-all-autolinks-of-a-repository ListBranches lists branches for the specified repository. GitHub API docs: https://docs.github.com/rest/branches/branches#list-branches ListBranchesHeadCommit gets all branches where the given commit SHA is the HEAD, or latest commit for the branch. GitHub API docs: https://docs.github.com/rest/commits/commits#list-branches-for-head-commit ListByAuthenticatedUser lists repositories for the authenticated user. GitHub API docs: https://docs.github.com/rest/repos/repos#list-repositories-for-the-authenticated-user ListByOrg lists the repositories for an organization. GitHub API docs: https://docs.github.com/rest/repos/repos#list-organization-repositories ListByUser lists public repositories for the specified user. GitHub API docs: https://docs.github.com/rest/repos/repos#list-repositories-for-a-user ListCodeFrequency 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. If 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. GitHub API docs: https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-activity ListCollaborators lists the GitHub users that have access to the repository. GitHub API docs: https://docs.github.com/rest/collaborators/collaborators#list-repository-collaborators ListComments lists all the comments for the repository. GitHub API docs: https://docs.github.com/rest/commits/comments#list-commit-comments-for-a-repository ListCommitActivity returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday. If 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. GitHub API docs: https://docs.github.com/rest/metrics/statistics#get-the-last-year-of-commit-activity ListCommitComments lists all the comments for a given commit SHA. GitHub API docs: https://docs.github.com/rest/commits/comments#list-commit-comments ListCommits lists the commits of a repository. GitHub API docs: https://docs.github.com/rest/commits/commits#list-commits ListContributors lists contributors for a repository. GitHub API docs: https://docs.github.com/rest/repos/repos#list-repository-contributors ListContributorsStats gets a repo's contributor list with additions, deletions and commit counts. If 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. GitHub API docs: https://docs.github.com/rest/metrics/statistics#get-all-contributor-commit-activity ListCustomDeploymentRuleIntegrations lists the custom deployment rule integrations for an environment. GitHub API docs: https://docs.github.com/rest/deployments/protection-rules#list-custom-deployment-rule-integrations-available-for-an-environment ListDeploymentBranchPolicies lists the deployment branch policies for an environment. GitHub API docs: https://docs.github.com/rest/deployments/branch-policies#list-deployment-branch-policies ListDeploymentStatuses lists the statuses of a given deployment of a repository. GitHub API docs: https://docs.github.com/rest/deployments/statuses#list-deployment-statuses ListDeployments lists the deployments of a repository. GitHub API docs: https://docs.github.com/rest/deployments/deployments#list-deployments ListEnvironments lists all environments for a repository. GitHub API docs: https://docs.github.com/rest/deployments/environments#list-environments ListForks lists the forks of the specified repository. GitHub API docs: https://docs.github.com/rest/repos/forks#list-forks ListHookDeliveries lists webhook deliveries for a webhook configured in a repository. GitHub API docs: https://docs.github.com/rest/repos/webhooks#list-deliveries-for-a-repository-webhook ListHooks lists all Hooks for the specified repository. GitHub API docs: https://docs.github.com/rest/repos/webhooks#list-repository-webhooks ListInvitations lists all currently-open repository invitations. GitHub API docs: https://docs.github.com/rest/collaborators/invitations#list-repository-invitations ListKeys lists the deploy keys for a repository. GitHub API docs: https://docs.github.com/rest/deploy-keys/deploy-keys#list-deploy-keys ListLanguages 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: { "C": 78769, "Python": 7769 } GitHub API docs: https://docs.github.com/rest/repos/repos#list-repository-languages ListPagesBuilds lists the builds for a GitHub Pages site. GitHub API docs: https://docs.github.com/rest/pages/pages#list-github-pages-builds ListParticipation 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'. The array order is oldest week (index 0) to most recent week. If 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. GitHub API docs: https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-count ListPreReceiveHooks lists all pre-receive hooks for the specified repository. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/repo-pre-receive-hooks#list-pre-receive-hooks-for-a-repository ListProjects lists the projects for a repo. GitHub API docs: https://docs.github.com/rest/projects/projects#list-repository-projects ListPunchCard returns the number of commits per hour in each day. If 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. GitHub API docs: https://docs.github.com/rest/metrics/statistics#get-the-hourly-commit-count-for-each-day ListReleaseAssets lists the release's assets. GitHub API docs: https://docs.github.com/rest/releases/assets#list-release-assets ListReleases lists the releases for a repository. GitHub API docs: https://docs.github.com/rest/releases/releases#list-releases ListRequiredStatusChecksContexts lists the required status checks contexts for a given protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-all-status-check-contexts ListStatuses lists the statuses of a repository at the specified reference. ref can be a SHA, a branch name, or a tag name. GitHub API docs: https://docs.github.com/rest/commits/statuses#list-commit-statuses-for-a-reference ListTagProtection lists tag protection of the specified repository. GitHub API docs: https://docs.github.com/rest/repos/tags#list-tag-protection-states-for-a-repository ListTags lists tags for the specified repository. GitHub API docs: https://docs.github.com/rest/repos/repos#list-repository-tags ListTeamRestrictions 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. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch ListTeams lists the teams for the specified repository. GitHub API docs: https://docs.github.com/rest/repos/repos#list-repository-teams ListTrafficClones get total number of clones for the last 14 days and breaks it down either per day or week for the last 14 days. GitHub API docs: https://docs.github.com/rest/metrics/traffic#get-repository-clones ListTrafficPaths list the top 10 popular content over the last 14 days. GitHub API docs: https://docs.github.com/rest/metrics/traffic#get-top-referral-paths ListTrafficReferrers list the top 10 referrers over the last 14 days. GitHub API docs: https://docs.github.com/rest/metrics/traffic#get-top-referral-sources ListTrafficViews get total number of views for the last 14 days and breaks it down either per day or week. GitHub API docs: https://docs.github.com/rest/metrics/traffic#get-page-views ListUserRestrictions 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. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#get-users-with-access-to-the-protected-branch Merge a branch in the specified repository. GitHub API docs: https://docs.github.com/rest/branches/branches#merge-a-branch MergeUpstream syncs a branch of a forked repository to keep it up-to-date with the upstream repository. GitHub API docs: https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository OptionalSignaturesOnProtectedBranch removes required signed commits on a given branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#delete-commit-signature-protection PingHook triggers a 'ping' event to be sent to the Hook. GitHub API docs: https://docs.github.com/rest/repos/webhooks#ping-a-repository-webhook RedeliverHookDelivery redelivers a delivery for a webhook configured in a repository. GitHub API docs: https://docs.github.com/rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook RemoveAdminEnforcement removes admin enforcement from a protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#delete-admin-branch-protection RemoveAppRestrictions removes the restrictions of an app from pushing to this branch. It requires the GitHub apps to have `write` access to the `content` permission. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#remove-app-access-restrictions RemoveBranchProtection removes the protection of a given branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#delete-branch-protection RemoveCollaborator 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. GitHub API docs: https://docs.github.com/rest/collaborators/collaborators#remove-a-repository-collaborator RemovePullRequestReviewEnforcement removes pull request enforcement of a protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#delete-pull-request-review-protection RemoveRequiredStatusChecks removes the required status checks for a given protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#remove-status-check-protection RemoveTeamRestrictions removes the restrictions of a team from pushing to this branch. It requires the GitHub teams to have `write` access to the `content` permission. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#remove-team-access-restrictions RemoveUserRestrictions removes the restrictions of a user from pushing to this branch. It requires the GitHub users to have `write` access to the `content` permission. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#remove-user-access-restrictions RenameBranch renames a branch in a repository. To 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. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branches#rename-a-branch ReplaceAllTopics replaces all repository topics. GitHub API docs: https://docs.github.com/rest/repos/repos#replace-all-repository-topics ReplaceAppRestrictions 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. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#set-app-access-restrictions ReplaceTeamRestrictions 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. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#set-team-access-restrictions ReplaceUserRestrictions 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. Note: The list of users, apps, and teams in total is limited to 100 items. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#set-user-access-restrictions RequestPageBuild requests a build of a GitHub Pages site without needing to push new commit. GitHub API docs: https://docs.github.com/rest/pages/pages#request-a-github-pages-build RequireSignaturesOnProtectedBranch makes signed commits required on a protected branch. It requires admin access and branch protection to be enabled. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#create-commit-signature-protection Subscribe lets servers register to receive updates when a topic is updated. GitHub API docs: https://docs.github.com/webhooks/about-webhooks-for-repositories#pubsubhubbub TestHook triggers a test Hook by github. GitHub API docs: https://docs.github.com/rest/repos/webhooks#test-the-push-repository-webhook Transfer transfers a repository from one account or organization to another. This 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. GitHub API docs: https://docs.github.com/rest/repos/repos#transfer-a-repository Unsubscribe lets servers unregister to no longer receive updates when a topic is updated. GitHub API docs: https://docs.github.com/webhooks/about-webhooks-for-repositories#pubsubhubbub UpdateBranchProtection updates the protection of a given branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#update-branch-protection UpdateComment updates the body of a single comment. GitHub API docs: https://docs.github.com/rest/commits/comments#update-a-commit-comment UpdateDeploymentBranchPolicy updates a deployment branch policy for an environment. GitHub API docs: https://docs.github.com/rest/deployments/branch-policies#update-a-deployment-branch-policy UpdateFile 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. GitHub API docs: https://docs.github.com/rest/repos/contents#create-or-update-file-contents UpdateInvitation updates the permissions associated with a repository invitation. permissions represents the permissions that the associated user will have on the repository. Possible values are: "read", "write", "admin". GitHub API docs: https://docs.github.com/rest/collaborators/invitations#update-a-repository-invitation UpdatePages updates GitHub Pages for the named repo. GitHub API docs: https://docs.github.com/rest/pages/pages#update-information-about-a-github-pages-site UpdatePreReceiveHook updates a specified pre-receive hook. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/repo-pre-receive-hooks#update-pre-receive-hook-enforcement-for-a-repository UpdatePullRequestReviewEnforcement patches pull request review enforcement of a protected branch. It requires admin access and branch protection to be enabled. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#update-pull-request-review-protection UpdateRequiredStatusChecks updates the required status checks for a given protected branch. Note: the branch name is URL path escaped for you. See: https://pkg.go.dev/net/url#PathEscape . GitHub API docs: https://docs.github.com/rest/branches/branch-protection#update-status-check-protection UpdateRuleset updates a ruleset for the specified repository. GitHub API docs: https://docs.github.com/rest/repos/rules#update-a-repository-ruleset UpdateRulesetNoBypassActor updates a ruleset for the specified repository. This function is necessary as the UpdateRuleset function does not marshal ByPassActor if passed as nil or an empty array. GitHub API docs: https://docs.github.com/rest/repos/rules#update-a-repository-ruleset UploadReleaseAsset 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. GitHub API docs: https://docs.github.com/rest/releases/assets#upload-a-release-asset
Repository represents a GitHub repository. AllowAutoMerge *bool AllowForking *bool AllowMergeCommit *bool AllowRebaseMerge *bool AllowSquashMerge *bool AllowUpdateBranch *bool ArchiveURL *string Archived *bool AssigneesURL *string AutoInit *bool BlobsURL *string BranchesURL *string CloneURL *string CodeOfConduct *CodeOfConduct CollaboratorsURL *string CommentsURL *string CommitsURL *string CompareURL *string ContentsURL *string ContributorsURL *string CreatedAt *Timestamp CustomProperties map[string]interface{} DefaultBranch *string DeleteBranchOnMerge *bool DeploymentsURL *string Description *string Disabled *bool DownloadsURL *string EventsURL *string Fork *bool ForksCount *int ForksURL *string FullName *string GitCommitsURL *string GitRefsURL *string GitTagsURL *string GitURL *string GitignoreTemplate *string HTMLURL *string HasDiscussions *bool HasDownloads *bool HasIssues *bool HasPages *bool HasProjects *bool HasWiki *bool Homepage *string HooksURL *string ID *int64 IsTemplate *bool IssueCommentURL *string IssueEventsURL *string IssuesURL *string KeysURL *string LabelsURL *string Language *string LanguagesURL *string Only provided when using RepositoriesService.Get while in preview LicenseTemplate *string MasterBranch *string // Can be one of: "PR_BODY", "PR_TITLE", "BLANK" // Can be one of: "PR_TITLE", "MERGE_MESSAGE" MergesURL *string MilestonesURL *string MirrorURL *string Name *string NetworkCount *int NodeID *string NotificationsURL *string // Deprecated: Replaced by OpenIssuesCount. For backward compatibility OpenIssues is still populated. OpenIssuesCount *int Organization *Organization Owner *User Parent *Repository Permissions map[string]bool Additional mutable fields when creating and editing a repository PullsURL *string PushedAt *Timestamp ReleasesURL *string RoleName is only returned by the API 'check team permissions for a repository'. See: teams.go (IsTeamRepoByID) https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository SSHURL *string SVNURL *string Options for configuring Advanced Security and Secret Scanning Size *int Source *Repository // Can be one of: "PR_BODY", "COMMIT_MESSAGES", "BLANK" // Can be one of: "PR_TITLE", "COMMIT_OR_PR_TITLE" StargazersCount *int StargazersURL *string StatusesURL *string SubscribersCount *int SubscribersURL *string SubscriptionURL *string TagsURL *string Creating an organization repository. Required for non-owners. TeamsURL *string TemplateRepository *Repository TextMatches is only populated from search results that request text matches See: search.go and https://docs.github.com/rest/search/#text-match-metadata Topics []string TreesURL *string API URLs UpdatedAt *Timestamp UseSquashPRTitleAsDefault *bool Visibility is only used for Create and Edit endpoints. The visibility field overrides the field parameter when both are used. Can be one of public, private or internal. // Deprecated: Replaced by StargazersCount. For backward compatibility Watchers is still populated. // Deprecated: Replaced by StargazersCount. For backward compatibility WatchersCount is still populated. WebCommitSignoffRequired *bool GetAllowAutoMerge returns the AllowAutoMerge field if it's non-nil, zero value otherwise. GetAllowForking returns the AllowForking field if it's non-nil, zero value otherwise. GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. GetAllowUpdateBranch returns the AllowUpdateBranch field if it's non-nil, zero value otherwise. GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. GetArchived returns the Archived field if it's non-nil, zero value otherwise. GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. GetCodeOfConduct returns the CodeOfConduct field. GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. GetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise. GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. GetFork returns the Fork field if it's non-nil, zero value otherwise. GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. GetFullName returns the FullName field if it's non-nil, zero value otherwise. GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHasDiscussions returns the HasDiscussions field if it's non-nil, zero value otherwise. GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise. GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. GetLanguage returns the Language field if it's non-nil, zero value otherwise. GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. GetLicense returns the License field. GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. GetMergeCommitMessage returns the MergeCommitMessage field if it's non-nil, zero value otherwise. GetMergeCommitTitle returns the MergeCommitTitle field if it's non-nil, zero value otherwise. GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. GetOrganization returns the Organization field. GetOwner returns the Owner field. GetParent returns the Parent field. GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. GetPrivate returns the Private field if it's non-nil, zero value otherwise. GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. GetSecurityAndAnalysis returns the SecurityAndAnalysis field. GetSize returns the Size field if it's non-nil, zero value otherwise. GetSource returns the Source field. GetSquashMergeCommitMessage returns the SquashMergeCommitMessage field if it's non-nil, zero value otherwise. GetSquashMergeCommitTitle returns the SquashMergeCommitTitle field if it's non-nil, zero value otherwise. GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. GetTemplateRepository returns the TemplateRepository field. GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUseSquashPRTitleAsDefault returns the UseSquashPRTitleAsDefault field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. GetWatchers returns the Watchers field if it's non-nil, zero value otherwise. GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. GetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise. ( Repository) String() string Repository : expvar.Var Repository : fmt.Stringer func (*ActivityService).ListWatched(ctx context.Context, user string, opts *ListOptions) ([]*Repository, *Response, error) func (*Alert).GetRepository() *Repository func (*AppsService).AddRepository(ctx context.Context, instID, repoID int64) (*Repository, *Response, error) func (*BranchProtectionRuleEvent).GetRepo() *Repository func (*CheckRunEvent).GetRepo() *Repository func (*CheckSuite).GetRepository() *Repository func (*CheckSuiteEvent).GetRepo() *Repository func (*CheckSuitePreferenceResults).GetRepository() *Repository func (*CodeResult).GetRepository() *Repository func (*CodeScanningAlertEvent).GetRepo() *Repository func (*Codespace).GetRepository() *Repository func (*CollaboratorInvitation).GetRepo() *Repository func (*CommitCommentEvent).GetRepo() *Repository func (*CommitResult).GetRepository() *Repository func (*ContentReferenceEvent).GetRepo() *Repository func (*CreateEvent).GetRepo() *Repository func (*DeleteEvent).GetRepo() *Repository func (*DependabotAlert).GetRepository() *Repository func (*DependabotAlertEvent).GetRepo() *Repository func (*DeployKeyEvent).GetRepo() *Repository func (*DeploymentEvent).GetRepo() *Repository func (*DeploymentProtectionRuleEvent).GetRepo() *Repository func (*DeploymentReviewEvent).GetRepo() *Repository func (*DeploymentStatusEvent).GetRepo() *Repository func (*DiscussionCommentEvent).GetRepo() *Repository func (*DiscussionEvent).GetRepo() *Repository func (*Event).GetRepo() *Repository func (*ForkEvent).GetForkee() *Repository func (*ForkEvent).GetRepo() *Repository func (*GollumEvent).GetRepo() *Repository func (*InstallationTargetEvent).GetRepository() *Repository func (*Issue).GetRepository() *Repository func (*IssueCommentEvent).GetRepo() *Repository func (*IssueEvent).GetRepository() *Repository func (*IssuesEvent).GetRepo() *Repository func (*LabelEvent).GetRepo() *Repository func (*MemberEvent).GetRepo() *Repository func (*MergeGroupEvent).GetRepo() *Repository func (*MetaEvent).GetRepo() *Repository func (*MilestoneEvent).GetRepo() *Repository func (*Notification).GetRepository() *Repository func (*OrgRequiredWorkflow).GetRepository() *Repository func (*Package).GetRepository() *Repository func (*PackageEvent).GetRepo() *Repository func (*PageBuildEvent).GetRepo() *Repository func (*PingEvent).GetRepo() *Repository func (*ProjectCardEvent).GetRepo() *Repository func (*ProjectColumnEvent).GetRepo() *Repository func (*ProjectEvent).GetRepo() *Repository func (*PublicEvent).GetRepo() *Repository func (*PullRequestBranch).GetRepo() *Repository func (*PullRequestEvent).GetRepo() *Repository func (*PullRequestReviewCommentEvent).GetRepo() *Repository func (*PullRequestReviewEvent).GetRepo() *Repository func (*PullRequestReviewThreadEvent).GetRepo() *Repository func (*PullRequestTargetEvent).GetRepo() *Repository func (*ReleaseEvent).GetRepo() *Repository func (*RepoRequiredWorkflow).GetSourceRepository() *Repository func (*RepositoriesService).Create(ctx context.Context, org string, repo *Repository) (*Repository, *Response, error) func (*RepositoriesService).CreateFork(ctx context.Context, owner, repo string, opts *RepositoryCreateForkOptions) (*Repository, *Response, error) func (*RepositoriesService).CreateFromTemplate(ctx context.Context, templateOwner, templateRepo string, templateRepoReq *TemplateRepoRequest) (*Repository, *Response, error) func (*RepositoriesService).Dispatch(ctx context.Context, owner, repo string, opts DispatchRequestOptions) (*Repository, *Response, error) func (*RepositoriesService).Edit(ctx context.Context, owner, repo string, repository *Repository) (*Repository, *Response, error) func (*RepositoriesService).Get(ctx context.Context, owner, repo string) (*Repository, *Response, error) func (*RepositoriesService).GetByID(ctx context.Context, id int64) (*Repository, *Response, error) func (*RepositoriesService).List(ctx context.Context, user string, opts *RepositoryListOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListAll(ctx context.Context, opts *RepositoryListAllOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListByAuthenticatedUser(ctx context.Context, opts *RepositoryListByAuthenticatedUserOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListByOrg(ctx context.Context, org string, opts *RepositoryListByOrgOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListByUser(ctx context.Context, user string, opts *RepositoryListByUserOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListForks(ctx context.Context, owner, repo string, opts *RepositoryListForksOptions) ([]*Repository, *Response, error) func (*RepositoriesService).Transfer(ctx context.Context, owner, repo string, transfer TransferRequest) (*Repository, *Response, error) func (*Repository).GetParent() *Repository func (*Repository).GetSource() *Repository func (*Repository).GetTemplateRepository() *Repository func (*RepositoryDispatchEvent).GetRepo() *Repository func (*RepositoryEvent).GetRepo() *Repository func (*RepositoryImportEvent).GetRepo() *Repository func (*RepositoryInvitation).GetRepo() *Repository func (*RepositoryVulnerabilityAlertEvent).GetRepository() *Repository func (*SecretScanningAlert).GetRepository() *Repository func (*SecretScanningAlertEvent).GetRepo() *Repository func (*SecurityAdvisoriesService).CreateTemporaryPrivateFork(ctx context.Context, owner, repo, ghsaID string) (*Repository, *Response, error) func (*SecurityAdvisory).GetPrivateFork() *Repository func (*SecurityAdvisoryEvent).GetRepository() *Repository func (*SecurityAndAnalysisEvent).GetRepository() *Repository func (*SponsorshipEvent).GetRepository() *Repository func (*StarEvent).GetRepo() *Repository func (*StarredRepository).GetRepository() *Repository func (*StatusEvent).GetRepo() *Repository func (*TeamAddEvent).GetRepo() *Repository func (*TeamEvent).GetRepo() *Repository func (*TeamsService).IsTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string) (*Repository, *Response, error) func (*TeamsService).IsTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string) (*Repository, *Response, error) func (*TeamsService).ListTeamReposByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Repository, *Response, error) func (*TeamsService).ListTeamReposBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Repository, *Response, error) func (*WatchEvent).GetRepo() *Repository func (*WorkflowDispatchEvent).GetRepo() *Repository func (*WorkflowJobEvent).GetRepo() *Repository func (*WorkflowRun).GetHeadRepository() *Repository func (*WorkflowRun).GetRepository() *Repository func (*WorkflowRunEvent).GetRepo() *Repository func (*ActionsService).AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).AddSelectedRepoToOrgVariable(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).RemoveSelectedRepoFromOrgVariable(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*CodespacesService).AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*CodespacesService).AddSelectedRepoToUserSecret(ctx context.Context, name string, repo *Repository) (*Response, error) func (*CodespacesService).RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*CodespacesService).RemoveSelectedRepoFromUserSecret(ctx context.Context, name string, repo *Repository) (*Response, error) func (*DependabotService).AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*DependabotService).RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*RepositoriesService).Create(ctx context.Context, org string, repo *Repository) (*Repository, *Response, error) func (*RepositoriesService).Edit(ctx context.Context, owner, repo string, repository *Repository) (*Repository, *Response, error)
RepositoryActionsAccessLevel represents the repository actions access level. GitHub API docs: https://docs.github.com/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository AccessLevel specifies the level of access that workflows outside of the repository have to actions and reusable workflows within the repository. Possible values are: "none", "organization" "enterprise". GetAccessLevel returns the AccessLevel field if it's non-nil, zero value otherwise. func (*RepositoriesService).GetActionsAccessLevel(ctx context.Context, owner, repo string) (*RepositoryActionsAccessLevel, *Response, error) func (*RepositoriesService).EditActionsAccessLevel(ctx context.Context, owner, repo string, repositoryActionsAccessLevel RepositoryActionsAccessLevel) (*Response, error)
RepositoryActiveCommitters represents active committers on each repository. AdvancedSecurityCommitters *int AdvancedSecurityCommittersBreakdown []*AdvancedSecurityCommittersBreakdown Name *string GetAdvancedSecurityCommitters returns the AdvancedSecurityCommitters field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise.
RepositoryAddCollaboratorOptions specifies the optional parameters to the RepositoriesService.AddCollaborator method. Permission specifies the permission to grant the user on this repository. Possible values are: pull - team members can pull, but not push to or administer this repository push - team members can pull and push, but not administer this repository admin - team members can pull, push and administer this repository maintain - team members can manage the repository without access to sensitive or destructive actions. triage - team members can proactively manage issues and pull requests without write access. Default value is "push". This option is only valid for organization-owned repositories. func (*RepositoriesService).AddCollaborator(ctx context.Context, owner, repo, user string, opts *RepositoryAddCollaboratorOptions) (*CollaboratorInvitation, *Response, error)
RepositoryComment represents a comment for a commit, file, or line in a repository. User-mutable fields CommitID *string CreatedAt *Timestamp HTMLURL *string ID *int64 NodeID *string User-initialized fields Position *int Reactions *Reactions URL *string UpdatedAt *Timestamp User *User GetBody returns the Body field if it's non-nil, zero value otherwise. GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetPosition returns the Position field if it's non-nil, zero value otherwise. GetReactions returns the Reactions field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetUser returns the User field. ( RepositoryComment) String() string RepositoryComment : expvar.Var RepositoryComment : fmt.Stringer func (*CommitCommentEvent).GetComment() *RepositoryComment func (*RepositoriesService).CreateComment(ctx context.Context, owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error) func (*RepositoriesService).GetComment(ctx context.Context, owner, repo string, id int64) (*RepositoryComment, *Response, error) func (*RepositoriesService).ListComments(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryComment, *Response, error) func (*RepositoriesService).ListCommitComments(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*RepositoryComment, *Response, error) func (*RepositoriesService).UpdateComment(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment) (*RepositoryComment, *Response, error) func (*RepositoriesService).CreateComment(ctx context.Context, owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error) func (*RepositoriesService).UpdateComment(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment) (*RepositoryComment, *Response, error)
RepositoryCommit 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". Author *User CommentsURL *string Commit *Commit Committer *User Details about which files, and how this commit touched. Only filled in during GetCommit! HTMLURL *string NodeID *string Parents []*Commit SHA *string Details about how many changes were made in this commit. Only filled in during GetCommit! URL *string GetAuthor returns the Author field. GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. GetCommit returns the Commit field. GetCommitter returns the Committer field. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetStats returns the Stats field. GetURL returns the URL field if it's non-nil, zero value otherwise. ( RepositoryCommit) String() string RepositoryCommit : expvar.Var RepositoryCommit : fmt.Stringer func (*Branch).GetCommit() *RepositoryCommit func (*CommitsComparison).GetBaseCommit() *RepositoryCommit func (*CommitsComparison).GetMergeBaseCommit() *RepositoryCommit func (*PullRequestsService).ListCommits(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*RepositoryCommit, *Response, error) func (*RepositoriesService).GetCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) (*RepositoryCommit, *Response, error) func (*RepositoriesService).ListCommits(ctx context.Context, owner, repo string, opts *CommitsListOptions) ([]*RepositoryCommit, *Response, error) func (*RepositoriesService).Merge(ctx context.Context, owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error) func (*StatusEvent).GetCommit() *RepositoryCommit
RepositoryContent represents a file or directory in a github repository. Content contains the actual file content, which may be encoded. Callers should call GetContent which will decode the content if necessary. DownloadURL *string Encoding *string GitURL *string HTMLURL *string Name *string Path *string SHA *string Size *int SubmoduleGitURL *string Target is only set if the type is "symlink" and the target is not a normal file. If Target is set, Path will be the symlink path. Type *string URL *string GetContent returns the content of r, decoding it if necessary. GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetSubmoduleGitURL returns the SubmoduleGitURL field if it's non-nil, zero value otherwise. GetTarget returns the Target field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. String converts RepositoryContent to a string. It's primarily for testing. RepositoryContent : expvar.Var RepositoryContent : fmt.Stringer func (*RepositoriesService).DownloadContentsWithMeta(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *RepositoryContent, *Response, error) func (*RepositoriesService).GetContents(ctx context.Context, owner, repo, path string, opts *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, resp *Response, err error) func (*RepositoriesService).GetContents(ctx context.Context, owner, repo, path string, opts *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, resp *Response, err error) func (*RepositoriesService).GetReadme(ctx context.Context, owner, repo string, opts *RepositoryContentGetOptions) (*RepositoryContent, *Response, error) func (*RepositoryContentResponse).GetContent() *RepositoryContent
RepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile. Author *CommitAuthor Branch *string Committer *CommitAuthor // unencoded Message *string SHA *string GetAuthor returns the Author field. GetBranch returns the Branch field if it's non-nil, zero value otherwise. GetCommitter returns the Committer field. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).DeleteFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).UpdateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)
RepositoryContentGetOptions represents an optional ref parameter, which can be a SHA, branch, or tag A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository's default branch (e.g. main). func (*RepositoriesService).DownloadContents(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *Response, error) func (*RepositoriesService).DownloadContentsWithMeta(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *RepositoryContent, *Response, error) func (*RepositoriesService).GetArchiveLink(ctx context.Context, owner, repo string, archiveformat ArchiveFormat, opts *RepositoryContentGetOptions, maxRedirects int) (*url.URL, *Response, error) func (*RepositoriesService).GetContents(ctx context.Context, owner, repo, path string, opts *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, resp *Response, err error) func (*RepositoriesService).GetReadme(ctx context.Context, owner, repo string, opts *RepositoryContentGetOptions) (*RepositoryContent, *Response, error)
RepositoryContentResponse holds the parsed response from CreateFile, UpdateFile, and DeleteFile. Commit Commit Commit.Author *CommitAuthor CommentCount is the number of GitHub comments on the commit. This is only populated for requests that fetch GitHub data like Pulls.ListCommits, Repositories.ListCommits, etc. Commit.Committer *CommitAuthor Commit.HTMLURL *string Commit.Message *string Commit.NodeID *string Commit.Parents []*Commit Commit.SHA *string Commit.Stats *CommitStats Commit.Tree *Tree Commit.URL *string Commit.Verification *SignatureVerification Content *RepositoryContent GetAuthor returns the Author field. GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. GetCommitter returns the Committer field. GetContent returns the Content field. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetStats returns the Stats field. GetTree returns the Tree field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetVerification returns the Verification field. ( RepositoryContentResponse) String() string RepositoryContentResponse : expvar.Var RepositoryContentResponse : fmt.Stringer func (*RepositoriesService).CreateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).DeleteFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).UpdateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error)
RepositoryCreateForkOptions specifies the optional parameters to the RepositoriesService.CreateFork method. DefaultBranchOnly bool Name string The organization to fork the repository into. func (*RepositoriesService).CreateFork(ctx context.Context, owner, repo string, opts *RepositoryCreateForkOptions) (*Repository, *Response, error)
RepositoryDispatchEvent is triggered when a client sends a POST request to the repository dispatch event endpoint. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#repository_dispatch Action is the event_type that submitted with the repository dispatch payload. Value can be any string. Branch *string ClientPayload json.RawMessage Installation *Installation The following fields are only populated by Webhook events. Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetBranch returns the Branch field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
RepositoryEvent 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". Events of this type are not visible in timelines, they are only used to trigger organization webhooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#repository Action is the action that was performed. Possible values are: "created", "deleted" (organization hooks only), "archived", "unarchived", "edited", "renamed", "transferred", "publicized", or "privatized". The following fields are only populated by Webhook events. Installation *Installation Org *Organization Repo *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
RepositoryImportEvent represents the activity related to a repository being imported to GitHub. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_import Org *Organization Repo *Repository Sender *User Status represents the final state of the import. This can be one of "success", "cancelled", or "failure". GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetStatus returns the Status field if it's non-nil, zero value otherwise.
RepositoryInvitation represents an invitation to collaborate on a repo. CreatedAt *Timestamp HTMLURL *string ID *int64 Invitee *User Inviter *User Permissions *string Repo *Repository URL *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInvitee returns the Invitee field. GetInviter returns the Inviter field. GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListInvitations(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryInvitation, *Response, error) func (*RepositoriesService).UpdateInvitation(ctx context.Context, owner, repo string, invitationID int64, permissions string) (*RepositoryInvitation, *Response, error) func (*UsersService).ListInvitations(ctx context.Context, opts *ListOptions) ([]*RepositoryInvitation, *Response, error)
RepositoryLicense represents the license for a repository. Content *string DownloadURL *string Encoding *string GitURL *string HTMLURL *string License *License Name *string Path *string SHA *string Size *int Type *string URL *string GetContent returns the Content field if it's non-nil, zero value otherwise. GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetLicense returns the License field. GetName returns the Name field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( RepositoryLicense) String() string RepositoryLicense : expvar.Var RepositoryLicense : fmt.Stringer func (*RepositoriesService).License(ctx context.Context, owner, repo string) (*RepositoryLicense, *Response, error)
RepositoryListAllOptions specifies the optional parameters to the RepositoriesService.ListAll method. ID of the last repository seen func (*RepositoriesService).ListAll(ctx context.Context, opts *RepositoryListAllOptions) ([]*Repository, *Response, error)
RepositoryListByAuthenticatedUserOptions specifies the optional parameters to the RepositoriesService.ListByAuthenticatedUser method. See RepositoryListByAuthenticatedUserOptions.Affiliation See RepositoryListByUserOptions.Direction or RepositoryListByAuthenticatedUserOptions.Direction ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. See RepositoryListByUserOptions.Sort or RepositoryListByAuthenticatedUserOptions.Sort See RepositoryListByUserOptions.Type or RepositoryListByAuthenticatedUserOptions.Type See RepositoryListByAuthenticatedUserOptions.Visibility func (*RepositoriesService).ListByAuthenticatedUser(ctx context.Context, opts *RepositoryListByAuthenticatedUserOptions) ([]*Repository, *Response, error)
RepositoryListByOrgOptions specifies the optional parameters to the RepositoriesService.ListByOrg method. The order to sort by. Default: asc when using full_name, otherwise desc. Can be one of: asc, desc ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. The property to sort the results by. Default: full_name Can be one of: created, updated, pushed, full_name Limit results to repositories of the specified type. Default: owner Can be one of: all, owner, member func (*RepositoriesService).ListByOrg(ctx context.Context, org string, opts *RepositoryListByOrgOptions) ([]*Repository, *Response, error)
RepositoryListByUserOptions specifies the optional parameters to the RepositoriesService.ListByUser method. The order to sort by. Default: asc when using full_name, otherwise desc. Can be one of: asc, desc ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. The property to sort the results by. Default: full_name Can be one of: created, updated, pushed, full_name Limit results to repositories of the specified type. Default: owner Can be one of: all, owner, member func (*RepositoriesService).ListByUser(ctx context.Context, user string, opts *RepositoryListByUserOptions) ([]*Repository, *Response, error)
RepositoryListForksOptions specifies the optional parameters to the RepositoriesService.ListForks method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. How to sort the forks list. Possible values are: newest, oldest, watchers. Default is "newest". func (*RepositoriesService).ListForks(ctx context.Context, owner, repo string, opts *RepositoryListForksOptions) ([]*Repository, *Response, error)
RepositoryListOptions specifies the optional parameters to the RepositoriesService.List method. See RepositoryListByAuthenticatedUserOptions.Affiliation See RepositoryListByUserOptions.Direction or RepositoryListByAuthenticatedUserOptions.Direction ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. See RepositoryListByUserOptions.Sort or RepositoryListByAuthenticatedUserOptions.Sort See RepositoryListByUserOptions.Type or RepositoryListByAuthenticatedUserOptions.Type See RepositoryListByAuthenticatedUserOptions.Visibility func (*RepositoriesService).List(ctx context.Context, user string, opts *RepositoryListOptions) ([]*Repository, *Response, error)
RepositoryMergeRequest represents a request to merge a branch in a repository. Base *string CommitMessage *string Head *string GetBase returns the Base field if it's non-nil, zero value otherwise. GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. GetHead returns the Head field if it's non-nil, zero value otherwise. func (*RepositoriesService).Merge(ctx context.Context, owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error)
RepositoryParticipation is the number of commits by everyone who has contributed to the repository (including the owner) as well as the number of commits by the owner themself. All []int Owner []int ( RepositoryParticipation) String() string RepositoryParticipation : expvar.Var RepositoryParticipation : fmt.Stringer func (*RepositoriesService).ListParticipation(ctx context.Context, owner, repo string) (*RepositoryParticipation, *Response, error)
RepositoryPermissionLevel represents the permission level an organization member has for a given repository. Possible values: "admin", "write", "read", "none" RoleName *string User *User GetPermission returns the Permission field if it's non-nil, zero value otherwise. GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*RepositoriesService).GetPermissionLevel(ctx context.Context, owner, repo, user string) (*RepositoryPermissionLevel, *Response, error)
RepositoryRelease represents a GitHub release in a repository. Assets []*ReleaseAsset AssetsURL *string Author *User Body *string CreatedAt *Timestamp DiscussionCategoryName *string Draft *bool The following fields are not used in EditRelease: HTMLURL *string The following fields are not used in CreateRelease or EditRelease: MakeLatest can be one of: "true", "false", or "legacy". Name *string NodeID *string Prerelease *bool PublishedAt *Timestamp TagName *string TarballURL *string TargetCommitish *string URL *string UploadURL *string ZipballURL *string GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. GetAuthor returns the Author field. GetBody returns the Body field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDiscussionCategoryName returns the DiscussionCategoryName field if it's non-nil, zero value otherwise. GetDraft returns the Draft field if it's non-nil, zero value otherwise. GetGenerateReleaseNotes returns the GenerateReleaseNotes field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetMakeLatest returns the MakeLatest field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. GetTagName returns the TagName field if it's non-nil, zero value otherwise. GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. ( RepositoryRelease) String() string RepositoryRelease : expvar.Var RepositoryRelease : fmt.Stringer func (*ReleaseEvent).GetRelease() *RepositoryRelease func (*RepositoriesService).CreateRelease(ctx context.Context, owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error) func (*RepositoriesService).EditRelease(ctx context.Context, owner, repo string, id int64, release *RepositoryRelease) (*RepositoryRelease, *Response, error) func (*RepositoriesService).GetLatestRelease(ctx context.Context, owner, repo string) (*RepositoryRelease, *Response, error) func (*RepositoriesService).GetRelease(ctx context.Context, owner, repo string, id int64) (*RepositoryRelease, *Response, error) func (*RepositoriesService).GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*RepositoryRelease, *Response, error) func (*RepositoriesService).ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryRelease, *Response, error) func (*RepositoriesService).CreateRelease(ctx context.Context, owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error) func (*RepositoriesService).EditRelease(ctx context.Context, owner, repo string, id int64, release *RepositoryRelease) (*RepositoryRelease, *Response, error)
RepositoryReleaseNotes represents a GitHub-generated release notes. Body string Name string func (*RepositoriesService).GenerateReleaseNotes(ctx context.Context, owner, repo string, opts *GenerateNotesOptions) (*RepositoryReleaseNotes, *Response, error)
RepositoryRule represents a GitHub Rule. Parameters *json.RawMessage RulesetID int64 RulesetSource string RulesetSourceType string Type string GetParameters returns the Parameters field if it's non-nil, zero value otherwise. UnmarshalJSON implements the json.Unmarshaler interface. This helps us handle the fact that RepositoryRule parameter field can be of numerous types. *RepositoryRule : github.com/goccy/go-json.Unmarshaler *RepositoryRule : encoding/json.Unmarshaler func NewBranchNamePatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCommitAuthorEmailPatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCommitMessagePatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCommitterEmailPatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCreationRule() (rule *RepositoryRule) func NewDeletionRule() (rule *RepositoryRule) func NewFileExtensionRestrictionRule(params *RuleFileExtensionRestrictionParameters) (rule *RepositoryRule) func NewFilePathRestrictionRule(params *RuleFileParameters) (rule *RepositoryRule) func NewMaxFilePathLengthRule(params *RuleMaxFilePathLengthParameters) (rule *RepositoryRule) func NewMaxFileSizeRule(params *RuleMaxFileSizeParameters) (rule *RepositoryRule) func NewMergeQueueRule(params *MergeQueueRuleParameters) (rule *RepositoryRule) func NewNonFastForwardRule() (rule *RepositoryRule) func NewPullRequestRule(params *PullRequestRuleParameters) (rule *RepositoryRule) func NewRequiredDeploymentsRule(params *RequiredDeploymentEnvironmentsRuleParameters) (rule *RepositoryRule) func NewRequiredLinearHistoryRule() (rule *RepositoryRule) func NewRequiredSignaturesRule() (rule *RepositoryRule) func NewRequiredStatusChecksRule(params *RequiredStatusChecksRuleParameters) (rule *RepositoryRule) func NewRequiredWorkflowsRule(params *RequiredWorkflowsRuleParameters) (rule *RepositoryRule) func NewTagNamePatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewUpdateRule(params *UpdateAllowsFetchAndMergeRuleParameters) (rule *RepositoryRule) func (*RepositoriesService).GetRulesForBranch(ctx context.Context, owner, repo, branch string) ([]*RepositoryRule, *Response, error)
RepositoryTag represents a repository tag. Commit *Commit Name *string TarballURL *string ZipballURL *string GetCommit returns the Commit field. GetName returns the Name field if it's non-nil, zero value otherwise. GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListTags(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*RepositoryTag, *Response, error)
RepositoryVulnerabilityAlert represents a repository security alert. AffectedPackageName *string AffectedRange *string CreatedAt *Timestamp DismissReason *string DismissedAt *Timestamp Dismisser *User ExternalIdentifier *string ExternalReference *string FixedIn *string GitHubSecurityAdvisoryID *string ID *int64 Severity *string GetAffectedPackageName returns the AffectedPackageName field if it's non-nil, zero value otherwise. GetAffectedRange returns the AffectedRange field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDismissReason returns the DismissReason field if it's non-nil, zero value otherwise. GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. GetDismisser returns the Dismisser field. GetExternalIdentifier returns the ExternalIdentifier field if it's non-nil, zero value otherwise. GetExternalReference returns the ExternalReference field if it's non-nil, zero value otherwise. GetFixedIn returns the FixedIn field if it's non-nil, zero value otherwise. GetGitHubSecurityAdvisoryID returns the GitHubSecurityAdvisoryID field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. func (*RepositoryVulnerabilityAlertEvent).GetAlert() *RepositoryVulnerabilityAlert
RepositoryVulnerabilityAlertEvent is triggered when a security alert is created, dismissed, or resolved. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#repository_vulnerability_alert Action is the action that was performed. Possible values are: "create", "dismiss", "resolve". The security alert of the vulnerable dependency. The following fields are only populated by Webhook events. The following field is only present when the webhook is triggered on a repository belonging to an organization. The repository of the vulnerable dependency. The user that triggered the event. GetAction returns the Action field if it's non-nil, zero value otherwise. GetAlert returns the Alert field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepository returns the Repository field. GetSender returns the Sender field.
RepoStats represents the number of total, root, fork, organization repositories together with the total number of pushes and wikis. ForkRepos *int OrgRepos *int RootRepos *int TotalPushes *int TotalRepos *int TotalWikis *int GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. ( RepoStats) String() string RepoStats : expvar.Var RepoStats : fmt.Stringer func (*AdminStats).GetRepos() *RepoStats
RepoStatus represents the status of a repository at a particular reference. AvatarURL is the URL of the avatar of this status. A string label to differentiate this status from the statuses of other systems. CreatedAt *Timestamp Creator *User Description is a short high level summary of the status. ID *int64 NodeID *string State is the current state of the repository. Possible values are: pending, success, error, or failure. TargetURL is the URL of the page representing this status. It will be linked from the GitHub UI to allow users to see the source of the status. URL *string UpdatedAt *Timestamp GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. GetContext returns the Context field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreator returns the Creator field. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( RepoStatus) String() string RepoStatus : expvar.Var RepoStatus : fmt.Stringer func (*RepositoriesService).CreateStatus(ctx context.Context, owner, repo, ref string, status *RepoStatus) (*RepoStatus, *Response, error) func (*RepositoriesService).ListStatuses(ctx context.Context, owner, repo, ref string, opts *ListOptions) ([]*RepoStatus, *Response, error) func (*RepositoriesService).CreateStatus(ctx context.Context, owner, repo, ref string, status *RepoStatus) (*RepoStatus, *Response, error)
RequestedAction is included in a CheckRunEvent when a user has invoked an action, i.e. when the CheckRunEvent's Action field is "requested_action". // The integrator reference of the action requested by the user. func (*CheckRunEvent).GetRequestedAction() *RequestedAction
RequestOption represents an option that can modify an http.Request. func WithVersion(version string) RequestOption func (*Client).NewFormRequest(urlStr string, body io.Reader, opts ...RequestOption) (*http.Request, error) func (*Client).NewRequest(method, urlStr string, body interface{}, opts ...RequestOption) (*http.Request, error) func (*Client).NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string, opts ...RequestOption) (*http.Request, error)
RequireCodeOwnerReviewChanges represents the changes made to the RequireCodeOwnerReview policy. From *bool GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetRequireCodeOwnerReview() *RequireCodeOwnerReviewChanges
RequiredConversationResolution requires all comments on the pull request to be resolved before it can be merged to a protected branch when enabled. Enabled bool func (*Protection).GetRequiredConversationResolution() *RequiredConversationResolution
RequiredConversationResolutionLevelChanges represents the changes made to the RequiredConversationResolutionLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetRequiredConversationResolutionLevel() *RequiredConversationResolutionLevelChanges
RequiredDeploymentEnvironmentsRuleParameters represents the required_deployments rule parameters. RequiredDeploymentEnvironments []string func NewRequiredDeploymentsRule(params *RequiredDeploymentEnvironmentsRuleParameters) (rule *RepositoryRule)
RequiredDeploymentsEnforcementLevelChanges represents the changes made to the RequiredDeploymentsEnforcementLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetRequiredDeploymentsEnforcementLevel() *RequiredDeploymentsEnforcementLevelChanges
RequiredReviewer represents a required reviewer. Reviewer interface{} Type *string GetType returns the Type field if it's non-nil, zero value otherwise. UnmarshalJSON implements the json.Unmarshaler interface. This helps us handle the fact that RequiredReviewer can have either a User or Team type reviewer field. *RequiredReviewer : github.com/goccy/go-json.Unmarshaler *RequiredReviewer : encoding/json.Unmarshaler
RequiredStatusCheck represents a status check of a protected branch. The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status. The name of the required check. GetAppID returns the AppID field if it's non-nil, zero value otherwise. func (*RequiredStatusChecks).GetChecks() []*RequiredStatusCheck
RequiredStatusChecks represents the protection status of a individual branch. The list of status checks to require in order to merge into this branch. An empty slice is valid. The list of status checks to require in order to merge into this branch. An empty slice is valid. (Deprecated. Note: only one of Contexts/Checks can be populated, but at least one must be populated). ContextsURL *string Require branches to be up to date before merging. (Required.) URL *string GetChecks returns the Checks field if it's non-nil, zero value otherwise. GetContexts returns the Contexts field if it's non-nil, zero value otherwise. GetContextsURL returns the ContextsURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*Protection).GetRequiredStatusChecks() *RequiredStatusChecks func (*ProtectionRequest).GetRequiredStatusChecks() *RequiredStatusChecks func (*RepositoriesService).GetRequiredStatusChecks(ctx context.Context, owner, repo, branch string) (*RequiredStatusChecks, *Response, error) func (*RepositoriesService).UpdateRequiredStatusChecks(ctx context.Context, owner, repo, branch string, sreq *RequiredStatusChecksRequest) (*RequiredStatusChecks, *Response, error)
RequiredStatusChecksChanges represents the changes made to the RequiredStatusChecks policy. From []string func (*ProtectionChanges).GetRequiredStatusChecks() *RequiredStatusChecksChanges
RequiredStatusChecksEnforcementLevelChanges represents the changes made to the RequiredStatusChecksEnforcementLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetRequiredStatusChecksEnforcementLevel() *RequiredStatusChecksEnforcementLevelChanges
RequiredStatusChecksRequest represents a request to edit a protected branch's status checks. Checks []*RequiredStatusCheck Deprecated. Note: if both Contexts and Checks are populated, the GitHub API will only use Checks. Strict *bool GetStrict returns the Strict field if it's non-nil, zero value otherwise. func (*RepositoriesService).UpdateRequiredStatusChecks(ctx context.Context, owner, repo, branch string, sreq *RequiredStatusChecksRequest) (*RequiredStatusChecks, *Response, error)
RequiredStatusChecksRuleParameters represents the required_status_checks rule parameters. DoNotEnforceOnCreate bool RequiredStatusChecks []RuleRequiredStatusChecks StrictRequiredStatusChecksPolicy bool func NewRequiredStatusChecksRule(params *RequiredStatusChecksRuleParameters) (rule *RepositoryRule)
RequiredWorkflowSelectedRepos represents the repos that a required workflow is applied to. Repositories []*Repository TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, opts *ListOptions) (*RequiredWorkflowSelectedRepos, *Response, error)
RequiredWorkflowsRuleParameters represents the workflows rule parameters. RequiredWorkflows []*RuleRequiredWorkflow func NewRequiredWorkflowsRule(params *RequiredWorkflowsRuleParameters) (rule *RepositoryRule)
RequireLinearHistory represents the configuration to enforce branches with no merge commit. Enabled bool func (*Protection).GetRequireLinearHistory() *RequireLinearHistory
Response is a GitHub API response. This wraps the standard http.Response returned from GitHub and provides convenient access to things like pagination links. After string For APIs that support before/after pagination, such as OrganizationsService.AuditLog. For APIs that support cursor pagination, such as RepositoriesService.ListHookDeliveries, the following field will be populated to point to the next page. Set ListCursorOptions.Cursor to this value when calling the endpoint again. FirstPage int LastPage int These fields provide the page values for paginating through a set of results. Any or all of these may be set to the zero value for responses that are not part of a paginated set, or for which there are no additional pages. These fields support what is called "offset pagination" and should be used with the ListOptions struct. Additionally, some APIs support "cursor pagination" instead of offset. This means that a token points directly to the next record which can lead to O(1) performance compared to O(n) performance provided by offset pagination. For APIs that support cursor pagination (such as TeamsService.ListIDPGroupsInOrganization), the following field will be populated to point to the next page. To use this token, set ListCursorOptions.Page to this value before calling the endpoint again. PrevPage int Explicitly specify the Rate type so Rate's String() receiver doesn't propagate to Response. Response *http.Response Body represents the response body. The response body is streamed on demand as the Body field is read. If the network connection fails or the server terminates the response, Body.Read calls return an error. The http Client and Transport guarantee that Body is always non-nil, even on responses without a body or responses with a zero-length body. It is the caller's responsibility to close Body. The default HTTP client's Transport may not reuse HTTP/1.x "keep-alive" TCP connections if the Body is not read to completion and closed. The Body is automatically dechunked if the server replied with a "chunked" Transfer-Encoding. As of Go 1.12, the Body will also implement io.Writer on a successful "101 Switching Protocols" response, as used by WebSockets and HTTP/2's "h2c" mode. Close records whether the header directed that the connection be closed after reading Body. The value is advice for clients: neither ReadResponse nor Response.Write ever closes a connection. ContentLength records the length of the associated content. The value -1 indicates that the length is unknown. Unless Request.Method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body. Header maps header keys to values. If the response had multiple headers with the same key, they may be concatenated, with comma delimiters. (RFC 7230, section 3.2.2 requires that multiple headers be semantically equivalent to a comma-delimited sequence.) When Header values are duplicated by other fields in this struct (e.g., ContentLength, TransferEncoding, Trailer), the field values are authoritative. Keys in the map are canonicalized (see CanonicalHeaderKey). // e.g. "HTTP/1.0" // e.g. 1 // e.g. 0 Request is the request that was sent to obtain this Response. Request's Body is nil (having already been consumed). This is only populated for Client requests. // e.g. "200 OK" // e.g. 200 TLS contains information about the TLS connection on which the response was received. It is nil for unencrypted responses. The pointer is shared between responses and should not be modified. Trailer maps trailer keys to values in the same format as Header. The Trailer initially contains only nil values, one for each key specified in the server's "Trailer" header value. Those values are not added to Header. Trailer must not be accessed concurrently with Read calls on the Body. After Body.Read has returned io.EOF, Trailer will contain any trailer values sent by the server. Contains transfer encodings from outer-most to inner-most. Value is nil, means that "identity" encoding is used. Uncompressed reports whether the response was sent compressed but was decompressed by the http package. When true, reading from Body yields the uncompressed content instead of the compressed content actually set from the server, ContentLength is set to -1, and the "Content-Length" and "Content-Encoding" fields are deleted from the responseHeader. To get the original response from the server, set Transport.DisableCompression to true. token's expiration date. Timestamp is 0001-01-01 when token doesn't expire. So it is valid for TokenExpiration.Equal(Timestamp{}) or TokenExpiration.Time.After(time.Now()) Cookies parses and returns the cookies set in the Set-Cookie headers. Location returns the URL of the response's "Location" header, if present. Relative redirects are resolved relative to [Response.Request]. [ErrNoLocation] is returned if no Location header is present. ProtoAtLeast reports whether the HTTP protocol used in the response is at least major.minor. Write writes r to w in the HTTP/1.x server response format, including the status line, headers, body, and optional trailer. This method consults the following fields of the response r: StatusCode ProtoMajor ProtoMinor Request.Method TransferEncoding Trailer Body ContentLength Header, values for non-canonical keys will have unpredictable behavior The Response Body is closed after it is sent. func (*ActionsService).AddEnabledOrgInEnterprise(ctx context.Context, owner string, organizationID int64) (*Response, error) func (*ActionsService).AddEnabledReposInOrg(ctx context.Context, owner string, repositoryID int64) (*Response, error) func (*ActionsService).AddRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID, repoID int64) (*Response, error) func (*ActionsService).AddRepoToRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID, repoID int64) (*Response, error) func (*ActionsService).AddRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) func (*ActionsService).AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).AddSelectedRepoToOrgVariable(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).CancelWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*Response, error) func (*ActionsService).CreateEnvVariable(ctx context.Context, owner, repo, env string, variable *ActionsVariable) (*Response, error) func (*ActionsService).CreateOrganizationRegistrationToken(ctx context.Context, org string) (*RegistrationToken, *Response, error) func (*ActionsService).CreateOrganizationRemoveToken(ctx context.Context, org string) (*RemoveToken, *Response, error) func (*ActionsService).CreateOrganizationRunnerGroup(ctx context.Context, org string, createReq CreateRunnerGroupRequest) (*RunnerGroup, *Response, error) func (*ActionsService).CreateOrgVariable(ctx context.Context, org string, variable *ActionsVariable) (*Response, error) func (*ActionsService).CreateOrUpdateEnvSecret(ctx context.Context, repoID int, env string, eSecret *EncryptedSecret) (*Response, error) func (*ActionsService).CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error) func (*ActionsService).CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error) func (*ActionsService).CreateRegistrationToken(ctx context.Context, owner, repo string) (*RegistrationToken, *Response, error) func (*ActionsService).CreateRemoveToken(ctx context.Context, owner, repo string) (*RemoveToken, *Response, error) func (*ActionsService).CreateRepoVariable(ctx context.Context, owner, repo string, variable *ActionsVariable) (*Response, error) func (*ActionsService).CreateRequiredWorkflow(ctx context.Context, org string, createRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error) func (*ActionsService).CreateWorkflowDispatchEventByFileName(ctx context.Context, owner, repo, workflowFileName string, event CreateWorkflowDispatchEventRequest) (*Response, error) func (*ActionsService).CreateWorkflowDispatchEventByID(ctx context.Context, owner, repo string, workflowID int64, event CreateWorkflowDispatchEventRequest) (*Response, error) func (*ActionsService).DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Response, error) func (*ActionsService).DeleteCachesByID(ctx context.Context, owner, repo string, cacheID int64) (*Response, error) func (*ActionsService).DeleteCachesByKey(ctx context.Context, owner, repo, key string, ref *string) (*Response, error) func (*ActionsService).DeleteEnvSecret(ctx context.Context, repoID int, env, secretName string) (*Response, error) func (*ActionsService).DeleteEnvVariable(ctx context.Context, owner, repo, env, variableName string) (*Response, error) func (*ActionsService).DeleteOrganizationRunnerGroup(ctx context.Context, org string, groupID int64) (*Response, error) func (*ActionsService).DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error) func (*ActionsService).DeleteOrgVariable(ctx context.Context, org, name string) (*Response, error) func (*ActionsService).DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error) func (*ActionsService).DeleteRepoVariable(ctx context.Context, owner, repo, name string) (*Response, error) func (*ActionsService).DeleteRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64) (*Response, error) func (*ActionsService).DeleteWorkflowRun(ctx context.Context, owner, repo string, runID int64) (*Response, error) func (*ActionsService).DeleteWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64) (*Response, error) func (*ActionsService).DisableWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Response, error) func (*ActionsService).DisableWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Response, error) func (*ActionsService).DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, maxRedirects int) (*url.URL, *Response, error) func (*ActionsService).EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*ActionsService).EditActionsAllowedInEnterprise(ctx context.Context, enterprise string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*ActionsService).EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error) func (*ActionsService).EditActionsPermissionsInEnterprise(ctx context.Context, enterprise string, actionsPermissionsEnterprise ActionsPermissionsEnterprise) (*ActionsPermissionsEnterprise, *Response, error) func (*ActionsService).EditDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string, permissions DefaultWorkflowPermissionEnterprise) (*DefaultWorkflowPermissionEnterprise, *Response, error) func (*ActionsService).EditDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string, permissions DefaultWorkflowPermissionOrganization) (*DefaultWorkflowPermissionOrganization, *Response, error) func (*ActionsService).EnableWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Response, error) func (*ActionsService).EnableWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Response, error) func (*ActionsService).GenerateOrgJITConfig(ctx context.Context, org string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*ActionsService).GenerateRepoJITConfig(ctx context.Context, owner, repo string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*ActionsService).GetActionsAllowed(ctx context.Context, org string) (*ActionsAllowed, *Response, error) func (*ActionsService).GetActionsAllowedInEnterprise(ctx context.Context, enterprise string) (*ActionsAllowed, *Response, error) func (*ActionsService).GetActionsPermissions(ctx context.Context, org string) (*ActionsPermissions, *Response, error) func (*ActionsService).GetActionsPermissionsInEnterprise(ctx context.Context, enterprise string) (*ActionsPermissionsEnterprise, *Response, error) func (*ActionsService).GetArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Artifact, *Response, error) func (*ActionsService).GetCacheUsageForRepo(ctx context.Context, owner, repo string) (*ActionsCacheUsage, *Response, error) func (*ActionsService).GetDefaultWorkflowPermissionsInEnterprise(ctx context.Context, enterprise string) (*DefaultWorkflowPermissionEnterprise, *Response, error) func (*ActionsService).GetDefaultWorkflowPermissionsInOrganization(ctx context.Context, org string) (*DefaultWorkflowPermissionOrganization, *Response, error) func (*ActionsService).GetEnvPublicKey(ctx context.Context, repoID int, env string) (*PublicKey, *Response, error) func (*ActionsService).GetEnvSecret(ctx context.Context, repoID int, env, secretName string) (*Secret, *Response, error) func (*ActionsService).GetEnvVariable(ctx context.Context, owner, repo, env, variableName string) (*ActionsVariable, *Response, error) func (*ActionsService).GetOrganizationRunner(ctx context.Context, org string, runnerID int64) (*Runner, *Response, error) func (*ActionsService).GetOrganizationRunnerGroup(ctx context.Context, org string, groupID int64) (*RunnerGroup, *Response, error) func (*ActionsService).GetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string) (*OIDCSubjectClaimCustomTemplate, *Response, error) func (*ActionsService).GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) func (*ActionsService).GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error) func (*ActionsService).GetOrgVariable(ctx context.Context, org, name string) (*ActionsVariable, *Response, error) func (*ActionsService).GetPendingDeployments(ctx context.Context, owner, repo string, runID int64) ([]*PendingDeployment, *Response, error) func (*ActionsService).GetRepoOIDCSubjectClaimCustomTemplate(ctx context.Context, owner, repo string) (*OIDCSubjectClaimCustomTemplate, *Response, error) func (*ActionsService).GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) func (*ActionsService).GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error) func (*ActionsService).GetRepoVariable(ctx context.Context, owner, repo, name string) (*ActionsVariable, *Response, error) func (*ActionsService).GetRequiredWorkflowByID(ctx context.Context, owner string, requiredWorkflowID int64) (*OrgRequiredWorkflow, *Response, error) func (*ActionsService).GetRunner(ctx context.Context, owner, repo string, runnerID int64) (*Runner, *Response, error) func (*ActionsService).GetTotalCacheUsageForEnterprise(ctx context.Context, enterprise string) (*TotalCacheUsage, *Response, error) func (*ActionsService).GetTotalCacheUsageForOrg(ctx context.Context, org string) (*TotalCacheUsage, *Response, error) func (*ActionsService).GetWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Workflow, *Response, error) func (*ActionsService).GetWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Workflow, *Response, error) func (*ActionsService).GetWorkflowJobByID(ctx context.Context, owner, repo string, jobID int64) (*WorkflowJob, *Response, error) func (*ActionsService).GetWorkflowJobLogs(ctx context.Context, owner, repo string, jobID int64, maxRedirects int) (*url.URL, *Response, error) func (*ActionsService).GetWorkflowRunAttempt(ctx context.Context, owner, repo string, runID int64, attemptNumber int, opts *WorkflowRunAttemptOptions) (*WorkflowRun, *Response, error) func (*ActionsService).GetWorkflowRunAttemptLogs(ctx context.Context, owner, repo string, runID int64, attemptNumber int, maxRedirects int) (*url.URL, *Response, error) func (*ActionsService).GetWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRun, *Response, error) func (*ActionsService).GetWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64, maxRedirects int) (*url.URL, *Response, error) func (*ActionsService).GetWorkflowRunUsageByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRunUsage, *Response, error) func (*ActionsService).GetWorkflowUsageByFileName(ctx context.Context, owner, repo, workflowFileName string) (*WorkflowUsage, *Response, error) func (*ActionsService).GetWorkflowUsageByID(ctx context.Context, owner, repo string, workflowID int64) (*WorkflowUsage, *Response, error) func (*ActionsService).ListArtifacts(ctx context.Context, owner, repo string, opts *ListOptions) (*ArtifactList, *Response, error) func (*ActionsService).ListCaches(ctx context.Context, owner, repo string, opts *ActionsCacheListOptions) (*ActionsCacheList, *Response, error) func (*ActionsService).ListCacheUsageByRepoForOrg(ctx context.Context, org string, opts *ListOptions) (*ActionsCacheUsageList, *Response, error) func (*ActionsService).ListEnabledOrgsInEnterprise(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnEnterpriseRepos, *Response, error) func (*ActionsService).ListEnabledReposInOrg(ctx context.Context, owner string, opts *ListOptions) (*ActionsEnabledOnOrgRepos, *Response, error) func (*ActionsService).ListEnvSecrets(ctx context.Context, repoID int, env string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListEnvVariables(ctx context.Context, owner, repo, env string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListOrganizationRunnerApplicationDownloads(ctx context.Context, org string) ([]*RunnerApplicationDownload, *Response, error) func (*ActionsService).ListOrganizationRunnerGroups(ctx context.Context, org string, opts *ListOrgRunnerGroupOptions) (*RunnerGroups, *Response, error) func (*ActionsService).ListOrganizationRunners(ctx context.Context, org string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*ActionsService).ListOrgRequiredWorkflows(ctx context.Context, org string, opts *ListOptions) (*OrgRequiredWorkflows, *Response, error) func (*ActionsService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListOrgVariables(ctx context.Context, org string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRepoOrgSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListRepoOrgVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRepoRequiredWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*RepoRequiredWorkflows, *Response, error) func (*ActionsService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, opts *ListOptions) (*ListRepositories, *Response, error) func (*ActionsService).ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListRepoVariables(ctx context.Context, owner, repo string, opts *ListOptions) (*ActionsVariables, *Response, error) func (*ActionsService).ListRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, opts *ListOptions) (*RequiredWorkflowSelectedRepos, *Response, error) func (*ActionsService).ListRunnerApplicationDownloads(ctx context.Context, owner, repo string) ([]*RunnerApplicationDownload, *Response, error) func (*ActionsService).ListRunnerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) func (*ActionsService).ListRunners(ctx context.Context, owner, repo string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*ActionsService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*ActionsService).ListSelectedReposForOrgVariable(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*ActionsService).ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, opts *ListWorkflowJobsOptions) (*Jobs, *Response, error) func (*ActionsService).ListWorkflowJobsAttempt(ctx context.Context, owner, repo string, runID, attemptNumber int64, opts *ListOptions) (*Jobs, *Response, error) func (*ActionsService).ListWorkflowRunArtifacts(ctx context.Context, owner, repo string, runID int64, opts *ListOptions) (*ArtifactList, *Response, error) func (*ActionsService).ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListWorkflowRunsByID(ctx context.Context, owner, repo string, workflowID int64, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*Workflows, *Response, error) func (*ActionsService).PendingDeployments(ctx context.Context, owner, repo string, runID int64, request *PendingDeploymentsRequest) ([]*Deployment, *Response, error) func (*ActionsService).RemoveEnabledOrgInEnterprise(ctx context.Context, owner string, organizationID int64) (*Response, error) func (*ActionsService).RemoveEnabledReposInOrg(ctx context.Context, owner string, repositoryID int64) (*Response, error) func (*ActionsService).RemoveOrganizationRunner(ctx context.Context, org string, runnerID int64) (*Response, error) func (*ActionsService).RemoveRepoFromRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID, repoID int64) (*Response, error) func (*ActionsService).RemoveRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID, repoID int64) (*Response, error) func (*ActionsService).RemoveRunner(ctx context.Context, owner, repo string, runnerID int64) (*Response, error) func (*ActionsService).RemoveRunnerGroupRunners(ctx context.Context, org string, groupID, runnerID int64) (*Response, error) func (*ActionsService).RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).RemoveSelectedRepoFromOrgVariable(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*ActionsService).RerunFailedJobsByID(ctx context.Context, owner, repo string, runID int64) (*Response, error) func (*ActionsService).RerunJobByID(ctx context.Context, owner, repo string, jobID int64) (*Response, error) func (*ActionsService).RerunWorkflowByID(ctx context.Context, owner, repo string, runID int64) (*Response, error) func (*ActionsService).ReviewCustomDeploymentProtectionRule(ctx context.Context, owner, repo string, runID int64, request *ReviewCustomDeploymentProtectionRuleRequest) (*Response, error) func (*ActionsService).SetEnabledOrgsInEnterprise(ctx context.Context, owner string, organizationIDs []int64) (*Response, error) func (*ActionsService).SetEnabledReposInOrg(ctx context.Context, owner string, repositoryIDs []int64) (*Response, error) func (*ActionsService).SetOrgOIDCSubjectClaimCustomTemplate(ctx context.Context, org string, template *OIDCSubjectClaimCustomTemplate) (*Response, error) func (*ActionsService).SetRepoOIDCSubjectClaimCustomTemplate(ctx context.Context, owner, repo string, template *OIDCSubjectClaimCustomTemplate) (*Response, error) func (*ActionsService).SetRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, ids SetRepoAccessRunnerGroupRequest) (*Response, error) func (*ActionsService).SetRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, ids SelectedRepoIDs) (*Response, error) func (*ActionsService).SetRunnerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) func (*ActionsService).SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error) func (*ActionsService).SetSelectedReposForOrgVariable(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error) func (*ActionsService).UpdateEnvVariable(ctx context.Context, owner, repo, env string, variable *ActionsVariable) (*Response, error) func (*ActionsService).UpdateOrganizationRunnerGroup(ctx context.Context, org string, groupID int64, updateReq UpdateRunnerGroupRequest) (*RunnerGroup, *Response, error) func (*ActionsService).UpdateOrgVariable(ctx context.Context, org string, variable *ActionsVariable) (*Response, error) func (*ActionsService).UpdateRepoVariable(ctx context.Context, owner, repo string, variable *ActionsVariable) (*Response, error) func (*ActionsService).UpdateRequiredWorkflow(ctx context.Context, org string, requiredWorkflowID int64, updateRequiredWorkflowOptions *CreateUpdateRequiredWorkflowOptions) (*OrgRequiredWorkflow, *Response, error) func (*ActivityService).DeleteRepositorySubscription(ctx context.Context, owner, repo string) (*Response, error) func (*ActivityService).DeleteThreadSubscription(ctx context.Context, id string) (*Response, error) func (*ActivityService).GetRepositorySubscription(ctx context.Context, owner, repo string) (*Subscription, *Response, error) func (*ActivityService).GetThread(ctx context.Context, id string) (*Notification, *Response, error) func (*ActivityService).GetThreadSubscription(ctx context.Context, id string) (*Subscription, *Response, error) func (*ActivityService).IsStarred(ctx context.Context, owner, repo string) (bool, *Response, error) func (*ActivityService).ListEvents(ctx context.Context, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsForOrganization(ctx context.Context, org string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListFeeds(ctx context.Context) (*Feeds, *Response, error) func (*ActivityService).ListIssueEventsForRepository(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*ActivityService).ListNotifications(ctx context.Context, opts *NotificationListOptions) ([]*Notification, *Response, error) func (*ActivityService).ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListRepositoryNotifications(ctx context.Context, owner, repo string, opts *NotificationListOptions) ([]*Notification, *Response, error) func (*ActivityService).ListStargazers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Stargazer, *Response, error) func (*ActivityService).ListStarred(ctx context.Context, user string, opts *ActivityListStarredOptions) ([]*StarredRepository, *Response, error) func (*ActivityService).ListUserEventsForOrganization(ctx context.Context, org, user string, opts *ListOptions) ([]*Event, *Response, error) func (*ActivityService).ListWatched(ctx context.Context, user string, opts *ListOptions) ([]*Repository, *Response, error) func (*ActivityService).ListWatchers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error) func (*ActivityService).MarkNotificationsRead(ctx context.Context, lastRead Timestamp) (*Response, error) func (*ActivityService).MarkRepositoryNotificationsRead(ctx context.Context, owner, repo string, lastRead Timestamp) (*Response, error) func (*ActivityService).MarkThreadDone(ctx context.Context, id int64) (*Response, error) func (*ActivityService).MarkThreadRead(ctx context.Context, id string) (*Response, error) func (*ActivityService).SetRepositorySubscription(ctx context.Context, owner, repo string, subscription *Subscription) (*Subscription, *Response, error) func (*ActivityService).SetThreadSubscription(ctx context.Context, id string, subscription *Subscription) (*Subscription, *Response, error) func (*ActivityService).Star(ctx context.Context, owner, repo string) (*Response, error) func (*ActivityService).Unstar(ctx context.Context, owner, repo string) (*Response, error) func (*AdminService).CreateOrg(ctx context.Context, org *Organization, admin string) (*Organization, *Response, error) func (*AdminService).CreateUser(ctx context.Context, userReq CreateUserRequest) (*User, *Response, error) func (*AdminService).CreateUserImpersonation(ctx context.Context, username string, opts *ImpersonateUserOptions) (*UserAuthorization, *Response, error) func (*AdminService).DeleteUser(ctx context.Context, username string) (*Response, error) func (*AdminService).DeleteUserImpersonation(ctx context.Context, username string) (*Response, error) func (*AdminService).GetAdminStats(ctx context.Context) (*AdminStats, *Response, error) func (*AdminService).RenameOrg(ctx context.Context, org *Organization, newName string) (*RenameOrgResponse, *Response, error) func (*AdminService).RenameOrgByName(ctx context.Context, org, newName string) (*RenameOrgResponse, *Response, error) func (*AdminService).UpdateTeamLDAPMapping(ctx context.Context, team int64, mapping *TeamLDAPMapping) (*TeamLDAPMapping, *Response, error) func (*AdminService).UpdateUserLDAPMapping(ctx context.Context, user string, mapping *UserLDAPMapping) (*UserLDAPMapping, *Response, error) func (*AppsService).AddRepository(ctx context.Context, instID, repoID int64) (*Repository, *Response, error) func (*AppsService).CompleteAppManifest(ctx context.Context, code string) (*AppConfig, *Response, error) func (*AppsService).CreateAttachment(ctx context.Context, contentReferenceID int64, title, body string) (*Attachment, *Response, error) func (*AppsService).CreateInstallationToken(ctx context.Context, id int64, opts *InstallationTokenOptions) (*InstallationToken, *Response, error) func (*AppsService).CreateInstallationTokenListRepos(ctx context.Context, id int64, opts *InstallationTokenListRepoOptions) (*InstallationToken, *Response, error) func (*AppsService).DeleteInstallation(ctx context.Context, id int64) (*Response, error) func (*AppsService).FindOrganizationInstallation(ctx context.Context, org string) (*Installation, *Response, error) func (*AppsService).FindRepositoryInstallation(ctx context.Context, owner, repo string) (*Installation, *Response, error) func (*AppsService).FindRepositoryInstallationByID(ctx context.Context, id int64) (*Installation, *Response, error) func (*AppsService).FindUserInstallation(ctx context.Context, user string) (*Installation, *Response, error) func (*AppsService).Get(ctx context.Context, appSlug string) (*App, *Response, error) func (*AppsService).GetHookConfig(ctx context.Context) (*HookConfig, *Response, error) func (*AppsService).GetHookDelivery(ctx context.Context, deliveryID int64) (*HookDelivery, *Response, error) func (*AppsService).GetInstallation(ctx context.Context, id int64) (*Installation, *Response, error) func (*AppsService).ListHookDeliveries(ctx context.Context, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*AppsService).ListInstallationRequests(ctx context.Context, opts *ListOptions) ([]*InstallationRequest, *Response, error) func (*AppsService).ListInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error) func (*AppsService).ListRepos(ctx context.Context, opts *ListOptions) (*ListRepositories, *Response, error) func (*AppsService).ListUserInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error) func (*AppsService).ListUserRepos(ctx context.Context, id int64, opts *ListOptions) (*ListRepositories, *Response, error) func (*AppsService).RedeliverHookDelivery(ctx context.Context, deliveryID int64) (*HookDelivery, *Response, error) func (*AppsService).RemoveRepository(ctx context.Context, instID, repoID int64) (*Response, error) func (*AppsService).RevokeInstallationToken(ctx context.Context) (*Response, error) func (*AppsService).SuspendInstallation(ctx context.Context, id int64) (*Response, error) func (*AppsService).UnsuspendInstallation(ctx context.Context, id int64) (*Response, error) func (*AppsService).UpdateHookConfig(ctx context.Context, config *HookConfig) (*HookConfig, *Response, error) func (*AuthorizationsService).Check(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error) func (*AuthorizationsService).CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error) func (*AuthorizationsService).DeleteGrant(ctx context.Context, clientID, accessToken string) (*Response, error) func (*AuthorizationsService).DeleteImpersonation(ctx context.Context, username string) (*Response, error) func (*AuthorizationsService).Reset(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error) func (*AuthorizationsService).Revoke(ctx context.Context, clientID, accessToken string) (*Response, error) func (*BillingService).GetActionsBillingOrg(ctx context.Context, org string) (*ActionBilling, *Response, error) func (*BillingService).GetActionsBillingUser(ctx context.Context, user string) (*ActionBilling, *Response, error) func (*BillingService).GetAdvancedSecurityActiveCommittersOrg(ctx context.Context, org string, opts *ListOptions) (*ActiveCommitters, *Response, error) func (*BillingService).GetPackagesBillingOrg(ctx context.Context, org string) (*PackageBilling, *Response, error) func (*BillingService).GetPackagesBillingUser(ctx context.Context, user string) (*PackageBilling, *Response, error) func (*BillingService).GetStorageBillingOrg(ctx context.Context, org string) (*StorageBilling, *Response, error) func (*BillingService).GetStorageBillingUser(ctx context.Context, user string) (*StorageBilling, *Response, error) func (*ChecksService).CreateCheckRun(ctx context.Context, owner, repo string, opts CreateCheckRunOptions) (*CheckRun, *Response, error) func (*ChecksService).CreateCheckSuite(ctx context.Context, owner, repo string, opts CreateCheckSuiteOptions) (*CheckSuite, *Response, error) func (*ChecksService).GetCheckRun(ctx context.Context, owner, repo string, checkRunID int64) (*CheckRun, *Response, error) func (*ChecksService).GetCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*CheckSuite, *Response, error) func (*ChecksService).ListCheckRunAnnotations(ctx context.Context, owner, repo string, checkRunID int64, opts *ListOptions) ([]*CheckRunAnnotation, *Response, error) func (*ChecksService).ListCheckRunsCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error) func (*ChecksService).ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error) func (*ChecksService).ListCheckSuitesForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckSuiteOptions) (*ListCheckSuiteResults, *Response, error) func (*ChecksService).ReRequestCheckRun(ctx context.Context, owner, repo string, checkRunID int64) (*Response, error) func (*ChecksService).ReRequestCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*Response, error) func (*ChecksService).SetCheckSuitePreferences(ctx context.Context, owner, repo string, opts CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error) func (*ChecksService).UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, opts UpdateCheckRunOptions) (*CheckRun, *Response, error) func (*Client).APIMeta(ctx context.Context) (*APIMeta, *Response, error) func (*Client).BareDo(ctx context.Context, req *http.Request) (*Response, error) func (*Client).Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error) func (*Client).GetCodeOfConduct(ctx context.Context, key string) (*CodeOfConduct, *Response, error) func (*Client).ListCodesOfConduct(ctx context.Context) ([]*CodeOfConduct, *Response, error) func (*Client).ListEmojis(ctx context.Context) (map[string]string, *Response, error) func (*Client).Octocat(ctx context.Context, message string) (string, *Response, error) func (*Client).RateLimits(ctx context.Context) (*RateLimits, *Response, error) func (*Client).Zen(ctx context.Context) (string, *Response, error) func (*CodeScanningService).DeleteAnalysis(ctx context.Context, owner, repo string, id int64) (*DeleteAnalysis, *Response, error) func (*CodeScanningService).GetAlert(ctx context.Context, owner, repo string, id int64) (*Alert, *Response, error) func (*CodeScanningService).GetAnalysis(ctx context.Context, owner, repo string, id int64) (*ScanningAnalysis, *Response, error) func (*CodeScanningService).GetCodeQLDatabase(ctx context.Context, owner, repo, language string) (*CodeQLDatabase, *Response, error) func (*CodeScanningService).GetDefaultSetupConfiguration(ctx context.Context, owner, repo string) (*DefaultSetupConfiguration, *Response, error) func (*CodeScanningService).GetSARIF(ctx context.Context, owner, repo, sarifID string) (*SARIFUpload, *Response, error) func (*CodeScanningService).ListAlertInstances(ctx context.Context, owner, repo string, id int64, opts *AlertInstancesListOptions) ([]*MostRecentInstance, *Response, error) func (*CodeScanningService).ListAlertsForOrg(ctx context.Context, org string, opts *AlertListOptions) ([]*Alert, *Response, error) func (*CodeScanningService).ListAlertsForRepo(ctx context.Context, owner, repo string, opts *AlertListOptions) ([]*Alert, *Response, error) func (*CodeScanningService).ListAnalysesForRepo(ctx context.Context, owner, repo string, opts *AnalysesListOptions) ([]*ScanningAnalysis, *Response, error) func (*CodeScanningService).ListCodeQLDatabases(ctx context.Context, owner, repo string) ([]*CodeQLDatabase, *Response, error) func (*CodeScanningService).UpdateAlert(ctx context.Context, owner, repo string, id int64, stateInfo *CodeScanningAlertState) (*Alert, *Response, error) func (*CodeScanningService).UpdateDefaultSetupConfiguration(ctx context.Context, owner, repo string, options *UpdateDefaultSetupConfigurationOptions) (*UpdateDefaultSetupConfigurationResponse, *Response, error) func (*CodeScanningService).UploadSarif(ctx context.Context, owner, repo string, sarif *SarifAnalysis) (*SarifID, *Response, error) func (*CodesOfConductService).Get(ctx context.Context, key string) (*CodeOfConduct, *Response, error) func (*CodesOfConductService).List(ctx context.Context) ([]*CodeOfConduct, *Response, error) func (*CodespacesService).AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*CodespacesService).AddSelectedRepoToUserSecret(ctx context.Context, name string, repo *Repository) (*Response, error) func (*CodespacesService).CreateInRepo(ctx context.Context, owner, repo string, request *CreateCodespaceOptions) (*Codespace, *Response, error) func (*CodespacesService).CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error) func (*CodespacesService).CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error) func (*CodespacesService).CreateOrUpdateUserSecret(ctx context.Context, eSecret *EncryptedSecret) (*Response, error) func (*CodespacesService).Delete(ctx context.Context, codespaceName string) (*Response, error) func (*CodespacesService).DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error) func (*CodespacesService).DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error) func (*CodespacesService).DeleteUserSecret(ctx context.Context, name string) (*Response, error) func (*CodespacesService).GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) func (*CodespacesService).GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error) func (*CodespacesService).GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) func (*CodespacesService).GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error) func (*CodespacesService).GetUserPublicKey(ctx context.Context) (*PublicKey, *Response, error) func (*CodespacesService).GetUserSecret(ctx context.Context, name string) (*Secret, *Response, error) func (*CodespacesService).List(ctx context.Context, opts *ListCodespacesOptions) (*ListCodespaces, *Response, error) func (*CodespacesService).ListInRepo(ctx context.Context, owner, repo string, opts *ListOptions) (*ListCodespaces, *Response, error) func (*CodespacesService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*CodespacesService).ListSelectedReposForUserSecret(ctx context.Context, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*CodespacesService).ListUserSecrets(ctx context.Context, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*CodespacesService).RemoveSelectedRepoFromUserSecret(ctx context.Context, name string, repo *Repository) (*Response, error) func (*CodespacesService).SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error) func (*CodespacesService).SetSelectedReposForUserSecret(ctx context.Context, name string, ids SelectedRepoIDs) (*Response, error) func (*CodespacesService).Start(ctx context.Context, codespaceName string) (*Codespace, *Response, error) func (*CodespacesService).Stop(ctx context.Context, codespaceName string) (*Codespace, *Response, error) func (*CopilotService).AddCopilotTeams(ctx context.Context, org string, teamNames []string) (*SeatAssignments, *Response, error) func (*CopilotService).AddCopilotUsers(ctx context.Context, org string, users []string) (*SeatAssignments, *Response, error) func (*CopilotService).GetCopilotBilling(ctx context.Context, org string) (*CopilotOrganizationDetails, *Response, error) func (*CopilotService).GetSeatDetails(ctx context.Context, org, user string) (*CopilotSeatDetails, *Response, error) func (*CopilotService).ListCopilotSeats(ctx context.Context, org string, opts *ListOptions) (*ListCopilotSeatsResponse, *Response, error) func (*CopilotService).RemoveCopilotTeams(ctx context.Context, org string, teamNames []string) (*SeatCancellations, *Response, error) func (*CopilotService).RemoveCopilotUsers(ctx context.Context, org string, users []string) (*SeatCancellations, *Response, error) func (*DependabotService).AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*DependabotService).CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *DependabotEncryptedSecret) (*Response, error) func (*DependabotService).CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *DependabotEncryptedSecret) (*Response, error) func (*DependabotService).DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error) func (*DependabotService).DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error) func (*DependabotService).GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error) func (*DependabotService).GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error) func (*DependabotService).GetRepoAlert(ctx context.Context, owner, repo string, number int) (*DependabotAlert, *Response, error) func (*DependabotService).GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error) func (*DependabotService).GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error) func (*DependabotService).ListOrgAlerts(ctx context.Context, org string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error) func (*DependabotService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*DependabotService).ListRepoAlerts(ctx context.Context, owner, repo string, opts *ListAlertsOptions) ([]*DependabotAlert, *Response, error) func (*DependabotService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*DependabotService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*DependabotService).RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error) func (*DependabotService).SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids DependabotSecretsSelectedRepoIDs) (*Response, error) func (*DependabotService).UpdateAlert(ctx context.Context, owner, repo string, number int, stateInfo *DependabotAlertState) (*DependabotAlert, *Response, error) func (*DependencyGraphService).CreateSnapshot(ctx context.Context, owner, repo string, dependencyGraphSnapshot *DependencyGraphSnapshot) (*DependencyGraphSnapshotCreationData, *Response, error) func (*DependencyGraphService).GetSBOM(ctx context.Context, owner, repo string) (*SBOM, *Response, error) func (*EmojisService).List(ctx context.Context) (map[string]string, *Response, error) func (*EnterpriseService).AddOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID, orgID int64) (*Response, error) func (*EnterpriseService).AddRunnerGroupRunners(ctx context.Context, enterprise string, groupID, runnerID int64) (*Response, error) func (*EnterpriseService).CreateEnterpriseRunnerGroup(ctx context.Context, enterprise string, createReq CreateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error) func (*EnterpriseService).CreateRegistrationToken(ctx context.Context, enterprise string) (*RegistrationToken, *Response, error) func (*EnterpriseService).DeleteEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64) (*Response, error) func (*EnterpriseService).EnableDisableSecurityFeature(ctx context.Context, enterprise, securityProduct, enablement string) (*Response, error) func (*EnterpriseService).GenerateEnterpriseJITConfig(ctx context.Context, enterprise string, request *GenerateJITConfigRequest) (*JITRunnerConfig, *Response, error) func (*EnterpriseService).GetAuditLog(ctx context.Context, enterprise string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error) func (*EnterpriseService).GetCodeSecurityAndAnalysis(ctx context.Context, enterprise string) (*EnterpriseSecurityAnalysisSettings, *Response, error) func (*EnterpriseService).GetEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64) (*EnterpriseRunnerGroup, *Response, error) func (*EnterpriseService).GetRunner(ctx context.Context, enterprise string, runnerID int64) (*Runner, *Response, error) func (*EnterpriseService).ListOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*ListOrganizations, *Response, error) func (*EnterpriseService).ListRunnerApplicationDownloads(ctx context.Context, enterprise string) ([]*RunnerApplicationDownload, *Response, error) func (*EnterpriseService).ListRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*Runners, *Response, error) func (*EnterpriseService).ListRunnerGroups(ctx context.Context, enterprise string, opts *ListEnterpriseRunnerGroupOptions) (*EnterpriseRunnerGroups, *Response, error) func (*EnterpriseService).ListRunners(ctx context.Context, enterprise string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*EnterpriseService).RemoveOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID, orgID int64) (*Response, error) func (*EnterpriseService).RemoveRunner(ctx context.Context, enterprise string, runnerID int64) (*Response, error) func (*EnterpriseService).RemoveRunnerGroupRunners(ctx context.Context, enterprise string, groupID, runnerID int64) (*Response, error) func (*EnterpriseService).SetOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, ids SetOrgAccessRunnerGroupRequest) (*Response, error) func (*EnterpriseService).SetRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) func (*EnterpriseService).UpdateCodeSecurityAndAnalysis(ctx context.Context, enterprise string, settings *EnterpriseSecurityAnalysisSettings) (*Response, error) func (*EnterpriseService).UpdateEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64, updateReq UpdateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error) func (*GistsService).Create(ctx context.Context, gist *Gist) (*Gist, *Response, error) func (*GistsService).CreateComment(ctx context.Context, gistID string, comment *GistComment) (*GistComment, *Response, error) func (*GistsService).Delete(ctx context.Context, id string) (*Response, error) func (*GistsService).DeleteComment(ctx context.Context, gistID string, commentID int64) (*Response, error) func (*GistsService).Edit(ctx context.Context, id string, gist *Gist) (*Gist, *Response, error) func (*GistsService).EditComment(ctx context.Context, gistID string, commentID int64, comment *GistComment) (*GistComment, *Response, error) func (*GistsService).Fork(ctx context.Context, id string) (*Gist, *Response, error) func (*GistsService).Get(ctx context.Context, id string) (*Gist, *Response, error) func (*GistsService).GetComment(ctx context.Context, gistID string, commentID int64) (*GistComment, *Response, error) func (*GistsService).GetRevision(ctx context.Context, id, sha string) (*Gist, *Response, error) func (*GistsService).IsStarred(ctx context.Context, id string) (bool, *Response, error) func (*GistsService).List(ctx context.Context, user string, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).ListAll(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).ListComments(ctx context.Context, gistID string, opts *ListOptions) ([]*GistComment, *Response, error) func (*GistsService).ListCommits(ctx context.Context, id string, opts *ListOptions) ([]*GistCommit, *Response, error) func (*GistsService).ListForks(ctx context.Context, id string, opts *ListOptions) ([]*GistFork, *Response, error) func (*GistsService).ListStarred(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error) func (*GistsService).Star(ctx context.Context, id string) (*Response, error) func (*GistsService).Unstar(ctx context.Context, id string) (*Response, error) func (*GitignoresService).Get(ctx context.Context, name string) (*Gitignore, *Response, error) func (*GitignoresService).List(ctx context.Context) ([]string, *Response, error) func (*GitService).CreateBlob(ctx context.Context, owner string, repo string, blob *Blob) (*Blob, *Response, error) func (*GitService).CreateCommit(ctx context.Context, owner string, repo string, commit *Commit, opts *CreateCommitOptions) (*Commit, *Response, error) func (*GitService).CreateRef(ctx context.Context, owner string, repo string, ref *Reference) (*Reference, *Response, error) func (*GitService).CreateTag(ctx context.Context, owner string, repo string, tag *Tag) (*Tag, *Response, error) func (*GitService).CreateTree(ctx context.Context, owner string, repo string, baseTree string, entries []*TreeEntry) (*Tree, *Response, error) func (*GitService).DeleteRef(ctx context.Context, owner string, repo string, ref string) (*Response, error) func (*GitService).GetBlob(ctx context.Context, owner string, repo string, sha string) (*Blob, *Response, error) func (*GitService).GetBlobRaw(ctx context.Context, owner, repo, sha string) ([]byte, *Response, error) func (*GitService).GetCommit(ctx context.Context, owner string, repo string, sha string) (*Commit, *Response, error) func (*GitService).GetRef(ctx context.Context, owner string, repo string, ref string) (*Reference, *Response, error) func (*GitService).GetTag(ctx context.Context, owner string, repo string, sha string) (*Tag, *Response, error) func (*GitService).GetTree(ctx context.Context, owner string, repo string, sha string, recursive bool) (*Tree, *Response, error) func (*GitService).ListMatchingRefs(ctx context.Context, owner, repo string, opts *ReferenceListOptions) ([]*Reference, *Response, error) func (*GitService).UpdateRef(ctx context.Context, owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error) func (*InteractionsService).GetRestrictionsForOrg(ctx context.Context, organization string) (*InteractionRestriction, *Response, error) func (*InteractionsService).GetRestrictionsForRepo(ctx context.Context, owner, repo string) (*InteractionRestriction, *Response, error) func (*InteractionsService).RemoveRestrictionsFromOrg(ctx context.Context, organization string) (*Response, error) func (*InteractionsService).RemoveRestrictionsFromRepo(ctx context.Context, owner, repo string) (*Response, error) func (*InteractionsService).UpdateRestrictionsForOrg(ctx context.Context, organization, limit string) (*InteractionRestriction, *Response, error) func (*InteractionsService).UpdateRestrictionsForRepo(ctx context.Context, owner, repo, limit string) (*InteractionRestriction, *Response, error) func (*IssueImportService).CheckStatus(ctx context.Context, owner, repo string, issueID int64) (*IssueImportResponse, *Response, error) func (*IssueImportService).CheckStatusSince(ctx context.Context, owner, repo string, since Timestamp) ([]*IssueImportResponse, *Response, error) func (*IssueImportService).Create(ctx context.Context, owner, repo string, issue *IssueImportRequest) (*IssueImportResponse, *Response, error) func (*IssuesService).AddAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error) func (*IssuesService).AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error) func (*IssuesService).Create(ctx context.Context, owner string, repo string, issue *IssueRequest) (*Issue, *Response, error) func (*IssuesService).CreateComment(ctx context.Context, owner string, repo string, number int, comment *IssueComment) (*IssueComment, *Response, error) func (*IssuesService).CreateLabel(ctx context.Context, owner string, repo string, label *Label) (*Label, *Response, error) func (*IssuesService).CreateMilestone(ctx context.Context, owner string, repo string, milestone *Milestone) (*Milestone, *Response, error) func (*IssuesService).DeleteComment(ctx context.Context, owner string, repo string, commentID int64) (*Response, error) func (*IssuesService).DeleteLabel(ctx context.Context, owner string, repo string, name string) (*Response, error) func (*IssuesService).DeleteMilestone(ctx context.Context, owner string, repo string, number int) (*Response, error) func (*IssuesService).Edit(ctx context.Context, owner string, repo string, number int, issue *IssueRequest) (*Issue, *Response, error) func (*IssuesService).EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *IssueComment) (*IssueComment, *Response, error) func (*IssuesService).EditLabel(ctx context.Context, owner string, repo string, name string, label *Label) (*Label, *Response, error) func (*IssuesService).EditMilestone(ctx context.Context, owner string, repo string, number int, milestone *Milestone) (*Milestone, *Response, error) func (*IssuesService).Get(ctx context.Context, owner string, repo string, number int) (*Issue, *Response, error) func (*IssuesService).GetComment(ctx context.Context, owner string, repo string, commentID int64) (*IssueComment, *Response, error) func (*IssuesService).GetEvent(ctx context.Context, owner, repo string, id int64) (*IssueEvent, *Response, error) func (*IssuesService).GetLabel(ctx context.Context, owner string, repo string, name string) (*Label, *Response, error) func (*IssuesService).GetMilestone(ctx context.Context, owner string, repo string, number int) (*Milestone, *Response, error) func (*IssuesService).IsAssignee(ctx context.Context, owner, repo, user string) (bool, *Response, error) func (*IssuesService).List(ctx context.Context, all bool, opts *IssueListOptions) ([]*Issue, *Response, error) func (*IssuesService).ListAssignees(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error) func (*IssuesService).ListByOrg(ctx context.Context, org string, opts *IssueListOptions) ([]*Issue, *Response, error) func (*IssuesService).ListByRepo(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error) func (*IssuesService).ListComments(ctx context.Context, owner string, repo string, number int, opts *IssueListCommentsOptions) ([]*IssueComment, *Response, error) func (*IssuesService).ListIssueEvents(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*IssuesService).ListIssueTimeline(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Timeline, *Response, error) func (*IssuesService).ListLabels(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error) func (*IssuesService).ListMilestones(ctx context.Context, owner string, repo string, opts *MilestoneListOptions) ([]*Milestone, *Response, error) func (*IssuesService).ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error) func (*IssuesService).Lock(ctx context.Context, owner string, repo string, number int, opts *LockIssueOptions) (*Response, error) func (*IssuesService).RemoveAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error) func (*IssuesService).RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*Response, error) func (*IssuesService).RemoveLabelsForIssue(ctx context.Context, owner string, repo string, number int) (*Response, error) func (*IssuesService).RemoveMilestone(ctx context.Context, owner, repo string, issueNumber int) (*Issue, *Response, error) func (*IssuesService).ReplaceLabelsForIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error) func (*IssuesService).Unlock(ctx context.Context, owner string, repo string, number int) (*Response, error) func (*LicensesService).Get(ctx context.Context, licenseName string) (*License, *Response, error) func (*LicensesService).List(ctx context.Context) ([]*License, *Response, error) func (*MarkdownService).Render(ctx context.Context, text string, opts *MarkdownOptions) (string, *Response, error) func (*MarketplaceService).GetPlanAccountForAccount(ctx context.Context, accountID int64) (*MarketplacePlanAccount, *Response, error) func (*MarketplaceService).ListMarketplacePurchasesForUser(ctx context.Context, opts *ListOptions) ([]*MarketplacePurchase, *Response, error) func (*MarketplaceService).ListPlanAccountsForPlan(ctx context.Context, planID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error) func (*MarketplaceService).ListPlans(ctx context.Context, opts *ListOptions) ([]*MarketplacePlan, *Response, error) func (*MetaService).Get(ctx context.Context) (*APIMeta, *Response, error) func (*MetaService).Octocat(ctx context.Context, message string) (string, *Response, error) func (*MetaService).Zen(ctx context.Context) (string, *Response, error) func (*MigrationService).CancelImport(ctx context.Context, owner, repo string) (*Response, error) func (*MigrationService).CommitAuthors(ctx context.Context, owner, repo string) ([]*SourceImportAuthor, *Response, error) func (*MigrationService).DeleteMigration(ctx context.Context, org string, id int64) (*Response, error) func (*MigrationService).DeleteUserMigration(ctx context.Context, id int64) (*Response, error) func (*MigrationService).ImportProgress(ctx context.Context, owner, repo string) (*Import, *Response, error) func (*MigrationService).LargeFiles(ctx context.Context, owner, repo string) ([]*LargeFile, *Response, error) func (*MigrationService).ListMigrations(ctx context.Context, org string, opts *ListOptions) ([]*Migration, *Response, error) func (*MigrationService).ListUserMigrations(ctx context.Context, opts *ListOptions) ([]*UserMigration, *Response, error) func (*MigrationService).MapCommitAuthor(ctx context.Context, owner, repo string, id int64, author *SourceImportAuthor) (*SourceImportAuthor, *Response, error) func (*MigrationService).MigrationStatus(ctx context.Context, org string, id int64) (*Migration, *Response, error) func (*MigrationService).SetLFSPreference(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).StartImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).StartMigration(ctx context.Context, org string, repos []string, opts *MigrationOptions) (*Migration, *Response, error) func (*MigrationService).StartUserMigration(ctx context.Context, repos []string, opts *UserMigrationOptions) (*UserMigration, *Response, error) func (*MigrationService).UnlockRepo(ctx context.Context, org string, id int64, repo string) (*Response, error) func (*MigrationService).UnlockUserRepo(ctx context.Context, id int64, repo string) (*Response, error) func (*MigrationService).UpdateImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error) func (*MigrationService).UserMigrationStatus(ctx context.Context, id int64) (*UserMigration, *Response, error) func (*OrganizationsService).AddSecurityManagerTeam(ctx context.Context, org, team string) (*Response, error) func (*OrganizationsService).AssignOrgRoleToTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error) func (*OrganizationsService).AssignOrgRoleToUser(ctx context.Context, org, username string, roleID int64) (*Response, error) func (*OrganizationsService).BlockUser(ctx context.Context, org string, user string) (*Response, error) func (*OrganizationsService).CancelInvite(ctx context.Context, org string, invitationID int64) (*Response, error) func (*OrganizationsService).ConcealMembership(ctx context.Context, org, user string) (*Response, error) func (*OrganizationsService).ConvertMemberToOutsideCollaborator(ctx context.Context, org string, user string) (*Response, error) func (*OrganizationsService).CreateCustomOrgRole(ctx context.Context, org string, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error) func (*OrganizationsService).CreateCustomRepoRole(ctx context.Context, org string, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) func (*OrganizationsService).CreateHook(ctx context.Context, org string, hook *Hook) (*Hook, *Response, error) func (*OrganizationsService).CreateOrganizationRuleset(ctx context.Context, org string, rs *Ruleset) (*Ruleset, *Response, error) func (*OrganizationsService).CreateOrgInvitation(ctx context.Context, org string, opts *CreateOrgInvitationOptions) (*Invitation, *Response, error) func (*OrganizationsService).CreateOrUpdateCustomProperties(ctx context.Context, org string, properties []*CustomProperty) ([]*CustomProperty, *Response, error) func (*OrganizationsService).CreateOrUpdateCustomProperty(ctx context.Context, org, customPropertyName string, property *CustomProperty) (*CustomProperty, *Response, error) func (*OrganizationsService).CreateOrUpdateRepoCustomPropertyValues(ctx context.Context, org string, repoNames []string, properties []*CustomPropertyValue) (*Response, error) func (*OrganizationsService).CreateProject(ctx context.Context, org string, opts *ProjectOptions) (*Project, *Response, error) func (*OrganizationsService).Delete(ctx context.Context, org string) (*Response, error) func (*OrganizationsService).DeleteCustomOrgRole(ctx context.Context, org string, roleID int64) (*Response, error) func (*OrganizationsService).DeleteCustomRepoRole(ctx context.Context, org string, roleID int64) (*Response, error) func (*OrganizationsService).DeleteHook(ctx context.Context, org string, id int64) (*Response, error) func (*OrganizationsService).DeleteOrganizationRuleset(ctx context.Context, org string, rulesetID int64) (*Response, error) func (*OrganizationsService).DeletePackage(ctx context.Context, org, packageType, packageName string) (*Response, error) func (*OrganizationsService).Edit(ctx context.Context, name string, org *Organization) (*Organization, *Response, error) func (*OrganizationsService).EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*OrganizationsService).EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error) func (*OrganizationsService).EditHook(ctx context.Context, org string, id int64, hook *Hook) (*Hook, *Response, error) func (*OrganizationsService).EditHookConfiguration(ctx context.Context, org string, id int64, config *HookConfig) (*HookConfig, *Response, error) func (*OrganizationsService).EditOrgMembership(ctx context.Context, user, org string, membership *Membership) (*Membership, *Response, error) func (*OrganizationsService).Get(ctx context.Context, org string) (*Organization, *Response, error) func (*OrganizationsService).GetActionsAllowed(ctx context.Context, org string) (*ActionsAllowed, *Response, error) func (*OrganizationsService).GetActionsPermissions(ctx context.Context, org string) (*ActionsPermissions, *Response, error) func (*OrganizationsService).GetAllCustomProperties(ctx context.Context, org string) ([]*CustomProperty, *Response, error) func (*OrganizationsService).GetAllOrganizationRulesets(ctx context.Context, org string) ([]*Ruleset, *Response, error) func (*OrganizationsService).GetAuditLog(ctx context.Context, org string, opts *GetAuditLogOptions) ([]*AuditEntry, *Response, error) func (*OrganizationsService).GetByID(ctx context.Context, id int64) (*Organization, *Response, error) func (*OrganizationsService).GetCustomProperty(ctx context.Context, org, name string) (*CustomProperty, *Response, error) func (*OrganizationsService).GetHook(ctx context.Context, org string, id int64) (*Hook, *Response, error) func (*OrganizationsService).GetHookConfiguration(ctx context.Context, org string, id int64) (*HookConfig, *Response, error) func (*OrganizationsService).GetHookDelivery(ctx context.Context, owner string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*OrganizationsService).GetOrganizationRuleset(ctx context.Context, org string, rulesetID int64) (*Ruleset, *Response, error) func (*OrganizationsService).GetOrgMembership(ctx context.Context, user, org string) (*Membership, *Response, error) func (*OrganizationsService).GetOrgRole(ctx context.Context, org string, roleID int64) (*CustomOrgRoles, *Response, error) func (*OrganizationsService).GetPackage(ctx context.Context, org, packageType, packageName string) (*Package, *Response, error) func (*OrganizationsService).IsBlocked(ctx context.Context, org string, user string) (bool, *Response, error) func (*OrganizationsService).IsMember(ctx context.Context, org, user string) (bool, *Response, error) func (*OrganizationsService).IsPublicMember(ctx context.Context, org, user string) (bool, *Response, error) func (*OrganizationsService).List(ctx context.Context, user string, opts *ListOptions) ([]*Organization, *Response, error) func (*OrganizationsService).ListAll(ctx context.Context, opts *OrganizationsListOptions) ([]*Organization, *Response, error) func (*OrganizationsService).ListBlockedUsers(ctx context.Context, org string, opts *ListOptions) ([]*User, *Response, error) func (*OrganizationsService).ListCredentialAuthorizations(ctx context.Context, org string, opts *CredentialAuthorizationsListOptions) ([]*CredentialAuthorization, *Response, error) func (*OrganizationsService).ListCustomPropertyValues(ctx context.Context, org string, opts *ListOptions) ([]*RepoCustomPropertyValue, *Response, error) func (*OrganizationsService).ListCustomRepoRoles(ctx context.Context, org string) (*OrganizationCustomRepoRoles, *Response, error) func (*OrganizationsService).ListFailedOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error) func (*OrganizationsService).ListFineGrainedPersonalAccessTokens(ctx context.Context, org string, opts *ListFineGrainedPATOptions) ([]*PersonalAccessToken, *Response, error) func (*OrganizationsService).ListHookDeliveries(ctx context.Context, org string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*OrganizationsService).ListHooks(ctx context.Context, org string, opts *ListOptions) ([]*Hook, *Response, error) func (*OrganizationsService).ListInstallations(ctx context.Context, org string, opts *ListOptions) (*OrganizationInstallations, *Response, error) func (*OrganizationsService).ListMembers(ctx context.Context, org string, opts *ListMembersOptions) ([]*User, *Response, error) func (*OrganizationsService).ListOrgInvitationTeams(ctx context.Context, org, invitationID string, opts *ListOptions) ([]*Team, *Response, error) func (*OrganizationsService).ListOrgMemberships(ctx context.Context, opts *ListOrgMembershipsOptions) ([]*Membership, *Response, error) func (*OrganizationsService).ListOutsideCollaborators(ctx context.Context, org string, opts *ListOutsideCollaboratorsOptions) ([]*User, *Response, error) func (*OrganizationsService).ListPackages(ctx context.Context, org string, opts *PackageListOptions) ([]*Package, *Response, error) func (*OrganizationsService).ListPendingOrgInvitations(ctx context.Context, org string, opts *ListOptions) ([]*Invitation, *Response, error) func (*OrganizationsService).ListProjects(ctx context.Context, org string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*OrganizationsService).ListRoles(ctx context.Context, org string) (*OrganizationCustomRoles, *Response, error) func (*OrganizationsService).ListSecurityManagerTeams(ctx context.Context, org string) ([]*Team, *Response, error) func (*OrganizationsService).ListTeamsAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*Team, *Response, error) func (*OrganizationsService).ListUsersAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*User, *Response, error) func (*OrganizationsService).PackageDeleteVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*Response, error) func (*OrganizationsService).PackageGetAllVersions(ctx context.Context, org, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error) func (*OrganizationsService).PackageGetVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error) func (*OrganizationsService).PackageRestoreVersion(ctx context.Context, org, packageType, packageName string, packageVersionID int64) (*Response, error) func (*OrganizationsService).PingHook(ctx context.Context, org string, id int64) (*Response, error) func (*OrganizationsService).PublicizeMembership(ctx context.Context, org, user string) (*Response, error) func (*OrganizationsService).RedeliverHookDelivery(ctx context.Context, owner string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*OrganizationsService).RemoveCredentialAuthorization(ctx context.Context, org string, credentialID int64) (*Response, error) func (*OrganizationsService).RemoveCustomProperty(ctx context.Context, org, customPropertyName string) (*Response, error) func (*OrganizationsService).RemoveMember(ctx context.Context, org, user string) (*Response, error) func (*OrganizationsService).RemoveOrgMembership(ctx context.Context, user, org string) (*Response, error) func (*OrganizationsService).RemoveOrgRoleFromTeam(ctx context.Context, org, teamSlug string, roleID int64) (*Response, error) func (*OrganizationsService).RemoveOrgRoleFromUser(ctx context.Context, org, username string, roleID int64) (*Response, error) func (*OrganizationsService).RemoveOutsideCollaborator(ctx context.Context, org string, user string) (*Response, error) func (*OrganizationsService).RemoveSecurityManagerTeam(ctx context.Context, org, team string) (*Response, error) func (*OrganizationsService).RestorePackage(ctx context.Context, org, packageType, packageName string) (*Response, error) func (*OrganizationsService).ReviewPersonalAccessTokenRequest(ctx context.Context, org string, requestID int64, opts ReviewPersonalAccessTokenRequestOptions) (*Response, error) func (*OrganizationsService).UnblockUser(ctx context.Context, org string, user string) (*Response, error) func (*OrganizationsService).UpdateCustomOrgRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateOrgRoleOptions) (*CustomOrgRoles, *Response, error) func (*OrganizationsService).UpdateCustomRepoRole(ctx context.Context, org string, roleID int64, opts *CreateOrUpdateCustomRepoRoleOptions) (*CustomRepoRoles, *Response, error) func (*OrganizationsService).UpdateOrganizationRuleset(ctx context.Context, org string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*ProjectsService).AddProjectCollaborator(ctx context.Context, id int64, username string, opts *ProjectCollaboratorOptions) (*Response, error) func (*ProjectsService).CreateProjectCard(ctx context.Context, columnID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error) func (*ProjectsService).CreateProjectColumn(ctx context.Context, projectID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error) func (*ProjectsService).DeleteProject(ctx context.Context, id int64) (*Response, error) func (*ProjectsService).DeleteProjectCard(ctx context.Context, cardID int64) (*Response, error) func (*ProjectsService).DeleteProjectColumn(ctx context.Context, columnID int64) (*Response, error) func (*ProjectsService).GetProject(ctx context.Context, id int64) (*Project, *Response, error) func (*ProjectsService).GetProjectCard(ctx context.Context, cardID int64) (*ProjectCard, *Response, error) func (*ProjectsService).GetProjectColumn(ctx context.Context, id int64) (*ProjectColumn, *Response, error) func (*ProjectsService).ListProjectCards(ctx context.Context, columnID int64, opts *ProjectCardListOptions) ([]*ProjectCard, *Response, error) func (*ProjectsService).ListProjectCollaborators(ctx context.Context, id int64, opts *ListCollaboratorOptions) ([]*User, *Response, error) func (*ProjectsService).ListProjectColumns(ctx context.Context, projectID int64, opts *ListOptions) ([]*ProjectColumn, *Response, error) func (*ProjectsService).MoveProjectCard(ctx context.Context, cardID int64, opts *ProjectCardMoveOptions) (*Response, error) func (*ProjectsService).MoveProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnMoveOptions) (*Response, error) func (*ProjectsService).RemoveProjectCollaborator(ctx context.Context, id int64, username string) (*Response, error) func (*ProjectsService).ReviewProjectCollaboratorPermission(ctx context.Context, id int64, username string) (*ProjectPermissionLevel, *Response, error) func (*ProjectsService).UpdateProject(ctx context.Context, id int64, opts *ProjectOptions) (*Project, *Response, error) func (*ProjectsService).UpdateProjectCard(ctx context.Context, cardID int64, opts *ProjectCardOptions) (*ProjectCard, *Response, error) func (*ProjectsService).UpdateProjectColumn(ctx context.Context, columnID int64, opts *ProjectColumnOptions) (*ProjectColumn, *Response, error) func (*PullRequestsService).Create(ctx context.Context, owner string, repo string, pull *NewPullRequest) (*PullRequest, *Response, error) func (*PullRequestsService).CreateComment(ctx context.Context, owner, repo string, number int, comment *PullRequestComment) (*PullRequestComment, *Response, error) func (*PullRequestsService).CreateCommentInReplyTo(ctx context.Context, owner, repo string, number int, body string, commentID int64) (*PullRequestComment, *Response, error) func (*PullRequestsService).CreateReview(ctx context.Context, owner, repo string, number int, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).DeleteComment(ctx context.Context, owner, repo string, commentID int64) (*Response, error) func (*PullRequestsService).DeletePendingReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error) func (*PullRequestsService).DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewDismissalRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).Edit(ctx context.Context, owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error) func (*PullRequestsService).EditComment(ctx context.Context, owner, repo string, commentID int64, comment *PullRequestComment) (*PullRequestComment, *Response, error) func (*PullRequestsService).Get(ctx context.Context, owner string, repo string, number int) (*PullRequest, *Response, error) func (*PullRequestsService).GetComment(ctx context.Context, owner, repo string, commentID int64) (*PullRequestComment, *Response, error) func (*PullRequestsService).GetRaw(ctx context.Context, owner string, repo string, number int, opts RawOptions) (string, *Response, error) func (*PullRequestsService).GetReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error) func (*PullRequestsService).IsMerged(ctx context.Context, owner string, repo string, number int) (bool, *Response, error) func (*PullRequestsService).List(ctx context.Context, owner string, repo string, opts *PullRequestListOptions) ([]*PullRequest, *Response, error) func (*PullRequestsService).ListComments(ctx context.Context, owner, repo string, number int, opts *PullRequestListCommentsOptions) ([]*PullRequestComment, *Response, error) func (*PullRequestsService).ListCommits(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*RepositoryCommit, *Response, error) func (*PullRequestsService).ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*CommitFile, *Response, error) func (*PullRequestsService).ListPullRequestsWithCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*PullRequest, *Response, error) func (*PullRequestsService).ListReviewComments(ctx context.Context, owner, repo string, number int, reviewID int64, opts *ListOptions) ([]*PullRequestComment, *Response, error) func (*PullRequestsService).ListReviewers(ctx context.Context, owner, repo string, number int, opts *ListOptions) (*Reviewers, *Response, error) func (*PullRequestsService).ListReviews(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*PullRequestReview, *Response, error) func (*PullRequestsService).Merge(ctx context.Context, owner string, repo string, number int, commitMessage string, options *PullRequestOptions) (*PullRequestMergeResult, *Response, error) func (*PullRequestsService).RemoveReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*Response, error) func (*PullRequestsService).RequestReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*PullRequest, *Response, error) func (*PullRequestsService).SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, review *PullRequestReviewRequest) (*PullRequestReview, *Response, error) func (*PullRequestsService).UpdateBranch(ctx context.Context, owner, repo string, number int, opts *PullRequestBranchUpdateOptions) (*PullRequestBranchUpdateResponse, *Response, error) func (*PullRequestsService).UpdateReview(ctx context.Context, owner, repo string, number int, reviewID int64, body string) (*PullRequestReview, *Response, error) func (*RateLimitService).Get(ctx context.Context) (*RateLimits, *Response, error) func (*ReactionsService).CreateCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateIssueCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateIssueReaction(ctx context.Context, owner, repo string, number int, content string) (*Reaction, *Response, error) func (*ReactionsService).CreatePullRequestCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateReleaseReaction(ctx context.Context, owner, repo string, releaseID int64, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateTeamDiscussionCommentReaction(ctx context.Context, teamID int64, discussionNumber, commentNumber int, content string) (*Reaction, *Response, error) func (*ReactionsService).CreateTeamDiscussionReaction(ctx context.Context, teamID int64, discussionNumber int, content string) (*Reaction, *Response, error) func (*ReactionsService).DeleteCommentReaction(ctx context.Context, owner, repo string, commentID, reactionID int64) (*Response, error) func (*ReactionsService).DeleteCommentReactionByID(ctx context.Context, repoID, commentID, reactionID int64) (*Response, error) func (*ReactionsService).DeleteIssueCommentReaction(ctx context.Context, owner, repo string, commentID, reactionID int64) (*Response, error) func (*ReactionsService).DeleteIssueCommentReactionByID(ctx context.Context, repoID, commentID, reactionID int64) (*Response, error) func (*ReactionsService).DeleteIssueReaction(ctx context.Context, owner, repo string, issueNumber int, reactionID int64) (*Response, error) func (*ReactionsService).DeleteIssueReactionByID(ctx context.Context, repoID, issueNumber int, reactionID int64) (*Response, error) func (*ReactionsService).DeletePullRequestCommentReaction(ctx context.Context, owner, repo string, commentID, reactionID int64) (*Response, error) func (*ReactionsService).DeletePullRequestCommentReactionByID(ctx context.Context, repoID, commentID, reactionID int64) (*Response, error) func (*ReactionsService).DeleteTeamDiscussionCommentReaction(ctx context.Context, org, teamSlug string, discussionNumber, commentNumber int, reactionID int64) (*Response, error) func (*ReactionsService).DeleteTeamDiscussionCommentReactionByOrgIDAndTeamID(ctx context.Context, orgID, teamID, discussionNumber, commentNumber int, reactionID int64) (*Response, error) func (*ReactionsService).DeleteTeamDiscussionReaction(ctx context.Context, org, teamSlug string, discussionNumber int, reactionID int64) (*Response, error) func (*ReactionsService).DeleteTeamDiscussionReactionByOrgIDAndTeamID(ctx context.Context, orgID, teamID, discussionNumber int, reactionID int64) (*Response, error) func (*ReactionsService).ListCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListCommentReactionOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListIssueReactions(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListPullRequestCommentReactions(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListTeamDiscussionCommentReactions(ctx context.Context, teamID int64, discussionNumber, commentNumber int, opts *ListOptions) ([]*Reaction, *Response, error) func (*ReactionsService).ListTeamDiscussionReactions(ctx context.Context, teamID int64, discussionNumber int, opts *ListOptions) ([]*Reaction, *Response, error) func (*RepositoriesService).AddAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error) func (*RepositoriesService).AddAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error) func (*RepositoriesService).AddAutolink(ctx context.Context, owner, repo string, opts *AutolinkOptions) (*Autolink, *Response, error) func (*RepositoriesService).AddCollaborator(ctx context.Context, owner, repo, user string, opts *RepositoryAddCollaboratorOptions) (*CollaboratorInvitation, *Response, error) func (*RepositoriesService).AddTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error) func (*RepositoriesService).AddUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error) func (*RepositoriesService).CompareCommits(ctx context.Context, owner, repo string, base, head string, opts *ListOptions) (*CommitsComparison, *Response, error) func (*RepositoriesService).CompareCommitsRaw(ctx context.Context, owner, repo, base, head string, opts RawOptions) (string, *Response, error) func (*RepositoriesService).Create(ctx context.Context, org string, repo *Repository) (*Repository, *Response, error) func (*RepositoriesService).CreateComment(ctx context.Context, owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error) func (*RepositoriesService).CreateCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, request *CustomDeploymentProtectionRuleRequest) (*CustomDeploymentProtectionRule, *Response, error) func (*RepositoriesService).CreateDeployment(ctx context.Context, owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error) func (*RepositoriesService).CreateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error) func (*RepositoriesService).CreateDeploymentStatus(ctx context.Context, owner, repo string, deployment int64, request *DeploymentStatusRequest) (*DeploymentStatus, *Response, error) func (*RepositoriesService).CreateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).CreateFork(ctx context.Context, owner, repo string, opts *RepositoryCreateForkOptions) (*Repository, *Response, error) func (*RepositoriesService).CreateFromTemplate(ctx context.Context, templateOwner, templateRepo string, templateRepoReq *TemplateRepoRequest) (*Repository, *Response, error) func (*RepositoriesService).CreateHook(ctx context.Context, owner, repo string, hook *Hook) (*Hook, *Response, error) func (*RepositoriesService).CreateKey(ctx context.Context, owner string, repo string, key *Key) (*Key, *Response, error) func (*RepositoriesService).CreateOrUpdateCustomProperties(ctx context.Context, org, repo string, customPropertyValues []*CustomPropertyValue) (*Response, error) func (*RepositoriesService).CreateProject(ctx context.Context, owner, repo string, opts *ProjectOptions) (*Project, *Response, error) func (*RepositoriesService).CreateRelease(ctx context.Context, owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error) func (*RepositoriesService).CreateRuleset(ctx context.Context, owner, repo string, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).CreateStatus(ctx context.Context, owner, repo, ref string, status *RepoStatus) (*RepoStatus, *Response, error) func (*RepositoriesService).CreateTagProtection(ctx context.Context, owner, repo, pattern string) (*TagProtection, *Response, error) func (*RepositoriesService).CreateUpdateEnvironment(ctx context.Context, owner, repo, name string, environment *CreateUpdateEnvironment) (*Environment, *Response, error) func (*RepositoriesService).Delete(ctx context.Context, owner, repo string) (*Response, error) func (*RepositoriesService).DeleteAutolink(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).DeleteComment(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).DeleteDeployment(ctx context.Context, owner, repo string, deploymentID int64) (*Response, error) func (*RepositoriesService).DeleteDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64) (*Response, error) func (*RepositoriesService).DeleteEnvironment(ctx context.Context, owner, repo, name string) (*Response, error) func (*RepositoriesService).DeleteFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).DeleteHook(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).DeleteInvitation(ctx context.Context, owner, repo string, invitationID int64) (*Response, error) func (*RepositoriesService).DeleteKey(ctx context.Context, owner string, repo string, id int64) (*Response, error) func (*RepositoriesService).DeletePreReceiveHook(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).DeleteRelease(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).DeleteReleaseAsset(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).DeleteRuleset(ctx context.Context, owner, repo string, rulesetID int64) (*Response, error) func (*RepositoriesService).DeleteTagProtection(ctx context.Context, owner, repo string, tagProtectionID int64) (*Response, error) func (*RepositoriesService).DisableAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*Response, error) func (*RepositoriesService).DisableCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, protectionRuleID int64) (*Response, error) func (*RepositoriesService).DisableDismissalRestrictions(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error) func (*RepositoriesService).DisableLFS(ctx context.Context, owner, repo string) (*Response, error) func (*RepositoriesService).DisablePages(ctx context.Context, owner, repo string) (*Response, error) func (*RepositoriesService).DisablePrivateReporting(ctx context.Context, owner, repo string) (*Response, error) func (*RepositoriesService).DisableVulnerabilityAlerts(ctx context.Context, owner, repository string) (*Response, error) func (*RepositoriesService).Dispatch(ctx context.Context, owner, repo string, opts DispatchRequestOptions) (*Repository, *Response, error) func (*RepositoriesService).DownloadContents(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *Response, error) func (*RepositoriesService).DownloadContentsWithMeta(ctx context.Context, owner, repo, filepath string, opts *RepositoryContentGetOptions) (io.ReadCloser, *RepositoryContent, *Response, error) func (*RepositoriesService).Edit(ctx context.Context, owner, repo string, repository *Repository) (*Repository, *Response, error) func (*RepositoriesService).EditActionsAccessLevel(ctx context.Context, owner, repo string, repositoryActionsAccessLevel RepositoryActionsAccessLevel) (*Response, error) func (*RepositoriesService).EditActionsAllowed(ctx context.Context, org, repo string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) func (*RepositoriesService).EditActionsPermissions(ctx context.Context, owner, repo string, actionsPermissionsRepository ActionsPermissionsRepository) (*ActionsPermissionsRepository, *Response, error) func (*RepositoriesService).EditDefaultWorkflowPermissions(ctx context.Context, owner, repo string, permissions DefaultWorkflowPermissionRepository) (*DefaultWorkflowPermissionRepository, *Response, error) func (*RepositoriesService).EditHook(ctx context.Context, owner, repo string, id int64, hook *Hook) (*Hook, *Response, error) func (*RepositoriesService).EditHookConfiguration(ctx context.Context, owner, repo string, id int64, config *HookConfig) (*HookConfig, *Response, error) func (*RepositoriesService).EditRelease(ctx context.Context, owner, repo string, id int64, release *RepositoryRelease) (*RepositoryRelease, *Response, error) func (*RepositoriesService).EditReleaseAsset(ctx context.Context, owner, repo string, id int64, release *ReleaseAsset) (*ReleaseAsset, *Response, error) func (*RepositoriesService).EnableAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*Response, error) func (*RepositoriesService).EnableLFS(ctx context.Context, owner, repo string) (*Response, error) func (*RepositoriesService).EnablePages(ctx context.Context, owner, repo string, pages *Pages) (*Pages, *Response, error) func (*RepositoriesService).EnablePrivateReporting(ctx context.Context, owner, repo string) (*Response, error) func (*RepositoriesService).EnableVulnerabilityAlerts(ctx context.Context, owner, repository string) (*Response, error) func (*RepositoriesService).GenerateReleaseNotes(ctx context.Context, owner, repo string, opts *GenerateNotesOptions) (*RepositoryReleaseNotes, *Response, error) func (*RepositoriesService).Get(ctx context.Context, owner, repo string) (*Repository, *Response, error) func (*RepositoriesService).GetActionsAccessLevel(ctx context.Context, owner, repo string) (*RepositoryActionsAccessLevel, *Response, error) func (*RepositoriesService).GetActionsAllowed(ctx context.Context, org, repo string) (*ActionsAllowed, *Response, error) func (*RepositoriesService).GetActionsPermissions(ctx context.Context, owner, repo string) (*ActionsPermissionsRepository, *Response, error) func (*RepositoriesService).GetAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error) func (*RepositoriesService).GetAllCustomPropertyValues(ctx context.Context, org, repo string) ([]*CustomPropertyValue, *Response, error) func (*RepositoriesService).GetAllDeploymentProtectionRules(ctx context.Context, owner, repo, environment string) (*ListDeploymentProtectionRuleResponse, *Response, error) func (*RepositoriesService).GetAllRulesets(ctx context.Context, owner, repo string, includesParents bool) ([]*Ruleset, *Response, error) func (*RepositoriesService).GetArchiveLink(ctx context.Context, owner, repo string, archiveformat ArchiveFormat, opts *RepositoryContentGetOptions, maxRedirects int) (*url.URL, *Response, error) func (*RepositoriesService).GetAutolink(ctx context.Context, owner, repo string, id int64) (*Autolink, *Response, error) func (*RepositoriesService).GetAutomatedSecurityFixes(ctx context.Context, owner, repository string) (*AutomatedSecurityFixes, *Response, error) func (*RepositoriesService).GetBranch(ctx context.Context, owner, repo, branch string, maxRedirects int) (*Branch, *Response, error) func (*RepositoriesService).GetBranchProtection(ctx context.Context, owner, repo, branch string) (*Protection, *Response, error) func (*RepositoriesService).GetByID(ctx context.Context, id int64) (*Repository, *Response, error) func (*RepositoriesService).GetCodeOfConduct(ctx context.Context, owner, repo string) (*CodeOfConduct, *Response, error) func (*RepositoriesService).GetCodeownersErrors(ctx context.Context, owner, repo string, opts *GetCodeownersErrorsOptions) (*CodeownersErrors, *Response, error) func (*RepositoriesService).GetCombinedStatus(ctx context.Context, owner, repo, ref string, opts *ListOptions) (*CombinedStatus, *Response, error) func (*RepositoriesService).GetComment(ctx context.Context, owner, repo string, id int64) (*RepositoryComment, *Response, error) func (*RepositoriesService).GetCommit(ctx context.Context, owner, repo, sha string, opts *ListOptions) (*RepositoryCommit, *Response, error) func (*RepositoriesService).GetCommitRaw(ctx context.Context, owner string, repo string, sha string, opts RawOptions) (string, *Response, error) func (*RepositoriesService).GetCommitSHA1(ctx context.Context, owner, repo, ref, lastSHA string) (string, *Response, error) func (*RepositoriesService).GetCommunityHealthMetrics(ctx context.Context, owner, repo string) (*CommunityHealthMetrics, *Response, error) func (*RepositoriesService).GetContents(ctx context.Context, owner, repo, path string, opts *RepositoryContentGetOptions) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, resp *Response, err error) func (*RepositoriesService).GetCustomDeploymentProtectionRule(ctx context.Context, owner, repo, environment string, protectionRuleID int64) (*CustomDeploymentProtectionRule, *Response, error) func (*RepositoriesService).GetDefaultWorkflowPermissions(ctx context.Context, owner, repo string) (*DefaultWorkflowPermissionRepository, *Response, error) func (*RepositoriesService).GetDeployment(ctx context.Context, owner, repo string, deploymentID int64) (*Deployment, *Response, error) func (*RepositoriesService).GetDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64) (*DeploymentBranchPolicy, *Response, error) func (*RepositoriesService).GetDeploymentStatus(ctx context.Context, owner, repo string, deploymentID, deploymentStatusID int64) (*DeploymentStatus, *Response, error) func (*RepositoriesService).GetEnvironment(ctx context.Context, owner, repo, name string) (*Environment, *Response, error) func (*RepositoriesService).GetHook(ctx context.Context, owner, repo string, id int64) (*Hook, *Response, error) func (*RepositoriesService).GetHookConfiguration(ctx context.Context, owner, repo string, id int64) (*HookConfig, *Response, error) func (*RepositoriesService).GetHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*RepositoriesService).GetKey(ctx context.Context, owner string, repo string, id int64) (*Key, *Response, error) func (*RepositoriesService).GetLatestPagesBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error) func (*RepositoriesService).GetLatestRelease(ctx context.Context, owner, repo string) (*RepositoryRelease, *Response, error) func (*RepositoriesService).GetPageBuild(ctx context.Context, owner, repo string, id int64) (*PagesBuild, *Response, error) func (*RepositoriesService).GetPageHealthCheck(ctx context.Context, owner, repo string) (*PagesHealthCheckResponse, *Response, error) func (*RepositoriesService).GetPagesInfo(ctx context.Context, owner, repo string) (*Pages, *Response, error) func (*RepositoriesService).GetPermissionLevel(ctx context.Context, owner, repo, user string) (*RepositoryPermissionLevel, *Response, error) func (*RepositoriesService).GetPreReceiveHook(ctx context.Context, owner, repo string, id int64) (*PreReceiveHook, *Response, error) func (*RepositoriesService).GetPullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error) func (*RepositoriesService).GetReadme(ctx context.Context, owner, repo string, opts *RepositoryContentGetOptions) (*RepositoryContent, *Response, error) func (*RepositoriesService).GetRelease(ctx context.Context, owner, repo string, id int64) (*RepositoryRelease, *Response, error) func (*RepositoriesService).GetReleaseAsset(ctx context.Context, owner, repo string, id int64) (*ReleaseAsset, *Response, error) func (*RepositoriesService).GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*RepositoryRelease, *Response, error) func (*RepositoriesService).GetRequiredStatusChecks(ctx context.Context, owner, repo, branch string) (*RequiredStatusChecks, *Response, error) func (*RepositoriesService).GetRuleset(ctx context.Context, owner, repo string, rulesetID int64, includesParents bool) (*Ruleset, *Response, error) func (*RepositoriesService).GetRulesForBranch(ctx context.Context, owner, repo, branch string) ([]*RepositoryRule, *Response, error) func (*RepositoriesService).GetSignaturesProtectedBranch(ctx context.Context, owner, repo, branch string) (*SignaturesProtectedBranch, *Response, error) func (*RepositoriesService).GetVulnerabilityAlerts(ctx context.Context, owner, repository string) (bool, *Response, error) func (*RepositoriesService).IsCollaborator(ctx context.Context, owner, repo, user string) (bool, *Response, error) func (*RepositoriesService).IsPrivateReportingEnabled(ctx context.Context, owner, repo string) (bool, *Response, error) func (*RepositoriesService).License(ctx context.Context, owner, repo string) (*RepositoryLicense, *Response, error) func (*RepositoriesService).List(ctx context.Context, user string, opts *RepositoryListOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListAll(ctx context.Context, opts *RepositoryListAllOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListAllTopics(ctx context.Context, owner, repo string) ([]string, *Response, error) func (*RepositoriesService).ListAppRestrictions(ctx context.Context, owner, repo, branch string) ([]*App, *Response, error) func (*RepositoriesService).ListApps(ctx context.Context, owner, repo, branch string) ([]*App, *Response, error) func (*RepositoriesService).ListAutolinks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Autolink, *Response, error) func (*RepositoriesService).ListBranches(ctx context.Context, owner string, repo string, opts *BranchListOptions) ([]*Branch, *Response, error) func (*RepositoriesService).ListBranchesHeadCommit(ctx context.Context, owner, repo, sha string) ([]*BranchCommit, *Response, error) func (*RepositoriesService).ListByAuthenticatedUser(ctx context.Context, opts *RepositoryListByAuthenticatedUserOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListByOrg(ctx context.Context, org string, opts *RepositoryListByOrgOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListByUser(ctx context.Context, user string, opts *RepositoryListByUserOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListCodeFrequency(ctx context.Context, owner, repo string) ([]*WeeklyStats, *Response, error) func (*RepositoriesService).ListCollaborators(ctx context.Context, owner, repo string, opts *ListCollaboratorsOptions) ([]*User, *Response, error) func (*RepositoriesService).ListComments(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryComment, *Response, error) func (*RepositoriesService).ListCommitActivity(ctx context.Context, owner, repo string) ([]*WeeklyCommitActivity, *Response, error) func (*RepositoriesService).ListCommitComments(ctx context.Context, owner, repo, sha string, opts *ListOptions) ([]*RepositoryComment, *Response, error) func (*RepositoriesService).ListCommits(ctx context.Context, owner, repo string, opts *CommitsListOptions) ([]*RepositoryCommit, *Response, error) func (*RepositoriesService).ListContributors(ctx context.Context, owner string, repository string, opts *ListContributorsOptions) ([]*Contributor, *Response, error) func (*RepositoriesService).ListContributorsStats(ctx context.Context, owner, repo string) ([]*ContributorStats, *Response, error) func (*RepositoriesService).ListCustomDeploymentRuleIntegrations(ctx context.Context, owner, repo, environment string) (*ListCustomDeploymentRuleIntegrationsResponse, *Response, error) func (*RepositoriesService).ListDeploymentBranchPolicies(ctx context.Context, owner, repo, environment string) (*DeploymentBranchPolicyResponse, *Response, error) func (*RepositoriesService).ListDeployments(ctx context.Context, owner, repo string, opts *DeploymentsListOptions) ([]*Deployment, *Response, error) func (*RepositoriesService).ListDeploymentStatuses(ctx context.Context, owner, repo string, deployment int64, opts *ListOptions) ([]*DeploymentStatus, *Response, error) func (*RepositoriesService).ListEnvironments(ctx context.Context, owner, repo string, opts *EnvironmentListOptions) (*EnvResponse, *Response, error) func (*RepositoriesService).ListForks(ctx context.Context, owner, repo string, opts *RepositoryListForksOptions) ([]*Repository, *Response, error) func (*RepositoriesService).ListHookDeliveries(ctx context.Context, owner, repo string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) func (*RepositoriesService).ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Hook, *Response, error) func (*RepositoriesService).ListInvitations(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryInvitation, *Response, error) func (*RepositoriesService).ListKeys(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Key, *Response, error) func (*RepositoriesService).ListLanguages(ctx context.Context, owner string, repo string) (map[string]int, *Response, error) func (*RepositoriesService).ListPagesBuilds(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PagesBuild, *Response, error) func (*RepositoriesService).ListParticipation(ctx context.Context, owner, repo string) (*RepositoryParticipation, *Response, error) func (*RepositoriesService).ListPreReceiveHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*PreReceiveHook, *Response, error) func (*RepositoriesService).ListProjects(ctx context.Context, owner, repo string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*RepositoriesService).ListPunchCard(ctx context.Context, owner, repo string) ([]*PunchCard, *Response, error) func (*RepositoriesService).ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opts *ListOptions) ([]*ReleaseAsset, *Response, error) func (*RepositoriesService).ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*RepositoryRelease, *Response, error) func (*RepositoriesService).ListRequiredStatusChecksContexts(ctx context.Context, owner, repo, branch string) (contexts []string, resp *Response, err error) func (*RepositoriesService).ListStatuses(ctx context.Context, owner, repo, ref string, opts *ListOptions) ([]*RepoStatus, *Response, error) func (*RepositoriesService).ListTagProtection(ctx context.Context, owner, repo string) ([]*TagProtection, *Response, error) func (*RepositoriesService).ListTags(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*RepositoryTag, *Response, error) func (*RepositoriesService).ListTeamRestrictions(ctx context.Context, owner, repo, branch string) ([]*Team, *Response, error) func (*RepositoriesService).ListTeams(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Team, *Response, error) func (*RepositoriesService).ListTrafficClones(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficClones, *Response, error) func (*RepositoriesService).ListTrafficPaths(ctx context.Context, owner, repo string) ([]*TrafficPath, *Response, error) func (*RepositoriesService).ListTrafficReferrers(ctx context.Context, owner, repo string) ([]*TrafficReferrer, *Response, error) func (*RepositoriesService).ListTrafficViews(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficViews, *Response, error) func (*RepositoriesService).ListUserRestrictions(ctx context.Context, owner, repo, branch string) ([]*User, *Response, error) func (*RepositoriesService).Merge(ctx context.Context, owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error) func (*RepositoriesService).MergeUpstream(ctx context.Context, owner, repo string, request *RepoMergeUpstreamRequest) (*RepoMergeUpstreamResult, *Response, error) func (*RepositoriesService).OptionalSignaturesOnProtectedBranch(ctx context.Context, owner, repo, branch string) (*Response, error) func (*RepositoriesService).PingHook(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).RedeliverHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) func (*RepositoriesService).RemoveAdminEnforcement(ctx context.Context, owner, repo, branch string) (*Response, error) func (*RepositoriesService).RemoveAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error) func (*RepositoriesService).RemoveBranchProtection(ctx context.Context, owner, repo, branch string) (*Response, error) func (*RepositoriesService).RemoveCollaborator(ctx context.Context, owner, repo, user string) (*Response, error) func (*RepositoriesService).RemovePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*Response, error) func (*RepositoriesService).RemoveRequiredStatusChecks(ctx context.Context, owner, repo, branch string) (*Response, error) func (*RepositoriesService).RemoveTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error) func (*RepositoriesService).RemoveUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error) func (*RepositoriesService).RenameBranch(ctx context.Context, owner, repo, branch, newName string) (*Branch, *Response, error) func (*RepositoriesService).ReplaceAllTopics(ctx context.Context, owner, repo string, topics []string) ([]string, *Response, error) func (*RepositoriesService).ReplaceAppRestrictions(ctx context.Context, owner, repo, branch string, apps []string) ([]*App, *Response, error) func (*RepositoriesService).ReplaceTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error) func (*RepositoriesService).ReplaceUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error) func (*RepositoriesService).RequestPageBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error) func (*RepositoriesService).RequireSignaturesOnProtectedBranch(ctx context.Context, owner, repo, branch string) (*SignaturesProtectedBranch, *Response, error) func (*RepositoriesService).Subscribe(ctx context.Context, owner, repo, event, callback string, secret []byte) (*Response, error) func (*RepositoriesService).TestHook(ctx context.Context, owner, repo string, id int64) (*Response, error) func (*RepositoriesService).Transfer(ctx context.Context, owner, repo string, transfer TransferRequest) (*Repository, *Response, error) func (*RepositoriesService).Unsubscribe(ctx context.Context, owner, repo, event, callback string, secret []byte) (*Response, error) func (*RepositoriesService).UpdateBranchProtection(ctx context.Context, owner, repo, branch string, preq *ProtectionRequest) (*Protection, *Response, error) func (*RepositoriesService).UpdateComment(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment) (*RepositoryComment, *Response, error) func (*RepositoriesService).UpdateDeploymentBranchPolicy(ctx context.Context, owner, repo, environment string, branchPolicyID int64, request *DeploymentBranchPolicyRequest) (*DeploymentBranchPolicy, *Response, error) func (*RepositoriesService).UpdateFile(ctx context.Context, owner, repo, path string, opts *RepositoryContentFileOptions) (*RepositoryContentResponse, *Response, error) func (*RepositoriesService).UpdateInvitation(ctx context.Context, owner, repo string, invitationID int64, permissions string) (*RepositoryInvitation, *Response, error) func (*RepositoriesService).UpdatePages(ctx context.Context, owner, repo string, opts *PagesUpdate) (*Response, error) func (*RepositoriesService).UpdatePreReceiveHook(ctx context.Context, owner, repo string, id int64, hook *PreReceiveHook) (*PreReceiveHook, *Response, error) func (*RepositoriesService).UpdatePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string, patch *PullRequestReviewsEnforcementUpdate) (*PullRequestReviewsEnforcement, *Response, error) func (*RepositoriesService).UpdateRequiredStatusChecks(ctx context.Context, owner, repo, branch string, sreq *RequiredStatusChecksRequest) (*RequiredStatusChecks, *Response, error) func (*RepositoriesService).UpdateRuleset(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).UpdateRulesetNoBypassActor(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).UploadReleaseAsset(ctx context.Context, owner, repo string, id int64, opts *UploadOptions, file *os.File) (*ReleaseAsset, *Response, error) func (*SCIMService).DeleteSCIMUserFromOrg(ctx context.Context, org, scimUserID string) (*Response, error) func (*SCIMService).GetSCIMProvisioningInfoForUser(ctx context.Context, org, scimUserID string) (*SCIMUserAttributes, *Response, error) func (*SCIMService).ListSCIMProvisionedIdentities(ctx context.Context, org string, opts *ListSCIMProvisionedIdentitiesOptions) (*SCIMProvisionedIdentities, *Response, error) func (*SCIMService).ProvisionAndInviteSCIMUser(ctx context.Context, org string, opts *SCIMUserAttributes) (*SCIMUserAttributes, *Response, error) func (*SCIMService).UpdateAttributeForSCIMUser(ctx context.Context, org, scimUserID string, opts *UpdateAttributeForSCIMUserOptions) (*Response, error) func (*SCIMService).UpdateProvisionedOrgMembership(ctx context.Context, org, scimUserID string, opts *SCIMUserAttributes) (*Response, error) func (*SearchService).Code(ctx context.Context, query string, opts *SearchOptions) (*CodeSearchResult, *Response, error) func (*SearchService).Commits(ctx context.Context, query string, opts *SearchOptions) (*CommitsSearchResult, *Response, error) func (*SearchService).Issues(ctx context.Context, query string, opts *SearchOptions) (*IssuesSearchResult, *Response, error) func (*SearchService).Labels(ctx context.Context, repoID int64, query string, opts *SearchOptions) (*LabelsSearchResult, *Response, error) func (*SearchService).Repositories(ctx context.Context, query string, opts *SearchOptions) (*RepositoriesSearchResult, *Response, error) func (*SearchService).Topics(ctx context.Context, query string, opts *SearchOptions) (*TopicsSearchResult, *Response, error) func (*SearchService).Users(ctx context.Context, query string, opts *SearchOptions) (*UsersSearchResult, *Response, error) func (*SecretScanningService).GetAlert(ctx context.Context, owner, repo string, number int64) (*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForEnterprise(ctx context.Context, enterprise string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForOrg(ctx context.Context, org string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForRepo(ctx context.Context, owner, repo string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListLocationsForAlert(ctx context.Context, owner, repo string, number int64, opts *ListOptions) ([]*SecretScanningAlertLocation, *Response, error) func (*SecretScanningService).UpdateAlert(ctx context.Context, owner, repo string, number int64, opts *SecretScanningAlertUpdateOptions) (*SecretScanningAlert, *Response, error) func (*SecurityAdvisoriesService).CreateTemporaryPrivateFork(ctx context.Context, owner, repo, ghsaID string) (*Repository, *Response, error) func (*SecurityAdvisoriesService).GetGlobalSecurityAdvisories(ctx context.Context, ghsaID string) (*GlobalSecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).ListGlobalSecurityAdvisories(ctx context.Context, opts *ListGlobalSecurityAdvisoriesOptions) ([]*GlobalSecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).ListRepositorySecurityAdvisories(ctx context.Context, owner, repo string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).ListRepositorySecurityAdvisoriesForOrg(ctx context.Context, org string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).RequestCVE(ctx context.Context, owner, repo, ghsaID string) (*Response, error) func (*TeamsService).AddTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error) func (*TeamsService).AddTeamMembershipBySlug(ctx context.Context, org, slug, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error) func (*TeamsService).AddTeamProjectByID(ctx context.Context, orgID, teamID, projectID int64, opts *TeamProjectOptions) (*Response, error) func (*TeamsService).AddTeamProjectBySlug(ctx context.Context, org, slug string, projectID int64, opts *TeamProjectOptions) (*Response, error) func (*TeamsService).AddTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string, opts *TeamAddTeamRepoOptions) (*Response, error) func (*TeamsService).AddTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string, opts *TeamAddTeamRepoOptions) (*Response, error) func (*TeamsService).CreateCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).CreateCommentBySlug(ctx context.Context, org, slug string, discsusionNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).CreateDiscussionByID(ctx context.Context, orgID, teamID int64, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).CreateDiscussionBySlug(ctx context.Context, org, slug string, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).CreateOrUpdateIDPGroupConnectionsByID(ctx context.Context, orgID, teamID int64, opts IDPGroupList) (*IDPGroupList, *Response, error) func (*TeamsService).CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org, slug string, opts IDPGroupList) (*IDPGroupList, *Response, error) func (*TeamsService).CreateTeam(ctx context.Context, org string, team NewTeam) (*Team, *Response, error) func (*TeamsService).DeleteCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int) (*Response, error) func (*TeamsService).DeleteCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int) (*Response, error) func (*TeamsService).DeleteDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*Response, error) func (*TeamsService).DeleteDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*Response, error) func (*TeamsService).DeleteTeamByID(ctx context.Context, orgID, teamID int64) (*Response, error) func (*TeamsService).DeleteTeamBySlug(ctx context.Context, org, slug string) (*Response, error) func (*TeamsService).EditCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).EditCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int, comment DiscussionComment) (*DiscussionComment, *Response, error) func (*TeamsService).EditDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).EditDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).EditTeamByID(ctx context.Context, orgID, teamID int64, team NewTeam, removeParent bool) (*Team, *Response, error) func (*TeamsService).EditTeamBySlug(ctx context.Context, org, slug string, team NewTeam, removeParent bool) (*Team, *Response, error) func (*TeamsService).GetCommentByID(ctx context.Context, orgID, teamID int64, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error) func (*TeamsService).GetCommentBySlug(ctx context.Context, org, slug string, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error) func (*TeamsService).GetDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*TeamDiscussion, *Response, error) func (*TeamsService).GetDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*TeamDiscussion, *Response, error) func (*TeamsService).GetExternalGroup(ctx context.Context, org string, groupID int64) (*ExternalGroup, *Response, error) func (*TeamsService).GetTeamByID(ctx context.Context, orgID, teamID int64) (*Team, *Response, error) func (*TeamsService).GetTeamBySlug(ctx context.Context, org, slug string) (*Team, *Response, error) func (*TeamsService).GetTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string) (*Membership, *Response, error) func (*TeamsService).GetTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*Membership, *Response, error) func (*TeamsService).IsTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string) (*Repository, *Response, error) func (*TeamsService).IsTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string) (*Repository, *Response, error) func (*TeamsService).ListChildTeamsByParentID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListChildTeamsByParentSlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListCommentsByID(ctx context.Context, orgID, teamID int64, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error) func (*TeamsService).ListCommentsBySlug(ctx context.Context, org, slug string, discussionNumber int, options *DiscussionCommentListOptions) ([]*DiscussionComment, *Response, error) func (*TeamsService).ListDiscussionsByID(ctx context.Context, orgID, teamID int64, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) func (*TeamsService).ListDiscussionsBySlug(ctx context.Context, org, slug string, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) func (*TeamsService).ListExternalGroups(ctx context.Context, org string, opts *ListExternalGroupsOptions) (*ExternalGroupList, *Response, error) func (*TeamsService).ListExternalGroupsForTeamBySlug(ctx context.Context, org, slug string) (*ExternalGroupList, *Response, error) func (*TeamsService).ListIDPGroupsForTeamByID(ctx context.Context, orgID, teamID int64) (*IDPGroupList, *Response, error) func (*TeamsService).ListIDPGroupsForTeamBySlug(ctx context.Context, org, slug string) (*IDPGroupList, *Response, error) func (*TeamsService).ListIDPGroupsInOrganization(ctx context.Context, org string, opts *ListIDPGroupsOptions) (*IDPGroupList, *Response, error) func (*TeamsService).ListPendingTeamInvitationsByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Invitation, *Response, error) func (*TeamsService).ListPendingTeamInvitationsBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Invitation, *Response, error) func (*TeamsService).ListTeamMembersByID(ctx context.Context, orgID, teamID int64, opts *TeamListTeamMembersOptions) ([]*User, *Response, error) func (*TeamsService).ListTeamMembersBySlug(ctx context.Context, org, slug string, opts *TeamListTeamMembersOptions) ([]*User, *Response, error) func (*TeamsService).ListTeamProjectsByID(ctx context.Context, orgID, teamID int64) ([]*Project, *Response, error) func (*TeamsService).ListTeamProjectsBySlug(ctx context.Context, org, slug string) ([]*Project, *Response, error) func (*TeamsService).ListTeamReposByID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Repository, *Response, error) func (*TeamsService).ListTeamReposBySlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Repository, *Response, error) func (*TeamsService).ListTeams(ctx context.Context, org string, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListUserTeams(ctx context.Context, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).RemoveConnectedExternalGroup(ctx context.Context, org, slug string) (*Response, error) func (*TeamsService).RemoveTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string) (*Response, error) func (*TeamsService).RemoveTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*Response, error) func (*TeamsService).RemoveTeamProjectByID(ctx context.Context, orgID, teamID, projectID int64) (*Response, error) func (*TeamsService).RemoveTeamProjectBySlug(ctx context.Context, org, slug string, projectID int64) (*Response, error) func (*TeamsService).RemoveTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string) (*Response, error) func (*TeamsService).RemoveTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string) (*Response, error) func (*TeamsService).ReviewTeamProjectsByID(ctx context.Context, orgID, teamID, projectID int64) (*Project, *Response, error) func (*TeamsService).ReviewTeamProjectsBySlug(ctx context.Context, org, slug string, projectID int64) (*Project, *Response, error) func (*TeamsService).UpdateConnectedExternalGroup(ctx context.Context, org, slug string, eg *ExternalGroup) (*ExternalGroup, *Response, error) func (*UsersService).AcceptInvitation(ctx context.Context, invitationID int64) (*Response, error) func (*UsersService).AddEmails(ctx context.Context, emails []string) ([]*UserEmail, *Response, error) func (*UsersService).BlockUser(ctx context.Context, user string) (*Response, error) func (*UsersService).CreateGPGKey(ctx context.Context, armoredPublicKey string) (*GPGKey, *Response, error) func (*UsersService).CreateKey(ctx context.Context, key *Key) (*Key, *Response, error) func (*UsersService).CreateProject(ctx context.Context, opts *CreateUserProjectOptions) (*Project, *Response, error) func (*UsersService).CreateSSHSigningKey(ctx context.Context, key *Key) (*SSHSigningKey, *Response, error) func (*UsersService).DeclineInvitation(ctx context.Context, invitationID int64) (*Response, error) func (*UsersService).DeleteEmails(ctx context.Context, emails []string) (*Response, error) func (*UsersService).DeleteGPGKey(ctx context.Context, id int64) (*Response, error) func (*UsersService).DeleteKey(ctx context.Context, id int64) (*Response, error) func (*UsersService).DeletePackage(ctx context.Context, user, packageType, packageName string) (*Response, error) func (*UsersService).DeleteSSHSigningKey(ctx context.Context, id int64) (*Response, error) func (*UsersService).DemoteSiteAdmin(ctx context.Context, user string) (*Response, error) func (*UsersService).Edit(ctx context.Context, user *User) (*User, *Response, error) func (*UsersService).Follow(ctx context.Context, user string) (*Response, error) func (*UsersService).Get(ctx context.Context, user string) (*User, *Response, error) func (*UsersService).GetByID(ctx context.Context, id int64) (*User, *Response, error) func (*UsersService).GetGPGKey(ctx context.Context, id int64) (*GPGKey, *Response, error) func (*UsersService).GetHovercard(ctx context.Context, user string, opts *HovercardOptions) (*Hovercard, *Response, error) func (*UsersService).GetKey(ctx context.Context, id int64) (*Key, *Response, error) func (*UsersService).GetPackage(ctx context.Context, user, packageType, packageName string) (*Package, *Response, error) func (*UsersService).GetSSHSigningKey(ctx context.Context, id int64) (*SSHSigningKey, *Response, error) func (*UsersService).IsBlocked(ctx context.Context, user string) (bool, *Response, error) func (*UsersService).IsFollowing(ctx context.Context, user, target string) (bool, *Response, error) func (*UsersService).ListAll(ctx context.Context, opts *UserListOptions) ([]*User, *Response, error) func (*UsersService).ListBlockedUsers(ctx context.Context, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListEmails(ctx context.Context, opts *ListOptions) ([]*UserEmail, *Response, error) func (*UsersService).ListFollowers(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListFollowing(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListGPGKeys(ctx context.Context, user string, opts *ListOptions) ([]*GPGKey, *Response, error) func (*UsersService).ListInvitations(ctx context.Context, opts *ListOptions) ([]*RepositoryInvitation, *Response, error) func (*UsersService).ListKeys(ctx context.Context, user string, opts *ListOptions) ([]*Key, *Response, error) func (*UsersService).ListPackages(ctx context.Context, user string, opts *PackageListOptions) ([]*Package, *Response, error) func (*UsersService).ListProjects(ctx context.Context, user string, opts *ProjectListOptions) ([]*Project, *Response, error) func (*UsersService).ListSSHSigningKeys(ctx context.Context, user string, opts *ListOptions) ([]*SSHSigningKey, *Response, error) func (*UsersService).PackageDeleteVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*Response, error) func (*UsersService).PackageGetAllVersions(ctx context.Context, user, packageType, packageName string, opts *PackageListOptions) ([]*PackageVersion, *Response, error) func (*UsersService).PackageGetVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*PackageVersion, *Response, error) func (*UsersService).PackageRestoreVersion(ctx context.Context, user, packageType, packageName string, packageVersionID int64) (*Response, error) func (*UsersService).PromoteSiteAdmin(ctx context.Context, user string) (*Response, error) func (*UsersService).RestorePackage(ctx context.Context, user, packageType, packageName string) (*Response, error) func (*UsersService).SetEmailVisibility(ctx context.Context, visibility string) ([]*UserEmail, *Response, error) func (*UsersService).Suspend(ctx context.Context, user string, opts *UserSuspendOptions) (*Response, error) func (*UsersService).UnblockUser(ctx context.Context, user string) (*Response, error) func (*UsersService).Unfollow(ctx context.Context, user string) (*Response, error) func (*UsersService).Unsuspend(ctx context.Context, user string) (*Response, error)
ReviewCustomDeploymentProtectionRuleRequest specifies the parameters to ReviewCustomDeploymentProtectionRule. Comment string EnvironmentName string State string func (*ActionsService).ReviewCustomDeploymentProtectionRule(ctx context.Context, owner, repo string, runID int64, request *ReviewCustomDeploymentProtectionRuleRequest) (*Response, error)
Reviewers represents reviewers of a pull request. Teams []*Team Users []*User func (*PullRequestsService).ListReviewers(ctx context.Context, owner, repo string, number int, opts *ListOptions) (*Reviewers, *Response, error)
ReviewersRequest specifies users and teams for a pull request review request. NodeID *string Reviewers []string TeamReviewers []string GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. func (*PullRequestsService).RemoveReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*Response, error) func (*PullRequestsService).RequestReviewers(ctx context.Context, owner, repo string, number int, reviewers ReviewersRequest) (*PullRequest, *Response, error)
ReviewPersonalAccessTokenRequestOptions specifies the parameters to the ReviewPersonalAccessTokenRequest method. Action string Reason *string GetReason returns the Reason field if it's non-nil, zero value otherwise. func (*OrganizationsService).ReviewPersonalAccessTokenRequest(ctx context.Context, org string, requestID int64, opts ReviewPersonalAccessTokenRequestOptions) (*Response, error)
Rule represents the complete details of GitHub Code Scanning alert type. Description *string FullDescription *string Help *string ID *string Name *string SecuritySeverityLevel *string Severity *string Tags []string GetDescription returns the Description field if it's non-nil, zero value otherwise. GetFullDescription returns the FullDescription field if it's non-nil, zero value otherwise. GetHelp returns the Help field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetSecuritySeverityLevel returns the SecuritySeverityLevel field if it's non-nil, zero value otherwise. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. func (*Alert).GetRule() *Rule
RuleFileExtensionRestrictionParameters represents the file_extension_restriction rule parameters. RestrictedFileExtensions []string func NewFileExtensionRestrictionRule(params *RuleFileExtensionRestrictionParameters) (rule *RepositoryRule)
RuleFileParameters represents a list of file paths. RestrictedFilePaths *[]string GetRestrictedFilePaths returns the RestrictedFilePaths field if it's non-nil, zero value otherwise. func NewFilePathRestrictionRule(params *RuleFileParameters) (rule *RepositoryRule)
RuleMaxFilePathLengthParameters represents the max_file_path_length rule parameters. MaxFilePathLength int func NewMaxFilePathLengthRule(params *RuleMaxFilePathLengthParameters) (rule *RepositoryRule)
RuleMaxFileSizeParameters represents the max_file_size rule parameters. MaxFileSize int64 func NewMaxFileSizeRule(params *RuleMaxFileSizeParameters) (rule *RepositoryRule)
RulePatternParameters represents the rule pattern parameters. Name *string If Negate is true, the rule will fail if the pattern matches. Possible values for Operator are: starts_with, ends_with, contains, regex Pattern string GetName returns the Name field if it's non-nil, zero value otherwise. GetNegate returns the Negate field if it's non-nil, zero value otherwise. func NewBranchNamePatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCommitAuthorEmailPatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCommitMessagePatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewCommitterEmailPatternRule(params *RulePatternParameters) (rule *RepositoryRule) func NewTagNamePatternRule(params *RulePatternParameters) (rule *RepositoryRule)
RuleRequiredStatusChecks represents the RequiredStatusChecks for the RequiredStatusChecksRuleParameters object. Context string IntegrationID *int64 GetIntegrationID returns the IntegrationID field if it's non-nil, zero value otherwise.
RuleRequiredWorkflow represents the Workflow for the RequireWorkflowsRuleParameters object. Path string Ref *string RepositoryID *int64 Sha *string GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. GetSha returns the Sha field if it's non-nil, zero value otherwise.
Ruleset represents a GitHub ruleset object. BypassActors []*BypassActor Conditions *RulesetConditions Possible values for Enforcement are: disabled, active, evaluate ID *int64 Links *RulesetLinks Name string NodeID *string Rules []*RepositoryRule Source string Possible values for SourceType are: Repository, Organization Possible values for Target are branch, tag, push GetConditions returns the Conditions field. GetID returns the ID field if it's non-nil, zero value otherwise. GetLinks returns the Links field. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetSourceType returns the SourceType field if it's non-nil, zero value otherwise. GetTarget returns the Target field if it's non-nil, zero value otherwise. func (*OrganizationsService).CreateOrganizationRuleset(ctx context.Context, org string, rs *Ruleset) (*Ruleset, *Response, error) func (*OrganizationsService).GetAllOrganizationRulesets(ctx context.Context, org string) ([]*Ruleset, *Response, error) func (*OrganizationsService).GetOrganizationRuleset(ctx context.Context, org string, rulesetID int64) (*Ruleset, *Response, error) func (*OrganizationsService).UpdateOrganizationRuleset(ctx context.Context, org string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).CreateRuleset(ctx context.Context, owner, repo string, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).GetAllRulesets(ctx context.Context, owner, repo string, includesParents bool) ([]*Ruleset, *Response, error) func (*RepositoriesService).GetRuleset(ctx context.Context, owner, repo string, rulesetID int64, includesParents bool) (*Ruleset, *Response, error) func (*RepositoriesService).UpdateRuleset(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).UpdateRulesetNoBypassActor(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*OrganizationsService).CreateOrganizationRuleset(ctx context.Context, org string, rs *Ruleset) (*Ruleset, *Response, error) func (*OrganizationsService).UpdateOrganizationRuleset(ctx context.Context, org string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).CreateRuleset(ctx context.Context, owner, repo string, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).UpdateRuleset(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error) func (*RepositoriesService).UpdateRulesetNoBypassActor(ctx context.Context, owner, repo string, rulesetID int64, rs *Ruleset) (*Ruleset, *Response, error)
RulesetConditions represents the conditions object in a ruleset. Set either RepositoryName or RepositoryID or RepositoryProperty, not more than one. RefName *RulesetRefConditionParameters RepositoryID *RulesetRepositoryIDsConditionParameters RepositoryName *RulesetRepositoryNamesConditionParameters RepositoryProperty *RulesetRepositoryPropertyConditionParameters GetRefName returns the RefName field. GetRepositoryID returns the RepositoryID field. GetRepositoryName returns the RepositoryName field. GetRepositoryProperty returns the RepositoryProperty field. func (*Ruleset).GetConditions() *RulesetConditions
RulesetRefConditionParameters represents the conditions object for ref_names. Exclude []string Include []string func (*RulesetConditions).GetRefName() *RulesetRefConditionParameters
RulesetRepositoryIDsConditionParameters represents the conditions object for repository_ids. RepositoryIDs []int64 func (*RulesetConditions).GetRepositoryID() *RulesetRepositoryIDsConditionParameters
RulesetRepositoryNamesConditionParameters represents the conditions object for repository_names. Exclude []string Include []string Protected *bool GetProtected returns the Protected field if it's non-nil, zero value otherwise. func (*RulesetConditions).GetRepositoryName() *RulesetRepositoryNamesConditionParameters
RulesetRepositoryPropertyConditionParameters represents the conditions object for repository_property. Exclude []RulesetRepositoryPropertyTargetParameters Include []RulesetRepositoryPropertyTargetParameters func (*RulesetConditions).GetRepositoryProperty() *RulesetRepositoryPropertyConditionParameters
RulesetRepositoryPropertyTargetParameters represents a repository_property name and values to be used for targeting. Name string Source string Values []string
Runner represents a self-hosted runner registered with a repository. Busy *bool ID *int64 Labels []*RunnerLabels Name *string OS *string Status *string GetBusy returns the Busy field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOS returns the OS field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. func (*ActionsService).GetOrganizationRunner(ctx context.Context, org string, runnerID int64) (*Runner, *Response, error) func (*ActionsService).GetRunner(ctx context.Context, owner, repo string, runnerID int64) (*Runner, *Response, error) func (*EnterpriseService).GetRunner(ctx context.Context, enterprise string, runnerID int64) (*Runner, *Response, error) func (*JITRunnerConfig).GetRunner() *Runner
RunnerApplicationDownload represents a binary for the self-hosted runner application that can be downloaded. Architecture *string DownloadURL *string Filename *string OS *string SHA256Checksum *string TempDownloadToken *string GetArchitecture returns the Architecture field if it's non-nil, zero value otherwise. GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. GetFilename returns the Filename field if it's non-nil, zero value otherwise. GetOS returns the OS field if it's non-nil, zero value otherwise. GetSHA256Checksum returns the SHA256Checksum field if it's non-nil, zero value otherwise. GetTempDownloadToken returns the TempDownloadToken field if it's non-nil, zero value otherwise. func (*ActionsService).ListOrganizationRunnerApplicationDownloads(ctx context.Context, org string) ([]*RunnerApplicationDownload, *Response, error) func (*ActionsService).ListRunnerApplicationDownloads(ctx context.Context, owner, repo string) ([]*RunnerApplicationDownload, *Response, error) func (*EnterpriseService).ListRunnerApplicationDownloads(ctx context.Context, enterprise string) ([]*RunnerApplicationDownload, *Response, error)
RunnerGroup represents a self-hosted runner group configured in an organization. AllowsPublicRepositories *bool Default *bool ID *int64 Inherited *bool Name *string RestrictedToWorkflows *bool RunnersURL *string SelectedRepositoriesURL *string SelectedWorkflows []string Visibility *string WorkflowRestrictionsReadOnly *bool GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. GetDefault returns the Default field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInherited returns the Inherited field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. GetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise. GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. GetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise. func (*ActionsService).CreateOrganizationRunnerGroup(ctx context.Context, org string, createReq CreateRunnerGroupRequest) (*RunnerGroup, *Response, error) func (*ActionsService).GetOrganizationRunnerGroup(ctx context.Context, org string, groupID int64) (*RunnerGroup, *Response, error) func (*ActionsService).UpdateOrganizationRunnerGroup(ctx context.Context, org string, groupID int64, updateReq UpdateRunnerGroupRequest) (*RunnerGroup, *Response, error)
RunnerGroups represents a collection of self-hosted runner groups configured for an organization. RunnerGroups []*RunnerGroup TotalCount int func (*ActionsService).ListOrganizationRunnerGroups(ctx context.Context, org string, opts *ListOrgRunnerGroupOptions) (*RunnerGroups, *Response, error)
RunnerLabels represents a collection of labels attached to each runner. ID *int64 Name *string Type *string GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise.
Runners represents a collection of self-hosted runners for a repository. Runners []*Runner TotalCount int func (*ActionsService).ListOrganizationRunners(ctx context.Context, org string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*ActionsService).ListRunnerGroupRunners(ctx context.Context, org string, groupID int64, opts *ListOptions) (*Runners, *Response, error) func (*ActionsService).ListRunners(ctx context.Context, owner, repo string, opts *ListRunnersOptions) (*Runners, *Response, error) func (*EnterpriseService).ListRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, opts *ListOptions) (*Runners, *Response, error) func (*EnterpriseService).ListRunners(ctx context.Context, enterprise string, opts *ListRunnersOptions) (*Runners, *Response, error)
SarifAnalysis specifies the results of a code scanning job. GitHub API docs: https://docs.github.com/rest/code-scanning CheckoutURI *string CommitSHA *string Ref *string Sarif *string StartedAt *Timestamp ToolName *string GetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise. GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetSarif returns the Sarif field if it's non-nil, zero value otherwise. GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. GetToolName returns the ToolName field if it's non-nil, zero value otherwise. func (*CodeScanningService).UploadSarif(ctx context.Context, owner, repo string, sarif *SarifAnalysis) (*SarifID, *Response, error)
SarifID identifies a sarif analysis upload. GitHub API docs: https://docs.github.com/rest/code-scanning ID *string URL *string GetID returns the ID field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*CodeScanningService).UploadSarif(ctx context.Context, owner, repo string, sarif *SarifAnalysis) (*SarifID, *Response, error)
SARIFUpload represents information about a SARIF upload. The REST API URL for getting the analyses associated with the upload. `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. GetAnalysesURL returns the AnalysesURL field if it's non-nil, zero value otherwise. GetProcessingStatus returns the ProcessingStatus field if it's non-nil, zero value otherwise. func (*CodeScanningService).GetSARIF(ctx context.Context, owner, repo, sarifID string) (*SARIFUpload, *Response, error)
SBOM represents a software bill of materials, which describes the packages/libraries that a repository depends on. SBOM *SBOMInfo GetSBOM returns the SBOM field. ( SBOM) String() string SBOM : expvar.Var SBOM : fmt.Stringer func (*DependencyGraphService).GetSBOM(ctx context.Context, owner, repo string) (*SBOM, *Response, error)
SBOMInfo 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. CreationInfo *CreationInfo DataLicense *string DocumentDescribes []string DocumentNamespace *string Repo name List of packages dependencies SPDXID *string SPDXVersion *string GetCreationInfo returns the CreationInfo field. GetDataLicense returns the DataLicense field if it's non-nil, zero value otherwise. GetDocumentNamespace returns the DocumentNamespace field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. GetSPDXVersion returns the SPDXVersion field if it's non-nil, zero value otherwise. func (*SBOM).GetSBOM() *SBOMInfo
ScanningAnalysis represents an individual GitHub Code Scanning ScanningAnalysis on a single repository. GitHub API docs: https://docs.github.com/rest/code-scanning AnalysisKey *string Category *string CommitSHA *string CreatedAt *Timestamp Deletable *bool Environment *string Error *string ID *int64 Ref *string ResultsCount *int RulesCount *int SarifID *string Tool *Tool URL *string Warning *string GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. GetCategory returns the Category field if it's non-nil, zero value otherwise. GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDeletable returns the Deletable field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetError returns the Error field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetResultsCount returns the ResultsCount field if it's non-nil, zero value otherwise. GetRulesCount returns the RulesCount field if it's non-nil, zero value otherwise. GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. GetTool returns the Tool field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetWarning returns the Warning field if it's non-nil, zero value otherwise. func (*CodeScanningService).GetAnalysis(ctx context.Context, owner, repo string, id int64) (*ScanningAnalysis, *Response, error) func (*CodeScanningService).ListAnalysesForRepo(ctx context.Context, owner, repo string, opts *AnalysesListOptions) ([]*ScanningAnalysis, *Response, error)
SCIMMeta represents metadata about the SCIM resource. Created *Timestamp LastModified *Timestamp Location *string ResourceType *string GetCreated returns the Created field if it's non-nil, zero value otherwise. GetLastModified returns the LastModified field if it's non-nil, zero value otherwise. GetLocation returns the Location field if it's non-nil, zero value otherwise. GetResourceType returns the ResourceType field if it's non-nil, zero value otherwise. func (*SCIMUserAttributes).GetMeta() *SCIMMeta
SCIMProvisionedIdentities represents the result of calling ListSCIMProvisionedIdentities. ItemsPerPage *int Resources []*SCIMUserAttributes Schemas []string StartIndex *int TotalResults *int GetItemsPerPage returns the ItemsPerPage field if it's non-nil, zero value otherwise. GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. GetTotalResults returns the TotalResults field if it's non-nil, zero value otherwise. func (*SCIMService).ListSCIMProvisionedIdentities(ctx context.Context, org string, opts *ListSCIMProvisionedIdentitiesOptions) (*SCIMProvisionedIdentities, *Response, error)
SCIMService provides access to SCIM related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/scim DeleteSCIMUserFromOrg deletes SCIM user from an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/scim/scim#delete-a-scim-user-from-an-organization GetSCIMProvisioningInfoForUser returns SCIM provisioning information for a user. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/scim/scim#get-scim-provisioning-information-for-a-user ListSCIMProvisionedIdentities lists SCIM provisioned identities. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/scim/scim#list-scim-provisioned-identities ProvisionAndInviteSCIMUser provisions organization membership for a user, and sends an activation email to the email address. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/scim/scim#provision-and-invite-a-scim-user UpdateAttributeForSCIMUser updates an attribute for an SCIM user. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/scim/scim#update-an-attribute-for-a-scim-user UpdateProvisionedOrgMembership updates a provisioned organization membership. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/scim/scim#update-a-provisioned-organization-membership
SCIMUserAttributes represents supported SCIM User attributes. GitHub API docs: https://docs.github.com/rest/scim#supported-scim-user-attributes // (Optional.) // The name of the user, suitable for display to end-users. (Optional.) // User emails. (Required.) // (Optional.) // (Optional.) Only populated as a result of calling ListSCIMProvisionedIdentitiesOptions or GetSCIMProvisioningInfoForUser: Meta *SCIMMeta // (Required.) // (Optional.) // Configured by the admin. Could be an email, login, or username. (Required.) GetActive returns the Active field if it's non-nil, zero value otherwise. GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetMeta returns the Meta field. func (*SCIMService).GetSCIMProvisioningInfoForUser(ctx context.Context, org, scimUserID string) (*SCIMUserAttributes, *Response, error) func (*SCIMService).ProvisionAndInviteSCIMUser(ctx context.Context, org string, opts *SCIMUserAttributes) (*SCIMUserAttributes, *Response, error) func (*SCIMService).ProvisionAndInviteSCIMUser(ctx context.Context, org string, opts *SCIMUserAttributes) (*SCIMUserAttributes, *Response, error) func (*SCIMService).UpdateProvisionedOrgMembership(ctx context.Context, org, scimUserID string, opts *SCIMUserAttributes) (*Response, error)
SCIMUserEmail represents SCIM user email. // (Optional.) // (Optional.) // (Required.) GetPrimary returns the Primary field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise.
SCIMUserName represents SCIM user information. // The family name of the user. (Required.) // (Optional.) // The first name of the user. (Required.) GetFormatted returns the Formatted field if it's non-nil, zero value otherwise.
SearchOptions specifies optional parameters to the SearchService methods. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Sort order if sort parameter is provided. Possible values are: asc, desc. Default is desc. How to sort the search results. Possible values are: - for repositories: stars, fork, updated - for commits: author-date, committer-date - for code: indexed - for issues: comments, created, updated - for users: followers, repositories, joined Default is to sort by best match. Whether to retrieve text match metadata with a query func (*SearchService).Code(ctx context.Context, query string, opts *SearchOptions) (*CodeSearchResult, *Response, error) func (*SearchService).Commits(ctx context.Context, query string, opts *SearchOptions) (*CommitsSearchResult, *Response, error) func (*SearchService).Issues(ctx context.Context, query string, opts *SearchOptions) (*IssuesSearchResult, *Response, error) func (*SearchService).Labels(ctx context.Context, repoID int64, query string, opts *SearchOptions) (*LabelsSearchResult, *Response, error) func (*SearchService).Repositories(ctx context.Context, query string, opts *SearchOptions) (*RepositoriesSearchResult, *Response, error) func (*SearchService).Topics(ctx context.Context, query string, opts *SearchOptions) (*TopicsSearchResult, *Response, error) func (*SearchService).Users(ctx context.Context, query string, opts *SearchOptions) (*UsersSearchResult, *Response, error)
SearchService provides access to the search related functions in the GitHub API. Each 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 opts := &github.SearchOptions{Sort: "created", Order: "asc"} cl.Search.Issues(ctx, "gopher is:issue language:go", opts) will search for such issues, sorting by creation date in ascending order (i.e., oldest first). If 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". GitHub API docs: https://docs.github.com/rest/search/ Code searches code via various criteria. GitHub API docs: https://docs.github.com/rest/search/search#search-code Commits searches commits via various criteria. GitHub API docs: https://docs.github.com/rest/search/search#search-commits Issues searches issues via various criteria. GitHub API docs: https://docs.github.com/rest/search/search#search-issues-and-pull-requests Labels searches labels in the repository with ID repoID via various criteria. GitHub API docs: https://docs.github.com/rest/search/search#search-labels Repositories searches repositories via various criteria. GitHub API docs: https://docs.github.com/rest/search/search#search-repositories Topics finds topics via various criteria. Results are sorted by best match. Please see https://help.github.com/articles/searching-topics for more information about search qualifiers. GitHub API docs: https://docs.github.com/rest/search/search#search-topics Users searches users via various criteria. GitHub API docs: https://docs.github.com/rest/search/search#search-users
SeatAssignments represents the number of seats assigned. SeatsCreated int func (*CopilotService).AddCopilotTeams(ctx context.Context, org string, teamNames []string) (*SeatAssignments, *Response, error) func (*CopilotService).AddCopilotUsers(ctx context.Context, org string, users []string) (*SeatAssignments, *Response, error)
SeatCancellations represents the number of seats cancelled. SeatsCancelled int func (*CopilotService).RemoveCopilotTeams(ctx context.Context, org string, teamNames []string) (*SeatCancellations, *Response, error) func (*CopilotService).RemoveCopilotUsers(ctx context.Context, org string, users []string) (*SeatCancellations, *Response, error)
Secret represents a repository action secret. CreatedAt Timestamp Name string SelectedRepositoriesURL string UpdatedAt Timestamp Visibility string func (*ActionsService).GetEnvSecret(ctx context.Context, repoID int, env, secretName string) (*Secret, *Response, error) func (*ActionsService).GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error) func (*ActionsService).GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error) func (*CodespacesService).GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error) func (*CodespacesService).GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error) func (*CodespacesService).GetUserSecret(ctx context.Context, name string) (*Secret, *Response, error) func (*DependabotService).GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error) func (*DependabotService).GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error)
Secrets represents one item from the ListSecrets response. Secrets []*Secret TotalCount int func (*ActionsService).ListEnvSecrets(ctx context.Context, repoID int, env string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListRepoOrgSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*ActionsService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error) func (*CodespacesService).ListUserSecrets(ctx context.Context, opts *ListOptions) (*Secrets, *Response, error) func (*DependabotService).ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error) func (*DependabotService).ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)
SecretScanning specifies the state of secret scanning on a repository. GitHub API docs: https://docs.github.com/code-security/secret-security/about-secret-scanning Status *string GetStatus returns the Status field if it's non-nil, zero value otherwise. ( SecretScanning) String() string SecretScanning : expvar.Var SecretScanning : fmt.Stringer func (*SecurityAndAnalysis).GetSecretScanning() *SecretScanning
SecretScanningAlert represents a GitHub secret scanning alert. CreatedAt *Timestamp HTMLURL *string LocationsURL *string Number *int PushProtectionBypassed *bool PushProtectionBypassedAt *Timestamp PushProtectionBypassedBy *User Repository *Repository Resolution *string ResolutionComment *string ResolvedAt *Timestamp ResolvedBy *User Secret *string SecretType *string SecretTypeDisplayName *string State *string URL *string UpdatedAt *Timestamp GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetLocationsURL returns the LocationsURL field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetPushProtectionBypassed returns the PushProtectionBypassed field if it's non-nil, zero value otherwise. GetPushProtectionBypassedAt returns the PushProtectionBypassedAt field if it's non-nil, zero value otherwise. GetPushProtectionBypassedBy returns the PushProtectionBypassedBy field. GetRepository returns the Repository field. GetResolution returns the Resolution field if it's non-nil, zero value otherwise. GetResolutionComment returns the ResolutionComment field if it's non-nil, zero value otherwise. GetResolvedAt returns the ResolvedAt field if it's non-nil, zero value otherwise. GetResolvedBy returns the ResolvedBy field. GetSecret returns the Secret field if it's non-nil, zero value otherwise. GetSecretType returns the SecretType field if it's non-nil, zero value otherwise. GetSecretTypeDisplayName returns the SecretTypeDisplayName field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*SecretScanningAlertEvent).GetAlert() *SecretScanningAlert func (*SecretScanningService).GetAlert(ctx context.Context, owner, repo string, number int64) (*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForEnterprise(ctx context.Context, enterprise string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForOrg(ctx context.Context, org string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForRepo(ctx context.Context, owner, repo string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).UpdateAlert(ctx context.Context, owner, repo string, number int64, opts *SecretScanningAlertUpdateOptions) (*SecretScanningAlert, *Response, error)
SecretScanningAlertEvent is triggered when a secret scanning alert occurs in a repository. The Webhook name is secret_scanning_alert. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert Action is the action that was performed. Possible values are: "created", "resolved", or "reopened". Alert is the secret scanning alert involved in the event. Enterprise *Enterprise Installation *Installation Organization *Organization The following fields are only populated by Webhook events. Only populated by the "resolved" and "reopen" actions GetAction returns the Action field if it's non-nil, zero value otherwise. GetAlert returns the Alert field. GetEnterprise returns the Enterprise field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepo returns the Repo field. GetSender returns the Sender field.
SecretScanningAlertListOptions specifies optional parameters to the SecretScanningService.ListAlertsForEnterprise method. ListCursorOptions ListCursorOptions A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. A cursor, as given in the Link header. If specified, the query continues the search using this cursor. For paginated result sets, the number of results per page (max 100), starting from the first matching result. This parameter must not be used in combination with last. For paginated result sets, the number of results per page (max 100), starting from the last matching result. This parameter must not be used in combination with first. List options can vary on the Enterprise type. On Enterprise Cloud, Secret Scan alerts support requesting by page number along with providing a cursor for an "after" param. See: https://docs.github.com/enterprise-cloud@latest/rest/secret-scanning#list-secret-scanning-alerts-for-an-organization Whereas on Enterprise Server, pagination is by index. See: https://docs.github.com/enterprise-server@3.6/rest/secret-scanning#list-secret-scanning-alerts-for-an-organization A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests. A comma-separated list of secret types to return. By default all secret types are returned. State of the secret scanning alerts to list. Set to open or resolved to only list secret scanning alerts in a specific state. func (*SecretScanningService).ListAlertsForEnterprise(ctx context.Context, enterprise string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForOrg(ctx context.Context, org string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error) func (*SecretScanningService).ListAlertsForRepo(ctx context.Context, owner, repo string, opts *SecretScanningAlertListOptions) ([]*SecretScanningAlert, *Response, error)
SecretScanningAlertLocation represents the location for a secret scanning alert. Details *SecretScanningAlertLocationDetails Type *string GetDetails returns the Details field. GetType returns the Type field if it's non-nil, zero value otherwise. func (*SecretScanningService).ListLocationsForAlert(ctx context.Context, owner, repo string, number int64, opts *ListOptions) ([]*SecretScanningAlertLocation, *Response, error)
SecretScanningAlertLocationDetails represents the location details for a secret scanning alert. BlobSHA *string BlobURL *string CommitSHA *string CommitURL *string EndColumn *int EndLine *int Path *string StartColumn *int Startline *int GetBlobSHA returns the BlobSHA field if it's non-nil, zero value otherwise. GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. GetStartline returns the Startline field if it's non-nil, zero value otherwise. func (*SecretScanningAlertLocation).GetDetails() *SecretScanningAlertLocationDetails
SecretScanningAlertUpdateOptions specifies optional parameters to the SecretScanningService.UpdateAlert method. Required when the state is "resolved" and represents the reason for resolving the alert. Can be one of: "false_positive", "wont_fix", "revoked", or "used_in_tests". State is required and sets the state of the secret scanning alert. Can be either "open" or "resolved". You must provide resolution when you set the state to "resolved". GetResolution returns the Resolution field if it's non-nil, zero value otherwise. func (*SecretScanningService).UpdateAlert(ctx context.Context, owner, repo string, number int64, opts *SecretScanningAlertUpdateOptions) (*SecretScanningAlert, *Response, error)
SecretScanningPushProtection specifies the state of secret scanning push protection on a repository. GitHub API docs: https://docs.github.com/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-partner-patterns Status *string GetStatus returns the Status field if it's non-nil, zero value otherwise. ( SecretScanningPushProtection) String() string SecretScanningPushProtection : expvar.Var SecretScanningPushProtection : fmt.Stringer func (*SecurityAndAnalysis).GetSecretScanningPushProtection() *SecretScanningPushProtection
SecretScanningService handles communication with the secret scanning related methods of the GitHub API. GetAlert gets a single secret scanning alert detected in a private repository. To 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. GitHub API docs: https://docs.github.com/rest/secret-scanning/secret-scanning#get-a-secret-scanning-alert ListAlertsForEnterprise lists secret scanning alerts for eligible repositories in an enterprise, from newest to oldest. To 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. GitHub API docs: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-enterprise ListAlertsForOrg lists secret scanning alerts for eligible repositories in an organization, from newest to oldest. To 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. GitHub API docs: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization ListAlertsForRepo lists secret scanning alerts for a private repository, from newest to oldest. To 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. GitHub API docs: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository ListLocationsForAlert lists all locations for a given secret scanning alert for a private repository. To 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. GitHub API docs: https://docs.github.com/rest/secret-scanning/secret-scanning#list-locations-for-a-secret-scanning-alert UpdateAlert updates the status of a secret scanning alert in a private repository. To 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. GitHub API docs: https://docs.github.com/rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert
SecretScanningValidityChecks represents the state of secret scanning validity checks on a repository. GitHub 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 Status *string GetStatus returns the Status field if it's non-nil, zero value otherwise. func (*SecurityAndAnalysis).GetSecretScanningValidityChecks() *SecretScanningValidityChecks
CreateTemporaryPrivateFork 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. GitHub API docs: https://docs.github.com/rest/security-advisories/repository-advisories#create-a-temporary-private-fork GetGlobalSecurityAdvisories gets a global security advisory using its GitHub Security Advisory (GHSA) identifier. GitHub API docs: https://docs.github.com/rest/security-advisories/global-advisories#get-a-global-security-advisory ListGlobalSecurityAdvisories lists all global security advisories. GitHub API docs: https://docs.github.com/rest/security-advisories/global-advisories#list-global-security-advisories ListRepositorySecurityAdvisories lists the security advisories in a repository. GitHub API docs: https://docs.github.com/rest/security-advisories/repository-advisories#list-repository-security-advisories ListRepositorySecurityAdvisoriesForOrg lists the repository security advisories for an organization. GitHub API docs: https://docs.github.com/rest/security-advisories/repository-advisories#list-repository-security-advisories-for-an-organization RequestCVE requests a Common Vulnerabilities and Exposures (CVE) for a repository security advisory. The ghsaID is the GitHub Security Advisory identifier of the advisory. GitHub API docs: https://docs.github.com/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory
SecurityAdvisory represents the advisory object in SecurityAdvisoryEvent payload. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory Author *User CVEID *string CVSS *AdvisoryCVSS CWEIDs []string CWEs []*AdvisoryCWEs ClosedAt *Timestamp CollaboratingTeams []*Team CollaboratingUsers []*User CreatedAt *Timestamp Credits []*RepoAdvisoryCredit CreditsDetailed []*RepoAdvisoryCreditDetailed Description *string GHSAID *string HTMLURL *string Identifiers []*AdvisoryIdentifier PrivateFork *Repository PublishedAt *Timestamp Publisher *User References []*AdvisoryReference Severity *string State *string Submission *SecurityAdvisorySubmission Summary *string URL *string UpdatedAt *Timestamp Vulnerabilities []*AdvisoryVulnerability WithdrawnAt *Timestamp GetAuthor returns the Author field. GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. GetCVSS returns the CVSS field. GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetPrivateFork returns the PrivateFork field. GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. GetPublisher returns the Publisher field. GetSeverity returns the Severity field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetSubmission returns the Submission field. GetSummary returns the Summary field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. func (*SecurityAdvisoriesService).ListRepositorySecurityAdvisories(ctx context.Context, owner, repo string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) func (*SecurityAdvisoriesService).ListRepositorySecurityAdvisoriesForOrg(ctx context.Context, org string, opt *ListRepositorySecurityAdvisoriesOptions) ([]*SecurityAdvisory, *Response, error) func (*SecurityAdvisoryEvent).GetSecurityAdvisory() *SecurityAdvisory
SecurityAdvisoryEvent is triggered when a security-related vulnerability is found in software on GitHub. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory Action *string The following fields are only populated by Webhook events. Installation *Installation Organization *Organization Repository *Repository SecurityAdvisory *SecurityAdvisory Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetEnterprise returns the Enterprise field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepository returns the Repository field. GetSecurityAdvisory returns the SecurityAdvisory field. GetSender returns the Sender field.
SecurityAdvisorySubmission represents the Security Advisory Submission. Accepted represents whether a private vulnerability report was accepted by the repository's administrators. GetAccepted returns the Accepted field if it's non-nil, zero value otherwise. func (*SecurityAdvisory).GetSubmission() *SecurityAdvisorySubmission
SecurityAndAnalysis specifies the optional advanced security features that are enabled on a given repository. AdvancedSecurity *AdvancedSecurity DependabotSecurityUpdates *DependabotSecurityUpdates SecretScanning *SecretScanning SecretScanningPushProtection *SecretScanningPushProtection SecretScanningValidityChecks *SecretScanningValidityChecks GetAdvancedSecurity returns the AdvancedSecurity field. GetDependabotSecurityUpdates returns the DependabotSecurityUpdates field. GetSecretScanning returns the SecretScanning field. GetSecretScanningPushProtection returns the SecretScanningPushProtection field. GetSecretScanningValidityChecks returns the SecretScanningValidityChecks field. ( SecurityAndAnalysis) String() string SecurityAndAnalysis : expvar.Var SecurityAndAnalysis : fmt.Stringer func (*Repository).GetSecurityAndAnalysis() *SecurityAndAnalysis func (*SecurityAndAnalysisChangeFrom).GetSecurityAndAnalysis() *SecurityAndAnalysis
SecurityAndAnalysisChange represents the changes when security and analysis features are enabled or disabled for a repository. From *SecurityAndAnalysisChangeFrom GetFrom returns the From field. func (*SecurityAndAnalysisEvent).GetChanges() *SecurityAndAnalysisChange
SecurityAndAnalysisChangeFrom represents which change was made when security and analysis features are enabled or disabled for a repository. SecurityAndAnalysis *SecurityAndAnalysis GetSecurityAndAnalysis returns the SecurityAndAnalysis field. func (*SecurityAndAnalysisChange).GetFrom() *SecurityAndAnalysisChangeFrom
SecurityAndAnalysisEvent is triggered when code security and analysis features are enabled or disabled for a repository. GitHub API docs: https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#security_and_analysis Changes *SecurityAndAnalysisChange Enterprise *Enterprise Installation *Installation Organization *Organization Repository *Repository Sender *User GetChanges returns the Changes field. GetEnterprise returns the Enterprise field. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepository returns the Repository field. GetSender returns the Sender field.
SelectedRepoIDs are the repository IDs that have access to the actions secrets. func (*ActionsVariable).GetSelectedRepositoryIDs() *SelectedRepoIDs func (*CreateUpdateRequiredWorkflowOptions).GetSelectedRepositoryIDs() *SelectedRepoIDs func (*ActionsService).SetRequiredWorkflowSelectedRepos(ctx context.Context, org string, requiredWorkflowID int64, ids SelectedRepoIDs) (*Response, error) func (*ActionsService).SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error) func (*ActionsService).SetSelectedReposForOrgVariable(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error) func (*CodespacesService).SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error) func (*CodespacesService).SetSelectedReposForUserSecret(ctx context.Context, name string, ids SelectedRepoIDs) (*Response, error)
SelectedReposList represents the list of repositories selected for an organization secret. Repositories []*Repository TotalCount *int GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*ActionsService).ListSelectedReposForOrgVariable(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*CodespacesService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*CodespacesService).ListSelectedReposForUserSecret(ctx context.Context, name string, opts *ListOptions) (*SelectedReposList, *Response, error) func (*DependabotService).ListSelectedReposForOrgSecret(ctx context.Context, org, name string, opts *ListOptions) (*SelectedReposList, *Response, error)
SetOrgAccessRunnerGroupRequest represents a request to replace the list of organizations that can access a self-hosted runner group configured in an enterprise. Updated list of organization IDs that should be given access to the runner group. func (*EnterpriseService).SetOrganizationAccessRunnerGroup(ctx context.Context, enterprise string, groupID int64, ids SetOrgAccessRunnerGroupRequest) (*Response, error)
SetRepoAccessRunnerGroupRequest represents a request to replace the list of repositories that can access a self-hosted runner group configured in an organization. Updated list of repository IDs that should be given access to the runner group. func (*ActionsService).SetRepositoryAccessRunnerGroup(ctx context.Context, org string, groupID int64, ids SetRepoAccessRunnerGroupRequest) (*Response, error)
SetRunnerGroupRunnersRequest represents a request to replace the list of self-hosted runners that are part of an organization runner group. Updated list of runner IDs that should be given access to the runner group. func (*ActionsService).SetRunnerGroupRunners(ctx context.Context, org string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error) func (*EnterpriseService).SetRunnerGroupRunners(ctx context.Context, enterprise string, groupID int64, ids SetRunnerGroupRunnersRequest) (*Response, error)
SignatureRequirementEnforcementLevelChanges represents the changes made to the SignatureRequirementEnforcementLevel policy. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*ProtectionChanges).GetSignatureRequirementEnforcementLevel() *SignatureRequirementEnforcementLevelChanges
SignaturesProtectedBranch represents the protection status of an individual branch. Commits pushed to matching branches must have verified signatures. URL *string GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*Protection).GetRequiredSignatures() *SignaturesProtectedBranch func (*RepositoriesService).GetSignaturesProtectedBranch(ctx context.Context, owner, repo, branch string) (*SignaturesProtectedBranch, *Response, error) func (*RepositoriesService).RequireSignaturesOnProtectedBranch(ctx context.Context, owner, repo, branch string) (*SignaturesProtectedBranch, *Response, error)
SignatureVerification represents GPG signature verification. Payload *string Reason *string Signature *string Verified *bool GetPayload returns the Payload field if it's non-nil, zero value otherwise. GetReason returns the Reason field if it's non-nil, zero value otherwise. GetSignature returns the Signature field if it's non-nil, zero value otherwise. GetVerified returns the Verified field if it's non-nil, zero value otherwise. func (*Commit).GetVerification() *SignatureVerification func (*Tag).GetVerification() *SignatureVerification
Source represents a reference's source. Actor *User ID *int64 Issue *Issue Type *string URL *string GetActor returns the Actor field. GetID returns the ID field if it's non-nil, zero value otherwise. GetIssue returns the Issue field. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*Timeline).GetSource() *Source
SourceImportAuthor identifies an author imported from a source repository. GitHub API docs: https://docs.github.com/rest/migration/source_imports/#get-commit-authors Email *string ID *int64 ImportURL *string Name *string RemoteID *string RemoteName *string URL *string GetEmail returns the Email field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( SourceImportAuthor) String() string SourceImportAuthor : expvar.Var SourceImportAuthor : fmt.Stringer func (*MigrationService).CommitAuthors(ctx context.Context, owner, repo string) ([]*SourceImportAuthor, *Response, error) func (*MigrationService).MapCommitAuthor(ctx context.Context, owner, repo string, id int64, author *SourceImportAuthor) (*SourceImportAuthor, *Response, error) func (*MigrationService).MapCommitAuthor(ctx context.Context, owner, repo string, id int64, author *SourceImportAuthor) (*SourceImportAuthor, *Response, error)
SponsorshipChanges represents changes made to the sponsorship. PrivacyLevel *string Tier *SponsorshipTier GetPrivacyLevel returns the PrivacyLevel field if it's non-nil, zero value otherwise. GetTier returns the Tier field. func (*SponsorshipEvent).GetChanges() *SponsorshipChanges
SponsorshipEvent represents a sponsorship event in GitHub. GitHub API docs: https://docs.github.com/en/rest/overview/github-event-types?apiVersion=2022-11-28#sponsorshipevent Action *string Changes *SponsorshipChanges EffectiveDate *string Installation *Installation Organization *Organization Repository *Repository Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrganization returns the Organization field. GetRepository returns the Repository field. GetSender returns the Sender field.
SponsorshipTier represents the tier information of a sponsorship. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*SponsorshipChanges).GetTier() *SponsorshipTier
SSHSigningKey represents a public SSH key used to sign git commits. CreatedAt *Timestamp ID *int64 Key *string Title *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetKey returns the Key field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. ( SSHSigningKey) String() string SSHSigningKey : expvar.Var SSHSigningKey : fmt.Stringer func (*UsersService).CreateSSHSigningKey(ctx context.Context, key *Key) (*SSHSigningKey, *Response, error) func (*UsersService).GetSSHSigningKey(ctx context.Context, id int64) (*SSHSigningKey, *Response, error) func (*UsersService).ListSSHSigningKeys(ctx context.Context, user string, opts *ListOptions) ([]*SSHSigningKey, *Response, error)
StarEvent is triggered when a star is added or removed from a repository. The Webhook event name is "star". GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#star Action is the action that was performed. Possible values are: "created" or "deleted". Installation *Installation The following fields are only populated by Webhook events. Repo *Repository Sender *User StarredAt is the time the star was created. It will be null for the "deleted" action. GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise.
Stargazer represents a user that has starred a repository. StarredAt *Timestamp User *User GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*ActivityService).ListStargazers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Stargazer, *Response, error)
StarredRepository is returned by ListStarred. Repository *Repository StarredAt *Timestamp GetRepository returns the Repository field. GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. func (*ActivityService).ListStarred(ctx context.Context, user string, opts *ActivityListStarredOptions) ([]*StarredRepository, *Response, error)
StatusEvent is triggered when the status of a Git commit changes. The Webhook event name is "status". Events of this type are not visible in timelines, they are only used to trigger hooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#status Branches []*Branch Commit *RepositoryCommit Context *string CreatedAt *Timestamp Description *string The following fields are only populated by Webhook events. Installation *Installation Name *string The following field is only present when the webhook is triggered on a repository belonging to an organization. Repo *Repository SHA *string Sender *User State is the new state. Possible values are: "pending", "success", "failure", "error". TargetURL *string UpdatedAt *Timestamp GetCommit returns the Commit field. GetContext returns the Context field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetName returns the Name field if it's non-nil, zero value otherwise. GetOrg returns the Org field. GetRepo returns the Repo field. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSender returns the Sender field. GetState returns the State field if it's non-nil, zero value otherwise. GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
StorageBilling represents a GitHub Storage billing. DaysLeftInBillingCycle int EstimatedPaidStorageForMonth float64 EstimatedStorageForMonth float64 func (*BillingService).GetStorageBillingOrg(ctx context.Context, org string) (*StorageBilling, *Response, error) func (*BillingService).GetStorageBillingUser(ctx context.Context, user string) (*StorageBilling, *Response, error)
Subscription identifies a repository or thread subscription. CreatedAt *Timestamp Ignored *bool Reason *string only populated for repository subscriptions Subscribed *bool only populated for thread subscriptions URL *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. GetReason returns the Reason field if it's non-nil, zero value otherwise. GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. func (*ActivityService).GetRepositorySubscription(ctx context.Context, owner, repo string) (*Subscription, *Response, error) func (*ActivityService).GetThreadSubscription(ctx context.Context, id string) (*Subscription, *Response, error) func (*ActivityService).SetRepositorySubscription(ctx context.Context, owner, repo string, subscription *Subscription) (*Subscription, *Response, error) func (*ActivityService).SetThreadSubscription(ctx context.Context, id string, subscription *Subscription) (*Subscription, *Response, error) func (*ActivityService).SetRepositorySubscription(ctx context.Context, owner, repo string, subscription *Subscription) (*Subscription, *Response, error) func (*ActivityService).SetThreadSubscription(ctx context.Context, id string, subscription *Subscription) (*Subscription, *Response, error)
Tag represents a tag object. Message *string NodeID *string Object *GitObject SHA *string Tag *string Tagger *CommitAuthor URL *string Verification *SignatureVerification GetMessage returns the Message field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetObject returns the Object field. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetTag returns the Tag field if it's non-nil, zero value otherwise. GetTagger returns the Tagger field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetVerification returns the Verification field. func (*GitService).CreateTag(ctx context.Context, owner string, repo string, tag *Tag) (*Tag, *Response, error) func (*GitService).GetTag(ctx context.Context, owner string, repo string, sha string) (*Tag, *Response, error) func (*GitService).CreateTag(ctx context.Context, owner string, repo string, tag *Tag) (*Tag, *Response, error)
TagProtection represents a repository tag protection. ID *int64 Pattern *string GetID returns the ID field if it's non-nil, zero value otherwise. GetPattern returns the Pattern field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateTagProtection(ctx context.Context, owner, repo, pattern string) (*TagProtection, *Response, error) func (*RepositoriesService).ListTagProtection(ctx context.Context, owner, repo string) ([]*TagProtection, *Response, error)
TaskStep represents a single task step from a sequence of tasks of a job. CompletedAt *Timestamp Conclusion *string Name *string Number *int64 StartedAt *Timestamp Status *string GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise.
Team represents a team within a GitHub organization. Teams are used to manage access to an organization's repositories. Description *string HTMLURL *string ID *int64 LDAPDN is only available in GitHub Enterprise and when the team membership is synchronized with LDAP. MembersCount *int MembersURL *string Name *string NodeID *string Organization *Organization Parent *Team Permission specifies the default permission for repositories owned by the team. Permissions identifies the permissions that a team has on a given repository. This is only populated when calling Repositories.ListTeams. Privacy identifies the level of privacy this team should have. Possible values are: secret - only visible to organization owners and members of this team closed - visible to all members of this organization Default is "secret". ReposCount *int RepositoriesURL *string Slug *string URL *string GetDescription returns the Description field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOrganization returns the Organization field. GetParent returns the Parent field. GetPermission returns the Permission field if it's non-nil, zero value otherwise. GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. GetSlug returns the Slug field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( Team) String() string Team : expvar.Var Team : fmt.Stringer func (*CopilotSeatDetails).GetAssigningTeam() *Team func (*CopilotSeatDetails).GetTeam() (*Team, bool) func (*IssueEvent).GetRequestedTeam() *Team func (*MembershipEvent).GetTeam() *Team func (*OrganizationsService).ListOrgInvitationTeams(ctx context.Context, org, invitationID string, opts *ListOptions) ([]*Team, *Response, error) func (*OrganizationsService).ListSecurityManagerTeams(ctx context.Context, org string) ([]*Team, *Response, error) func (*OrganizationsService).ListTeamsAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*Team, *Response, error) func (*PullRequestEvent).GetRequestedTeam() *Team func (*PullRequestTargetEvent).GetRequestedTeam() *Team func (*RepositoriesService).AddTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error) func (*RepositoriesService).ListTeamRestrictions(ctx context.Context, owner, repo, branch string) ([]*Team, *Response, error) func (*RepositoriesService).ListTeams(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Team, *Response, error) func (*RepositoriesService).RemoveTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error) func (*RepositoriesService).ReplaceTeamRestrictions(ctx context.Context, owner, repo, branch string, teams []string) ([]*Team, *Response, error) func (*Team).GetParent() *Team func (*TeamAddEvent).GetTeam() *Team func (*TeamEvent).GetTeam() *Team func (*TeamsService).CreateTeam(ctx context.Context, org string, team NewTeam) (*Team, *Response, error) func (*TeamsService).EditTeamByID(ctx context.Context, orgID, teamID int64, team NewTeam, removeParent bool) (*Team, *Response, error) func (*TeamsService).EditTeamBySlug(ctx context.Context, org, slug string, team NewTeam, removeParent bool) (*Team, *Response, error) func (*TeamsService).GetTeamByID(ctx context.Context, orgID, teamID int64) (*Team, *Response, error) func (*TeamsService).GetTeamBySlug(ctx context.Context, org, slug string) (*Team, *Response, error) func (*TeamsService).ListChildTeamsByParentID(ctx context.Context, orgID, teamID int64, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListChildTeamsByParentSlug(ctx context.Context, org, slug string, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListTeams(ctx context.Context, org string, opts *ListOptions) ([]*Team, *Response, error) func (*TeamsService).ListUserTeams(ctx context.Context, opts *ListOptions) ([]*Team, *Response, error) func (*Timeline).GetRequestedTeam() *Team
TeamAddEvent is triggered when a repository is added to a team. The Webhook event name is "team_add". Events of this type are not visible in timelines. These events are only used to trigger hooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#team_add Installation *Installation The following fields are only populated by Webhook events. Repo *Repository Sender *User Team *Team GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetTeam returns the Team field.
TeamAddTeamMembershipOptions specifies the optional parameters to the TeamsService.AddTeamMembership method. Role specifies the role the user should have in the team. Possible values are: member - a normal member of the team maintainer - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team’s name and description Default value is "member". func (*TeamsService).AddTeamMembershipByID(ctx context.Context, orgID, teamID int64, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error) func (*TeamsService).AddTeamMembershipBySlug(ctx context.Context, org, slug, user string, opts *TeamAddTeamMembershipOptions) (*Membership, *Response, error)
TeamAddTeamRepoOptions specifies the optional parameters to the TeamsService.AddTeamRepoByID and TeamsService.AddTeamRepoBySlug methods. Permission specifies the permission to grant the user on this repository. Possible values are: pull - team members can pull, but not push to or administer this repository push - team members can pull and push, but not administer this repository admin - team members can pull, push and administer this repository maintain - team members can manage the repository without access to sensitive or destructive actions. triage - team members can proactively manage issues and pull requests without write access. Default value is "push". This option is only valid for organization-owned repositories. func (*TeamsService).AddTeamRepoByID(ctx context.Context, orgID, teamID int64, owner, repo string, opts *TeamAddTeamRepoOptions) (*Response, error) func (*TeamsService).AddTeamRepoBySlug(ctx context.Context, org, slug, owner, repo string, opts *TeamAddTeamRepoOptions) (*Response, error)
TeamChange represents the changes when a team has been edited. Description *TeamDescription Name *TeamName Privacy *TeamPrivacy Repository *TeamRepository GetDescription returns the Description field. GetName returns the Name field. GetPrivacy returns the Privacy field. GetRepository returns the Repository field. func (*TeamEvent).GetChanges() *TeamChange
TeamDescription represents a team description change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*TeamChange).GetDescription() *TeamDescription
TeamDiscussion represents a GitHub discussion in a team. Author *User Body *string BodyHTML *string BodyVersion *string CommentsCount *int CommentsURL *string CreatedAt *Timestamp HTMLURL *string LastEditedAt *Timestamp NodeID *string Number *int Pinned *bool Private *bool Reactions *Reactions TeamURL *string Title *string URL *string UpdatedAt *Timestamp GetAuthor returns the Author field. GetBody returns the Body field if it's non-nil, zero value otherwise. GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise. GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetNumber returns the Number field if it's non-nil, zero value otherwise. GetPinned returns the Pinned field if it's non-nil, zero value otherwise. GetPrivate returns the Private field if it's non-nil, zero value otherwise. GetReactions returns the Reactions field. GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( TeamDiscussion) String() string TeamDiscussion : expvar.Var TeamDiscussion : fmt.Stringer func (*TeamsService).CreateDiscussionByID(ctx context.Context, orgID, teamID int64, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).CreateDiscussionBySlug(ctx context.Context, org, slug string, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).EditDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).EditDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).GetDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*TeamDiscussion, *Response, error) func (*TeamsService).GetDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*TeamDiscussion, *Response, error) func (*TeamsService).ListDiscussionsByID(ctx context.Context, orgID, teamID int64, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) func (*TeamsService).ListDiscussionsBySlug(ctx context.Context, org, slug string, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) func (*TeamsService).CreateDiscussionByID(ctx context.Context, orgID, teamID int64, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).CreateDiscussionBySlug(ctx context.Context, org, slug string, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).EditDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) func (*TeamsService).EditDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error)
TeamEvent is triggered when an organization's team is created, modified or deleted. The Webhook event name is "team". Events of this type are not visible in timelines. These events are only used to trigger hooks. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#team Action *string Changes *TeamChange Installation *Installation The following fields are only populated by Webhook events. Repo *Repository Sender *User Team *Team GetAction returns the Action field if it's non-nil, zero value otherwise. GetChanges returns the Changes field. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetTeam returns the Team field.
TeamLDAPMapping represents the mapping between a GitHub team and an LDAP group. Description *string ID *int64 LDAPDN *string MembersURL *string Name *string Permission *string Privacy *string RepositoriesURL *string Slug *string URL *string GetDescription returns the Description field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetPermission returns the Permission field if it's non-nil, zero value otherwise. GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. GetSlug returns the Slug field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( TeamLDAPMapping) String() string TeamLDAPMapping : expvar.Var TeamLDAPMapping : fmt.Stringer func (*AdminService).UpdateTeamLDAPMapping(ctx context.Context, team int64, mapping *TeamLDAPMapping) (*TeamLDAPMapping, *Response, error) func (*AdminService).UpdateTeamLDAPMapping(ctx context.Context, team int64, mapping *TeamLDAPMapping) (*TeamLDAPMapping, *Response, error)
TeamListTeamMembersOptions specifies the optional parameters to the TeamsService.ListTeamMembers method. ListOptions ListOptions For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Role filters members returned by their role in the team. Possible values are "all", "member", "maintainer". Default is "all". func (*TeamsService).ListTeamMembersByID(ctx context.Context, orgID, teamID int64, opts *TeamListTeamMembersOptions) ([]*User, *Response, error) func (*TeamsService).ListTeamMembersBySlug(ctx context.Context, org, slug string, opts *TeamListTeamMembersOptions) ([]*User, *Response, error)
TeamName represents a team name change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*TeamChange).GetName() *TeamName
TeamPermissions represents a team permission change. From *TeamPermissionsFrom GetFrom returns the From field. func (*TeamRepository).GetPermissions() *TeamPermissions
TeamPermissionsFrom represents a team permission change. Admin *bool Pull *bool Push *bool GetAdmin returns the Admin field if it's non-nil, zero value otherwise. GetPull returns the Pull field if it's non-nil, zero value otherwise. GetPush returns the Push field if it's non-nil, zero value otherwise. func (*TeamPermissions).GetFrom() *TeamPermissionsFrom
TeamPrivacy represents a team privacy change. From *string GetFrom returns the From field if it's non-nil, zero value otherwise. func (*TeamChange).GetPrivacy() *TeamPrivacy
TeamProjectOptions specifies the optional parameters to the TeamsService.AddTeamProject method. Permission specifies the permission to grant to the collaborator. Possible values are: "read" - can read, but not write to or administer this project. "write" - can read and write, but not administer this project. "admin" - can read, write and administer this project. Default value is "write" GetPermission returns the Permission field if it's non-nil, zero value otherwise. func (*TeamsService).AddTeamProjectByID(ctx context.Context, orgID, teamID, projectID int64, opts *TeamProjectOptions) (*Response, error) func (*TeamsService).AddTeamProjectBySlug(ctx context.Context, org, slug string, projectID int64, opts *TeamProjectOptions) (*Response, error)
TeamRepository represents a team repository permission change. Permissions *TeamPermissions GetPermissions returns the Permissions field. func (*TeamChange).GetRepository() *TeamRepository
TeamsService provides access to the team-related functions in the GitHub API. GitHub API docs: https://docs.github.com/rest/teams/ AddTeamMembershipByID adds or invites a user to a team, given a specified organization ID, by team ID. GitHub API docs: https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user AddTeamMembershipBySlug adds or invites a user to a team, given a specified organization name, by team slug. GitHub API docs: https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user AddTeamProjectByID 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. GitHub API docs: https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions AddTeamProjectBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions AddTeamRepoByID 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. GitHub API docs: https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions AddTeamRepoBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions CreateCommentByID creates a new comment on a team discussion by team ID. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment CreateCommentBySlug creates a new comment on a team discussion by team slug. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment CreateDiscussionByID creates a new discussion post on a team's page given Organization and Team ID. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#create-a-discussion CreateDiscussionBySlug creates a new discussion post on a team's page given Organization name and Team's slug. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#create-a-discussion CreateOrUpdateIDPGroupConnectionsByID creates, updates, or removes a connection between a team and an IDP group given organization and team IDs. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#create-or-update-idp-group-connections CreateOrUpdateIDPGroupConnectionsBySlug creates, updates, or removes a connection between a team and an IDP group given organization name and team slug. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#create-or-update-idp-group-connections CreateTeam creates a new team within an organization. GitHub API docs: https://docs.github.com/rest/teams/teams#create-a-team DeleteCommentByID deletes a comment on a team discussion by team ID. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment DeleteCommentBySlug deletes a comment on a team discussion by team slug. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment DeleteDiscussionByID deletes a discussion from team's page given Organization and Team ID. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#delete-a-discussion DeleteDiscussionBySlug deletes a discussion from team's page given Organization name and Team's slug. Authenticated user must grant write:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#delete-a-discussion DeleteTeamByID deletes a team referenced by ID. GitHub API docs: https://docs.github.com/rest/teams/teams#delete-a-team DeleteTeamBySlug deletes a team reference by slug. GitHub API docs: https://docs.github.com/rest/teams/teams#delete-a-team EditCommentByID 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. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment EditCommentBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment EditDiscussionByID 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. GitHub API docs: https://docs.github.com/rest/teams/discussions#update-a-discussion EditDiscussionBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/discussions#update-a-discussion EditTeamByID edits a team, given an organization ID, selected by ID. GitHub API docs: https://docs.github.com/rest/teams/teams#update-a-team EditTeamBySlug edits a team, given an organization name, by slug. GitHub API docs: https://docs.github.com/rest/teams/teams#update-a-team GetCommentByID gets a specific comment on a team discussion by team ID. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment GetCommentBySlug gets a specific comment on a team discussion by team slug. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment GetDiscussionByID gets a specific discussion on a team's page given Organization and Team ID. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#get-a-discussion GetDiscussionBySlug gets a specific discussion on a team's page given Organization name and Team's slug. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#get-a-discussion GetExternalGroup fetches an external group. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups#get-an-external-group GetTeamByID fetches a team, given a specified organization ID, by ID. GitHub API docs: https://docs.github.com/rest/teams/teams#get-a-team-by-name GetTeamBySlug fetches a team, given a specified organization name, by slug. GitHub API docs: https://docs.github.com/rest/teams/teams#get-a-team-by-name GetTeamMembershipByID returns the membership status for a user in a team, given a specified organization ID, by team ID. GitHub API docs: https://docs.github.com/rest/teams/members#list-team-members GetTeamMembershipBySlug returns the membership status for a user in a team, given a specified organization name, by team slug. GitHub API docs: https://docs.github.com/rest/teams/members#get-team-membership-for-a-user IsTeamRepoByID 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. GitHub API docs: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository IsTeamRepoBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository ListChildTeamsByParentID lists child teams for a parent team given parent ID. GitHub API docs: https://docs.github.com/rest/teams/teams#list-child-teams ListChildTeamsByParentSlug lists child teams for a parent team given parent slug. GitHub API docs: https://docs.github.com/rest/teams/teams#list-child-teams ListCommentsByID lists all comments on a team discussion by team ID. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments ListCommentsBySlug lists all comments on a team discussion by team slug. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments ListDiscussionsByID lists all discussions on team's page given Organization and Team ID. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#list-discussions ListDiscussionsBySlug lists all discussions on team's page given Organization name and Team's slug. Authenticated user must grant read:discussion scope. GitHub API docs: https://docs.github.com/rest/teams/discussions#list-discussions ListExternalGroups lists external groups in an organization on GitHub. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups#list-external-groups-in-an-organization ListExternalGroupsForTeamBySlug lists external groups connected to a team on GitHub. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team ListIDPGroupsForTeamByID lists IDP groups connected to a team on GitHub given organization and team IDs. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#list-idp-groups-for-a-team ListIDPGroupsForTeamBySlug lists IDP groups connected to a team on GitHub given organization name and team slug. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#list-idp-groups-for-a-team ListIDPGroupsInOrganization lists IDP groups available in an organization. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/team-sync#list-idp-groups-for-an-organization ListPendingTeamInvitationsByID gets pending invitation list of a team, given a specified organization ID, by team ID. GitHub API docs: https://docs.github.com/rest/teams/members#list-pending-team-invitations ListPendingTeamInvitationsBySlug get pending invitation list of a team, given a specified organization name, by team slug. GitHub API docs: https://docs.github.com/rest/teams/members#list-pending-team-invitations ListTeamMembersByID lists all of the users who are members of a team, given a specified organization ID, by team ID. GitHub API docs: https://docs.github.com/rest/teams/members#list-team-members ListTeamMembersBySlug lists all of the users who are members of a team, given a specified organization name, by team slug. GitHub API docs: https://docs.github.com/rest/teams/members#list-team-members ListTeamProjectsByID lists the organization projects for a team given the team ID. GitHub API docs: https://docs.github.com/rest/teams/teams#list-team-projects ListTeamProjectsBySlug lists the organization projects for a team given the team slug. GitHub API docs: https://docs.github.com/rest/teams/teams#list-team-projects ListTeamReposByID lists the repositories given a team ID that the specified team has access to. GitHub API docs: https://docs.github.com/rest/teams/teams#list-team-repositories ListTeamReposBySlug lists the repositories given a team slug that the specified team has access to. GitHub API docs: https://docs.github.com/rest/teams/teams#list-team-repositories ListTeams lists all of the teams for an organization. GitHub API docs: https://docs.github.com/rest/teams/teams#list-teams ListUserTeams lists a user's teams GitHub API docs: https://docs.github.com/rest/teams/teams#list-teams-for-the-authenticated-user RemoveConnectedExternalGroup removes the connection between an external group and a team. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team RemoveTeamMembershipByID removes a user from a team, given a specified organization ID, by team ID. GitHub API docs: https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user RemoveTeamMembershipBySlug removes a user from a team, given a specified organization name, by team slug. GitHub API docs: https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user RemoveTeamProjectByID 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. GitHub API docs: https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team RemoveTeamProjectBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team RemoveTeamRepoByID 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. GitHub API docs: https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team RemoveTeamRepoBySlug 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. GitHub API docs: https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team ReviewTeamProjectsByID checks whether a team, given its ID, has read, write, or admin permissions for an organization project. GitHub API docs: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project ReviewTeamProjectsBySlug checks whether a team, given its slug, has read, write, or admin permissions for an organization project. GitHub API docs: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project UpdateConnectedExternalGroup updates the connection between an external group and a team. GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team
TemplateRepoRequest represents a request to create a repository from a template. Description *string IncludeAllBranches *bool Name is required when creating a repo. Owner *string Private *bool GetDescription returns the Description field if it's non-nil, zero value otherwise. GetIncludeAllBranches returns the IncludeAllBranches field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetOwner returns the Owner field if it's non-nil, zero value otherwise. GetPrivate returns the Private field if it's non-nil, zero value otherwise. func (*RepositoriesService).CreateFromTemplate(ctx context.Context, templateOwner, templateRepo string, templateRepoReq *TemplateRepoRequest) (*Repository, *Response, error)
TextMatch represents a text match for a SearchResult Fragment *string Matches []*Match ObjectType *string ObjectURL *string Property *string GetFragment returns the Fragment field if it's non-nil, zero value otherwise. GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. GetProperty returns the Property field if it's non-nil, zero value otherwise. ( TextMatch) String() string TextMatch : expvar.Var TextMatch : fmt.Stringer
Timeline represents an event that occurred around an Issue or Pull Request. It 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 The User object that generated the event. The User object which was assigned to (or unassigned from) this Issue or Pull Request. Only provided for 'assigned' and 'unassigned' events. Assigner *User The person who authored the commit. The review summary text. The string SHA of a commit that referenced this Issue or Pull Request. CommitURL *string The person who committed the commit on behalf of the author. The timestamp indicating when the event occurred. Event identifies the actual type of Event that occurred. Possible values are: assigned The issue was assigned to the assignee. closed The issue was closed by the actor. When the commit_id is present, it identifies the commit that closed the issue using "closes / fixes #NN" syntax. commented A comment was added to the issue. committed A commit was added to the pull request's 'HEAD' branch. Only provided for pull requests. cross-referenced The issue was referenced from another issue. The 'source' attribute contains the 'id', 'actor', and 'url' of the reference's source. demilestoned The issue was removed from a milestone. head_ref_deleted The pull request's branch was deleted. head_ref_restored The pull request's branch was restored. labeled A label was added to the issue. locked The issue was locked by the actor. mentioned The actor was @mentioned in an issue body. merged The issue was merged by the actor. The 'commit_id' attribute is the SHA1 of the HEAD commit that was merged. milestoned The issue was added to a milestone. referenced The issue was referenced from a commit message. The 'commit_id' attribute is the commit SHA1 of where that happened. renamed The issue title was changed. reopened The issue was reopened by the actor. reviewed The pull request was reviewed. subscribed The actor subscribed to receive notifications for an issue. unassigned The assignee was unassigned from the issue. unlabeled A label was removed from the issue. unlocked The issue was unlocked by the actor. unsubscribed The actor unsubscribed to stop receiving notifications for an issue. ID *int64 The Label object including `name` and `color` attributes. Only provided for 'labeled' and 'unlabeled' events. The commit message. The Milestone object including a 'title' attribute. Only provided for 'milestoned' and 'demilestoned' events. A list of parent commits. PerformedViaGithubApp *App ProjectCard *ProjectCard An object containing rename details including 'from' and 'to' attributes. Only provided for 'renamed' events. RequestedTeam contains the team requested to review the pull request. The person who requested a review. The person requested to review the pull request. The SHA of the commit in the pull request. The 'id', 'actor', and 'url' for the source of a reference from another issue. Only provided for 'cross-referenced' events. The state of a submitted review. Can be one of: 'commented', 'changes_requested' or 'approved'. Only provided for 'reviewed' events. SubmittedAt *Timestamp URL *string The person who commented on the issue. GetActor returns the Actor field. GetAssignee returns the Assignee field. GetAssigner returns the Assigner field. GetAuthor returns the Author field. GetBody returns the Body field if it's non-nil, zero value otherwise. GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. GetCommitter returns the Committer field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetEvent returns the Event field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLabel returns the Label field. GetMessage returns the Message field if it's non-nil, zero value otherwise. GetMilestone returns the Milestone field. GetPerformedViaGithubApp returns the PerformedViaGithubApp field. GetProjectCard returns the ProjectCard field. GetRename returns the Rename field. GetRequestedTeam returns the RequestedTeam field. GetRequester returns the Requester field. GetReviewer returns the Reviewer field. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSource returns the Source field. GetState returns the State field if it's non-nil, zero value otherwise. GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUser returns the User field. func (*IssuesService).ListIssueTimeline(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Timeline, *Response, error)
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or Unix timestamp. This is necessary for some fields since the GitHub API is inconsistent in how it represents times. All exported methods of time.Time can be called on Timestamp. Time time.Time Add returns the time t+d. AddDate returns the time corresponding to adding the given number of years, months, and days to t. For example, AddDate(-1, 2, 3) applied to January 1, 2011 returns March 4, 2010. Note that dates are fundamentally coupled to timezones, and calendrical periods like days don't have fixed durations. AddDate uses the Location of the Time value to determine these durations. That means that the same AddDate arguments can produce a different shift in absolute time depending on the base Time value and its Location. For example, AddDate(0, 0, 1) applied to 12:00 on March 27 always returns 12:00 on March 28. At some locations and in some years this is a 24 hour shift. In others it's a 23 hour shift due to daylight savings time transitions. AddDate normalizes its result in the same way that Date does, so, for example, adding one month to October 31 yields December 1, the normalized form for November 31. After reports whether the time instant t is after u. AppendBinary implements the [encoding.BinaryAppender] interface. AppendFormat is like [Time.Format] but appends the textual representation to b and returns the extended buffer. AppendText implements the [encoding.TextAppender] interface. The time is formatted in RFC 3339 format with sub-second precision. If the timestamp cannot be represented as valid RFC 3339 (e.g., the year is out of range), then an error is returned. Before reports whether the time instant t is before u. Clock returns the hour, minute, and second within the day specified by t. Compare compares the time instant t with u. If t is before u, it returns -1; if t is after u, it returns +1; if they're the same, it returns 0. Date returns the year, month, and day in which t occurs. Day returns the day of the month specified by t. Equal reports whether t and u are equal based on time.Equal Format returns a textual representation of the time value formatted according to the layout defined by the argument. See the documentation for the constant called [Layout] to see how to represent the layout format. The executable example for [Time.Format] demonstrates the working of the layout string in detail and is a good reference. GetTime returns std time.Time. GoString implements [fmt.GoStringer] and formats t to be printed in Go source code. GobDecode implements the gob.GobDecoder interface. GobEncode implements the gob.GobEncoder interface. Hour returns the hour within the day specified by t, in the range [0, 23]. ISOWeek returns the ISO 8601 year and week number in which t occurs. Week ranges from 1 to 53. Jan 01 to Jan 03 of year n might belong to week 52 or 53 of year n-1, and Dec 29 to Dec 31 might belong to week 1 of year n+1. In returns a copy of t representing the same time instant, but with the copy's location information set to loc for display purposes. In panics if loc is nil. IsDST reports whether the time in the configured location is in Daylight Savings Time. IsZero reports whether t represents the zero time instant, January 1, year 1, 00:00:00 UTC. Local returns t with the location set to local time. Location returns the time zone information associated with t. MarshalBinary implements the [encoding.BinaryMarshaler] interface. MarshalJSON implements the [encoding/json.Marshaler] interface. The time is a quoted string in the RFC 3339 format with sub-second precision. If the timestamp cannot be represented as valid RFC 3339 (e.g., the year is out of range), then an error is reported. MarshalText implements the [encoding.TextMarshaler] interface. The output matches that of calling the [Time.AppendText] method. See [Time.AppendText] for more information. Minute returns the minute offset within the hour specified by t, in the range [0, 59]. Month returns the month of the year specified by t. Nanosecond returns the nanosecond offset within the second specified by t, in the range [0, 999999999]. Round returns the result of rounding t to the nearest multiple of d (since the zero time). The rounding behavior for halfway values is to round up. If d <= 0, Round returns t stripped of any monotonic clock reading but otherwise unchanged. Round operates on the time as an absolute duration since the zero time; it does not operate on the presentation form of the time. Thus, Round(Hour) may return a time with a non-zero minute, depending on the time's Location. Second returns the second offset within the minute specified by t, in the range [0, 59]. ( Timestamp) String() string Sub returns the duration t-u. If the result exceeds the maximum (or minimum) value that can be stored in a [Duration], the maximum (or minimum) duration will be returned. To compute t-d for a duration d, use t.Add(-d). Truncate returns the result of rounding t down to a multiple of d (since the zero time). If d <= 0, Truncate returns t stripped of any monotonic clock reading but otherwise unchanged. Truncate operates on the time as an absolute duration since the zero time; it does not operate on the presentation form of the time. Thus, Truncate(Hour) may return a time with a non-zero minute, depending on the time's Location. UTC returns t with the location set to UTC. Unix returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UTC. The result does not depend on the location associated with t. Unix-like operating systems often record time as a 32-bit count of seconds, but since the method here returns a 64-bit value it is valid for billions of years into the past or future. UnixMicro returns t as a Unix time, the number of microseconds elapsed since January 1, 1970 UTC. The result is undefined if the Unix time in microseconds cannot be represented by an int64 (a date before year -290307 or after year 294246). The result does not depend on the location associated with t. UnixMilli returns t as a Unix time, the number of milliseconds elapsed since January 1, 1970 UTC. The result is undefined if the Unix time in milliseconds cannot be represented by an int64 (a date more than 292 million years before or after 1970). The result does not depend on the location associated with t. UnixNano returns t as a Unix time, the number of nanoseconds elapsed since January 1, 1970 UTC. The result is undefined if the Unix time in nanoseconds cannot be represented by an int64 (a date before the year 1678 or after 2262). Note that this means the result of calling UnixNano on the zero Time is undefined. The result does not depend on the location associated with t. UnmarshalBinary implements the [encoding.BinaryUnmarshaler] interface. UnmarshalJSON implements the json.Unmarshaler interface. Time is expected in RFC3339 or Unix format. UnmarshalText implements the [encoding.TextUnmarshaler] interface. The time must be in the RFC 3339 format. Weekday returns the day of the week specified by t. Year returns the year in which t occurs. YearDay returns the day of the year specified by t, in the range [1,365] for non-leap years, and [1,366] in leap years. Zone computes the time zone in effect at time t, returning the abbreviated name of the zone (such as "CET") and its offset in seconds east of UTC. ZoneBounds returns the bounds of the time zone in effect at time t. The zone begins at start and the next zone begins at end. If the zone begins at the beginning of time, start will be returned as a zero Time. If the zone goes on forever, end will be returned as a zero Time. The Location of the returned times will be the same as t. Timestamp : github.com/goccy/go-json.Marshaler *Timestamp : github.com/goccy/go-json.Unmarshaler Timestamp : encoding.BinaryAppender Timestamp : encoding.BinaryMarshaler *Timestamp : encoding.BinaryUnmarshaler Timestamp : encoding.TextAppender Timestamp : encoding.TextMarshaler *Timestamp : encoding.TextUnmarshaler *Timestamp : encoding/gob.GobDecoder Timestamp : encoding/gob.GobEncoder Timestamp : encoding/json.Marshaler *Timestamp : encoding/json.Unmarshaler Timestamp : expvar.Var Timestamp : fmt.GoStringer Timestamp : fmt.Stringer Timestamp : gopkg.in/yaml.v3.IsZeroer func (*ActionsCache).GetCreatedAt() Timestamp func (*ActionsCache).GetLastAccessedAt() Timestamp func (*ActionsVariable).GetCreatedAt() Timestamp func (*ActionsVariable).GetUpdatedAt() Timestamp func (*Alert).GetClosedAt() Timestamp func (*Alert).GetCreatedAt() Timestamp func (*Alert).GetDismissedAt() Timestamp func (*Alert).GetFixedAt() Timestamp func (*Alert).GetUpdatedAt() Timestamp func (*App).GetCreatedAt() Timestamp func (*App).GetUpdatedAt() Timestamp func (*AppConfig).GetCreatedAt() Timestamp func (*AppConfig).GetUpdatedAt() Timestamp func (*ArchivedAt).GetFrom() Timestamp func (*ArchivedAt).GetTo() Timestamp func (*Artifact).GetCreatedAt() Timestamp func (*Artifact).GetExpiresAt() Timestamp func (*Artifact).GetUpdatedAt() Timestamp func (*AuditEntry).GetCreatedAt() Timestamp func (*AuditEntry).GetTimestamp() Timestamp func (*Authorization).GetCreatedAt() Timestamp func (*Authorization).GetUpdatedAt() Timestamp func (*BranchProtectionRule).GetCreatedAt() Timestamp func (*BranchProtectionRule).GetUpdatedAt() Timestamp func (*CheckRun).GetCompletedAt() Timestamp func (*CheckRun).GetStartedAt() Timestamp func (*CheckSuite).GetCreatedAt() Timestamp func (*CheckSuite).GetUpdatedAt() Timestamp func (*CodeQLDatabase).GetCreatedAt() Timestamp func (*CodeQLDatabase).GetUpdatedAt() Timestamp func (*Codespace).GetCreatedAt() Timestamp func (*Codespace).GetLastUsedAt() Timestamp func (*Codespace).GetRetentionExpiresAt() Timestamp func (*Codespace).GetUpdatedAt() Timestamp func (*CollaboratorInvitation).GetCreatedAt() Timestamp func (*Comment).GetCreatedAt() Timestamp func (*CommentDiscussion).GetCreatedAt() Timestamp func (*CommentDiscussion).GetUpdatedAt() Timestamp func (*CommitAuthor).GetDate() Timestamp func (*CommunityHealthMetrics).GetUpdatedAt() Timestamp func (*CopilotSeatDetails).GetCreatedAt() Timestamp func (*CopilotSeatDetails).GetLastActivityAt() Timestamp func (*CopilotSeatDetails).GetUpdatedAt() Timestamp func (*CreateCheckRunOptions).GetCompletedAt() Timestamp func (*CreateCheckRunOptions).GetStartedAt() Timestamp func (*CreationInfo).GetCreated() Timestamp func (*CredentialAuthorization).GetAuthorizedCredentialExpiresAt() Timestamp func (*CredentialAuthorization).GetCredentialAccessedAt() Timestamp func (*CredentialAuthorization).GetCredentialAuthorizedAt() Timestamp func (*CustomOrgRoles).GetCreatedAt() Timestamp func (*CustomOrgRoles).GetUpdatedAt() Timestamp func (*CustomRepoRoles).GetCreatedAt() Timestamp func (*CustomRepoRoles).GetUpdatedAt() Timestamp func (*DefaultSetupConfiguration).GetUpdatedAt() Timestamp func (*DependabotAlert).GetAutoDismissedAt() Timestamp func (*DependabotAlert).GetCreatedAt() Timestamp func (*DependabotAlert).GetDismissedAt() Timestamp func (*DependabotAlert).GetFixedAt() Timestamp func (*DependabotAlert).GetUpdatedAt() Timestamp func (*DependabotSecurityAdvisory).GetPublishedAt() Timestamp func (*DependabotSecurityAdvisory).GetUpdatedAt() Timestamp func (*DependabotSecurityAdvisory).GetWithdrawnAt() Timestamp func (*DependencyGraphSnapshot).GetScanned() Timestamp func (*DependencyGraphSnapshotCreationData).GetCreatedAt() Timestamp func (*Deployment).GetCreatedAt() Timestamp func (*Deployment).GetUpdatedAt() Timestamp func (*DeploymentStatus).GetCreatedAt() Timestamp func (*DeploymentStatus).GetUpdatedAt() Timestamp func (*Discussion).GetAnswerChosenAt() Timestamp func (*Discussion).GetCreatedAt() Timestamp func (*Discussion).GetUpdatedAt() Timestamp func (*DiscussionCategory).GetCreatedAt() Timestamp func (*DiscussionCategory).GetUpdatedAt() Timestamp func (*DiscussionComment).GetCreatedAt() Timestamp func (*DiscussionComment).GetLastEditedAt() Timestamp func (*DiscussionComment).GetUpdatedAt() Timestamp func (*Enterprise).GetCreatedAt() Timestamp func (*Enterprise).GetUpdatedAt() Timestamp func (*Environment).GetCreatedAt() Timestamp func (*Environment).GetUpdatedAt() Timestamp func (*ErrorBlock).GetCreatedAt() Timestamp func (*Event).GetCreatedAt() Timestamp func (*ExternalGroup).GetUpdatedAt() Timestamp func (*Gist).GetCreatedAt() Timestamp func (*Gist).GetUpdatedAt() Timestamp func (*GistComment).GetCreatedAt() Timestamp func (*GistCommit).GetCommittedAt() Timestamp func (*GistFork).GetCreatedAt() Timestamp func (*GistFork).GetUpdatedAt() Timestamp func (*GlobalSecurityAdvisory).GetGithubReviewedAt() Timestamp func (*GlobalSecurityAdvisory).GetNVDPublishedAt() Timestamp func (*GPGKey).GetCreatedAt() Timestamp func (*GPGKey).GetExpiresAt() Timestamp func (*Grant).GetCreatedAt() Timestamp func (*Grant).GetUpdatedAt() Timestamp func (*HeadCommit).GetTimestamp() Timestamp func (*Hook).GetCreatedAt() Timestamp func (*Hook).GetUpdatedAt() Timestamp func (*HookDelivery).GetDeliveredAt() Timestamp func (*Installation).GetCreatedAt() Timestamp func (*Installation).GetSuspendedAt() Timestamp func (*Installation).GetUpdatedAt() Timestamp func (*InstallationRequest).GetCreatedAt() Timestamp func (*InstallationToken).GetExpiresAt() Timestamp func (*InteractionRestriction).GetExpiresAt() Timestamp func (*Invitation).GetCreatedAt() Timestamp func (*Invitation).GetFailedAt() Timestamp func (*Issue).GetClosedAt() Timestamp func (*Issue).GetCreatedAt() Timestamp func (*Issue).GetUpdatedAt() Timestamp func (*IssueComment).GetCreatedAt() Timestamp func (*IssueComment).GetUpdatedAt() Timestamp func (*IssueEvent).GetCreatedAt() Timestamp func (*IssueImport).GetClosedAt() Timestamp func (*IssueImport).GetCreatedAt() Timestamp func (*IssueImport).GetUpdatedAt() Timestamp func (*IssueImportResponse).GetCreatedAt() Timestamp func (*IssueImportResponse).GetUpdatedAt() Timestamp func (*Key).GetCreatedAt() Timestamp func (*Key).GetLastUsed() Timestamp func (*MarketplacePendingChange).GetEffectiveDate() Timestamp func (*MarketplacePurchase).GetFreeTrialEndsOn() Timestamp func (*MarketplacePurchase).GetNextBillingDate() Timestamp func (*MarketplacePurchase).GetUpdatedAt() Timestamp func (*MarketplacePurchaseEvent).GetEffectiveDate() Timestamp func (*Milestone).GetClosedAt() Timestamp func (*Milestone).GetCreatedAt() Timestamp func (*Milestone).GetDueOn() Timestamp func (*Milestone).GetUpdatedAt() Timestamp func (*Notification).GetLastReadAt() Timestamp func (*Notification).GetUpdatedAt() Timestamp func (*Organization).GetCreatedAt() Timestamp func (*Organization).GetUpdatedAt() Timestamp func (*OrgRequiredWorkflow).GetCreatedAt() Timestamp func (*OrgRequiredWorkflow).GetUpdatedAt() Timestamp func (*Package).GetCreatedAt() Timestamp func (*Package).GetUpdatedAt() Timestamp func (*PackageFile).GetCreatedAt() Timestamp func (*PackageFile).GetUpdatedAt() Timestamp func (*PackageRelease).GetCreatedAt() Timestamp func (*PackageRelease).GetPublishedAt() Timestamp func (*PackageVersion).GetCreatedAt() Timestamp func (*PackageVersion).GetUpdatedAt() Timestamp func (*PagesBuild).GetCreatedAt() Timestamp func (*PagesBuild).GetUpdatedAt() Timestamp func (*PendingDeployment).GetWaitTimerStartedAt() Timestamp func (*PersonalAccessToken).GetAccessGrantedAt() Timestamp func (*PersonalAccessToken).GetTokenExpiresAt() Timestamp func (*PersonalAccessToken).GetTokenLastUsedAt() Timestamp func (*PersonalAccessTokenRequest).GetCreatedAt() Timestamp func (*PersonalAccessTokenRequest).GetTokenExpiresAt() Timestamp func (*PersonalAccessTokenRequest).GetTokenLastUsedAt() Timestamp func (*Project).GetCreatedAt() Timestamp func (*Project).GetUpdatedAt() Timestamp func (*ProjectCard).GetCreatedAt() Timestamp func (*ProjectCard).GetUpdatedAt() Timestamp func (*ProjectColumn).GetCreatedAt() Timestamp func (*ProjectColumn).GetUpdatedAt() Timestamp func (*ProjectsV2).GetClosedAt() Timestamp func (*ProjectsV2).GetCreatedAt() Timestamp func (*ProjectsV2).GetDeletedAt() Timestamp func (*ProjectsV2).GetUpdatedAt() Timestamp func (*ProjectV2Item).GetArchivedAt() Timestamp func (*ProjectV2Item).GetCreatedAt() Timestamp func (*ProjectV2Item).GetUpdatedAt() Timestamp func (*PullRequest).GetClosedAt() Timestamp func (*PullRequest).GetCreatedAt() Timestamp func (*PullRequest).GetMergedAt() Timestamp func (*PullRequest).GetUpdatedAt() Timestamp func (*PullRequestComment).GetCreatedAt() Timestamp func (*PullRequestComment).GetUpdatedAt() Timestamp func (*PullRequestLinks).GetMergedAt() Timestamp func (*PullRequestReview).GetSubmittedAt() Timestamp func (*PushEventRepository).GetCreatedAt() Timestamp func (*PushEventRepository).GetPushedAt() Timestamp func (*PushEventRepository).GetUpdatedAt() Timestamp func (*RegistrationToken).GetExpiresAt() Timestamp func (*ReleaseAsset).GetCreatedAt() Timestamp func (*ReleaseAsset).GetUpdatedAt() Timestamp func (*RemoveToken).GetExpiresAt() Timestamp func (*RepoRequiredWorkflow).GetCreatedAt() Timestamp func (*RepoRequiredWorkflow).GetUpdatedAt() Timestamp func (*Repository).GetCreatedAt() Timestamp func (*Repository).GetPushedAt() Timestamp func (*Repository).GetUpdatedAt() Timestamp func (*RepositoryComment).GetCreatedAt() Timestamp func (*RepositoryComment).GetUpdatedAt() Timestamp func (*RepositoryInvitation).GetCreatedAt() Timestamp func (*RepositoryRelease).GetCreatedAt() Timestamp func (*RepositoryRelease).GetPublishedAt() Timestamp func (*RepositoryVulnerabilityAlert).GetCreatedAt() Timestamp func (*RepositoryVulnerabilityAlert).GetDismissedAt() Timestamp func (*RepoStatus).GetCreatedAt() Timestamp func (*RepoStatus).GetUpdatedAt() Timestamp func (*SarifAnalysis).GetStartedAt() Timestamp func (*ScanningAnalysis).GetCreatedAt() Timestamp func (*SCIMMeta).GetCreated() Timestamp func (*SCIMMeta).GetLastModified() Timestamp func (*SecretScanningAlert).GetCreatedAt() Timestamp func (*SecretScanningAlert).GetPushProtectionBypassedAt() Timestamp func (*SecretScanningAlert).GetResolvedAt() Timestamp func (*SecretScanningAlert).GetUpdatedAt() Timestamp func (*SecurityAdvisory).GetClosedAt() Timestamp func (*SecurityAdvisory).GetCreatedAt() Timestamp func (*SecurityAdvisory).GetPublishedAt() Timestamp func (*SecurityAdvisory).GetUpdatedAt() Timestamp func (*SecurityAdvisory).GetWithdrawnAt() Timestamp func (*SSHSigningKey).GetCreatedAt() Timestamp func (*StarEvent).GetStarredAt() Timestamp func (*Stargazer).GetStarredAt() Timestamp func (*StarredRepository).GetStarredAt() Timestamp func (*StatusEvent).GetCreatedAt() Timestamp func (*StatusEvent).GetUpdatedAt() Timestamp func (*Subscription).GetCreatedAt() Timestamp func (*TaskStep).GetCompletedAt() Timestamp func (*TaskStep).GetStartedAt() Timestamp func (*TeamDiscussion).GetCreatedAt() Timestamp func (*TeamDiscussion).GetLastEditedAt() Timestamp func (*TeamDiscussion).GetUpdatedAt() Timestamp func (*Timeline).GetCreatedAt() Timestamp func (*Timeline).GetSubmittedAt() Timestamp func (*TopicResult).GetCreatedAt() Timestamp func (*TrafficData).GetTimestamp() Timestamp func (*UpdateCheckRunOptions).GetCompletedAt() Timestamp func (*User).GetCreatedAt() Timestamp func (*User).GetSuspendedAt() Timestamp func (*User).GetUpdatedAt() Timestamp func (*UserAuthorization).GetCreatedAt() Timestamp func (*UserAuthorization).GetUpdatedAt() Timestamp func (*WeeklyCommitActivity).GetWeek() Timestamp func (*WeeklyStats).GetWeek() Timestamp func (*Workflow).GetCreatedAt() Timestamp func (*Workflow).GetUpdatedAt() Timestamp func (*WorkflowJob).GetCompletedAt() Timestamp func (*WorkflowJob).GetCreatedAt() Timestamp func (*WorkflowJob).GetStartedAt() Timestamp func (*WorkflowJobRun).GetCreatedAt() Timestamp func (*WorkflowJobRun).GetUpdatedAt() Timestamp func (*WorkflowRun).GetCreatedAt() Timestamp func (*WorkflowRun).GetRunStartedAt() Timestamp func (*WorkflowRun).GetUpdatedAt() Timestamp func (*ActivityService).MarkNotificationsRead(ctx context.Context, lastRead Timestamp) (*Response, error) func (*ActivityService).MarkRepositoryNotificationsRead(ctx context.Context, owner, repo string, lastRead Timestamp) (*Response, error) func (*IssueImportService).CheckStatusSince(ctx context.Context, owner, repo string, since Timestamp) ([]*IssueImportResponse, *Response, error) func Timestamp.Equal(u Timestamp) bool
Tool represents the tool used to generate a GitHub Code Scanning Alert. GUID *string Name *string Version *string GetGUID returns the GUID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetVersion returns the Version field if it's non-nil, zero value otherwise. func (*Alert).GetTool() *Tool func (*ScanningAnalysis).GetTool() *Tool
CreatedAt *Timestamp CreatedBy *string Curated *bool Description *string DisplayName *string Featured *bool Name *string Score *float64 ShortDescription *string UpdatedAt *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise. GetCurated returns the Curated field if it's non-nil, zero value otherwise. GetDescription returns the Description field if it's non-nil, zero value otherwise. GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. GetFeatured returns the Featured field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetScore returns the Score field. GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
TopicsSearchResult represents the result of a topics search. IncompleteResults *bool Topics []*TopicResult Total *int GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Topics(ctx context.Context, query string, opts *SearchOptions) (*TopicsSearchResult, *Response, error)
TotalCacheUsage represents total GitHub actions cache usage of an organization or enterprise. GitHub API docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-an-enterprise TotalActiveCachesCount int TotalActiveCachesUsageSizeInBytes int64 func (*ActionsService).GetTotalCacheUsageForEnterprise(ctx context.Context, enterprise string) (*TotalCacheUsage, *Response, error) func (*ActionsService).GetTotalCacheUsageForOrg(ctx context.Context, org string) (*TotalCacheUsage, *Response, error)
TrafficBreakdownOptions specifies the parameters to methods that support breakdown per day or week. Can be one of: day, week. Default: day. Per string func (*RepositoriesService).ListTrafficClones(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficClones, *Response, error) func (*RepositoriesService).ListTrafficViews(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficViews, *Response, error)
TrafficClones represent information about the number of clones in the last 14 days. Clones []*TrafficData Count *int Uniques *int GetCount returns the Count field if it's non-nil, zero value otherwise. GetUniques returns the Uniques field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListTrafficClones(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficClones, *Response, error)
TrafficData represent information about a specific timestamp in views or clones list. Count *int Timestamp *Timestamp Uniques *int GetCount returns the Count field if it's non-nil, zero value otherwise. GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. GetUniques returns the Uniques field if it's non-nil, zero value otherwise.
TrafficPath represent information about the traffic on a path of the repo. Count *int Path *string Title *string Uniques *int GetCount returns the Count field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetTitle returns the Title field if it's non-nil, zero value otherwise. GetUniques returns the Uniques field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListTrafficPaths(ctx context.Context, owner, repo string) ([]*TrafficPath, *Response, error)
TrafficReferrer represent information about traffic from a referrer . Count *int Referrer *string Uniques *int GetCount returns the Count field if it's non-nil, zero value otherwise. GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. GetUniques returns the Uniques field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListTrafficReferrers(ctx context.Context, owner, repo string) ([]*TrafficReferrer, *Response, error)
TrafficViews represent information about the number of views in the last 14 days. Count *int Uniques *int Views []*TrafficData GetCount returns the Count field if it's non-nil, zero value otherwise. GetUniques returns the Uniques field if it's non-nil, zero value otherwise. func (*RepositoriesService).ListTrafficViews(ctx context.Context, owner, repo string, opts *TrafficBreakdownOptions) (*TrafficViews, *Response, error)
TransferRequest represents a request to transfer a repository. NewName *string NewOwner string TeamID []int64 GetNewName returns the NewName field if it's non-nil, zero value otherwise. func (*RepositoriesService).Transfer(ctx context.Context, owner, repo string, transfer TransferRequest) (*Repository, *Response, error)
Tree represents a GitHub tree. Entries []*TreeEntry SHA *string Truncated is true if the number of items in the tree exceeded GitHub's maximum limit and the Entries were truncated in the response. Only populated for requests that fetch trees like Git.GetTree. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetTruncated returns the Truncated field if it's non-nil, zero value otherwise. ( Tree) String() string Tree : expvar.Var Tree : fmt.Stringer func (*Commit).GetTree() *Tree func (*GitService).CreateTree(ctx context.Context, owner string, repo string, baseTree string, entries []*TreeEntry) (*Tree, *Response, error) func (*GitService).GetTree(ctx context.Context, owner string, repo string, sha string, recursive bool) (*Tree, *Response, error)
TreeEntry represents the contents of a tree structure. TreeEntry can represent either a blob, a commit (in the case of a submodule), or another tree. Content *string Mode *string Path *string SHA *string Size *int Type *string URL *string GetContent returns the Content field if it's non-nil, zero value otherwise. GetMode returns the Mode field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetSHA returns the SHA field if it's non-nil, zero value otherwise. GetSize returns the Size field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. (*TreeEntry) MarshalJSON() ([]byte, error) ( TreeEntry) String() string *TreeEntry : github.com/goccy/go-json.Marshaler *TreeEntry : encoding/json.Marshaler TreeEntry : expvar.Var TreeEntry : fmt.Stringer func (*GitService).CreateTree(ctx context.Context, owner string, repo string, baseTree string, entries []*TreeEntry) (*Tree, *Response, error)
TwoFactorAuthError 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. Block is only populated on certain types of errors such as code 451. Most errors will also include a documentation_url field pointing to some content that might help you resolve the error, see https://docs.github.com/rest/#client-errors // more detail on individual errors // error message // HTTP response that caused this error (*TwoFactorAuthError) Error() string *TwoFactorAuthError : error
UnauthenticatedRateLimitedTransport allows you to make unauthenticated calls that need to use a higher rate limit associated with your OAuth application. t := &github.UnauthenticatedRateLimitedTransport{ ClientID: "your app's client ID", ClientSecret: "your app's client secret", } client := github.NewClient(t.Client()) This 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. See https://docs.github.com/rest/#unauthenticated-rate-limited-requests for more information. ClientID is the GitHub OAuth client ID of the current application, which can be found by selecting its entry in the list at https://github.com/settings/applications. ClientSecret is the GitHub OAuth client secret of the current application. Transport is the underlying HTTP transport to use when making requests. It will default to http.DefaultTransport if nil. Client returns an *http.Client that makes requests which are subject to the rate limit of your OAuth application. RoundTrip implements the RoundTripper interface. *UnauthenticatedRateLimitedTransport : net/http.RoundTripper
UpdateAllowsFetchAndMergeRuleParameters represents the update rule parameters. UpdateAllowsFetchAndMerge bool func NewUpdateRule(params *UpdateAllowsFetchAndMergeRuleParameters) (rule *RepositoryRule)
UpdateAttributeForSCIMUserOperations represents operations for UpdateAttributeForSCIMUser. // (Required.) // (Optional.) // (Optional.) GetPath returns the Path field if it's non-nil, zero value otherwise.
UpdateAttributeForSCIMUserOptions represents options for UpdateAttributeForSCIMUser. GitHub API docs: https://docs.github.com/rest/scim#update-an-attribute-for-a-scim-user--parameters // Set of operations to be performed. (Required.) // (Optional.) func (*SCIMService).UpdateAttributeForSCIMUser(ctx context.Context, org, scimUserID string, opts *UpdateAttributeForSCIMUserOptions) (*Response, error)
UpdateCheckRunOptions sets up parameters needed to update a CheckRun. // Possible further actions the integrator can perform, which a user may trigger. (Optional.) // The time the check completed. (Optional. Required if you provide conclusion.) // Can be one of "success", "failure", "neutral", "cancelled", "skipped", "timed_out", or "action_required". (Optional. Required if you provide a status of "completed".) // The URL of the integrator's site that has the full details of the check. (Optional.) // A reference for the run on the integrator's system. (Optional.) // The name of the check (e.g., "code-coverage"). (Required.) // Provide descriptive details about the run. (Optional) // The current status. Can be one of "queued", "in_progress", or "completed". Default: "queued". (Optional.) GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. GetOutput returns the Output field. GetStatus returns the Status field if it's non-nil, zero value otherwise. func (*ChecksService).UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, opts UpdateCheckRunOptions) (*CheckRun, *Response, error)
UpdateDefaultSetupConfigurationOptions specifies parameters to the CodeScanningService.UpdateDefaultSetupConfiguration method. Languages []string QuerySuite *string State string GetQuerySuite returns the QuerySuite field if it's non-nil, zero value otherwise. func (*CodeScanningService).UpdateDefaultSetupConfiguration(ctx context.Context, owner, repo string, options *UpdateDefaultSetupConfigurationOptions) (*UpdateDefaultSetupConfigurationResponse, *Response, error)
UpdateDefaultSetupConfigurationResponse represents a response from updating a code scanning default setup configuration. RunID *int64 RunURL *string GetRunID returns the RunID field if it's non-nil, zero value otherwise. GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. func (*CodeScanningService).UpdateDefaultSetupConfiguration(ctx context.Context, owner, repo string, options *UpdateDefaultSetupConfigurationOptions) (*UpdateDefaultSetupConfigurationResponse, *Response, error)
UpdateEnterpriseRunnerGroupRequest represents a request to update a Runner group for an enterprise. AllowsPublicRepositories *bool Name *string RestrictedToWorkflows *bool SelectedWorkflows []string Visibility *string GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*EnterpriseService).UpdateEnterpriseRunnerGroup(ctx context.Context, enterprise string, groupID int64, updateReq UpdateEnterpriseRunnerGroupRequest) (*EnterpriseRunnerGroup, *Response, error)
UpdateRunnerGroupRequest represents a request to update a Runner group for an organization. AllowsPublicRepositories *bool Name *string RestrictedToWorkflows *bool SelectedWorkflows []string Visibility *string GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*ActionsService).UpdateOrganizationRunnerGroup(ctx context.Context, org string, groupID int64, updateReq UpdateRunnerGroupRequest) (*RunnerGroup, *Response, error)
UploadOptions specifies the parameters to methods that support uploads. Label string MediaType string Name string func (*RepositoriesService).UploadReleaseAsset(ctx context.Context, owner, repo string, id int64, opts *UploadOptions, file *os.File) (*ReleaseAsset, *Response, error)
User represents a GitHub user. AvatarURL *string Bio *string Blog *string Collaborators *int Company *string CreatedAt *Timestamp DiskUsage *int Email *string EventsURL *string Followers *int FollowersURL *string Following *int FollowingURL *string GistsURL *string GravatarID *string HTMLURL *string Hireable *bool ID *int64 LdapDn *string Location *string Login *string Name *string NodeID *string OrganizationsURL *string OwnedPrivateRepos *int64 Permissions and RoleName identify the permissions and role that a user has on a given repository. These are only populated when calling Repositories.ListCollaborators. Plan *Plan PrivateGists *int PublicGists *int PublicRepos *int ReceivedEventsURL *string ReposURL *string RoleName *string SiteAdmin *bool StarredURL *string SubscriptionsURL *string SuspendedAt *Timestamp TextMatches is only populated from search results that request text matches See: search.go and https://docs.github.com/rest/search/#text-match-metadata TotalPrivateRepos *int64 TwitterUsername *string TwoFactorAuthentication *bool Type *string API URLs UpdatedAt *Timestamp GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. GetBio returns the Bio field if it's non-nil, zero value otherwise. GetBlog returns the Blog field if it's non-nil, zero value otherwise. GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. GetCompany returns the Company field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. GetEmail returns the Email field if it's non-nil, zero value otherwise. GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. GetFollowers returns the Followers field if it's non-nil, zero value otherwise. GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. GetFollowing returns the Following field if it's non-nil, zero value otherwise. GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHireable returns the Hireable field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise. GetLocation returns the Location field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. GetPlan returns the Plan field. GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. GetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( User) String() string User : expvar.Var User : fmt.Stringer func (*ActivityService).ListWatchers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error) func (*AdminService).CreateUser(ctx context.Context, userReq CreateUserRequest) (*User, *Response, error) func (*Alert).GetClosedBy() *User func (*Alert).GetDismissedBy() *User func (*App).GetOwner() *User func (*AppConfig).GetOwner() *User func (*Authorization).GetUser() *User func (*BranchProtectionRuleEvent).GetSender() *User func (*CheckRunEvent).GetSender() *User func (*CheckSuiteEvent).GetSender() *User func (*CodeQLDatabase).GetUploader() *User func (*CodeScanningAlertEvent).GetSender() *User func (*Codespace).GetBillableOwner() *User func (*Codespace).GetOwner() *User func (*CollaboratorInvitation).GetInvitee() *User func (*CollaboratorInvitation).GetInviter() *User func (*CommentDiscussion).GetUser() *User func (*CommitCommentEvent).GetSender() *User func (*CommitResult).GetAuthor() *User func (*CommitResult).GetCommitter() *User func (*ContentReferenceEvent).GetSender() *User func (*CopilotSeatDetails).GetUser() (*User, bool) func (*CreateEvent).GetSender() *User func (*Credit).GetUser() *User func (*DeleteEvent).GetSender() *User func (*DependabotAlert).GetDismissedBy() *User func (*DependabotAlertEvent).GetSender() *User func (*DeployKeyEvent).GetSender() *User func (*Deployment).GetCreator() *User func (*DeploymentEvent).GetSender() *User func (*DeploymentProtectionRuleEvent).GetSender() *User func (*DeploymentReviewEvent).GetApprover() *User func (*DeploymentReviewEvent).GetRequester() *User func (*DeploymentReviewEvent).GetSender() *User func (*DeploymentStatus).GetCreator() *User func (*DeploymentStatusEvent).GetSender() *User func (*Discussion).GetUser() *User func (*DiscussionComment).GetAuthor() *User func (*DiscussionCommentEvent).GetSender() *User func (*DiscussionEvent).GetSender() *User func (*Event).GetActor() *User func (*ForkEvent).GetSender() *User func (*Gist).GetOwner() *User func (*GistComment).GetUser() *User func (*GistCommit).GetUser() *User func (*GistFork).GetUser() *User func (*GitHubAppAuthorizationEvent).GetSender() *User func (*GollumEvent).GetSender() *User func (*Installation).GetAccount() *User func (*Installation).GetSuspendedBy() *User func (*InstallationEvent).GetRequester() *User func (*InstallationEvent).GetSender() *User func (*InstallationRepositoriesEvent).GetSender() *User func (*InstallationRequest).GetAccount() *User func (*InstallationRequest).GetRequester() *User func (*InstallationTargetEvent).GetAccount() *User func (*InstallationTargetEvent).GetSender() *User func (*Invitation).GetInviter() *User func (*Issue).GetAssignee() *User func (*Issue).GetClosedBy() *User func (*Issue).GetUser() *User func (*IssueComment).GetUser() *User func (*IssueCommentEvent).GetSender() *User func (*IssueEvent).GetActor() *User func (*IssueEvent).GetAssignee() *User func (*IssueEvent).GetAssigner() *User func (*IssueEvent).GetRequestedReviewer() *User func (*IssueEvent).GetReviewRequester() *User func (*IssuesEvent).GetAssignee() *User func (*IssuesEvent).GetSender() *User func (*IssuesService).ListAssignees(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error) func (*LabelEvent).GetSender() *User func (*MarketplacePurchaseEvent).GetSender() *User func (*MemberEvent).GetMember() *User func (*MemberEvent).GetSender() *User func (*Membership).GetUser() *User func (*MembershipEvent).GetMember() *User func (*MembershipEvent).GetSender() *User func (*MergeGroupEvent).GetSender() *User func (*MetaEvent).GetSender() *User func (*Milestone).GetCreator() *User func (*MilestoneEvent).GetSender() *User func (*OrganizationEvent).GetSender() *User func (*OrganizationsService).ListBlockedUsers(ctx context.Context, org string, opts *ListOptions) ([]*User, *Response, error) func (*OrganizationsService).ListMembers(ctx context.Context, org string, opts *ListMembersOptions) ([]*User, *Response, error) func (*OrganizationsService).ListOutsideCollaborators(ctx context.Context, org string, opts *ListOutsideCollaboratorsOptions) ([]*User, *Response, error) func (*OrganizationsService).ListUsersAssignedToOrgRole(ctx context.Context, org string, roleID int64, opts *ListOptions) ([]*User, *Response, error) func (*OrgBlockEvent).GetBlockedUser() *User func (*OrgBlockEvent).GetSender() *User func (*OwnerInfo).GetOrg() *User func (*OwnerInfo).GetUser() *User func (*Package).GetOwner() *User func (*PackageEvent).GetSender() *User func (*PackageFile).GetAuthor() *User func (*PackageRelease).GetAuthor() *User func (*PackageVersion).GetAuthor() *User func (*PageBuildEvent).GetSender() *User func (*PagesBuild).GetPusher() *User func (*PersonalAccessToken).GetOwner() *User func (*PersonalAccessTokenRequest).GetOwner() *User func (*PersonalAccessTokenRequestEvent).GetSender() *User func (*PingEvent).GetSender() *User func (*Project).GetCreator() *User func (*ProjectCard).GetCreator() *User func (*ProjectCardEvent).GetSender() *User func (*ProjectColumnEvent).GetSender() *User func (*ProjectEvent).GetSender() *User func (*ProjectPermissionLevel).GetUser() *User func (*ProjectsService).ListProjectCollaborators(ctx context.Context, id int64, opts *ListCollaboratorOptions) ([]*User, *Response, error) func (*ProjectsV2).GetCreator() *User func (*ProjectsV2).GetDeletedBy() *User func (*ProjectsV2).GetOwner() *User func (*ProjectV2Event).GetSender() *User func (*ProjectV2Item).GetCreator() *User func (*ProjectV2ItemEvent).GetSender() *User func (*PublicEvent).GetSender() *User func (*PullRequest).GetAssignee() *User func (*PullRequest).GetMergedBy() *User func (*PullRequest).GetUser() *User func (*PullRequestAutoMerge).GetEnabledBy() *User func (*PullRequestBranch).GetUser() *User func (*PullRequestComment).GetUser() *User func (*PullRequestEvent).GetAssignee() *User func (*PullRequestEvent).GetRequestedReviewer() *User func (*PullRequestEvent).GetSender() *User func (*PullRequestReview).GetUser() *User func (*PullRequestReviewCommentEvent).GetSender() *User func (*PullRequestReviewEvent).GetSender() *User func (*PullRequestReviewThreadEvent).GetSender() *User func (*PullRequestTargetEvent).GetAssignee() *User func (*PullRequestTargetEvent).GetRequestedReviewer() *User func (*PullRequestTargetEvent).GetSender() *User func (*PushEvent).GetSender() *User func (*PushEventRepository).GetOwner() *User func (*Reaction).GetUser() *User func (*ReleaseAsset).GetUploader() *User func (*ReleaseEvent).GetSender() *User func (*RepoAdvisoryCreditDetailed).GetUser() *User func (*RepositoriesService).AddUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error) func (*RepositoriesService).ListCollaborators(ctx context.Context, owner, repo string, opts *ListCollaboratorsOptions) ([]*User, *Response, error) func (*RepositoriesService).ListUserRestrictions(ctx context.Context, owner, repo, branch string) ([]*User, *Response, error) func (*RepositoriesService).RemoveUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error) func (*RepositoriesService).ReplaceUserRestrictions(ctx context.Context, owner, repo, branch string, users []string) ([]*User, *Response, error) func (*Repository).GetOwner() *User func (*RepositoryComment).GetUser() *User func (*RepositoryCommit).GetAuthor() *User func (*RepositoryCommit).GetCommitter() *User func (*RepositoryDispatchEvent).GetSender() *User func (*RepositoryEvent).GetSender() *User func (*RepositoryImportEvent).GetSender() *User func (*RepositoryInvitation).GetInvitee() *User func (*RepositoryInvitation).GetInviter() *User func (*RepositoryPermissionLevel).GetUser() *User func (*RepositoryRelease).GetAuthor() *User func (*RepositoryVulnerabilityAlert).GetDismisser() *User func (*RepositoryVulnerabilityAlertEvent).GetSender() *User func (*RepoStatus).GetCreator() *User func (*SecretScanningAlert).GetPushProtectionBypassedBy() *User func (*SecretScanningAlert).GetResolvedBy() *User func (*SecretScanningAlertEvent).GetSender() *User func (*SecurityAdvisory).GetAuthor() *User func (*SecurityAdvisory).GetPublisher() *User func (*SecurityAdvisoryEvent).GetSender() *User func (*SecurityAndAnalysisEvent).GetSender() *User func (*Source).GetActor() *User func (*SponsorshipEvent).GetSender() *User func (*StarEvent).GetSender() *User func (*Stargazer).GetUser() *User func (*StatusEvent).GetSender() *User func (*TeamAddEvent).GetSender() *User func (*TeamDiscussion).GetAuthor() *User func (*TeamEvent).GetSender() *User func (*TeamsService).ListTeamMembersByID(ctx context.Context, orgID, teamID int64, opts *TeamListTeamMembersOptions) ([]*User, *Response, error) func (*TeamsService).ListTeamMembersBySlug(ctx context.Context, org, slug string, opts *TeamListTeamMembersOptions) ([]*User, *Response, error) func (*Timeline).GetActor() *User func (*Timeline).GetAssignee() *User func (*Timeline).GetAssigner() *User func (*Timeline).GetRequester() *User func (*Timeline).GetReviewer() *User func (*Timeline).GetUser() *User func (*UserEvent).GetSender() *User func (*UserEvent).GetUser() *User func (*UsersService).Edit(ctx context.Context, user *User) (*User, *Response, error) func (*UsersService).Get(ctx context.Context, user string) (*User, *Response, error) func (*UsersService).GetByID(ctx context.Context, id int64) (*User, *Response, error) func (*UsersService).ListAll(ctx context.Context, opts *UserListOptions) ([]*User, *Response, error) func (*UsersService).ListBlockedUsers(ctx context.Context, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListFollowers(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error) func (*UsersService).ListFollowing(ctx context.Context, user string, opts *ListOptions) ([]*User, *Response, error) func (*WatchEvent).GetSender() *User func (*WorkflowDispatchEvent).GetSender() *User func (*WorkflowJobEvent).GetSender() *User func (*WorkflowRun).GetActor() *User func (*WorkflowRun).GetTriggeringActor() *User func (*WorkflowRunEvent).GetSender() *User func (*UsersService).Edit(ctx context.Context, user *User) (*User, *Response, error)
UserAuthorization represents the impersonation response. App *OAuthAPP CreatedAt *Timestamp Fingerprint *string HashedToken *string ID *int64 Note *string NoteURL *string Scopes []string Token *string TokenLastEight *string URL *string UpdatedAt *Timestamp GetApp returns the App field. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetNote returns the Note field if it's non-nil, zero value otherwise. GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. GetToken returns the Token field if it's non-nil, zero value otherwise. GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*AdminService).CreateUserImpersonation(ctx context.Context, username string, opts *ImpersonateUserOptions) (*UserAuthorization, *Response, error)
UserContext represents the contextual information about user. Message *string Octicon *string GetMessage returns the Message field if it's non-nil, zero value otherwise. GetOcticon returns the Octicon field if it's non-nil, zero value otherwise.
UserEmail represents user's email address Email *string Primary *bool Verified *bool Visibility *string GetEmail returns the Email field if it's non-nil, zero value otherwise. GetPrimary returns the Primary field if it's non-nil, zero value otherwise. GetVerified returns the Verified field if it's non-nil, zero value otherwise. GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. func (*UsersService).AddEmails(ctx context.Context, emails []string) ([]*UserEmail, *Response, error) func (*UsersService).ListEmails(ctx context.Context, opts *ListOptions) ([]*UserEmail, *Response, error) func (*UsersService).SetEmailVisibility(ctx context.Context, visibility string) ([]*UserEmail, *Response, error)
UserEvent is triggered when a user is created or deleted. The Webhook event name is "user". Only global webhooks can subscribe to this event type. GitHub API docs: https://developer.github.com/enterprise/v3/activity/events/types/#userevent-enterprise The action performed. Possible values are: "created" or "deleted". Enterprise *Enterprise The following fields are only populated by Webhook events. Sender *User User *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetEnterprise returns the Enterprise field. GetInstallation returns the Installation field. GetSender returns the Sender field. GetUser returns the User field.
UserLDAPMapping represents the mapping between a GitHub user and an LDAP user. AvatarURL *string EventsURL *string FollowersURL *string FollowingURL *string GistsURL *string GravatarID *string ID *int64 LDAPDN *string Login *string OrganizationsURL *string ReceivedEventsURL *string ReposURL *string SiteAdmin *bool StarredURL *string SubscriptionsURL *string Type *string URL *string GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. GetLogin returns the Login field if it's non-nil, zero value otherwise. GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. GetType returns the Type field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. ( UserLDAPMapping) String() string UserLDAPMapping : expvar.Var UserLDAPMapping : fmt.Stringer func (*AdminService).UpdateUserLDAPMapping(ctx context.Context, user string, mapping *UserLDAPMapping) (*UserLDAPMapping, *Response, error) func (*AdminService).UpdateUserLDAPMapping(ctx context.Context, user string, mapping *UserLDAPMapping) (*UserLDAPMapping, *Response, error)
UserListOptions specifies optional parameters to the UsersService.ListAll method. Note: Pagination is powered exclusively by the Since parameter, ListOptions.Page has no effect. ListOptions.PerPage controls an undocumented GitHub API parameter. For paginated result sets, page of results to retrieve. For paginated result sets, the number of results to include per page. Since filters Organizations by ID. func (*UsersService).ListAll(ctx context.Context, opts *UserListOptions) ([]*User, *Response, error)
UserMigration represents a GitHub migration (archival). CreatedAt *string ExcludeAttachments indicates whether attachments should be excluded from the migration (to reduce migration archive file size). GUID *string ID *int64 LockRepositories indicates whether repositories are locked (to prevent manipulation) while migrating data. Repositories []*Repository State is the current state of a migration. Possible values are: "pending" which means the migration hasn't started yet, "exporting" which means the migration is in progress, "exported" which means the migration finished successfully, or "failed" which means the migration failed. URL *string UpdatedAt *string GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. GetGUID returns the GUID field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. ( UserMigration) String() string UserMigration : expvar.Var UserMigration : fmt.Stringer func (*MigrationService).ListUserMigrations(ctx context.Context, opts *ListOptions) ([]*UserMigration, *Response, error) func (*MigrationService).StartUserMigration(ctx context.Context, repos []string, opts *UserMigrationOptions) (*UserMigration, *Response, error) func (*MigrationService).UserMigrationStatus(ctx context.Context, id int64) (*UserMigration, *Response, error)
UserMigrationOptions specifies the optional parameters to Migration methods. ExcludeAttachments indicates whether attachments should be excluded from the migration (to reduce migration archive file size). LockRepositories indicates whether repositories should be locked (to prevent manipulation) while migrating data. func (*MigrationService).StartUserMigration(ctx context.Context, repos []string, opts *UserMigrationOptions) (*UserMigration, *Response, error)
UsersSearchResult represents the result of a users search. IncompleteResults *bool Total *int Users []*User GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. GetTotal returns the Total field if it's non-nil, zero value otherwise. func (*SearchService).Users(ctx context.Context, query string, opts *SearchOptions) (*UsersSearchResult, *Response, error)
UsersService handles communication with the user related methods of the GitHub API. GitHub API docs: https://docs.github.com/rest/users/ AcceptInvitation accepts the currently-open repository invitation for the authenticated user. GitHub API docs: https://docs.github.com/rest/collaborators/invitations#accept-a-repository-invitation AddEmails adds email addresses of the authenticated user. GitHub API docs: https://docs.github.com/rest/users/emails#add-an-email-address-for-the-authenticated-user BlockUser blocks specified user for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/blocking#block-a-user CreateGPGKey creates a GPG key. It requires authentication via Basic Auth or OAuth with at least write:gpg_key scope. GitHub API docs: https://docs.github.com/rest/users/gpg-keys#create-a-gpg-key-for-the-authenticated-user CreateKey adds a public key for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/keys#create-a-public-ssh-key-for-the-authenticated-user CreateProject creates a GitHub Project for the current user. GitHub API docs: https://docs.github.com/rest/projects/projects#create-a-user-project CreateSSHSigningKey adds a SSH signing key for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/ssh-signing-keys#create-a-ssh-signing-key-for-the-authenticated-user DeclineInvitation declines the currently-open repository invitation for the authenticated user. GitHub API docs: https://docs.github.com/rest/collaborators/invitations#decline-a-repository-invitation DeleteEmails deletes email addresses from authenticated user. GitHub API docs: https://docs.github.com/rest/users/emails#delete-an-email-address-for-the-authenticated-user DeleteGPGKey deletes a GPG key. It requires authentication via Basic Auth or via OAuth with at least admin:gpg_key scope. GitHub API docs: https://docs.github.com/rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user DeleteKey deletes a public key. GitHub API docs: https://docs.github.com/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user DeletePackage deletes a package from a user. Passing the empty string for "user" will delete the package for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#delete-a-package-for-a-user GitHub API docs: https://docs.github.com/rest/packages/packages#delete-a-package-for-the-authenticated-user DeleteSSHSigningKey deletes a SSH signing key for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user DemoteSiteAdmin demotes a user from site administrator of a GitHub Enterprise instance. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#demote-a-site-administrator Edit the authenticated user. GitHub API docs: https://docs.github.com/rest/users/users#update-the-authenticated-user Follow will cause the authenticated user to follow the specified user. GitHub API docs: https://docs.github.com/rest/users/followers#follow-a-user Get fetches a user. Passing the empty string will fetch the authenticated user. GitHub API docs: https://docs.github.com/rest/users/users#get-a-user GitHub API docs: https://docs.github.com/rest/users/users#get-the-authenticated-user GetByID fetches a user. Note: GetByID uses the undocumented GitHub API endpoint "GET /user/{user_id}". GetGPGKey gets extended details for a single GPG key. It requires authentication via Basic Auth or via OAuth with at least read:gpg_key scope. GitHub API docs: https://docs.github.com/rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user GetHovercard fetches contextual information about user. It requires authentication via Basic Auth or via OAuth with the repo scope. GitHub API docs: https://docs.github.com/rest/users/users#get-contextual-information-for-a-user GetKey fetches a single public key. GitHub API docs: https://docs.github.com/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user GetPackage gets a package by name for a user. Passing the empty string for "user" will get the package for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#get-a-package-for-a-user GitHub API docs: https://docs.github.com/rest/packages/packages#get-a-package-for-the-authenticated-user GetSSHSigningKey fetches a single SSH signing key for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user IsBlocked reports whether specified user is blocked by the authenticated user. GitHub API docs: https://docs.github.com/rest/users/blocking#check-if-a-user-is-blocked-by-the-authenticated-user IsFollowing checks if "user" is following "target". Passing the empty string for "user" will check if the authenticated user is following "target". GitHub API docs: https://docs.github.com/rest/users/followers#check-if-a-person-is-followed-by-the-authenticated-user GitHub API docs: https://docs.github.com/rest/users/followers#check-if-a-user-follows-another-user ListAll lists all GitHub users. To paginate through all users, populate 'Since' with the ID of the last user. GitHub API docs: https://docs.github.com/rest/users/users#list-users ListBlockedUsers lists all the blocked users by the authenticated user. GitHub API docs: https://docs.github.com/rest/users/blocking#list-users-blocked-by-the-authenticated-user ListEmails lists all email addresses for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/emails#list-email-addresses-for-the-authenticated-user ListFollowers lists the followers for a user. Passing the empty string will fetch followers for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/followers#list-followers-of-a-user GitHub API docs: https://docs.github.com/rest/users/followers#list-followers-of-the-authenticated-user ListFollowing lists the people that a user is following. Passing the empty string will list people the authenticated user is following. GitHub API docs: https://docs.github.com/rest/users/followers#list-the-people-a-user-follows GitHub API docs: https://docs.github.com/rest/users/followers#list-the-people-the-authenticated-user-follows ListGPGKeys 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. GitHub API docs: https://docs.github.com/rest/users/gpg-keys#list-gpg-keys-for-a-user GitHub API docs: https://docs.github.com/rest/users/gpg-keys#list-gpg-keys-for-the-authenticated-user ListInvitations lists all currently-open repository invitations for the authenticated user. GitHub API docs: https://docs.github.com/rest/collaborators/invitations#list-repository-invitations-for-the-authenticated-user ListKeys lists the verified public keys for a user. Passing the empty string will fetch keys for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/keys#list-public-keys-for-a-user GitHub API docs: https://docs.github.com/rest/users/keys#list-public-ssh-keys-for-the-authenticated-user ListPackages lists the packages for a user. Passing the empty string for "user" will list packages for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#list-packages-for-a-user GitHub API docs: https://docs.github.com/rest/packages/packages#list-packages-for-the-authenticated-users-namespace ListProjects lists the projects for the specified user. GitHub API docs: https://docs.github.com/rest/projects/projects#list-user-projects ListSSHSigningKeys lists the SSH signing keys for a user. Passing an empty username string will fetch SSH signing keys for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-a-user GitHub API docs: https://docs.github.com/rest/users/ssh-signing-keys#list-ssh-signing-keys-for-the-authenticated-user PackageDeleteVersion deletes a package version for a user. Passing the empty string for "user" will delete the version for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#delete-a-package-version-for-the-authenticated-user GitHub API docs: https://docs.github.com/rest/packages/packages#delete-package-version-for-a-user PackageGetAllVersions gets all versions of a package for a user. Passing the empty string for "user" will get versions for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#list-package-versions-for-a-package-owned-by-a-user GitHub API docs: https://docs.github.com/rest/packages/packages#list-package-versions-for-a-package-owned-by-the-authenticated-user PackageGetVersion gets a specific version of a package for a user. Passing the empty string for "user" will get the version for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#get-a-package-version-for-a-user GitHub API docs: https://docs.github.com/rest/packages/packages#get-a-package-version-for-the-authenticated-user PackageRestoreVersion restores a package version to a user. Passing the empty string for "user" will restore the version for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#restore-a-package-version-for-the-authenticated-user GitHub API docs: https://docs.github.com/rest/packages/packages#restore-package-version-for-a-user PromoteSiteAdmin promotes a user to a site administrator of a GitHub Enterprise instance. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#promote-a-user-to-be-a-site-administrator RestorePackage restores a package to a user. Passing the empty string for "user" will restore the package for the authenticated user. GitHub API docs: https://docs.github.com/rest/packages/packages#restore-a-package-for-a-user GitHub API docs: https://docs.github.com/rest/packages/packages#restore-a-package-for-the-authenticated-user SetEmailVisibility sets the visibility for the primary email address of the authenticated user. `visibility` can be "private" or "public". GitHub API docs: https://docs.github.com/rest/users/emails#set-primary-email-visibility-for-the-authenticated-user Suspend a user on a GitHub Enterprise instance. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#suspend-a-user UnblockUser unblocks specified user for the authenticated user. GitHub API docs: https://docs.github.com/rest/users/blocking#unblock-a-user Unfollow will cause the authenticated user to unfollow the specified user. GitHub API docs: https://docs.github.com/rest/users/followers#unfollow-a-user Unsuspend a user on a GitHub Enterprise instance. GitHub API docs: https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/users#unsuspend-a-user
UserStats represents the number of total, admin and suspended users. AdminUsers *int SuspendedUsers *int TotalUsers *int GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise. GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise. GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise. ( UserStats) String() string UserStats : expvar.Var UserStats : fmt.Stringer func (*AdminStats).GetUsers() *UserStats
UserSuspendOptions represents the reason a user is being suspended. Reason *string GetReason returns the Reason field if it's non-nil, zero value otherwise. func (*UsersService).Suspend(ctx context.Context, user string, opts *UserSuspendOptions) (*Response, error)
VulnerabilityPackage represents the package object for an Advisory Vulnerability. Ecosystem *string Name *string GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. func (*AdvisoryVulnerability).GetPackage() *VulnerabilityPackage func (*Dependency).GetPackage() *VulnerabilityPackage func (*GlobalSecurityVulnerability).GetPackage() *VulnerabilityPackage
WatchEvent 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/ The event’s actor is the user who starred a repository, and the event’s repository is the repository that was starred. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#watch Action is the action that was performed. Possible value is: "started". Installation *Installation The following field is only present when the webhook is triggered on a repository belonging to an organization. The following fields are only populated by Webhook events. Sender *User GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field.
WebHookAuthor represents the author or committer of a commit, as specified in a WebHookCommit. The commit author may not correspond to a GitHub User. Deprecated: Please use CommitAuthor instead. NOTE Breaking API change: the `Username` field is now called `Login`.
WebHookCommit represents the commit variant we receive from GitHub in a WebHookPayload. Deprecated: Please use HeadCommit instead.
WebHookPayload 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. GitHub API docs: https://help.github.com/articles/post-receive-hooks Deprecated: Please use PushEvent instead.
WeeklyCommitActivity represents the weekly commit activity for a repository. The days array is a group of commits per day, starting on Sunday. Days []int Total *int Week *Timestamp GetTotal returns the Total field if it's non-nil, zero value otherwise. GetWeek returns the Week field if it's non-nil, zero value otherwise. ( WeeklyCommitActivity) String() string WeeklyCommitActivity : expvar.Var WeeklyCommitActivity : fmt.Stringer func (*RepositoriesService).ListCommitActivity(ctx context.Context, owner, repo string) ([]*WeeklyCommitActivity, *Response, error)
WeeklyStats represents the number of additions, deletions and commits a Contributor made in a given week. Additions *int Commits *int Deletions *int Week *Timestamp GetAdditions returns the Additions field if it's non-nil, zero value otherwise. GetCommits returns the Commits field if it's non-nil, zero value otherwise. GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. GetWeek returns the Week field if it's non-nil, zero value otherwise. ( WeeklyStats) String() string WeeklyStats : expvar.Var WeeklyStats : fmt.Stringer func (*RepositoriesService).ListCodeFrequency(ctx context.Context, owner, repo string) ([]*WeeklyStats, *Response, error)
Workflow represents a repository action workflow. BadgeURL *string CreatedAt *Timestamp HTMLURL *string ID *int64 Name *string NodeID *string Path *string State *string URL *string UpdatedAt *Timestamp GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetState returns the State field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*ActionsService).GetWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Workflow, *Response, error) func (*ActionsService).GetWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Workflow, *Response, error) func (*DeploymentEvent).GetWorkflow() *Workflow func (*WorkflowRunEvent).GetWorkflow() *Workflow
WorkflowBill specifies billable time for a specific environment in a workflow. TotalMS *int64 GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise.
WorkflowBillMap represents different runner environments available for a workflow. Its key is the name of its environment, e.g. "UBUNTU", "MACOS", "WINDOWS", etc. func (*WorkflowUsage).GetBillable() *WorkflowBillMap
WorkflowDispatchEvent is triggered when someone triggers a workflow run on GitHub or sends a POST request to the create a workflow dispatch event endpoint. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch Inputs json.RawMessage Installation *Installation Org *Organization Ref *string The following fields are only populated by Webhook events. Sender *User Workflow *string GetInstallation returns the Installation field. GetOrg returns the Org field. GetRef returns the Ref field if it's non-nil, zero value otherwise. GetRepo returns the Repo field. GetSender returns the Sender field. GetWorkflow returns the Workflow field if it's non-nil, zero value otherwise.
WorkflowJob represents a repository action workflow job. CheckRunURL *string CompletedAt *Timestamp Conclusion *string CreatedAt *Timestamp HTMLURL *string HeadBranch *string HeadSHA *string ID *int64 Labels represents runner labels from the `runs-on:` key from a GitHub Actions workflow. Name *string NodeID *string RunAttempt *int64 RunID *int64 RunURL *string RunnerGroupID *int64 RunnerGroupName *string RunnerID *int64 RunnerName *string StartedAt *Timestamp Status *string Steps []*TaskStep URL *string WorkflowName *string GetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise. GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. GetRunID returns the RunID field if it's non-nil, zero value otherwise. GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetURL returns the URL field if it's non-nil, zero value otherwise. GetWorkflowName returns the WorkflowName field if it's non-nil, zero value otherwise. func (*ActionsService).GetWorkflowJobByID(ctx context.Context, owner, repo string, jobID int64) (*WorkflowJob, *Response, error) func (*WorkflowJobEvent).GetWorkflowJob() *WorkflowJob
WorkflowJobEvent is triggered when a job is queued, started or completed. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job Action *string Installation *Installation Org is not nil when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization. Repo *Repository Sender *User WorkflowJob *WorkflowJob GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetWorkflowJob returns the WorkflowJob field.
WorkflowJobRun represents a workflow_job_run in a GitHub DeploymentReviewEvent. Conclusion *string CreatedAt *Timestamp Environment *string HTMLURL *string ID *int64 Name *string Status *string UpdatedAt *Timestamp GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. func (*DeploymentReviewEvent).GetWorkflowJobRun() *WorkflowJobRun
WorkflowRun represents a repository action workflow run. Actor *User ArtifactsURL *string CancelURL *string CheckSuiteID *int64 CheckSuiteNodeID *string CheckSuiteURL *string Conclusion *string CreatedAt *Timestamp DisplayTitle *string Event *string HTMLURL *string HeadBranch *string HeadCommit *HeadCommit HeadRepository *Repository HeadSHA *string ID *int64 JobsURL *string LogsURL *string Name *string NodeID *string Path *string PreviousAttemptURL *string PullRequests []*PullRequest ReferencedWorkflows []*ReferencedWorkflow Repository *Repository RerunURL *string RunAttempt *int RunNumber *int RunStartedAt *Timestamp Status *string TriggeringActor *User URL *string UpdatedAt *Timestamp WorkflowID *int64 WorkflowURL *string GetActor returns the Actor field. GetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise. GetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise. GetCheckSuiteID returns the CheckSuiteID field if it's non-nil, zero value otherwise. GetCheckSuiteNodeID returns the CheckSuiteNodeID field if it's non-nil, zero value otherwise. GetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise. GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. GetDisplayTitle returns the DisplayTitle field if it's non-nil, zero value otherwise. GetEvent returns the Event field if it's non-nil, zero value otherwise. GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. GetHeadCommit returns the HeadCommit field. GetHeadRepository returns the HeadRepository field. GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. GetID returns the ID field if it's non-nil, zero value otherwise. GetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise. GetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise. GetName returns the Name field if it's non-nil, zero value otherwise. GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. GetPath returns the Path field if it's non-nil, zero value otherwise. GetPreviousAttemptURL returns the PreviousAttemptURL field if it's non-nil, zero value otherwise. GetRepository returns the Repository field. GetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise. GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. GetRunStartedAt returns the RunStartedAt field if it's non-nil, zero value otherwise. GetStatus returns the Status field if it's non-nil, zero value otherwise. GetTriggeringActor returns the TriggeringActor field. GetURL returns the URL field if it's non-nil, zero value otherwise. GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. GetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise. func (*ActionsService).GetWorkflowRunAttempt(ctx context.Context, owner, repo string, runID int64, attemptNumber int, opts *WorkflowRunAttemptOptions) (*WorkflowRun, *Response, error) func (*ActionsService).GetWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRun, *Response, error) func (*DeploymentEvent).GetWorkflowRun() *WorkflowRun func (*DeploymentReviewEvent).GetWorkflowRun() *WorkflowRun func (*WorkflowRunEvent).GetWorkflowRun() *WorkflowRun
WorkflowRunAttemptOptions specifies optional parameters to GetWorkflowRunAttempt. ExcludePullRequests *bool GetExcludePullRequests returns the ExcludePullRequests field if it's non-nil, zero value otherwise. func (*ActionsService).GetWorkflowRunAttempt(ctx context.Context, owner, repo string, runID int64, attemptNumber int, opts *WorkflowRunAttemptOptions) (*WorkflowRun, *Response, error)
WorkflowRunBill specifies billable time for a specific environment in a workflow run. JobRuns []*WorkflowRunJobRun Jobs *int TotalMS *int64 GetJobs returns the Jobs field if it's non-nil, zero value otherwise. GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise.
WorkflowRunBillMap represents different runner environments available for a workflow run. Its key is the name of its environment, e.g. "UBUNTU", "MACOS", "WINDOWS", etc. func (*WorkflowRunUsage).GetBillable() *WorkflowRunBillMap
WorkflowRunEvent is triggered when a GitHub Actions workflow run is requested or completed. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#workflow_run Action *string Installation *Installation The following fields are only populated by Webhook events. Repo *Repository Sender *User Workflow *Workflow WorkflowRun *WorkflowRun GetAction returns the Action field if it's non-nil, zero value otherwise. GetInstallation returns the Installation field. GetOrg returns the Org field. GetRepo returns the Repo field. GetSender returns the Sender field. GetWorkflow returns the Workflow field. GetWorkflowRun returns the WorkflowRun field.
WorkflowRunJobRun represents a usage of individual jobs of a specific workflow run. DurationMS *int64 JobID *int GetDurationMS returns the DurationMS field if it's non-nil, zero value otherwise. GetJobID returns the JobID field if it's non-nil, zero value otherwise.
WorkflowRuns represents a slice of repository action workflow run. TotalCount *int WorkflowRuns []*WorkflowRun GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error) func (*ActionsService).ListWorkflowRunsByID(ctx context.Context, owner, repo string, workflowID int64, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)
WorkflowRunUsage represents a usage of a specific workflow run. Billable *WorkflowRunBillMap RunDurationMS *int64 GetBillable returns the Billable field. GetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise. func (*ActionsService).GetWorkflowRunUsageByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRunUsage, *Response, error)
Workflows represents a slice of repository action workflows. TotalCount *int Workflows []*Workflow GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. func (*ActionsService).ListWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*Workflows, *Response, error)
WorkflowUsage represents a usage of a specific workflow. Billable *WorkflowBillMap GetBillable returns the Billable field. func (*ActionsService).GetWorkflowUsageByFileName(ctx context.Context, owner, repo, workflowFileName string) (*WorkflowUsage, *Response, error) func (*ActionsService).GetWorkflowUsageByID(ctx context.Context, owner, repo string, workflowID int64) (*WorkflowUsage, *Response, error)
Package-Level Functions (total 40)
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
CheckResponse 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. The error type will be *RateLimitError for rate limit exceeded errors, *AcceptedError for 202 Accepted status codes, and *TwoFactorAuthError for two-factor authentication errors.
DeliveryID returns the unique delivery ID of webhook request r. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/events/github-event-types
EventForType returns an empty struct matching the specified GitHub event type. If messageType does not match any known event types, it returns nil.
GetRateLimitCategory returns the rate limit RateLimitCategory of the endpoint, determined by HTTP method and Request.URL.Path.
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.
MessageTypes returns a sorted list of all the known GitHub event type strings supported by go-github.
NewBranchNamePatternRule creates a rule to restrict branch patterns from being merged into matching branches.
NewClient returns a new GitHub API client. If a nil httpClient is provided, a new http.Client will be used. To use API methods which require authentication, either use Client.WithAuthToken or provide NewClient with an http.Client that will perform the authentication for you (such as that provided by the golang.org/x/oauth2 library).
NewClientWithEnvProxy enhances NewClient with the HttpProxy env.
NewCommitAuthorEmailPatternRule creates a rule to restrict commits with author email patterns being merged into matching branches.
NewCommitMessagePatternRule creates a rule to restrict commit message patterns being pushed to matching branches.
NewCommitterEmailPatternRule creates a rule to restrict commits with committer email patterns being merged into matching branches.
NewCreationRule creates a rule to only allow users with bypass permission to create matching refs.
NewDeletionRule creates a rule to only allow users with bypass permissions to delete matching refs.
NewEnterpriseClient returns a new GitHub API client with provided base URL and upload URL (often is your GitHub Enterprise hostname). Deprecated: Use NewClient(httpClient).WithEnterpriseURLs(baseURL, uploadURL) instead.
NewFileExtensionRestrictionRule creates a rule to restrict file extensions from being pushed to a commit.
NewFilePathRestrictionRule creates a rule to restrict file paths from being pushed to.
NewMaxFilePathLengthRule creates a rule to restrict file paths longer than the limit from being pushed.
NewMaxFileSizeRule creates a rule to restrict file sizes from being pushed to a commit.
NewMergeQueueRule creates a rule to only allow merges via a merge queue.
NewNonFastForwardRule creates a rule as part to prevent users with push access from force pushing to matching branches.
NewPullRequestRule creates a rule to require all commits be made to a non-target branch and submitted via a pull request before they can be merged.
NewRequiredDeploymentsRule creates a rule to require environments to be successfully deployed before they can be merged into the matching branches.
NewRequiredLinearHistoryRule creates a rule to prevent merge commits from being pushed to matching branches.
NewRequiredSignaturesRule creates a rule a to require commits pushed to matching branches to have verified signatures.
NewRequiredStatusChecksRule creates a rule to require which status checks must pass before branches can be merged into a branch rule.
NewRequiredWorkflowsRule creates a rule to require which status checks must pass before branches can be merged into a branch rule.
NewTagNamePatternRule creates a rule to restrict tag patterns contained in non-target branches from being merged into matching branches.
NewTokenClient returns a new GitHub API client authenticated with the provided token. Deprecated: Use NewClient(nil).WithAuthToken(token) instead.
NewUpdateRule creates a rule to only allow users with bypass permission to update matching refs.
ParseWebHook parses the event payload. For recognized event types, a value of the corresponding struct type will be returned (as returned by Event.ParsePayload()). An error will be returned for unrecognized event types. Example usage: func (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) { payload, err := github.ValidatePayload(r, s.webhookSecretKey) if err != nil { ... } event, err := github.ParseWebHook(github.WebHookType(r), payload) if err != nil { ... } switch event := event.(type) { case *github.CommitCommentEvent: processCommitCommentEvent(event) case *github.CreateEvent: processCreateEvent(event) ... } }
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
Stringify 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.
ValidatePayload 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. Example usage: func (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) { payload, err := github.ValidatePayload(r, s.webhookSecretKey) if err != nil { ... } // Process payload... }
ValidatePayloadFromBody 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. Example usage: func (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) { // read signature from request signature := "" payload, err := github.ValidatePayloadFromBody(r.Header.Get("Content-Type"), r.Body, signature, s.webhookSecretKey) if err != nil { ... } // Process payload... }
ValidateSignature 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. GitHub API docs: https://developer.github.com/webhooks/securing/#validating-payloads-from-github
WebHookType returns the event type of webhook request r. GitHub API docs: https://docs.github.com/developers/webhooks-and-events/events/github-event-types
WithVersion 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/
Package-Level Variables (total 3)
Package-Level Constants (total 47)
const Categories RateLimitCategory = 11 // An array of this length will be able to contain all rate limit categories.
DeliveryIDHeader is the GitHub header key used to pass the unique ID for the webhook event.
Diff format.
EventTypeHeader is the GitHub header key used to pass the event type.
Patch format.
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
This is the set of scopes for GitHub API V3
SHA1SignatureHeader is the GitHub header key used to pass the HMAC-SHA1 hexdigest.
SHA256SignatureHeader is the GitHub header key used to pass the HMAC-SHA256 hexdigest.
Tarball specifies an archive in gzipped tar format.
const Version = "v66.0.0"
Zipball specifies an archive in zip format.