ghx

package module
v0.0.0-...-db6e80b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 6 Imported by: 0

README

ghx

ghx is an extension to google/go-github

Documentation

Index

Constants

View Source
const MaxPerPage = 100

Variables

This section is empty.

Functions

func PTR

func PTR[T comparable](v T) *T

Types

type ActionsService

type ActionsService struct {
	AddEnabledOrgInEnterprise                    func(ctx context.Context, owner string, organizationID int64) (*github.Response, error)
	AddEnabledReposInOrg                         func(ctx context.Context, owner string, repositoryID int64) (*github.Response, error)
	AddRepoToRequiredWorkflow                    func(ctx context.Context, org string, requiredWorkflowID int64, repoID int64) (*github.Response, error)
	AddRepositoryAccessRunnerGroup               func(ctx context.Context, org string, groupID int64, repoID int64) (*github.Response, error)
	AddRunnerGroupRunners                        func(ctx context.Context, org string, groupID int64, runnerID int64) (*github.Response, error)
	AddSelectedRepoToOrgSecret                   func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	AddSelectedRepoToOrgVariable                 func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	CancelWorkflowRunByID                        func(ctx context.Context, owner string, repo string, runID int64) (*github.Response, error)
	CreateEnvVariable                            func(ctx context.Context, owner string, repo string, env string, variable *github.ActionsVariable) (*github.Response, error)
	CreateOrUpdateEnvSecret                      func(ctx context.Context, repoID int, env string, eSecret *github.EncryptedSecret) (*github.Response, error)
	CreateOrUpdateOrgSecret                      func(ctx context.Context, org string, eSecret *github.EncryptedSecret) (*github.Response, error)
	CreateOrUpdateRepoSecret                     func(ctx context.Context, owner string, repo string, eSecret *github.EncryptedSecret) (*github.Response, error)
	CreateOrgVariable                            func(ctx context.Context, org string, variable *github.ActionsVariable) (*github.Response, error)
	CreateOrganizationRegistrationToken          func(ctx context.Context, org string) (*github.RegistrationToken, *github.Response, error)
	CreateOrganizationRemoveToken                func(ctx context.Context, org string) (*github.RemoveToken, *github.Response, error)
	CreateOrganizationRunnerGroup                func(ctx context.Context, org string, createReq github.CreateRunnerGroupRequest) (*github.RunnerGroup, *github.Response, error)
	CreateRegistrationToken                      func(ctx context.Context, owner string, repo string) (*github.RegistrationToken, *github.Response, error)
	CreateRemoveToken                            func(ctx context.Context, owner string, repo string) (*github.RemoveToken, *github.Response, error)
	CreateRepoVariable                           func(ctx context.Context, owner string, repo string, variable *github.ActionsVariable) (*github.Response, error)
	CreateRequiredWorkflow                       func(ctx context.Context, org string, createRequiredWorkflowOptions *github.CreateUpdateRequiredWorkflowOptions) (*github.OrgRequiredWorkflow, *github.Response, error)
	CreateWorkflowDispatchEventByFileName        func(ctx context.Context, owner string, repo string, workflowFileName string, event github.CreateWorkflowDispatchEventRequest) (*github.Response, error)
	CreateWorkflowDispatchEventByID              func(ctx context.Context, owner string, repo string, workflowID int64, event github.CreateWorkflowDispatchEventRequest) (*github.Response, error)
	DeleteArtifact                               func(ctx context.Context, owner string, repo string, artifactID int64) (*github.Response, error)
	DeleteCachesByID                             func(ctx context.Context, owner string, repo string, cacheID int64) (*github.Response, error)
	DeleteCachesByKey                            func(ctx context.Context, owner string, repo string, key string, ref *string) (*github.Response, error)
	DeleteEnvSecret                              func(ctx context.Context, repoID int, env string, secretName string) (*github.Response, error)
	DeleteEnvVariable                            func(ctx context.Context, owner string, repo string, env string, variableName string) (*github.Response, error)
	DeleteOrgSecret                              func(ctx context.Context, org string, name string) (*github.Response, error)
	DeleteOrgVariable                            func(ctx context.Context, org string, name string) (*github.Response, error)
	DeleteOrganizationRunnerGroup                func(ctx context.Context, org string, groupID int64) (*github.Response, error)
	DeleteRepoSecret                             func(ctx context.Context, owner string, repo string, name string) (*github.Response, error)
	DeleteRepoVariable                           func(ctx context.Context, owner string, repo string, name string) (*github.Response, error)
	DeleteRequiredWorkflow                       func(ctx context.Context, org string, requiredWorkflowID int64) (*github.Response, error)
	DeleteWorkflowRun                            func(ctx context.Context, owner string, repo string, runID int64) (*github.Response, error)
	DeleteWorkflowRunLogs                        func(ctx context.Context, owner string, repo string, runID int64) (*github.Response, error)
	DisableWorkflowByFileName                    func(ctx context.Context, owner string, repo string, workflowFileName string) (*github.Response, error)
	DisableWorkflowByID                          func(ctx context.Context, owner string, repo string, workflowID int64) (*github.Response, error)
	DownloadArtifact                             func(ctx context.Context, owner string, repo string, artifactID int64, maxRedirects int) (*url.URL, *github.Response, error)
	EditActionsAllowed                           func(ctx context.Context, org string, actionsAllowed github.ActionsAllowed) (*github.ActionsAllowed, *github.Response, error)
	EditActionsAllowedInEnterprise               func(ctx context.Context, enterprise string, actionsAllowed github.ActionsAllowed) (*github.ActionsAllowed, *github.Response, error)
	EditActionsPermissions                       func(ctx context.Context, org string, actionsPermissions github.ActionsPermissions) (*github.ActionsPermissions, *github.Response, error)
	EditActionsPermissionsInEnterprise           func(ctx context.Context, enterprise string, actionsPermissionsEnterprise github.ActionsPermissionsEnterprise) (*github.ActionsPermissionsEnterprise, *github.Response, error)
	EditDefaultWorkflowPermissionsInEnterprise   func(ctx context.Context, enterprise string, permissions github.DefaultWorkflowPermissionEnterprise) (*github.DefaultWorkflowPermissionEnterprise, *github.Response, error)
	EditDefaultWorkflowPermissionsInOrganization func(ctx context.Context, org string, permissions github.DefaultWorkflowPermissionOrganization) (*github.DefaultWorkflowPermissionOrganization, *github.Response, error)
	EnableWorkflowByFileName                     func(ctx context.Context, owner string, repo string, workflowFileName string) (*github.Response, error)
	EnableWorkflowByID                           func(ctx context.Context, owner string, repo string, workflowID int64) (*github.Response, error)
	GenerateOrgJITConfig                         func(ctx context.Context, org string, request *github.GenerateJITConfigRequest) (*github.JITRunnerConfig, *github.Response, error)
	GenerateRepoJITConfig                        func(ctx context.Context, owner string, repo string, request *github.GenerateJITConfigRequest) (*github.JITRunnerConfig, *github.Response, error)
	GetActionsAllowed                            func(ctx context.Context, org string) (*github.ActionsAllowed, *github.Response, error)
	GetActionsAllowedInEnterprise                func(ctx context.Context, enterprise string) (*github.ActionsAllowed, *github.Response, error)
	GetActionsPermissions                        func(ctx context.Context, org string) (*github.ActionsPermissions, *github.Response, error)
	GetActionsPermissionsInEnterprise            func(ctx context.Context, enterprise string) (*github.ActionsPermissionsEnterprise, *github.Response, error)
	GetArtifact                                  func(ctx context.Context, owner string, repo string, artifactID int64) (*github.Artifact, *github.Response, error)
	GetCacheUsageForRepo                         func(ctx context.Context, owner string, repo string) (*github.ActionsCacheUsage, *github.Response, error)
	GetDefaultWorkflowPermissionsInEnterprise    func(ctx context.Context, enterprise string) (*github.DefaultWorkflowPermissionEnterprise, *github.Response, error)
	GetDefaultWorkflowPermissionsInOrganization  func(ctx context.Context, org string) (*github.DefaultWorkflowPermissionOrganization, *github.Response, error)
	GetEnvPublicKey                              func(ctx context.Context, repoID int, env string) (*github.PublicKey, *github.Response, error)
	GetEnvSecret                                 func(ctx context.Context, repoID int, env string, secretName string) (*github.Secret, *github.Response, error)
	GetEnvVariable                               func(ctx context.Context, owner string, repo string, env string, variableName string) (*github.ActionsVariable, *github.Response, error)
	GetOrgOIDCSubjectClaimCustomTemplate         func(ctx context.Context, org string) (*github.OIDCSubjectClaimCustomTemplate, *github.Response, error)
	GetOrgPublicKey                              func(ctx context.Context, org string) (*github.PublicKey, *github.Response, error)
	GetOrgSecret                                 func(ctx context.Context, org string, name string) (*github.Secret, *github.Response, error)
	GetOrgVariable                               func(ctx context.Context, org string, name string) (*github.ActionsVariable, *github.Response, error)
	GetOrganizationRunner                        func(ctx context.Context, org string, runnerID int64) (*github.Runner, *github.Response, error)
	GetOrganizationRunnerGroup                   func(ctx context.Context, org string, groupID int64) (*github.RunnerGroup, *github.Response, error)
	GetRepoOIDCSubjectClaimCustomTemplate        func(ctx context.Context, owner string, repo string) (*github.OIDCSubjectClaimCustomTemplate, *github.Response, error)
	GetRepoPublicKey                             func(ctx context.Context, owner string, repo string) (*github.PublicKey, *github.Response, error)
	GetRepoSecret                                func(ctx context.Context, owner string, repo string, name string) (*github.Secret, *github.Response, error)
	GetRepoVariable                              func(ctx context.Context, owner string, repo string, name string) (*github.ActionsVariable, *github.Response, error)
	GetRequiredWorkflowByID                      func(ctx context.Context, owner string, requiredWorkflowID int64) (*github.OrgRequiredWorkflow, *github.Response, error)
	GetRunner                                    func(ctx context.Context, owner string, repo string, runnerID int64) (*github.Runner, *github.Response, error)
	GetTotalCacheUsageForEnterprise              func(ctx context.Context, enterprise string) (*github.TotalCacheUsage, *github.Response, error)
	GetTotalCacheUsageForOrg                     func(ctx context.Context, org string) (*github.TotalCacheUsage, *github.Response, error)
	GetWorkflowByFileName                        func(ctx context.Context, owner string, repo string, workflowFileName string) (*github.Workflow, *github.Response, error)
	GetWorkflowByID                              func(ctx context.Context, owner string, repo string, workflowID int64) (*github.Workflow, *github.Response, error)
	GetWorkflowJobByID                           func(ctx context.Context, owner string, repo string, jobID int64) (*github.WorkflowJob, *github.Response, error)
	GetWorkflowJobLogs                           func(ctx context.Context, owner string, repo string, jobID int64, maxRedirects int) (*url.URL, *github.Response, error)
	GetWorkflowRunAttempt                        func(ctx context.Context, owner string, repo string, runID int64, attemptNumber int, opts *github.WorkflowRunAttemptOptions) (*github.WorkflowRun, *github.Response, error)
	GetWorkflowRunAttemptLogs                    func(ctx context.Context, owner string, repo string, runID int64, attemptNumber int, maxRedirects int) (*url.URL, *github.Response, error)
	GetWorkflowRunByID                           func(ctx context.Context, owner string, repo string, runID int64) (*github.WorkflowRun, *github.Response, error)
	GetWorkflowRunLogs                           func(ctx context.Context, owner string, repo string, runID int64, maxRedirects int) (*url.URL, *github.Response, error)
	GetWorkflowRunUsageByID                      func(ctx context.Context, owner string, repo string, runID int64) (*github.WorkflowRunUsage, *github.Response, error)
	GetWorkflowUsageByFileName                   func(ctx context.Context, owner string, repo string, workflowFileName string) (*github.WorkflowUsage, *github.Response, error)
	GetWorkflowUsageByID                         func(ctx context.Context, owner string, repo string, workflowID int64) (*github.WorkflowUsage, *github.Response, error)
	ListArtifacts                                func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.ArtifactList, *github.Response, error)
	ListCacheUsageByRepoForOrg                   func(ctx context.Context, org string, opts *github.ListOptions) (*github.ActionsCacheUsageList, *github.Response, error)
	ListCaches                                   func(ctx context.Context, owner string, repo string, opts *github.ActionsCacheListOptions) (*github.ActionsCacheList, *github.Response, error)
	ListEnabledOrgsInEnterprise                  func(ctx context.Context, owner string, opts *github.ListOptions) (*github.ActionsEnabledOnEnterpriseRepos, *github.Response, error)
	ListEnabledReposInOrg                        func(ctx context.Context, owner string, opts *github.ListOptions) (*github.ActionsEnabledOnOrgRepos, *github.Response, error)
	ListEnvSecrets                               func(ctx context.Context, repoID int, env string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListEnvVariables                             func(ctx context.Context, owner string, repo string, env string, opts *github.ListOptions) (*github.ActionsVariables, *github.Response, error)
	ListOrgRequiredWorkflows                     func(ctx context.Context, org string, opts *github.ListOptions) (*github.OrgRequiredWorkflows, *github.Response, error)
	ListOrgSecrets                               func(ctx context.Context, org string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListOrgVariables                             func(ctx context.Context, org string, opts *github.ListOptions) (*github.ActionsVariables, *github.Response, error)
	ListOrganizationRunnerApplicationDownloads   func(ctx context.Context, org string) ([]*github.RunnerApplicationDownload, *github.Response, error)
	ListOrganizationRunnerGroups                 func(ctx context.Context, org string, opts *github.ListOrgRunnerGroupOptions) (*github.RunnerGroups, *github.Response, error)
	ListOrganizationRunners                      func(ctx context.Context, org string, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)
	ListRepoOrgSecrets                           func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListRepoOrgVariables                         func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.ActionsVariables, *github.Response, error)
	ListRepoRequiredWorkflows                    func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.RepoRequiredWorkflows, *github.Response, error)
	ListRepoSecrets                              func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListRepoVariables                            func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.ActionsVariables, *github.Response, error)
	ListRepositoryAccessRunnerGroup              func(ctx context.Context, org string, groupID int64, opts *github.ListOptions) (*github.ListRepositories, *github.Response, error)
	ListRepositoryWorkflowRuns                   func(ctx context.Context, owner string, repo string, opts *github.ListWorkflowRunsOptions) (*github.WorkflowRuns, *github.Response, error)
	ListRequiredWorkflowSelectedRepos            func(ctx context.Context, org string, requiredWorkflowID int64, opts *github.ListOptions) (*github.RequiredWorkflowSelectedRepos, *github.Response, error)
	ListRunnerApplicationDownloads               func(ctx context.Context, owner string, repo string) ([]*github.RunnerApplicationDownload, *github.Response, error)
	ListRunnerGroupRunners                       func(ctx context.Context, org string, groupID int64, opts *github.ListOptions) (*github.Runners, *github.Response, error)
	ListRunners                                  func(ctx context.Context, owner string, repo string, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)
	ListSelectedReposForOrgSecret                func(ctx context.Context, org string, name string, opts *github.ListOptions) (*github.SelectedReposList, *github.Response, error)
	ListSelectedReposForOrgVariable              func(ctx context.Context, org string, name string, opts *github.ListOptions) (*github.SelectedReposList, *github.Response, error)
	ListWorkflowJobs                             func(ctx context.Context, owner string, repo string, runID int64, opts *github.ListWorkflowJobsOptions) (*github.Jobs, *github.Response, error)
	ListWorkflowJobsAttempt                      func(ctx context.Context, owner string, repo string, runID int64, attemptNumber int64, opts *github.ListOptions) (*github.Jobs, *github.Response, error)
	ListWorkflowRunArtifacts                     func(ctx context.Context, owner string, repo string, runID int64, opts *github.ListOptions) (*github.ArtifactList, *github.Response, error)
	ListWorkflowRunsByFileName                   func(ctx context.Context, owner string, repo string, workflowFileName string, opts *github.ListWorkflowRunsOptions) (*github.WorkflowRuns, *github.Response, error)
	ListWorkflowRunsByID                         func(ctx context.Context, owner string, repo string, workflowID int64, opts *github.ListWorkflowRunsOptions) (*github.WorkflowRuns, *github.Response, error)
	ListWorkflows                                func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.Workflows, *github.Response, error)
	PendingDeployments                           func(ctx context.Context, owner string, repo string, runID int64, request *github.PendingDeploymentsRequest) ([]*github.Deployment, *github.Response, error)
	RemoveEnabledOrgInEnterprise                 func(ctx context.Context, owner string, organizationID int64) (*github.Response, error)
	RemoveEnabledReposInOrg                      func(ctx context.Context, owner string, repositoryID int64) (*github.Response, error)
	RemoveOrganizationRunner                     func(ctx context.Context, org string, runnerID int64) (*github.Response, error)
	RemoveRepoFromRequiredWorkflow               func(ctx context.Context, org string, requiredWorkflowID int64, repoID int64) (*github.Response, error)
	RemoveRepositoryAccessRunnerGroup            func(ctx context.Context, org string, groupID int64, repoID int64) (*github.Response, error)
	RemoveRunner                                 func(ctx context.Context, owner string, repo string, runnerID int64) (*github.Response, error)
	RemoveRunnerGroupRunners                     func(ctx context.Context, org string, groupID int64, runnerID int64) (*github.Response, error)
	RemoveSelectedRepoFromOrgSecret              func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	RemoveSelectedRepoFromOrgVariable            func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	RerunFailedJobsByID                          func(ctx context.Context, owner string, repo string, runID int64) (*github.Response, error)
	RerunJobByID                                 func(ctx context.Context, owner string, repo string, jobID int64) (*github.Response, error)
	RerunWorkflowByID                            func(ctx context.Context, owner string, repo string, runID int64) (*github.Response, error)
	SetEnabledOrgsInEnterprise                   func(ctx context.Context, owner string, organizationIDs []int64) (*github.Response, error)
	SetEnabledReposInOrg                         func(ctx context.Context, owner string, repositoryIDs []int64) (*github.Response, error)
	SetOrgOIDCSubjectClaimCustomTemplate         func(ctx context.Context, org string, template *github.OIDCSubjectClaimCustomTemplate) (*github.Response, error)
	SetRepoOIDCSubjectClaimCustomTemplate        func(ctx context.Context, owner string, repo string, template *github.OIDCSubjectClaimCustomTemplate) (*github.Response, error)
	SetRepositoryAccessRunnerGroup               func(ctx context.Context, org string, groupID int64, ids github.SetRepoAccessRunnerGroupRequest) (*github.Response, error)
	SetRequiredWorkflowSelectedRepos             func(ctx context.Context, org string, requiredWorkflowID int64, ids github.SelectedRepoIDs) (*github.Response, error)
	SetRunnerGroupRunners                        func(ctx context.Context, org string, groupID int64, ids github.SetRunnerGroupRunnersRequest) (*github.Response, error)
	SetSelectedReposForOrgSecret                 func(ctx context.Context, org string, name string, ids github.SelectedRepoIDs) (*github.Response, error)
	SetSelectedReposForOrgVariable               func(ctx context.Context, org string, name string, ids github.SelectedRepoIDs) (*github.Response, error)
	UpdateEnvVariable                            func(ctx context.Context, owner string, repo string, env string, variable *github.ActionsVariable) (*github.Response, error)
	UpdateOrgVariable                            func(ctx context.Context, org string, variable *github.ActionsVariable) (*github.Response, error)
	UpdateOrganizationRunnerGroup                func(ctx context.Context, org string, groupID int64, updateReq github.UpdateRunnerGroupRequest) (*github.RunnerGroup, *github.Response, error)
	UpdateRepoVariable                           func(ctx context.Context, owner string, repo string, variable *github.ActionsVariable) (*github.Response, error)
	UpdateRequiredWorkflow                       func(ctx context.Context, org string, requiredWorkflowID int64, updateRequiredWorkflowOptions *github.CreateUpdateRequiredWorkflowOptions) (*github.OrgRequiredWorkflow, *github.Response, error)
}

type ActivityService

type ActivityService struct {
	DeleteRepositorySubscription    func(ctx context.Context, owner string, repo string) (*github.Response, error)
	DeleteThreadSubscription        func(ctx context.Context, id string) (*github.Response, error)
	GetRepositorySubscription       func(ctx context.Context, owner string, repo string) (*github.Subscription, *github.Response, error)
	GetThread                       func(ctx context.Context, id string) (*github.Notification, *github.Response, error)
	GetThreadSubscription           func(ctx context.Context, id string) (*github.Subscription, *github.Response, error)
	IsStarred                       func(ctx context.Context, owner string, repo string) (bool, *github.Response, error)
	ListEvents                      func(ctx context.Context, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListEventsForOrganization       func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListEventsForRepoNetwork        func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListEventsPerformedByUser       func(ctx context.Context, user string, publicOnly bool, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListEventsReceivedByUser        func(ctx context.Context, user string, publicOnly bool, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListFeeds                       func(ctx context.Context) (*github.Feeds, *github.Response, error)
	ListIssueEventsForRepository    func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.IssueEvent, *github.Response, error)
	ListNotifications               func(ctx context.Context, opts *github.NotificationListOptions) ([]*github.Notification, *github.Response, error)
	ListRepositoryEvents            func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListRepositoryNotifications     func(ctx context.Context, owner string, repo string, opts *github.NotificationListOptions) ([]*github.Notification, *github.Response, error)
	ListStargazers                  func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Stargazer, *github.Response, error)
	ListStarred                     func(ctx context.Context, user string, opts *github.ActivityListStarredOptions) ([]*github.StarredRepository, *github.Response, error)
	ListUserEventsForOrganization   func(ctx context.Context, org string, user string, opts *github.ListOptions) ([]*github.Event, *github.Response, error)
	ListWatched                     func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.Repository, *github.Response, error)
	ListWatchers                    func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	MarkNotificationsRead           func(ctx context.Context, lastRead github.Timestamp) (*github.Response, error)
	MarkRepositoryNotificationsRead func(ctx context.Context, owner string, repo string, lastRead github.Timestamp) (*github.Response, error)
	MarkThreadRead                  func(ctx context.Context, id string) (*github.Response, error)
	SetRepositorySubscription       func(ctx context.Context, owner string, repo string, subscription *github.Subscription) (*github.Subscription, *github.Response, error)
	SetThreadSubscription           func(ctx context.Context, id string, subscription *github.Subscription) (*github.Subscription, *github.Response, error)
	Star                            func(ctx context.Context, owner string, repo string) (*github.Response, error)
	Unstar                          func(ctx context.Context, owner string, repo string) (*github.Response, error)
}

type AdminService

type AdminService struct {
	CreateOrg               func(ctx context.Context, org *github.Organization, admin string) (*github.Organization, *github.Response, error)
	CreateUser              func(ctx context.Context, userReq github.CreateUserRequest) (*github.User, *github.Response, error)
	CreateUserImpersonation func(ctx context.Context, username string, opts *github.ImpersonateUserOptions) (*github.UserAuthorization, *github.Response, error)
	DeleteUser              func(ctx context.Context, username string) (*github.Response, error)
	DeleteUserImpersonation func(ctx context.Context, username string) (*github.Response, error)
	GetAdminStats           func(ctx context.Context) (*github.AdminStats, *github.Response, error)
	RenameOrg               func(ctx context.Context, org *github.Organization, newName string) (*github.RenameOrgResponse, *github.Response, error)
	RenameOrgByName         func(ctx context.Context, org string, newName string) (*github.RenameOrgResponse, *github.Response, error)
	UpdateTeamLDAPMapping   func(ctx context.Context, team int64, mapping *github.TeamLDAPMapping) (*github.TeamLDAPMapping, *github.Response, error)
	UpdateUserLDAPMapping   func(ctx context.Context, user string, mapping *github.UserLDAPMapping) (*github.UserLDAPMapping, *github.Response, error)
}

type AppsService

type AppsService struct {
	AddRepository                    func(ctx context.Context, instID int64, repoID int64) (*github.Repository, *github.Response, error)
	CompleteAppManifest              func(ctx context.Context, code string) (*github.AppConfig, *github.Response, error)
	CreateAttachment                 func(ctx context.Context, contentReferenceID int64, title string, body string) (*github.Attachment, *github.Response, error)
	CreateInstallationToken          func(ctx context.Context, id int64, opts *github.InstallationTokenOptions) (*github.InstallationToken, *github.Response, error)
	CreateInstallationTokenListRepos func(ctx context.Context, id int64, opts *github.InstallationTokenListRepoOptions) (*github.InstallationToken, *github.Response, error)
	DeleteInstallation               func(ctx context.Context, id int64) (*github.Response, error)
	FindOrganizationInstallation     func(ctx context.Context, org string) (*github.Installation, *github.Response, error)
	FindRepositoryInstallation       func(ctx context.Context, owner string, repo string) (*github.Installation, *github.Response, error)
	FindRepositoryInstallationByID   func(ctx context.Context, id int64) (*github.Installation, *github.Response, error)
	FindUserInstallation             func(ctx context.Context, user string) (*github.Installation, *github.Response, error)
	Get                              func(ctx context.Context, appSlug string) (*github.App, *github.Response, error)
	GetHookConfig                    func(ctx context.Context) (*github.HookConfig, *github.Response, error)
	GetHookDelivery                  func(ctx context.Context, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	GetInstallation                  func(ctx context.Context, id int64) (*github.Installation, *github.Response, error)
	ListHookDeliveries               func(ctx context.Context, opts *github.ListCursorOptions) ([]*github.HookDelivery, *github.Response, error)
	ListInstallationRequests         func(ctx context.Context, opts *github.ListOptions) ([]*github.InstallationRequest, *github.Response, error)
	ListInstallations                func(ctx context.Context, opts *github.ListOptions) ([]*github.Installation, *github.Response, error)
	ListRepos                        func(ctx context.Context, opts *github.ListOptions) (*github.ListRepositories, *github.Response, error)
	ListUserInstallations            func(ctx context.Context, opts *github.ListOptions) ([]*github.Installation, *github.Response, error)
	ListUserRepos                    func(ctx context.Context, id int64, opts *github.ListOptions) (*github.ListRepositories, *github.Response, error)
	RedeliverHookDelivery            func(ctx context.Context, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	RemoveRepository                 func(ctx context.Context, instID int64, repoID int64) (*github.Response, error)
	RevokeInstallationToken          func(ctx context.Context) (*github.Response, error)
	SuspendInstallation              func(ctx context.Context, id int64) (*github.Response, error)
	UnsuspendInstallation            func(ctx context.Context, id int64) (*github.Response, error)
	UpdateHookConfig                 func(ctx context.Context, config *github.HookConfig) (*github.HookConfig, *github.Response, error)
}

type AuthorizationsService

type AuthorizationsService struct {
	Check               func(ctx context.Context, clientID string, accessToken string) (*github.Authorization, *github.Response, error)
	CreateImpersonation func(ctx context.Context, username string, authReq *github.AuthorizationRequest) (*github.Authorization, *github.Response, error)
	DeleteGrant         func(ctx context.Context, clientID string, accessToken string) (*github.Response, error)
	DeleteImpersonation func(ctx context.Context, username string) (*github.Response, error)
	Reset               func(ctx context.Context, clientID string, accessToken string) (*github.Authorization, *github.Response, error)
	Revoke              func(ctx context.Context, clientID string, accessToken string) (*github.Response, error)
}

type BillingService

type BillingService struct {
	GetActionsBillingOrg                   func(ctx context.Context, org string) (*github.ActionBilling, *github.Response, error)
	GetActionsBillingUser                  func(ctx context.Context, user string) (*github.ActionBilling, *github.Response, error)
	GetAdvancedSecurityActiveCommittersOrg func(ctx context.Context, org string, opts *github.ListOptions) (*github.ActiveCommitters, *github.Response, error)
	GetPackagesBillingOrg                  func(ctx context.Context, org string) (*github.PackageBilling, *github.Response, error)
	GetPackagesBillingUser                 func(ctx context.Context, user string) (*github.PackageBilling, *github.Response, error)
	GetStorageBillingOrg                   func(ctx context.Context, org string) (*github.StorageBilling, *github.Response, error)
	GetStorageBillingUser                  func(ctx context.Context, user string) (*github.StorageBilling, *github.Response, error)
}

type ChecksService

type ChecksService struct {
	CreateCheckRun           func(ctx context.Context, owner string, repo string, opts github.CreateCheckRunOptions) (*github.CheckRun, *github.Response, error)
	CreateCheckSuite         func(ctx context.Context, owner string, repo string, opts github.CreateCheckSuiteOptions) (*github.CheckSuite, *github.Response, error)
	GetCheckRun              func(ctx context.Context, owner string, repo string, checkRunID int64) (*github.CheckRun, *github.Response, error)
	GetCheckSuite            func(ctx context.Context, owner string, repo string, checkSuiteID int64) (*github.CheckSuite, *github.Response, error)
	ListCheckRunAnnotations  func(ctx context.Context, owner string, repo string, checkRunID int64, opts *github.ListOptions) ([]*github.CheckRunAnnotation, *github.Response, error)
	ListCheckRunsCheckSuite  func(ctx context.Context, owner string, repo string, checkSuiteID int64, opts *github.ListCheckRunsOptions) (*github.ListCheckRunsResults, *github.Response, error)
	ListCheckRunsForRef      func(ctx context.Context, owner string, repo string, ref string, opts *github.ListCheckRunsOptions) (*github.ListCheckRunsResults, *github.Response, error)
	ListCheckSuitesForRef    func(ctx context.Context, owner string, repo string, ref string, opts *github.ListCheckSuiteOptions) (*github.ListCheckSuiteResults, *github.Response, error)
	ReRequestCheckRun        func(ctx context.Context, owner string, repo string, checkRunID int64) (*github.Response, error)
	ReRequestCheckSuite      func(ctx context.Context, owner string, repo string, checkSuiteID int64) (*github.Response, error)
	SetCheckSuitePreferences func(ctx context.Context, owner string, repo string, opts github.CheckSuitePreferenceOptions) (*github.CheckSuitePreferenceResults, *github.Response, error)
	UpdateCheckRun           func(ctx context.Context, owner string, repo string, checkRunID int64, opts github.UpdateCheckRunOptions) (*github.CheckRun, *github.Response, error)
}

type Client

type Client struct {
	*github.Client

	Actions            *ActionsService
	Activity           *ActivityService
	Admin              *AdminService
	Apps               *AppsService
	Authorizations     *AuthorizationsService
	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
	Users              *UsersService
}

func NewClient

func NewClient(client *github.Client) *Client

NewClient returns a new *ghx.Client with all calls routed to *github.Client

type CodeScanningService

type CodeScanningService struct {
	DeleteAnalysis                  func(ctx context.Context, owner string, repo string, id int64) (*github.DeleteAnalysis, *github.Response, error)
	GetAlert                        func(ctx context.Context, owner string, repo string, id int64) (*github.Alert, *github.Response, error)
	GetAnalysis                     func(ctx context.Context, owner string, repo string, id int64) (*github.ScanningAnalysis, *github.Response, error)
	GetCodeQLDatabase               func(ctx context.Context, owner string, repo string, language string) (*github.CodeQLDatabase, *github.Response, error)
	GetDefaultSetupConfiguration    func(ctx context.Context, owner string, repo string) (*github.DefaultSetupConfiguration, *github.Response, error)
	GetSARIF                        func(ctx context.Context, owner string, repo string, sarifID string) (*github.SARIFUpload, *github.Response, error)
	ListAlertInstances              func(ctx context.Context, owner string, repo string, id int64, opts *github.AlertInstancesListOptions) ([]*github.MostRecentInstance, *github.Response, error)
	ListAlertsForOrg                func(ctx context.Context, org string, opts *github.AlertListOptions) ([]*github.Alert, *github.Response, error)
	ListAlertsForRepo               func(ctx context.Context, owner string, repo string, opts *github.AlertListOptions) ([]*github.Alert, *github.Response, error)
	ListAnalysesForRepo             func(ctx context.Context, owner string, repo string, opts *github.AnalysesListOptions) ([]*github.ScanningAnalysis, *github.Response, error)
	ListCodeQLDatabases             func(ctx context.Context, owner string, repo string) ([]*github.CodeQLDatabase, *github.Response, error)
	UpdateAlert                     func(ctx context.Context, owner string, repo string, id int64, stateInfo *github.CodeScanningAlertState) (*github.Alert, *github.Response, error)
	UpdateDefaultSetupConfiguration func(ctx context.Context, owner string, repo string, options *github.UpdateDefaultSetupConfigurationOptions) (*github.UpdateDefaultSetupConfigurationResponse, *github.Response, error)
	UploadSarif                     func(ctx context.Context, owner string, repo string, sarif *github.SarifAnalysis) (*github.SarifID, *github.Response, error)
}

type CodesOfConductService

type CodesOfConductService struct {
	Get  func(ctx context.Context, key string) (*github.CodeOfConduct, *github.Response, error)
	List func(ctx context.Context) ([]*github.CodeOfConduct, *github.Response, error)
}

type CodespacesService

type CodespacesService struct {
	AddSelectedRepoToOrgSecret       func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	AddSelectedRepoToUserSecret      func(ctx context.Context, name string, repo *github.Repository) (*github.Response, error)
	CreateInRepo                     func(ctx context.Context, owner string, repo string, request *github.CreateCodespaceOptions) (*github.Codespace, *github.Response, error)
	CreateOrUpdateOrgSecret          func(ctx context.Context, org string, eSecret *github.EncryptedSecret) (*github.Response, error)
	CreateOrUpdateRepoSecret         func(ctx context.Context, owner string, repo string, eSecret *github.EncryptedSecret) (*github.Response, error)
	CreateOrUpdateUserSecret         func(ctx context.Context, eSecret *github.EncryptedSecret) (*github.Response, error)
	Delete                           func(ctx context.Context, codespaceName string) (*github.Response, error)
	DeleteOrgSecret                  func(ctx context.Context, org string, name string) (*github.Response, error)
	DeleteRepoSecret                 func(ctx context.Context, owner string, repo string, name string) (*github.Response, error)
	DeleteUserSecret                 func(ctx context.Context, name string) (*github.Response, error)
	GetOrgPublicKey                  func(ctx context.Context, org string) (*github.PublicKey, *github.Response, error)
	GetOrgSecret                     func(ctx context.Context, org string, name string) (*github.Secret, *github.Response, error)
	GetRepoPublicKey                 func(ctx context.Context, owner string, repo string) (*github.PublicKey, *github.Response, error)
	GetRepoSecret                    func(ctx context.Context, owner string, repo string, name string) (*github.Secret, *github.Response, error)
	GetUserPublicKey                 func(ctx context.Context) (*github.PublicKey, *github.Response, error)
	GetUserSecret                    func(ctx context.Context, name string) (*github.Secret, *github.Response, error)
	List                             func(ctx context.Context, opts *github.ListCodespacesOptions) (*github.ListCodespaces, *github.Response, error)
	ListInRepo                       func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.ListCodespaces, *github.Response, error)
	ListOrgSecrets                   func(ctx context.Context, org string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListRepoSecrets                  func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListSelectedReposForOrgSecret    func(ctx context.Context, org string, name string, opts *github.ListOptions) (*github.SelectedReposList, *github.Response, error)
	ListSelectedReposForUserSecret   func(ctx context.Context, name string, opts *github.ListOptions) (*github.SelectedReposList, *github.Response, error)
	ListUserSecrets                  func(ctx context.Context, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	RemoveSelectedRepoFromOrgSecret  func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	RemoveSelectedRepoFromUserSecret func(ctx context.Context, name string, repo *github.Repository) (*github.Response, error)
	SetSelectedReposForOrgSecret     func(ctx context.Context, org string, name string, ids github.SelectedRepoIDs) (*github.Response, error)
	SetSelectedReposForUserSecret    func(ctx context.Context, name string, ids github.SelectedRepoIDs) (*github.Response, error)
	Start                            func(ctx context.Context, codespaceName string) (*github.Codespace, *github.Response, error)
	Stop                             func(ctx context.Context, codespaceName string) (*github.Codespace, *github.Response, error)
}

type CopilotService

type CopilotService struct {
	AddCopilotTeams    func(ctx context.Context, org string, teamNames []string) (*github.SeatAssignments, *github.Response, error)
	AddCopilotUsers    func(ctx context.Context, org string, users []string) (*github.SeatAssignments, *github.Response, error)
	GetCopilotBilling  func(ctx context.Context, org string) (*github.CopilotOrganizationDetails, *github.Response, error)
	GetSeatDetails     func(ctx context.Context, org string, user string) (*github.CopilotSeatDetails, *github.Response, error)
	ListCopilotSeats   func(ctx context.Context, org string, opts *github.ListOptions) (*github.ListCopilotSeatsResponse, *github.Response, error)
	RemoveCopilotTeams func(ctx context.Context, org string, teamNames []string) (*github.SeatCancellations, *github.Response, error)
	RemoveCopilotUsers func(ctx context.Context, org string, users []string) (*github.SeatCancellations, *github.Response, error)
}

type DependabotService

type DependabotService struct {
	AddSelectedRepoToOrgSecret      func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	CreateOrUpdateOrgSecret         func(ctx context.Context, org string, eSecret *github.DependabotEncryptedSecret) (*github.Response, error)
	CreateOrUpdateRepoSecret        func(ctx context.Context, owner string, repo string, eSecret *github.DependabotEncryptedSecret) (*github.Response, error)
	DeleteOrgSecret                 func(ctx context.Context, org string, name string) (*github.Response, error)
	DeleteRepoSecret                func(ctx context.Context, owner string, repo string, name string) (*github.Response, error)
	GetOrgPublicKey                 func(ctx context.Context, org string) (*github.PublicKey, *github.Response, error)
	GetOrgSecret                    func(ctx context.Context, org string, name string) (*github.Secret, *github.Response, error)
	GetRepoAlert                    func(ctx context.Context, owner string, repo string, number int) (*github.DependabotAlert, *github.Response, error)
	GetRepoPublicKey                func(ctx context.Context, owner string, repo string) (*github.PublicKey, *github.Response, error)
	GetRepoSecret                   func(ctx context.Context, owner string, repo string, name string) (*github.Secret, *github.Response, error)
	ListOrgAlerts                   func(ctx context.Context, org string, opts *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error)
	ListOrgSecrets                  func(ctx context.Context, org string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListRepoAlerts                  func(ctx context.Context, owner string, repo string, opts *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error)
	ListRepoSecrets                 func(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
	ListSelectedReposForOrgSecret   func(ctx context.Context, org string, name string, opts *github.ListOptions) (*github.SelectedReposList, *github.Response, error)
	RemoveSelectedRepoFromOrgSecret func(ctx context.Context, org string, name string, repo *github.Repository) (*github.Response, error)
	SetSelectedReposForOrgSecret    func(ctx context.Context, org string, name string, ids github.DependabotSecretsSelectedRepoIDs) (*github.Response, error)
	UpdateAlert                     func(ctx context.Context, owner string, repo string, number int, stateInfo *github.DependabotAlertState) (*github.DependabotAlert, *github.Response, error)
}

type DependencyGraphService

type DependencyGraphService struct {
	CreateSnapshot func(ctx context.Context, owner string, repo string, dependencyGraphSnapshot *github.DependencyGraphSnapshot) (*github.DependencyGraphSnapshotCreationData, *github.Response, error)
	GetSBOM        func(ctx context.Context, owner string, repo string) (*github.SBOM, *github.Response, error)
}

type EmojisService

type EmojisService struct {
	List func(ctx context.Context) (map[string]string, *github.Response, error)
}

type EnterpriseService

type EnterpriseService struct {
	AddOrganizationAccessRunnerGroup    func(ctx context.Context, enterprise string, groupID int64, orgID int64) (*github.Response, error)
	AddRunnerGroupRunners               func(ctx context.Context, enterprise string, groupID int64, runnerID int64) (*github.Response, error)
	CreateEnterpriseRunnerGroup         func(ctx context.Context, enterprise string, createReq github.CreateEnterpriseRunnerGroupRequest) (*github.EnterpriseRunnerGroup, *github.Response, error)
	CreateRegistrationToken             func(ctx context.Context, enterprise string) (*github.RegistrationToken, *github.Response, error)
	DeleteEnterpriseRunnerGroup         func(ctx context.Context, enterprise string, groupID int64) (*github.Response, error)
	EnableDisableSecurityFeature        func(ctx context.Context, enterprise string, securityProduct string, enablement string) (*github.Response, error)
	GenerateEnterpriseJITConfig         func(ctx context.Context, enterprise string, request *github.GenerateJITConfigRequest) (*github.JITRunnerConfig, *github.Response, error)
	GetAuditLog                         func(ctx context.Context, enterprise string, opts *github.GetAuditLogOptions) ([]*github.AuditEntry, *github.Response, error)
	GetCodeSecurityAndAnalysis          func(ctx context.Context, enterprise string) (*github.EnterpriseSecurityAnalysisSettings, *github.Response, error)
	GetEnterpriseRunnerGroup            func(ctx context.Context, enterprise string, groupID int64) (*github.EnterpriseRunnerGroup, *github.Response, error)
	ListOrganizationAccessRunnerGroup   func(ctx context.Context, enterprise string, groupID int64, opts *github.ListOptions) (*github.ListOrganizations, *github.Response, error)
	ListRunnerApplicationDownloads      func(ctx context.Context, enterprise string) ([]*github.RunnerApplicationDownload, *github.Response, error)
	ListRunnerGroupRunners              func(ctx context.Context, enterprise string, groupID int64, opts *github.ListOptions) (*github.Runners, *github.Response, error)
	ListRunnerGroups                    func(ctx context.Context, enterprise string, opts *github.ListEnterpriseRunnerGroupOptions) (*github.EnterpriseRunnerGroups, *github.Response, error)
	ListRunners                         func(ctx context.Context, enterprise string, opts *github.ListOptions) (*github.Runners, *github.Response, error)
	RemoveOrganizationAccessRunnerGroup func(ctx context.Context, enterprise string, groupID int64, orgID int64) (*github.Response, error)
	RemoveRunner                        func(ctx context.Context, enterprise string, runnerID int64) (*github.Response, error)
	RemoveRunnerGroupRunners            func(ctx context.Context, enterprise string, groupID int64, runnerID int64) (*github.Response, error)
	SetOrganizationAccessRunnerGroup    func(ctx context.Context, enterprise string, groupID int64, ids github.SetOrgAccessRunnerGroupRequest) (*github.Response, error)
	SetRunnerGroupRunners               func(ctx context.Context, enterprise string, groupID int64, ids github.SetRunnerGroupRunnersRequest) (*github.Response, error)
	UpdateCodeSecurityAndAnalysis       func(ctx context.Context, enterprise string, settings *github.EnterpriseSecurityAnalysisSettings) (*github.Response, error)
	UpdateEnterpriseRunnerGroup         func(ctx context.Context, enterprise string, groupID int64, updateReq github.UpdateEnterpriseRunnerGroupRequest) (*github.EnterpriseRunnerGroup, *github.Response, error)
}

type GistsService

type GistsService struct {
	Create        func(ctx context.Context, gist *github.Gist) (*github.Gist, *github.Response, error)
	CreateComment func(ctx context.Context, gistID string, comment *github.GistComment) (*github.GistComment, *github.Response, error)
	Delete        func(ctx context.Context, id string) (*github.Response, error)
	DeleteComment func(ctx context.Context, gistID string, commentID int64) (*github.Response, error)
	Edit          func(ctx context.Context, id string, gist *github.Gist) (*github.Gist, *github.Response, error)
	EditComment   func(ctx context.Context, gistID string, commentID int64, comment *github.GistComment) (*github.GistComment, *github.Response, error)
	Fork          func(ctx context.Context, id string) (*github.Gist, *github.Response, error)
	Get           func(ctx context.Context, id string) (*github.Gist, *github.Response, error)
	GetComment    func(ctx context.Context, gistID string, commentID int64) (*github.GistComment, *github.Response, error)
	GetRevision   func(ctx context.Context, id string, sha string) (*github.Gist, *github.Response, error)
	IsStarred     func(ctx context.Context, id string) (bool, *github.Response, error)
	List          func(ctx context.Context, user string, opts *github.GistListOptions) ([]*github.Gist, *github.Response, error)
	ListAll       func(ctx context.Context, opts *github.GistListOptions) ([]*github.Gist, *github.Response, error)
	ListComments  func(ctx context.Context, gistID string, opts *github.ListOptions) ([]*github.GistComment, *github.Response, error)
	ListCommits   func(ctx context.Context, id string, opts *github.ListOptions) ([]*github.GistCommit, *github.Response, error)
	ListForks     func(ctx context.Context, id string, opts *github.ListOptions) ([]*github.GistFork, *github.Response, error)
	ListStarred   func(ctx context.Context, opts *github.GistListOptions) ([]*github.Gist, *github.Response, error)
	Star          func(ctx context.Context, id string) (*github.Response, error)
	Unstar        func(ctx context.Context, id string) (*github.Response, error)
}

type GitService

type GitService struct {
	CreateBlob       func(ctx context.Context, owner string, repo string, blob *github.Blob) (*github.Blob, *github.Response, error)
	CreateCommit     func(ctx context.Context, owner string, repo string, commit *github.Commit, opts *github.CreateCommitOptions) (*github.Commit, *github.Response, error)
	CreateRef        func(ctx context.Context, owner string, repo string, ref *github.Reference) (*github.Reference, *github.Response, error)
	CreateTag        func(ctx context.Context, owner string, repo string, tag *github.Tag) (*github.Tag, *github.Response, error)
	CreateTree       func(ctx context.Context, owner string, repo string, baseTree string, entries []*github.TreeEntry) (*github.Tree, *github.Response, error)
	DeleteRef        func(ctx context.Context, owner string, repo string, ref string) (*github.Response, error)
	GetBlob          func(ctx context.Context, owner string, repo string, sha string) (*github.Blob, *github.Response, error)
	GetBlobRaw       func(ctx context.Context, owner string, repo string, sha string) ([]byte, *github.Response, error)
	GetCommit        func(ctx context.Context, owner string, repo string, sha string) (*github.Commit, *github.Response, error)
	GetRef           func(ctx context.Context, owner string, repo string, ref string) (*github.Reference, *github.Response, error)
	GetTag           func(ctx context.Context, owner string, repo string, sha string) (*github.Tag, *github.Response, error)
	GetTree          func(ctx context.Context, owner string, repo string, sha string, recursive bool) (*github.Tree, *github.Response, error)
	ListMatchingRefs func(ctx context.Context, owner string, repo string, opts *github.ReferenceListOptions) ([]*github.Reference, *github.Response, error)
	UpdateRef        func(ctx context.Context, owner string, repo string, ref *github.Reference, force bool) (*github.Reference, *github.Response, error)
}

type GitignoresService

type GitignoresService struct {
	Get  func(ctx context.Context, name string) (*github.Gitignore, *github.Response, error)
	List func(ctx context.Context) ([]string, *github.Response, error)
}

type InteractionsService

type InteractionsService struct {
	GetRestrictionsForOrg      func(ctx context.Context, organization string) (*github.InteractionRestriction, *github.Response, error)
	GetRestrictionsForRepo     func(ctx context.Context, owner string, repo string) (*github.InteractionRestriction, *github.Response, error)
	RemoveRestrictionsFromOrg  func(ctx context.Context, organization string) (*github.Response, error)
	RemoveRestrictionsFromRepo func(ctx context.Context, owner string, repo string) (*github.Response, error)
	UpdateRestrictionsForOrg   func(ctx context.Context, organization string, limit string) (*github.InteractionRestriction, *github.Response, error)
	UpdateRestrictionsForRepo  func(ctx context.Context, owner string, repo string, limit string) (*github.InteractionRestriction, *github.Response, error)
}

type IssueHandler

type IssueHandler func(*github.Issue) error

type IssueImportService

type IssueImportService struct {
	CheckStatus      func(ctx context.Context, owner string, repo string, issueID int64) (*github.IssueImportResponse, *github.Response, error)
	CheckStatusSince func(ctx context.Context, owner string, repo string, since github.Timestamp) ([]*github.IssueImportResponse, *github.Response, error)
	Create           func(ctx context.Context, owner string, repo string, issue *github.IssueImportRequest) (*github.IssueImportResponse, *github.Response, error)
}

type IssuesService

type IssuesService struct {
	// contains filtered or unexported fields
}

func NewIssuesService

func NewIssuesService(f *IssuesServiceF) *IssuesService

func (*IssuesService) AddAssignees

func (i *IssuesService) AddAssignees(ctx context.Context, owner string, repo string, number int, assignees []string) (*github.Issue, *github.Response, error)

func (*IssuesService) AddLabelsToIssue

func (i *IssuesService) AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)

func (*IssuesService) Create

func (i *IssuesService) Create(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)

func (*IssuesService) CreateComment

func (i *IssuesService) CreateComment(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

func (*IssuesService) CreateLabel

func (i *IssuesService) CreateLabel(ctx context.Context, owner string, repo string, label *github.Label) (*github.Label, *github.Response, error)

func (*IssuesService) CreateMilestone

func (i *IssuesService) CreateMilestone(ctx context.Context, owner string, repo string, milestone *github.Milestone) (*github.Milestone, *github.Response, error)

func (*IssuesService) DeleteComment

func (i *IssuesService) DeleteComment(ctx context.Context, owner string, repo string, commentID int64) (*github.Response, error)

func (*IssuesService) DeleteLabel

func (i *IssuesService) DeleteLabel(ctx context.Context, owner string, repo string, name string) (*github.Response, error)

func (*IssuesService) DeleteMilestone

func (i *IssuesService) DeleteMilestone(ctx context.Context, owner string, repo string, number int) (*github.Response, error)

func (*IssuesService) Edit

func (i *IssuesService) Edit(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)

func (*IssuesService) EditComment

func (i *IssuesService) EditComment(ctx context.Context, owner string, repo string, commentID int64, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

func (*IssuesService) EditLabel

func (i *IssuesService) EditLabel(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error)

func (*IssuesService) EditMilestone

func (i *IssuesService) EditMilestone(ctx context.Context, owner string, repo string, number int, milestone *github.Milestone) (*github.Milestone, *github.Response, error)

func (*IssuesService) Get

func (i *IssuesService) Get(ctx context.Context, owner string, repo string, number int) (*github.Issue, *github.Response, error)

func (*IssuesService) GetComment

func (i *IssuesService) GetComment(ctx context.Context, owner string, repo string, commentID int64) (*github.IssueComment, *github.Response, error)

func (*IssuesService) GetEvent

func (i *IssuesService) GetEvent(ctx context.Context, owner string, repo string, id int64) (*github.IssueEvent, *github.Response, error)

func (*IssuesService) GetLabel

func (i *IssuesService) GetLabel(ctx context.Context, owner string, repo string, name string) (*github.Label, *github.Response, error)

func (*IssuesService) GetMilestone

func (i *IssuesService) GetMilestone(ctx context.Context, owner string, repo string, number int) (*github.Milestone, *github.Response, error)

func (*IssuesService) IsAssignee

func (i *IssuesService) IsAssignee(ctx context.Context, owner string, repo string, user string) (bool, *github.Response, error)

func (*IssuesService) List

func (*IssuesService) ListAssignees

func (i *IssuesService) ListAssignees(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.User, *github.Response, error)

func (*IssuesService) ListByOrg

func (i *IssuesService) ListByOrg(ctx context.Context, org string, opts *github.IssueListOptions) ([]*github.Issue, *github.Response, error)

func (*IssuesService) ListByRepo

func (i *IssuesService) ListByRepo(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)

func (*IssuesService) ListComments

func (i *IssuesService) ListComments(ctx context.Context, owner string, repo string, number int, opts *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)

func (*IssuesService) ListIssueEvents

func (i *IssuesService) ListIssueEvents(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.IssueEvent, *github.Response, error)

func (*IssuesService) ListIssueTimeline

func (i *IssuesService) ListIssueTimeline(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Timeline, *github.Response, error)

func (*IssuesService) ListLabels

func (i *IssuesService) ListLabels(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Label, *github.Response, error)

func (*IssuesService) ListLabelsByIssue

func (i *IssuesService) ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Label, *github.Response, error)

func (*IssuesService) ListLabelsForMilestone

func (i *IssuesService) ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Label, *github.Response, error)

func (*IssuesService) ListMilestones

func (i *IssuesService) ListMilestones(ctx context.Context, owner string, repo string, opts *github.MilestoneListOptions) ([]*github.Milestone, *github.Response, error)

func (*IssuesService) ListRepositoryEvents

func (i *IssuesService) ListRepositoryEvents(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.IssueEvent, *github.Response, error)

func (*IssuesService) Lock

func (i *IssuesService) Lock(ctx context.Context, owner string, repo string, number int, opts *github.LockIssueOptions) (*github.Response, error)

func (*IssuesService) MapByRepo

func (i *IssuesService) MapByRepo(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions, handle IssueHandler) error

func (*IssuesService) RemoveAssignees

func (i *IssuesService) RemoveAssignees(ctx context.Context, owner string, repo string, number int, assignees []string) (*github.Issue, *github.Response, error)

func (*IssuesService) RemoveLabelForIssue

func (i *IssuesService) RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*github.Response, error)

func (*IssuesService) RemoveLabelsForIssue

func (i *IssuesService) RemoveLabelsForIssue(ctx context.Context, owner string, repo string, number int) (*github.Response, error)

func (*IssuesService) RemoveMilestone

func (i *IssuesService) RemoveMilestone(ctx context.Context, owner string, repo string, issueNumber int) (*github.Issue, *github.Response, error)

func (*IssuesService) ReplaceLabelsForIssue

func (i *IssuesService) ReplaceLabelsForIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)

func (*IssuesService) Unlock

func (i *IssuesService) Unlock(ctx context.Context, owner string, repo string, number int) (*github.Response, error)

type IssuesServiceF

type IssuesServiceF struct {
	AddAssignees           func(ctx context.Context, owner string, repo string, number int, assignees []string) (*github.Issue, *github.Response, error)
	AddLabelsToIssue       func(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)
	Create                 func(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
	CreateComment          func(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
	CreateLabel            func(ctx context.Context, owner string, repo string, label *github.Label) (*github.Label, *github.Response, error)
	CreateMilestone        func(ctx context.Context, owner string, repo string, milestone *github.Milestone) (*github.Milestone, *github.Response, error)
	DeleteComment          func(ctx context.Context, owner string, repo string, commentID int64) (*github.Response, error)
	DeleteLabel            func(ctx context.Context, owner string, repo string, name string) (*github.Response, error)
	DeleteMilestone        func(ctx context.Context, owner string, repo string, number int) (*github.Response, error)
	Edit                   func(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
	EditComment            func(ctx context.Context, owner string, repo string, commentID int64, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
	EditLabel              func(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error)
	EditMilestone          func(ctx context.Context, owner string, repo string, number int, milestone *github.Milestone) (*github.Milestone, *github.Response, error)
	Get                    func(ctx context.Context, owner string, repo string, number int) (*github.Issue, *github.Response, error)
	GetComment             func(ctx context.Context, owner string, repo string, commentID int64) (*github.IssueComment, *github.Response, error)
	GetEvent               func(ctx context.Context, owner string, repo string, id int64) (*github.IssueEvent, *github.Response, error)
	GetLabel               func(ctx context.Context, owner string, repo string, name string) (*github.Label, *github.Response, error)
	GetMilestone           func(ctx context.Context, owner string, repo string, number int) (*github.Milestone, *github.Response, error)
	IsAssignee             func(ctx context.Context, owner string, repo string, user string) (bool, *github.Response, error)
	List                   func(ctx context.Context, all bool, opts *github.IssueListOptions) ([]*github.Issue, *github.Response, error)
	ListAssignees          func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	ListByOrg              func(ctx context.Context, org string, opts *github.IssueListOptions) ([]*github.Issue, *github.Response, error)
	ListByRepo             func(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)
	ListComments           func(ctx context.Context, owner string, repo string, number int, opts *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)
	ListIssueEvents        func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.IssueEvent, *github.Response, error)
	ListIssueTimeline      func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Timeline, *github.Response, error)
	ListLabels             func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Label, *github.Response, error)
	ListLabelsByIssue      func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Label, *github.Response, error)
	ListLabelsForMilestone func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Label, *github.Response, error)
	ListMilestones         func(ctx context.Context, owner string, repo string, opts *github.MilestoneListOptions) ([]*github.Milestone, *github.Response, error)
	ListRepositoryEvents   func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.IssueEvent, *github.Response, error)
	Lock                   func(ctx context.Context, owner string, repo string, number int, opts *github.LockIssueOptions) (*github.Response, error)
	RemoveAssignees        func(ctx context.Context, owner string, repo string, number int, assignees []string) (*github.Issue, *github.Response, error)
	RemoveLabelForIssue    func(ctx context.Context, owner string, repo string, number int, label string) (*github.Response, error)
	RemoveLabelsForIssue   func(ctx context.Context, owner string, repo string, number int) (*github.Response, error)
	RemoveMilestone        func(ctx context.Context, owner string, repo string, issueNumber int) (*github.Issue, *github.Response, error)
	ReplaceLabelsForIssue  func(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)
	Unlock                 func(ctx context.Context, owner string, repo string, number int) (*github.Response, error)

	MapByRepo func(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions, handle IssueHandler) error
}

type LicensesService

type LicensesService struct {
	Get  func(ctx context.Context, licenseName string) (*github.License, *github.Response, error)
	List func(ctx context.Context) ([]*github.License, *github.Response, error)
}

type MarkdownService

type MarkdownService struct {
	Render func(ctx context.Context, text string, opts *github.MarkdownOptions) (string, *github.Response, error)
}

type MarketplaceService

type MarketplaceService struct {
	GetPlanAccountForAccount        func(ctx context.Context, accountID int64) (*github.MarketplacePlanAccount, *github.Response, error)
	ListMarketplacePurchasesForUser func(ctx context.Context, opts *github.ListOptions) ([]*github.MarketplacePurchase, *github.Response, error)
	ListPlanAccountsForPlan         func(ctx context.Context, planID int64, opts *github.ListOptions) ([]*github.MarketplacePlanAccount, *github.Response, error)
	ListPlans                       func(ctx context.Context, opts *github.ListOptions) ([]*github.MarketplacePlan, *github.Response, error)
}

type MetaService

type MetaService struct {
	Get     func(ctx context.Context) (*github.APIMeta, *github.Response, error)
	Octocat func(ctx context.Context, message string) (string, *github.Response, error)
	Zen     func(ctx context.Context) (string, *github.Response, error)
}

type MigrationService

type MigrationService struct {
	CancelImport            func(ctx context.Context, owner string, repo string) (*github.Response, error)
	CommitAuthors           func(ctx context.Context, owner string, repo string) ([]*github.SourceImportAuthor, *github.Response, error)
	DeleteMigration         func(ctx context.Context, org string, id int64) (*github.Response, error)
	DeleteUserMigration     func(ctx context.Context, id int64) (*github.Response, error)
	ImportProgress          func(ctx context.Context, owner string, repo string) (*github.Import, *github.Response, error)
	LargeFiles              func(ctx context.Context, owner string, repo string) ([]*github.LargeFile, *github.Response, error)
	ListMigrations          func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Migration, *github.Response, error)
	ListUserMigrations      func(ctx context.Context, opts *github.ListOptions) ([]*github.UserMigration, *github.Response, error)
	MapCommitAuthor         func(ctx context.Context, owner string, repo string, id int64, author *github.SourceImportAuthor) (*github.SourceImportAuthor, *github.Response, error)
	MigrationArchiveURL     func(ctx context.Context, org string, id int64) (url string, err error)
	MigrationStatus         func(ctx context.Context, org string, id int64) (*github.Migration, *github.Response, error)
	SetLFSPreference        func(ctx context.Context, owner string, repo string, in *github.Import) (*github.Import, *github.Response, error)
	StartImport             func(ctx context.Context, owner string, repo string, in *github.Import) (*github.Import, *github.Response, error)
	StartMigration          func(ctx context.Context, org string, repos []string, opts *github.MigrationOptions) (*github.Migration, *github.Response, error)
	StartUserMigration      func(ctx context.Context, repos []string, opts *github.UserMigrationOptions) (*github.UserMigration, *github.Response, error)
	UnlockRepo              func(ctx context.Context, org string, id int64, repo string) (*github.Response, error)
	UnlockUserRepo          func(ctx context.Context, id int64, repo string) (*github.Response, error)
	UpdateImport            func(ctx context.Context, owner string, repo string, in *github.Import) (*github.Import, *github.Response, error)
	UserMigrationArchiveURL func(ctx context.Context, id int64) (string, error)
	UserMigrationStatus     func(ctx context.Context, id int64) (*github.UserMigration, *github.Response, error)
}

type OrganizationsService

type OrganizationsService struct {
	AddSecurityManagerTeam                 func(ctx context.Context, org string, team string) (*github.Response, error)
	BlockUser                              func(ctx context.Context, org string, user string) (*github.Response, error)
	ConcealMembership                      func(ctx context.Context, org string, user string) (*github.Response, error)
	ConvertMemberToOutsideCollaborator     func(ctx context.Context, org string, user string) (*github.Response, error)
	CreateCustomRepoRole                   func(ctx context.Context, org string, opts *github.CreateOrUpdateCustomRoleOptions) (*github.CustomRepoRoles, *github.Response, error)
	CreateHook                             func(ctx context.Context, org string, hook *github.Hook) (*github.Hook, *github.Response, error)
	CreateOrUpdateCustomProperties         func(ctx context.Context, org string, properties []*github.CustomProperty) ([]*github.CustomProperty, *github.Response, error)
	CreateOrUpdateCustomProperty           func(ctx context.Context, org string, customPropertyName string, property *github.CustomProperty) (*github.CustomProperty, *github.Response, error)
	CreateOrUpdateRepoCustomPropertyValues func(ctx context.Context, org string, repoNames []string, properties []*github.CustomPropertyValue) (*github.Response, error)
	CreateOrgInvitation                    func(ctx context.Context, org string, opts *github.CreateOrgInvitationOptions) (*github.Invitation, *github.Response, error)
	CreateOrganizationRuleset              func(ctx context.Context, org string, rs *github.Ruleset) (*github.Ruleset, *github.Response, error)
	CreateProject                          func(ctx context.Context, org string, opts *github.ProjectOptions) (*github.Project, *github.Response, error)
	Delete                                 func(ctx context.Context, org string) (*github.Response, error)
	DeleteCustomRepoRole                   func(ctx context.Context, org string, roleID string) (*github.Response, error)
	DeleteHook                             func(ctx context.Context, org string, id int64) (*github.Response, error)
	DeleteOrganizationRuleset              func(ctx context.Context, org string, rulesetID int64) (*github.Response, error)
	DeletePackage                          func(ctx context.Context, org string, packageType string, packageName string) (*github.Response, error)
	Edit                                   func(ctx context.Context, name string, org *github.Organization) (*github.Organization, *github.Response, error)
	EditHook                               func(ctx context.Context, org string, id int64, hook *github.Hook) (*github.Hook, *github.Response, error)
	EditHookConfiguration                  func(ctx context.Context, org string, id int64, config *github.HookConfig) (*github.HookConfig, *github.Response, error)
	EditOrgMembership                      func(ctx context.Context, user string, org string, membership *github.Membership) (*github.Membership, *github.Response, error)
	Get                                    func(ctx context.Context, org string) (*github.Organization, *github.Response, error)
	GetAllCustomProperties                 func(ctx context.Context, org string) ([]*github.CustomProperty, *github.Response, error)
	GetAllOrganizationRulesets             func(ctx context.Context, org string) ([]*github.Ruleset, *github.Response, error)
	GetAuditLog                            func(ctx context.Context, org string, opts *github.GetAuditLogOptions) ([]*github.AuditEntry, *github.Response, error)
	GetByID                                func(ctx context.Context, id int64) (*github.Organization, *github.Response, error)
	GetCustomProperty                      func(ctx context.Context, org string, name string) (*github.CustomProperty, *github.Response, error)
	GetHook                                func(ctx context.Context, org string, id int64) (*github.Hook, *github.Response, error)
	GetHookConfiguration                   func(ctx context.Context, org string, id int64) (*github.HookConfig, *github.Response, error)
	GetHookDelivery                        func(ctx context.Context, owner string, hookID int64, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	GetOrgMembership                       func(ctx context.Context, user string, org string) (*github.Membership, *github.Response, error)
	GetOrganizationRuleset                 func(ctx context.Context, org string, rulesetID int64) (*github.Ruleset, *github.Response, error)
	GetPackage                             func(ctx context.Context, org string, packageType string, packageName string) (*github.Package, *github.Response, error)
	IsBlocked                              func(ctx context.Context, org string, user string) (bool, *github.Response, error)
	IsMember                               func(ctx context.Context, org string, user string) (bool, *github.Response, error)
	IsPublicMember                         func(ctx context.Context, org string, user string) (bool, *github.Response, error)
	List                                   func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.Organization, *github.Response, error)
	ListAll                                func(ctx context.Context, opts *github.OrganizationsListOptions) ([]*github.Organization, *github.Response, error)
	ListBlockedUsers                       func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	ListCredentialAuthorizations           func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.CredentialAuthorization, *github.Response, error)
	ListCustomPropertyValues               func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.RepoCustomPropertyValue, *github.Response, error)
	ListCustomRepoRoles                    func(ctx context.Context, org string) (*github.OrganizationCustomRepoRoles, *github.Response, error)
	ListFailedOrgInvitations               func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Invitation, *github.Response, error)
	ListHookDeliveries                     func(ctx context.Context, org string, id int64, opts *github.ListCursorOptions) ([]*github.HookDelivery, *github.Response, error)
	ListHooks                              func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
	ListInstallations                      func(ctx context.Context, org string, opts *github.ListOptions) (*github.OrganizationInstallations, *github.Response, error)
	ListMembers                            func(ctx context.Context, org string, opts *github.ListMembersOptions) ([]*github.User, *github.Response, error)
	ListOrgInvitationTeams                 func(ctx context.Context, org string, invitationID string, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListOrgMemberships                     func(ctx context.Context, opts *github.ListOrgMembershipsOptions) ([]*github.Membership, *github.Response, error)
	ListOutsideCollaborators               func(ctx context.Context, org string, opts *github.ListOutsideCollaboratorsOptions) ([]*github.User, *github.Response, error)
	ListPackages                           func(ctx context.Context, org string, opts *github.PackageListOptions) ([]*github.Package, *github.Response, error)
	ListPendingOrgInvitations              func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Invitation, *github.Response, error)
	ListProjects                           func(ctx context.Context, org string, opts *github.ProjectListOptions) ([]*github.Project, *github.Response, error)
	ListSecurityManagerTeams               func(ctx context.Context, org string) ([]*github.Team, *github.Response, error)
	ListTeamsAssignedToOrgRole             func(ctx context.Context, org string, roleID int64, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListUsersAssignedToOrgRole             func(ctx context.Context, org string, roleID int64, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	PackageDeleteVersion                   func(ctx context.Context, org string, packageType string, packageName string, packageVersionID int64) (*github.Response, error)
	PackageGetAllVersions                  func(ctx context.Context, org string, packageType string, packageName string, opts *github.PackageListOptions) ([]*github.PackageVersion, *github.Response, error)
	PackageGetVersion                      func(ctx context.Context, org string, packageType string, packageName string, packageVersionID int64) (*github.PackageVersion, *github.Response, error)
	PackageRestoreVersion                  func(ctx context.Context, org string, packageType string, packageName string, packageVersionID int64) (*github.Response, error)
	PingHook                               func(ctx context.Context, org string, id int64) (*github.Response, error)
	PublicizeMembership                    func(ctx context.Context, org string, user string) (*github.Response, error)
	RedeliverHookDelivery                  func(ctx context.Context, owner string, hookID int64, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	RemoveCredentialAuthorization          func(ctx context.Context, org string, credentialID int64) (*github.Response, error)
	RemoveCustomProperty                   func(ctx context.Context, org string, customPropertyName string) (*github.Response, error)
	RemoveMember                           func(ctx context.Context, org string, user string) (*github.Response, error)
	RemoveOrgMembership                    func(ctx context.Context, user string, org string) (*github.Response, error)
	RemoveOutsideCollaborator              func(ctx context.Context, org string, user string) (*github.Response, error)
	RemoveSecurityManagerTeam              func(ctx context.Context, org string, team string) (*github.Response, error)
	RestorePackage                         func(ctx context.Context, org string, packageType string, packageName string) (*github.Response, error)
	ReviewPersonalAccessTokenRequest       func(ctx context.Context, org string, requestID int64, opts github.ReviewPersonalAccessTokenRequestOptions) (*github.Response, error)
	UnblockUser                            func(ctx context.Context, org string, user string) (*github.Response, error)
	UpdateCustomRepoRole                   func(ctx context.Context, org string, roleID string, opts *github.CreateOrUpdateCustomRoleOptions) (*github.CustomRepoRoles, *github.Response, error)
	UpdateOrganizationRuleset              func(ctx context.Context, org string, rulesetID int64, rs *github.Ruleset) (*github.Ruleset, *github.Response, error)
}

type ProjectsService

type ProjectsService struct {
	AddProjectCollaborator              func(ctx context.Context, id int64, username string, opts *github.ProjectCollaboratorOptions) (*github.Response, error)
	CreateProjectCard                   func(ctx context.Context, columnID int64, opts *github.ProjectCardOptions) (*github.ProjectCard, *github.Response, error)
	CreateProjectColumn                 func(ctx context.Context, projectID int64, opts *github.ProjectColumnOptions) (*github.ProjectColumn, *github.Response, error)
	DeleteProject                       func(ctx context.Context, id int64) (*github.Response, error)
	DeleteProjectCard                   func(ctx context.Context, cardID int64) (*github.Response, error)
	DeleteProjectColumn                 func(ctx context.Context, columnID int64) (*github.Response, error)
	GetProject                          func(ctx context.Context, id int64) (*github.Project, *github.Response, error)
	GetProjectCard                      func(ctx context.Context, cardID int64) (*github.ProjectCard, *github.Response, error)
	GetProjectColumn                    func(ctx context.Context, id int64) (*github.ProjectColumn, *github.Response, error)
	ListProjectCards                    func(ctx context.Context, columnID int64, opts *github.ProjectCardListOptions) ([]*github.ProjectCard, *github.Response, error)
	ListProjectCollaborators            func(ctx context.Context, id int64, opts *github.ListCollaboratorOptions) ([]*github.User, *github.Response, error)
	ListProjectColumns                  func(ctx context.Context, projectID int64, opts *github.ListOptions) ([]*github.ProjectColumn, *github.Response, error)
	MoveProjectCard                     func(ctx context.Context, cardID int64, opts *github.ProjectCardMoveOptions) (*github.Response, error)
	MoveProjectColumn                   func(ctx context.Context, columnID int64, opts *github.ProjectColumnMoveOptions) (*github.Response, error)
	RemoveProjectCollaborator           func(ctx context.Context, id int64, username string) (*github.Response, error)
	ReviewProjectCollaboratorPermission func(ctx context.Context, id int64, username string) (*github.ProjectPermissionLevel, *github.Response, error)
	UpdateProject                       func(ctx context.Context, id int64, opts *github.ProjectOptions) (*github.Project, *github.Response, error)
	UpdateProjectCard                   func(ctx context.Context, cardID int64, opts *github.ProjectCardOptions) (*github.ProjectCard, *github.Response, error)
	UpdateProjectColumn                 func(ctx context.Context, columnID int64, opts *github.ProjectColumnOptions) (*github.ProjectColumn, *github.Response, error)
}

type PullRequestHandler

type PullRequestHandler func(*github.PullRequest) error

type PullRequestsService

type PullRequestsService struct {
	Create                     func(ctx context.Context, owner string, repo string, pull *github.NewPullRequest) (*github.PullRequest, *github.Response, error)
	CreateComment              func(ctx context.Context, owner string, repo string, number int, comment *github.PullRequestComment) (*github.PullRequestComment, *github.Response, error)
	CreateCommentInReplyTo     func(ctx context.Context, owner string, repo string, number int, body string, commentID int64) (*github.PullRequestComment, *github.Response, error)
	CreateReview               func(ctx context.Context, owner string, repo string, number int, review *github.PullRequestReviewRequest) (*github.PullRequestReview, *github.Response, error)
	DeleteComment              func(ctx context.Context, owner string, repo string, commentID int64) (*github.Response, error)
	DeletePendingReview        func(ctx context.Context, owner string, repo string, number int, reviewID int64) (*github.PullRequestReview, *github.Response, error)
	DismissReview              func(ctx context.Context, owner string, repo string, number int, reviewID int64, review *github.PullRequestReviewDismissalRequest) (*github.PullRequestReview, *github.Response, error)
	Edit                       func(ctx context.Context, owner string, repo string, number int, pull *github.PullRequest) (*github.PullRequest, *github.Response, error)
	EditComment                func(ctx context.Context, owner string, repo string, commentID int64, comment *github.PullRequestComment) (*github.PullRequestComment, *github.Response, error)
	Get                        func(ctx context.Context, owner string, repo string, number int) (*github.PullRequest, *github.Response, error)
	GetComment                 func(ctx context.Context, owner string, repo string, commentID int64) (*github.PullRequestComment, *github.Response, error)
	GetRaw                     func(ctx context.Context, owner string, repo string, number int, opts github.RawOptions) (string, *github.Response, error)
	GetReview                  func(ctx context.Context, owner string, repo string, number int, reviewID int64) (*github.PullRequestReview, *github.Response, error)
	IsMerged                   func(ctx context.Context, owner string, repo string, number int) (bool, *github.Response, error)
	List                       func(ctx context.Context, owner string, repo string, opts *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)
	ListComments               func(ctx context.Context, owner string, repo string, number int, opts *github.PullRequestListCommentsOptions) ([]*github.PullRequestComment, *github.Response, error)
	ListCommits                func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.RepositoryCommit, *github.Response, error)
	ListFiles                  func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.CommitFile, *github.Response, error)
	ListPullRequestsWithCommit func(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions) ([]*github.PullRequest, *github.Response, error)
	ListReviewComments         func(ctx context.Context, owner string, repo string, number int, reviewID int64, opts *github.ListOptions) ([]*github.PullRequestComment, *github.Response, error)
	ListReviewers              func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) (*github.Reviewers, *github.Response, error)
	ListReviews                func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.PullRequestReview, *github.Response, error)
	Merge                      func(ctx context.Context, owner string, repo string, number int, commitMessage string, options *github.PullRequestOptions) (*github.PullRequestMergeResult, *github.Response, error)
	RemoveReviewers            func(ctx context.Context, owner string, repo string, number int, reviewers github.ReviewersRequest) (*github.Response, error)
	RequestReviewers           func(ctx context.Context, owner string, repo string, number int, reviewers github.ReviewersRequest) (*github.PullRequest, *github.Response, error)
	SubmitReview               func(ctx context.Context, owner string, repo string, number int, reviewID int64, review *github.PullRequestReviewRequest) (*github.PullRequestReview, *github.Response, error)
	UpdateBranch               func(ctx context.Context, owner string, repo string, number int, opts *github.PullRequestBranchUpdateOptions) (*github.PullRequestBranchUpdateResponse, *github.Response, error)
	UpdateReview               func(ctx context.Context, owner string, repo string, number int, reviewID int64, body string) (*github.PullRequestReview, *github.Response, error)
}

type RateLimitService

type RateLimitService struct {
	Get func(ctx context.Context) (*github.RateLimits, *github.Response, error)
}

type ReactionsService

type ReactionsService struct {
	CreateCommentReaction                               func(ctx context.Context, owner string, repo string, id int64, content string) (*github.Reaction, *github.Response, error)
	CreateIssueCommentReaction                          func(ctx context.Context, owner string, repo string, id int64, content string) (*github.Reaction, *github.Response, error)
	CreateIssueReaction                                 func(ctx context.Context, owner string, repo string, number int, content string) (*github.Reaction, *github.Response, error)
	CreatePullRequestCommentReaction                    func(ctx context.Context, owner string, repo string, id int64, content string) (*github.Reaction, *github.Response, error)
	CreateReleaseReaction                               func(ctx context.Context, owner string, repo string, releaseID int64, content string) (*github.Reaction, *github.Response, error)
	CreateTeamDiscussionCommentReaction                 func(ctx context.Context, teamID int64, discussionNumber int, commentNumber int, content string) (*github.Reaction, *github.Response, error)
	CreateTeamDiscussionReaction                        func(ctx context.Context, teamID int64, discussionNumber int, content string) (*github.Reaction, *github.Response, error)
	DeleteCommentReaction                               func(ctx context.Context, owner string, repo string, commentID int64, reactionID int64) (*github.Response, error)
	DeleteCommentReactionByID                           func(ctx context.Context, repoID int64, commentID int64, reactionID int64) (*github.Response, error)
	DeleteIssueCommentReaction                          func(ctx context.Context, owner string, repo string, commentID int64, reactionID int64) (*github.Response, error)
	DeleteIssueCommentReactionByID                      func(ctx context.Context, repoID int64, commentID int64, reactionID int64) (*github.Response, error)
	DeleteIssueReaction                                 func(ctx context.Context, owner string, repo string, issueNumber int, reactionID int64) (*github.Response, error)
	DeleteIssueReactionByID                             func(ctx context.Context, repoID int, issueNumber int, reactionID int64) (*github.Response, error)
	DeletePullRequestCommentReaction                    func(ctx context.Context, owner string, repo string, commentID int64, reactionID int64) (*github.Response, error)
	DeletePullRequestCommentReactionByID                func(ctx context.Context, repoID int64, commentID int64, reactionID int64) (*github.Response, error)
	DeleteTeamDiscussionCommentReaction                 func(ctx context.Context, org string, teamSlug string, discussionNumber int, commentNumber int, reactionID int64) (*github.Response, error)
	DeleteTeamDiscussionCommentReactionByOrgIDAndTeamID func(ctx context.Context, orgID int, teamID int, discussionNumber int, commentNumber int, reactionID int64) (*github.Response, error)
	DeleteTeamDiscussionReaction                        func(ctx context.Context, org string, teamSlug string, discussionNumber int, reactionID int64) (*github.Response, error)
	DeleteTeamDiscussionReactionByOrgIDAndTeamID        func(ctx context.Context, orgID int, teamID int, discussionNumber int, reactionID int64) (*github.Response, error)
	ListCommentReactions                                func(ctx context.Context, owner string, repo string, id int64, opts *github.ListCommentReactionOptions) ([]*github.Reaction, *github.Response, error)
	ListIssueCommentReactions                           func(ctx context.Context, owner string, repo string, id int64, opts *github.ListOptions) ([]*github.Reaction, *github.Response, error)
	ListIssueReactions                                  func(ctx context.Context, owner string, repo string, number int, opts *github.ListOptions) ([]*github.Reaction, *github.Response, error)
	ListPullRequestCommentReactions                     func(ctx context.Context, owner string, repo string, id int64, opts *github.ListOptions) ([]*github.Reaction, *github.Response, error)
	ListTeamDiscussionCommentReactions                  func(ctx context.Context, teamID int64, discussionNumber int, commentNumber int, opts *github.ListOptions) ([]*github.Reaction, *github.Response, error)
	ListTeamDiscussionReactions                         func(ctx context.Context, teamID int64, discussionNumber int, opts *github.ListOptions) ([]*github.Reaction, *github.Response, error)
}

type RepositoriesService

type RepositoriesService struct {
	AddAdminEnforcement                   func(ctx context.Context, owner string, repo string, branch string) (*github.AdminEnforcement, *github.Response, error)
	AddAppRestrictions                    func(ctx context.Context, owner string, repo string, branch string, apps []string) ([]*github.App, *github.Response, error)
	AddAutolink                           func(ctx context.Context, owner string, repo string, opts *github.AutolinkOptions) (*github.Autolink, *github.Response, error)
	AddCollaborator                       func(ctx context.Context, owner string, repo string, user string, opts *github.RepositoryAddCollaboratorOptions) (*github.CollaboratorInvitation, *github.Response, error)
	AddTeamRestrictions                   func(ctx context.Context, owner string, repo string, branch string, teams []string) ([]*github.Team, *github.Response, error)
	AddUserRestrictions                   func(ctx context.Context, owner string, repo string, branch string, users []string) ([]*github.User, *github.Response, error)
	CompareCommits                        func(ctx context.Context, owner string, repo string, base string, head string, opts *github.ListOptions) (*github.CommitsComparison, *github.Response, error)
	CompareCommitsRaw                     func(ctx context.Context, owner string, repo string, base string, head string, opts github.RawOptions) (string, *github.Response, error)
	Create                                func(ctx context.Context, org string, repo *github.Repository) (*github.Repository, *github.Response, error)
	CreateComment                         func(ctx context.Context, owner string, repo string, sha string, comment *github.RepositoryComment) (*github.RepositoryComment, *github.Response, error)
	CreateCustomDeploymentProtectionRule  func(ctx context.Context, owner string, repo string, environment string, request *github.CustomDeploymentProtectionRuleRequest) (*github.CustomDeploymentProtectionRule, *github.Response, error)
	CreateDeployment                      func(ctx context.Context, owner string, repo string, request *github.DeploymentRequest) (*github.Deployment, *github.Response, error)
	CreateDeploymentBranchPolicy          func(ctx context.Context, owner string, repo string, environment string, request *github.DeploymentBranchPolicyRequest) (*github.DeploymentBranchPolicy, *github.Response, error)
	CreateDeploymentStatus                func(ctx context.Context, owner string, repo string, deployment int64, request *github.DeploymentStatusRequest) (*github.DeploymentStatus, *github.Response, error)
	CreateFile                            func(ctx context.Context, owner string, repo string, path string, opts *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
	CreateFork                            func(ctx context.Context, owner string, repo string, opts *github.RepositoryCreateForkOptions) (*github.Repository, *github.Response, error)
	CreateFromTemplate                    func(ctx context.Context, templateOwner string, templateRepo string, templateRepoReq *github.TemplateRepoRequest) (*github.Repository, *github.Response, error)
	CreateHook                            func(ctx context.Context, owner string, repo string, hook *github.Hook) (*github.Hook, *github.Response, error)
	CreateKey                             func(ctx context.Context, owner string, repo string, key *github.Key) (*github.Key, *github.Response, error)
	CreateOrUpdateCustomProperties        func(ctx context.Context, org string, repo string, customPropertyValues []*github.CustomPropertyValue) (*github.Response, error)
	CreateProject                         func(ctx context.Context, owner string, repo string, opts *github.ProjectOptions) (*github.Project, *github.Response, error)
	CreateRelease                         func(ctx context.Context, owner string, repo string, release *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)
	CreateRuleset                         func(ctx context.Context, owner string, repo string, rs *github.Ruleset) (*github.Ruleset, *github.Response, error)
	CreateStatus                          func(ctx context.Context, owner string, repo string, ref string, status *github.RepoStatus) (*github.RepoStatus, *github.Response, error)
	CreateTagProtection                   func(ctx context.Context, owner string, repo string, pattern string) (*github.TagProtection, *github.Response, error)
	CreateUpdateEnvironment               func(ctx context.Context, owner string, repo string, name string, environment *github.CreateUpdateEnvironment) (*github.Environment, *github.Response, error)
	Delete                                func(ctx context.Context, owner string, repo string) (*github.Response, error)
	DeleteAutolink                        func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeleteComment                         func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeleteDeployment                      func(ctx context.Context, owner string, repo string, deploymentID int64) (*github.Response, error)
	DeleteDeploymentBranchPolicy          func(ctx context.Context, owner string, repo string, environment string, branchPolicyID int64) (*github.Response, error)
	DeleteEnvironment                     func(ctx context.Context, owner string, repo string, name string) (*github.Response, error)
	DeleteFile                            func(ctx context.Context, owner string, repo string, path string, opts *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
	DeleteHook                            func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeleteInvitation                      func(ctx context.Context, owner string, repo string, invitationID int64) (*github.Response, error)
	DeleteKey                             func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeletePreReceiveHook                  func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeleteRelease                         func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeleteReleaseAsset                    func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	DeleteRuleset                         func(ctx context.Context, owner string, repo string, rulesetID int64) (*github.Response, error)
	DeleteTagProtection                   func(ctx context.Context, owner string, repo string, tagProtectionID int64) (*github.Response, error)
	DisableAutomatedSecurityFixes         func(ctx context.Context, owner string, repository string) (*github.Response, error)
	DisableCustomDeploymentProtectionRule func(ctx context.Context, owner string, repo string, environment string, protectionRuleID int64) (*github.Response, error)
	DisableDismissalRestrictions          func(ctx context.Context, owner string, repo string, branch string) (*github.PullRequestReviewsEnforcement, *github.Response, error)
	DisableLFS                            func(ctx context.Context, owner string, repo string) (*github.Response, error)
	DisablePages                          func(ctx context.Context, owner string, repo string) (*github.Response, error)
	DisablePrivateReporting               func(ctx context.Context, owner string, repo string) (*github.Response, error)
	DisableVulnerabilityAlerts            func(ctx context.Context, owner string, repository string) (*github.Response, error)
	Dispatch                              func(ctx context.Context, owner string, repo string, opts github.DispatchRequestOptions) (*github.Repository, *github.Response, error)
	DownloadContents                      func(ctx context.Context, owner string, repo string, filepath string, opts *github.RepositoryContentGetOptions) (io.ReadCloser, *github.Response, error)
	DownloadContentsWithMeta              func(ctx context.Context, owner string, repo string, filepath string, opts *github.RepositoryContentGetOptions) (io.ReadCloser, *github.RepositoryContent, *github.Response, error)
	DownloadReleaseAsset                  func(ctx context.Context, owner string, repo string, id int64, followRedirectsClient *http.Client) (rc io.ReadCloser, redirectURL string, err error)
	Edit                                  func(ctx context.Context, owner string, repo string, repository *github.Repository) (*github.Repository, *github.Response, error)
	EditActionsAccessLevel                func(ctx context.Context, owner string, repo string, repositoryActionsAccessLevel github.RepositoryActionsAccessLevel) (*github.Response, error)
	EditActionsAllowed                    func(ctx context.Context, org string, repo string, actionsAllowed github.ActionsAllowed) (*github.ActionsAllowed, *github.Response, error)
	EditActionsPermissions                func(ctx context.Context, owner string, repo string, actionsPermissionsRepository github.ActionsPermissionsRepository) (*github.ActionsPermissionsRepository, *github.Response, error)
	EditDefaultWorkflowPermissions        func(ctx context.Context, owner string, repo string, permissions github.DefaultWorkflowPermissionRepository) (*github.DefaultWorkflowPermissionRepository, *github.Response, error)
	EditHook                              func(ctx context.Context, owner string, repo string, id int64, hook *github.Hook) (*github.Hook, *github.Response, error)
	EditHookConfiguration                 func(ctx context.Context, owner string, repo string, id int64, config *github.HookConfig) (*github.HookConfig, *github.Response, error)
	EditRelease                           func(ctx context.Context, owner string, repo string, id int64, release *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)
	EditReleaseAsset                      func(ctx context.Context, owner string, repo string, id int64, release *github.ReleaseAsset) (*github.ReleaseAsset, *github.Response, error)
	EnableAutomatedSecurityFixes          func(ctx context.Context, owner string, repository string) (*github.Response, error)
	EnableLFS                             func(ctx context.Context, owner string, repo string) (*github.Response, error)
	EnablePages                           func(ctx context.Context, owner string, repo string, pages *github.Pages) (*github.Pages, *github.Response, error)
	EnablePrivateReporting                func(ctx context.Context, owner string, repo string) (*github.Response, error)
	EnableVulnerabilityAlerts             func(ctx context.Context, owner string, repository string) (*github.Response, error)
	GenerateReleaseNotes                  func(ctx context.Context, owner string, repo string, opts *github.GenerateNotesOptions) (*github.RepositoryReleaseNotes, *github.Response, error)
	Get                                   func(ctx context.Context, owner string, repo string) (*github.Repository, *github.Response, error)
	GetActionsAccessLevel                 func(ctx context.Context, owner string, repo string) (*github.RepositoryActionsAccessLevel, *github.Response, error)
	GetActionsAllowed                     func(ctx context.Context, org string, repo string) (*github.ActionsAllowed, *github.Response, error)
	GetActionsPermissions                 func(ctx context.Context, owner string, repo string) (*github.ActionsPermissionsRepository, *github.Response, error)
	GetAdminEnforcement                   func(ctx context.Context, owner string, repo string, branch string) (*github.AdminEnforcement, *github.Response, error)
	GetAllCustomPropertyValues            func(ctx context.Context, org string, repo string) ([]*github.CustomPropertyValue, *github.Response, error)
	GetAllDeploymentProtectionRules       func(ctx context.Context, owner string, repo string, environment string) (*github.ListDeploymentProtectionRuleResponse, *github.Response, error)
	GetAllRulesets                        func(ctx context.Context, owner string, repo string, includesParents bool) ([]*github.Ruleset, *github.Response, error)
	GetArchiveLink                        func(ctx context.Context, owner string, repo string, archiveformat github.ArchiveFormat, opts *github.RepositoryContentGetOptions, maxRedirects int) (*url.URL, *github.Response, error)
	GetAutolink                           func(ctx context.Context, owner string, repo string, id int64) (*github.Autolink, *github.Response, error)
	GetAutomatedSecurityFixes             func(ctx context.Context, owner string, repository string) (*github.AutomatedSecurityFixes, *github.Response, error)
	GetBranch                             func(ctx context.Context, owner string, repo string, branch string, maxRedirects int) (*github.Branch, *github.Response, error)
	GetBranchProtection                   func(ctx context.Context, owner string, repo string, branch string) (*github.Protection, *github.Response, error)
	GetByID                               func(ctx context.Context, id int64) (*github.Repository, *github.Response, error)
	GetCodeOfConduct                      func(ctx context.Context, owner string, repo string) (*github.CodeOfConduct, *github.Response, error)
	GetCodeownersErrors                   func(ctx context.Context, owner string, repo string, opts *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error)
	GetCombinedStatus                     func(ctx context.Context, owner string, repo string, ref string, opts *github.ListOptions) (*github.CombinedStatus, *github.Response, error)
	GetComment                            func(ctx context.Context, owner string, repo string, id int64) (*github.RepositoryComment, *github.Response, error)
	GetCommit                             func(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions) (*github.RepositoryCommit, *github.Response, error)
	GetCommitRaw                          func(ctx context.Context, owner string, repo string, sha string, opts github.RawOptions) (string, *github.Response, error)
	GetCommitSHA1                         func(ctx context.Context, owner string, repo string, ref string, lastSHA string) (string, *github.Response, error)
	GetCommunityHealthMetrics             func(ctx context.Context, owner string, repo string) (*github.CommunityHealthMetrics, *github.Response, error)
	GetContents                           func(ctx context.Context, owner string, repo string, path string, opts *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error)
	GetCustomDeploymentProtectionRule     func(ctx context.Context, owner string, repo string, environment string, protectionRuleID int64) (*github.CustomDeploymentProtectionRule, *github.Response, error)
	GetDefaultWorkflowPermissions         func(ctx context.Context, owner string, repo string) (*github.DefaultWorkflowPermissionRepository, *github.Response, error)
	GetDeployment                         func(ctx context.Context, owner string, repo string, deploymentID int64) (*github.Deployment, *github.Response, error)
	GetDeploymentBranchPolicy             func(ctx context.Context, owner string, repo string, environment string, branchPolicyID int64) (*github.DeploymentBranchPolicy, *github.Response, error)
	GetDeploymentStatus                   func(ctx context.Context, owner string, repo string, deploymentID int64, deploymentStatusID int64) (*github.DeploymentStatus, *github.Response, error)
	GetEnvironment                        func(ctx context.Context, owner string, repo string, name string) (*github.Environment, *github.Response, error)
	GetHook                               func(ctx context.Context, owner string, repo string, id int64) (*github.Hook, *github.Response, error)
	GetHookConfiguration                  func(ctx context.Context, owner string, repo string, id int64) (*github.HookConfig, *github.Response, error)
	GetHookDelivery                       func(ctx context.Context, owner string, repo string, hookID int64, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	GetKey                                func(ctx context.Context, owner string, repo string, id int64) (*github.Key, *github.Response, error)
	GetLatestPagesBuild                   func(ctx context.Context, owner string, repo string) (*github.PagesBuild, *github.Response, error)
	GetLatestRelease                      func(ctx context.Context, owner string, repo string) (*github.RepositoryRelease, *github.Response, error)
	GetPageBuild                          func(ctx context.Context, owner string, repo string, id int64) (*github.PagesBuild, *github.Response, error)
	GetPageHealthCheck                    func(ctx context.Context, owner string, repo string) (*github.PagesHealthCheckResponse, *github.Response, error)
	GetPagesInfo                          func(ctx context.Context, owner string, repo string) (*github.Pages, *github.Response, error)
	GetPermissionLevel                    func(ctx context.Context, owner string, repo string, user string) (*github.RepositoryPermissionLevel, *github.Response, error)
	GetPreReceiveHook                     func(ctx context.Context, owner string, repo string, id int64) (*github.PreReceiveHook, *github.Response, error)
	GetPullRequestReviewEnforcement       func(ctx context.Context, owner string, repo string, branch string) (*github.PullRequestReviewsEnforcement, *github.Response, error)
	GetReadme                             func(ctx context.Context, owner string, repo string, opts *github.RepositoryContentGetOptions) (*github.RepositoryContent, *github.Response, error)
	GetRelease                            func(ctx context.Context, owner string, repo string, id int64) (*github.RepositoryRelease, *github.Response, error)
	GetReleaseAsset                       func(ctx context.Context, owner string, repo string, id int64) (*github.ReleaseAsset, *github.Response, error)
	GetReleaseByTag                       func(ctx context.Context, owner string, repo string, tag string) (*github.RepositoryRelease, *github.Response, error)
	GetRequiredStatusChecks               func(ctx context.Context, owner string, repo string, branch string) (*github.RequiredStatusChecks, *github.Response, error)
	GetRulesForBranch                     func(ctx context.Context, owner string, repo string, branch string) ([]*github.RepositoryRule, *github.Response, error)
	GetRuleset                            func(ctx context.Context, owner string, repo string, rulesetID int64, includesParents bool) (*github.Ruleset, *github.Response, error)
	GetSignaturesProtectedBranch          func(ctx context.Context, owner string, repo string, branch string) (*github.SignaturesProtectedBranch, *github.Response, error)
	GetVulnerabilityAlerts                func(ctx context.Context, owner string, repository string) (bool, *github.Response, error)
	IsCollaborator                        func(ctx context.Context, owner string, repo string, user string) (bool, *github.Response, error)
	IsPrivateReportingEnabled             func(ctx context.Context, owner string, repo string) (bool, *github.Response, error)
	License                               func(ctx context.Context, owner string, repo string) (*github.RepositoryLicense, *github.Response, error)
	ListAll                               func(ctx context.Context, opts *github.RepositoryListAllOptions) ([]*github.Repository, *github.Response, error)
	ListAllTopics                         func(ctx context.Context, owner string, repo string) ([]string, *github.Response, error)
	ListAppRestrictions                   func(ctx context.Context, owner string, repo string, branch string) ([]*github.App, *github.Response, error)
	ListAutolinks                         func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Autolink, *github.Response, error)
	ListBranches                          func(ctx context.Context, owner string, repo string, opts *github.BranchListOptions) ([]*github.Branch, *github.Response, error)
	ListBranchesHeadCommit                func(ctx context.Context, owner string, repo string, sha string) ([]*github.BranchCommit, *github.Response, error)
	ListByAuthenticatedUser               func(ctx context.Context, opts *github.RepositoryListByAuthenticatedUserOptions) ([]*github.Repository, *github.Response, error)
	ListByOrg                             func(ctx context.Context, org string, opts *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
	ListByUser                            func(ctx context.Context, user string, opts *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)
	ListCodeFrequency                     func(ctx context.Context, owner string, repo string) ([]*github.WeeklyStats, *github.Response, error)
	ListCollaborators                     func(ctx context.Context, owner string, repo string, opts *github.ListCollaboratorsOptions) ([]*github.User, *github.Response, error)
	ListComments                          func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryComment, *github.Response, error)
	ListCommitActivity                    func(ctx context.Context, owner string, repo string) ([]*github.WeeklyCommitActivity, *github.Response, error)
	ListCommitComments                    func(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions) ([]*github.RepositoryComment, *github.Response, error)
	ListCommits                           func(ctx context.Context, owner string, repo string, opts *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error)
	ListContributors                      func(ctx context.Context, owner string, repository string, opts *github.ListContributorsOptions) ([]*github.Contributor, *github.Response, error)
	ListContributorsStats                 func(ctx context.Context, owner string, repo string) ([]*github.ContributorStats, *github.Response, error)
	ListCustomDeploymentRuleIntegrations  func(ctx context.Context, owner string, repo string, environment string) (*github.ListCustomDeploymentRuleIntegrationsResponse, *github.Response, error)
	ListDeploymentBranchPolicies          func(ctx context.Context, owner string, repo string, environment string) (*github.DeploymentBranchPolicyResponse, *github.Response, error)
	ListDeploymentStatuses                func(ctx context.Context, owner string, repo string, deployment int64, opts *github.ListOptions) ([]*github.DeploymentStatus, *github.Response, error)
	ListDeployments                       func(ctx context.Context, owner string, repo string, opts *github.DeploymentsListOptions) ([]*github.Deployment, *github.Response, error)
	ListEnvironments                      func(ctx context.Context, owner string, repo string, opts *github.EnvironmentListOptions) (*github.EnvResponse, *github.Response, error)
	ListForks                             func(ctx context.Context, owner string, repo string, opts *github.RepositoryListForksOptions) ([]*github.Repository, *github.Response, error)
	ListHookDeliveries                    func(ctx context.Context, owner string, repo string, id int64, opts *github.ListCursorOptions) ([]*github.HookDelivery, *github.Response, error)
	ListHooks                             func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
	ListInvitations                       func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryInvitation, *github.Response, error)
	ListKeys                              func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Key, *github.Response, error)
	ListLanguages                         func(ctx context.Context, owner string, repo string) (map[string]int, *github.Response, error)
	ListPagesBuilds                       func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.PagesBuild, *github.Response, error)
	ListParticipation                     func(ctx context.Context, owner string, repo string) (*github.RepositoryParticipation, *github.Response, error)
	ListPreReceiveHooks                   func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.PreReceiveHook, *github.Response, error)
	ListProjects                          func(ctx context.Context, owner string, repo string, opts *github.ProjectListOptions) ([]*github.Project, *github.Response, error)
	ListPunchCard                         func(ctx context.Context, owner string, repo string) ([]*github.PunchCard, *github.Response, error)
	ListReleaseAssets                     func(ctx context.Context, owner string, repo string, id int64, opts *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error)
	ListReleases                          func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
	ListRequiredStatusChecksContexts      func(ctx context.Context, owner string, repo string, branch string) (contexts []string, resp *github.Response, err error)
	ListStatuses                          func(ctx context.Context, owner string, repo string, ref string, opts *github.ListOptions) ([]*github.RepoStatus, *github.Response, error)
	ListTagProtection                     func(ctx context.Context, owner string, repo string) ([]*github.TagProtection, *github.Response, error)
	ListTags                              func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error)
	ListTeamRestrictions                  func(ctx context.Context, owner string, repo string, branch string) ([]*github.Team, *github.Response, error)
	ListTeams                             func(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListTrafficClones                     func(ctx context.Context, owner string, repo string, opts *github.TrafficBreakdownOptions) (*github.TrafficClones, *github.Response, error)
	ListTrafficPaths                      func(ctx context.Context, owner string, repo string) ([]*github.TrafficPath, *github.Response, error)
	ListTrafficReferrers                  func(ctx context.Context, owner string, repo string) ([]*github.TrafficReferrer, *github.Response, error)
	ListTrafficViews                      func(ctx context.Context, owner string, repo string, opts *github.TrafficBreakdownOptions) (*github.TrafficViews, *github.Response, error)
	ListUserRestrictions                  func(ctx context.Context, owner string, repo string, branch string) ([]*github.User, *github.Response, error)
	Merge                                 func(ctx context.Context, owner string, repo string, request *github.RepositoryMergeRequest) (*github.RepositoryCommit, *github.Response, error)
	MergeUpstream                         func(ctx context.Context, owner string, repo string, request *github.RepoMergeUpstreamRequest) (*github.RepoMergeUpstreamResult, *github.Response, error)
	OptionalSignaturesOnProtectedBranch   func(ctx context.Context, owner string, repo string, branch string) (*github.Response, error)
	PingHook                              func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	RedeliverHookDelivery                 func(ctx context.Context, owner string, repo string, hookID int64, deliveryID int64) (*github.HookDelivery, *github.Response, error)
	RemoveAdminEnforcement                func(ctx context.Context, owner string, repo string, branch string) (*github.Response, error)
	RemoveAppRestrictions                 func(ctx context.Context, owner string, repo string, branch string, apps []string) ([]*github.App, *github.Response, error)
	RemoveBranchProtection                func(ctx context.Context, owner string, repo string, branch string) (*github.Response, error)
	RemoveCollaborator                    func(ctx context.Context, owner string, repo string, user string) (*github.Response, error)
	RemovePullRequestReviewEnforcement    func(ctx context.Context, owner string, repo string, branch string) (*github.Response, error)
	RemoveRequiredStatusChecks            func(ctx context.Context, owner string, repo string, branch string) (*github.Response, error)
	RemoveTeamRestrictions                func(ctx context.Context, owner string, repo string, branch string, teams []string) ([]*github.Team, *github.Response, error)
	RemoveUserRestrictions                func(ctx context.Context, owner string, repo string, branch string, users []string) ([]*github.User, *github.Response, error)
	RenameBranch                          func(ctx context.Context, owner string, repo string, branch string, newName string) (*github.Branch, *github.Response, error)
	ReplaceAllTopics                      func(ctx context.Context, owner string, repo string, topics []string) ([]string, *github.Response, error)
	ReplaceAppRestrictions                func(ctx context.Context, owner string, repo string, branch string, apps []string) ([]*github.App, *github.Response, error)
	ReplaceTeamRestrictions               func(ctx context.Context, owner string, repo string, branch string, teams []string) ([]*github.Team, *github.Response, error)
	ReplaceUserRestrictions               func(ctx context.Context, owner string, repo string, branch string, users []string) ([]*github.User, *github.Response, error)
	RequestPageBuild                      func(ctx context.Context, owner string, repo string) (*github.PagesBuild, *github.Response, error)
	RequireSignaturesOnProtectedBranch    func(ctx context.Context, owner string, repo string, branch string) (*github.SignaturesProtectedBranch, *github.Response, error)
	Subscribe                             func(ctx context.Context, owner string, repo string, event string, callback string, secret []byte) (*github.Response, error)
	TestHook                              func(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
	Transfer                              func(ctx context.Context, owner string, repo string, transfer github.TransferRequest) (*github.Repository, *github.Response, error)
	Unsubscribe                           func(ctx context.Context, owner string, repo string, event string, callback string, secret []byte) (*github.Response, error)
	UpdateBranchProtection                func(ctx context.Context, owner string, repo string, branch string, preq *github.ProtectionRequest) (*github.Protection, *github.Response, error)
	UpdateComment                         func(ctx context.Context, owner string, repo string, id int64, comment *github.RepositoryComment) (*github.RepositoryComment, *github.Response, error)
	UpdateDeploymentBranchPolicy          func(ctx context.Context, owner string, repo string, environment string, branchPolicyID int64, request *github.DeploymentBranchPolicyRequest) (*github.DeploymentBranchPolicy, *github.Response, error)
	UpdateFile                            func(ctx context.Context, owner string, repo string, path string, opts *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
	UpdateInvitation                      func(ctx context.Context, owner string, repo string, invitationID int64, permissions string) (*github.RepositoryInvitation, *github.Response, error)
	UpdatePages                           func(ctx context.Context, owner string, repo string, opts *github.PagesUpdate) (*github.Response, error)
	UpdatePreReceiveHook                  func(ctx context.Context, owner string, repo string, id int64, hook *github.PreReceiveHook) (*github.PreReceiveHook, *github.Response, error)
	UpdatePullRequestReviewEnforcement    func(ctx context.Context, owner string, repo string, branch string, patch *github.PullRequestReviewsEnforcementUpdate) (*github.PullRequestReviewsEnforcement, *github.Response, error)
	UpdateRequiredStatusChecks            func(ctx context.Context, owner string, repo string, branch string, sreq *github.RequiredStatusChecksRequest) (*github.RequiredStatusChecks, *github.Response, error)
	UpdateRuleset                         func(ctx context.Context, owner string, repo string, rulesetID int64, rs *github.Ruleset) (*github.Ruleset, *github.Response, error)
	UploadReleaseAsset                    func(ctx context.Context, owner string, repo string, id int64, opts *github.UploadOptions, file *os.File) (*github.ReleaseAsset, *github.Response, error)
}

type SCIMService

type SCIMService struct {
	DeleteSCIMUserFromOrg          func(ctx context.Context, org string, scimUserID string) (*github.Response, error)
	GetSCIMProvisioningInfoForUser func(ctx context.Context, org string, scimUserID string) (*github.SCIMUserAttributes, *github.Response, error)
	ListSCIMProvisionedIdentities  func(ctx context.Context, org string, opts *github.ListSCIMProvisionedIdentitiesOptions) (*github.SCIMProvisionedIdentities, *github.Response, error)
	ProvisionAndInviteSCIMUser     func(ctx context.Context, org string, opts *github.SCIMUserAttributes) (*github.Response, error)
	UpdateAttributeForSCIMUser     func(ctx context.Context, org string, scimUserID string, opts *github.UpdateAttributeForSCIMUserOptions) (*github.Response, error)
	UpdateProvisionedOrgMembership func(ctx context.Context, org string, scimUserID string, opts *github.SCIMUserAttributes) (*github.Response, error)
}

type SearchService

type SearchService struct {
	// contains filtered or unexported fields
}

func NewSearchService

func NewSearchService(f *SearchServiceF) *SearchService

func (*SearchService) Code

func (*SearchService) Commits

func (*SearchService) Issue

func (s *SearchService) Issue(ctx context.Context, query string) (*github.Issue, error)

func (*SearchService) Issues

func (*SearchService) Labels

func (*SearchService) MapIssues

func (s *SearchService) MapIssues(ctx context.Context, query string, opts *github.SearchOptions, handle IssueHandler) error

func (*SearchService) Repositories

func (*SearchService) Topics

func (*SearchService) Users

type SearchServiceF

type SearchServiceF struct {
	Code         func(ctx context.Context, query string, opts *github.SearchOptions) (*github.CodeSearchResult, *github.Response, error)
	Commits      func(ctx context.Context, query string, opts *github.SearchOptions) (*github.CommitsSearchResult, *github.Response, error)
	Issues       func(ctx context.Context, query string, opts *github.SearchOptions) (*github.IssuesSearchResult, *github.Response, error)
	Labels       func(ctx context.Context, repoID int64, query string, opts *github.SearchOptions) (*github.LabelsSearchResult, *github.Response, error)
	Repositories func(ctx context.Context, query string, opts *github.SearchOptions) (*github.RepositoriesSearchResult, *github.Response, error)
	Topics       func(ctx context.Context, query string, opts *github.SearchOptions) (*github.TopicsSearchResult, *github.Response, error)
	Users        func(ctx context.Context, query string, opts *github.SearchOptions) (*github.UsersSearchResult, *github.Response, error)

	Issue     func(ctx context.Context, query string) (*github.Issue, error)
	MapIssues func(ctx context.Context, query string, opts *github.SearchOptions, handle IssueHandler) error
}

type SecretScanningService

type SecretScanningService struct {
	GetAlert                func(ctx context.Context, owner string, repo string, number int64) (*github.SecretScanningAlert, *github.Response, error)
	ListAlertsForEnterprise func(ctx context.Context, enterprise string, opts *github.SecretScanningAlertListOptions) ([]*github.SecretScanningAlert, *github.Response, error)
	ListAlertsForOrg        func(ctx context.Context, org string, opts *github.SecretScanningAlertListOptions) ([]*github.SecretScanningAlert, *github.Response, error)
	ListAlertsForRepo       func(ctx context.Context, owner string, repo string, opts *github.SecretScanningAlertListOptions) ([]*github.SecretScanningAlert, *github.Response, error)
	ListLocationsForAlert   func(ctx context.Context, owner string, repo string, number int64, opts *github.ListOptions) ([]*github.SecretScanningAlertLocation, *github.Response, error)
	UpdateAlert             func(ctx context.Context, owner string, repo string, number int64, opts *github.SecretScanningAlertUpdateOptions) (*github.SecretScanningAlert, *github.Response, error)
}

type SecurityAdvisoriesService

type SecurityAdvisoriesService struct {
	CreateTemporaryPrivateFork             func(ctx context.Context, owner string, repo string, ghsaID string) (*github.Repository, *github.Response, error)
	GetGlobalSecurityAdvisories            func(ctx context.Context, ghsaID string) (*github.GlobalSecurityAdvisory, *github.Response, error)
	ListGlobalSecurityAdvisories           func(ctx context.Context, opts *github.ListGlobalSecurityAdvisoriesOptions) ([]*github.GlobalSecurityAdvisory, *github.Response, error)
	ListRepositorySecurityAdvisories       func(ctx context.Context, owner string, repo string, opt *github.ListRepositorySecurityAdvisoriesOptions) ([]*github.SecurityAdvisory, *github.Response, error)
	ListRepositorySecurityAdvisoriesForOrg func(ctx context.Context, org string, opt *github.ListRepositorySecurityAdvisoriesOptions) ([]*github.SecurityAdvisory, *github.Response, error)
	RequestCVE                             func(ctx context.Context, owner string, repo string, ghsaID string) (*github.Response, error)
}

type State

type State int
const (
	StateOpen State = iota
	StateClosed
	StateAll
)

func (State) String

func (s State) String() string

func (State) StringP

func (s State) StringP() *string

type StateReason

type StateReason int
const (
	StateReasonCompleted StateReason = iota
	StateReasonNotPlanned
	StateReasonReopened
)

func (StateReason) String

func (sr StateReason) String() string

func (StateReason) StringP

func (sr StateReason) StringP() *string

type TeamsService

type TeamsService struct {
	AddTeamMembershipByID                   func(ctx context.Context, orgID int64, teamID int64, user string, opts *github.TeamAddTeamMembershipOptions) (*github.Membership, *github.Response, error)
	AddTeamMembershipBySlug                 func(ctx context.Context, org string, slug string, user string, opts *github.TeamAddTeamMembershipOptions) (*github.Membership, *github.Response, error)
	AddTeamProjectByID                      func(ctx context.Context, orgID int64, teamID int64, projectID int64, opts *github.TeamProjectOptions) (*github.Response, error)
	AddTeamProjectBySlug                    func(ctx context.Context, org string, slug string, projectID int64, opts *github.TeamProjectOptions) (*github.Response, error)
	AddTeamRepoByID                         func(ctx context.Context, orgID int64, teamID int64, owner string, repo string, opts *github.TeamAddTeamRepoOptions) (*github.Response, error)
	AddTeamRepoBySlug                       func(ctx context.Context, org string, slug string, owner string, repo string, opts *github.TeamAddTeamRepoOptions) (*github.Response, error)
	CreateCommentByID                       func(ctx context.Context, orgID int64, teamID int64, discsusionNumber int, comment github.DiscussionComment) (*github.DiscussionComment, *github.Response, error)
	CreateCommentBySlug                     func(ctx context.Context, org string, slug string, discsusionNumber int, comment github.DiscussionComment) (*github.DiscussionComment, *github.Response, error)
	CreateDiscussionByID                    func(ctx context.Context, orgID int64, teamID int64, discussion github.TeamDiscussion) (*github.TeamDiscussion, *github.Response, error)
	CreateDiscussionBySlug                  func(ctx context.Context, org string, slug string, discussion github.TeamDiscussion) (*github.TeamDiscussion, *github.Response, error)
	CreateOrUpdateIDPGroupConnectionsByID   func(ctx context.Context, orgID int64, teamID int64, opts github.IDPGroupList) (*github.IDPGroupList, *github.Response, error)
	CreateOrUpdateIDPGroupConnectionsBySlug func(ctx context.Context, org string, slug string, opts github.IDPGroupList) (*github.IDPGroupList, *github.Response, error)
	CreateTeam                              func(ctx context.Context, org string, team github.NewTeam) (*github.Team, *github.Response, error)
	DeleteCommentByID                       func(ctx context.Context, orgID int64, teamID int64, discussionNumber int, commentNumber int) (*github.Response, error)
	DeleteCommentBySlug                     func(ctx context.Context, org string, slug string, discussionNumber int, commentNumber int) (*github.Response, error)
	DeleteDiscussionByID                    func(ctx context.Context, orgID int64, teamID int64, discussionNumber int) (*github.Response, error)
	DeleteDiscussionBySlug                  func(ctx context.Context, org string, slug string, discussionNumber int) (*github.Response, error)
	DeleteTeamByID                          func(ctx context.Context, orgID int64, teamID int64) (*github.Response, error)
	DeleteTeamBySlug                        func(ctx context.Context, org string, slug string) (*github.Response, error)
	EditCommentByID                         func(ctx context.Context, orgID int64, teamID int64, discussionNumber int, commentNumber int, comment github.DiscussionComment) (*github.DiscussionComment, *github.Response, error)
	EditCommentBySlug                       func(ctx context.Context, org string, slug string, discussionNumber int, commentNumber int, comment github.DiscussionComment) (*github.DiscussionComment, *github.Response, error)
	EditDiscussionByID                      func(ctx context.Context, orgID int64, teamID int64, discussionNumber int, discussion github.TeamDiscussion) (*github.TeamDiscussion, *github.Response, error)
	EditDiscussionBySlug                    func(ctx context.Context, org string, slug string, discussionNumber int, discussion github.TeamDiscussion) (*github.TeamDiscussion, *github.Response, error)
	EditTeamByID                            func(ctx context.Context, orgID int64, teamID int64, team github.NewTeam, removeParent bool) (*github.Team, *github.Response, error)
	EditTeamBySlug                          func(ctx context.Context, org string, slug string, team github.NewTeam, removeParent bool) (*github.Team, *github.Response, error)
	GetCommentByID                          func(ctx context.Context, orgID int64, teamID int64, discussionNumber int, commentNumber int) (*github.DiscussionComment, *github.Response, error)
	GetCommentBySlug                        func(ctx context.Context, org string, slug string, discussionNumber int, commentNumber int) (*github.DiscussionComment, *github.Response, error)
	GetDiscussionByID                       func(ctx context.Context, orgID int64, teamID int64, discussionNumber int) (*github.TeamDiscussion, *github.Response, error)
	GetDiscussionBySlug                     func(ctx context.Context, org string, slug string, discussionNumber int) (*github.TeamDiscussion, *github.Response, error)
	GetExternalGroup                        func(ctx context.Context, org string, groupID int64) (*github.ExternalGroup, *github.Response, error)
	GetTeamByID                             func(ctx context.Context, orgID int64, teamID int64) (*github.Team, *github.Response, error)
	GetTeamBySlug                           func(ctx context.Context, org string, slug string) (*github.Team, *github.Response, error)
	GetTeamMembershipByID                   func(ctx context.Context, orgID int64, teamID int64, user string) (*github.Membership, *github.Response, error)
	GetTeamMembershipBySlug                 func(ctx context.Context, org string, slug string, user string) (*github.Membership, *github.Response, error)
	IsTeamRepoByID                          func(ctx context.Context, orgID int64, teamID int64, owner string, repo string) (*github.Repository, *github.Response, error)
	IsTeamRepoBySlug                        func(ctx context.Context, org string, slug string, owner string, repo string) (*github.Repository, *github.Response, error)
	ListChildTeamsByParentID                func(ctx context.Context, orgID int64, teamID int64, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListChildTeamsByParentSlug              func(ctx context.Context, org string, slug string, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListCommentsByID                        func(ctx context.Context, orgID int64, teamID int64, discussionNumber int, options *github.DiscussionCommentListOptions) ([]*github.DiscussionComment, *github.Response, error)
	ListCommentsBySlug                      func(ctx context.Context, org string, slug string, discussionNumber int, options *github.DiscussionCommentListOptions) ([]*github.DiscussionComment, *github.Response, error)
	ListDiscussionsByID                     func(ctx context.Context, orgID int64, teamID int64, opts *github.DiscussionListOptions) ([]*github.TeamDiscussion, *github.Response, error)
	ListDiscussionsBySlug                   func(ctx context.Context, org string, slug string, opts *github.DiscussionListOptions) ([]*github.TeamDiscussion, *github.Response, error)
	ListExternalGroups                      func(ctx context.Context, org string, opts *github.ListExternalGroupsOptions) (*github.ExternalGroupList, *github.Response, error)
	ListExternalGroupsForTeamBySlug         func(ctx context.Context, org string, slug string) (*github.ExternalGroupList, *github.Response, error)
	ListIDPGroupsForTeamByID                func(ctx context.Context, orgID int64, teamID int64) (*github.IDPGroupList, *github.Response, error)
	ListIDPGroupsForTeamBySlug              func(ctx context.Context, org string, slug string) (*github.IDPGroupList, *github.Response, error)
	ListIDPGroupsInOrganization             func(ctx context.Context, org string, opts *github.ListCursorOptions) (*github.IDPGroupList, *github.Response, error)
	ListPendingTeamInvitationsByID          func(ctx context.Context, orgID int64, teamID int64, opts *github.ListOptions) ([]*github.Invitation, *github.Response, error)
	ListPendingTeamInvitationsBySlug        func(ctx context.Context, org string, slug string, opts *github.ListOptions) ([]*github.Invitation, *github.Response, error)
	ListTeamMembersByID                     func(ctx context.Context, orgID int64, teamID int64, opts *github.TeamListTeamMembersOptions) ([]*github.User, *github.Response, error)
	ListTeamMembersBySlug                   func(ctx context.Context, org string, slug string, opts *github.TeamListTeamMembersOptions) ([]*github.User, *github.Response, error)
	ListTeamProjectsByID                    func(ctx context.Context, orgID int64, teamID int64) ([]*github.Project, *github.Response, error)
	ListTeamProjectsBySlug                  func(ctx context.Context, org string, slug string) ([]*github.Project, *github.Response, error)
	ListTeamReposByID                       func(ctx context.Context, orgID int64, teamID int64, opts *github.ListOptions) ([]*github.Repository, *github.Response, error)
	ListTeamReposBySlug                     func(ctx context.Context, org string, slug string, opts *github.ListOptions) ([]*github.Repository, *github.Response, error)
	ListTeams                               func(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListUserTeams                           func(ctx context.Context, opts *github.ListOptions) ([]*github.Team, *github.Response, error)
	RemoveConnectedExternalGroup            func(ctx context.Context, org string, slug string) (*github.Response, error)
	RemoveTeamMembershipByID                func(ctx context.Context, orgID int64, teamID int64, user string) (*github.Response, error)
	RemoveTeamMembershipBySlug              func(ctx context.Context, org string, slug string, user string) (*github.Response, error)
	RemoveTeamProjectByID                   func(ctx context.Context, orgID int64, teamID int64, projectID int64) (*github.Response, error)
	RemoveTeamProjectBySlug                 func(ctx context.Context, org string, slug string, projectID int64) (*github.Response, error)
	RemoveTeamRepoByID                      func(ctx context.Context, orgID int64, teamID int64, owner string, repo string) (*github.Response, error)
	RemoveTeamRepoBySlug                    func(ctx context.Context, org string, slug string, owner string, repo string) (*github.Response, error)
	ReviewTeamProjectsByID                  func(ctx context.Context, orgID int64, teamID int64, projectID int64) (*github.Project, *github.Response, error)
	ReviewTeamProjectsBySlug                func(ctx context.Context, org string, slug string, projectID int64) (*github.Project, *github.Response, error)
	UpdateConnectedExternalGroup            func(ctx context.Context, org string, slug string, eg *github.ExternalGroup) (*github.ExternalGroup, *github.Response, error)
}

type UsersService

type UsersService struct {
	AcceptInvitation      func(ctx context.Context, invitationID int64) (*github.Response, error)
	AddEmails             func(ctx context.Context, emails []string) ([]*github.UserEmail, *github.Response, error)
	BlockUser             func(ctx context.Context, user string) (*github.Response, error)
	CreateGPGKey          func(ctx context.Context, armoredPublicKey string) (*github.GPGKey, *github.Response, error)
	CreateKey             func(ctx context.Context, key *github.Key) (*github.Key, *github.Response, error)
	CreateProject         func(ctx context.Context, opts *github.CreateUserProjectOptions) (*github.Project, *github.Response, error)
	CreateSSHSigningKey   func(ctx context.Context, key *github.Key) (*github.SSHSigningKey, *github.Response, error)
	DeclineInvitation     func(ctx context.Context, invitationID int64) (*github.Response, error)
	DeleteEmails          func(ctx context.Context, emails []string) (*github.Response, error)
	DeleteGPGKey          func(ctx context.Context, id int64) (*github.Response, error)
	DeleteKey             func(ctx context.Context, id int64) (*github.Response, error)
	DeletePackage         func(ctx context.Context, user string, packageType string, packageName string) (*github.Response, error)
	DeleteSSHSigningKey   func(ctx context.Context, id int64) (*github.Response, error)
	DemoteSiteAdmin       func(ctx context.Context, user string) (*github.Response, error)
	Edit                  func(ctx context.Context, user *github.User) (*github.User, *github.Response, error)
	Follow                func(ctx context.Context, user string) (*github.Response, error)
	Get                   func(ctx context.Context, user string) (*github.User, *github.Response, error)
	GetByID               func(ctx context.Context, id int64) (*github.User, *github.Response, error)
	GetGPGKey             func(ctx context.Context, id int64) (*github.GPGKey, *github.Response, error)
	GetHovercard          func(ctx context.Context, user string, opts *github.HovercardOptions) (*github.Hovercard, *github.Response, error)
	GetKey                func(ctx context.Context, id int64) (*github.Key, *github.Response, error)
	GetPackage            func(ctx context.Context, user string, packageType string, packageName string) (*github.Package, *github.Response, error)
	GetSSHSigningKey      func(ctx context.Context, id int64) (*github.SSHSigningKey, *github.Response, error)
	IsBlocked             func(ctx context.Context, user string) (bool, *github.Response, error)
	IsFollowing           func(ctx context.Context, user string, target string) (bool, *github.Response, error)
	ListAll               func(ctx context.Context, opts *github.UserListOptions) ([]*github.User, *github.Response, error)
	ListBlockedUsers      func(ctx context.Context, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	ListEmails            func(ctx context.Context, opts *github.ListOptions) ([]*github.UserEmail, *github.Response, error)
	ListFollowers         func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	ListFollowing         func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.User, *github.Response, error)
	ListGPGKeys           func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.GPGKey, *github.Response, error)
	ListInvitations       func(ctx context.Context, opts *github.ListOptions) ([]*github.RepositoryInvitation, *github.Response, error)
	ListKeys              func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.Key, *github.Response, error)
	ListPackages          func(ctx context.Context, user string, opts *github.PackageListOptions) ([]*github.Package, *github.Response, error)
	ListProjects          func(ctx context.Context, user string, opts *github.ProjectListOptions) ([]*github.Project, *github.Response, error)
	ListSSHSigningKeys    func(ctx context.Context, user string, opts *github.ListOptions) ([]*github.SSHSigningKey, *github.Response, error)
	PackageDeleteVersion  func(ctx context.Context, user string, packageType string, packageName string, packageVersionID int64) (*github.Response, error)
	PackageGetAllVersions func(ctx context.Context, user string, packageType string, packageName string, opts *github.PackageListOptions) ([]*github.PackageVersion, *github.Response, error)
	PackageGetVersion     func(ctx context.Context, user string, packageType string, packageName string, packageVersionID int64) (*github.PackageVersion, *github.Response, error)
	PackageRestoreVersion func(ctx context.Context, user string, packageType string, packageName string, packageVersionID int64) (*github.Response, error)
	PromoteSiteAdmin      func(ctx context.Context, user string) (*github.Response, error)
	RestorePackage        func(ctx context.Context, user string, packageType string, packageName string) (*github.Response, error)
	SetEmailVisibility    func(ctx context.Context, visibility string) ([]*github.UserEmail, *github.Response, error)
	Suspend               func(ctx context.Context, user string, opts *github.UserSuspendOptions) (*github.Response, error)
	UnblockUser           func(ctx context.Context, user string) (*github.Response, error)
	Unfollow              func(ctx context.Context, user string) (*github.Response, error)
	Unsuspend             func(ctx context.Context, user string) (*github.Response, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL