Documentation ¶
Overview ¶
Package github provides a client for using the GitHub API.
Usage:
import "github.com/google/go-github/v32/github" // with go modules enabled (GO111MODULE=on or outside GOPATH) import "github.com/google/go-github/github" // with go modules disabled
Construct a new GitHub client, then use the various services on the client to access different parts of the GitHub API. For example:
client := github.NewClient(nil) // list all organizations for user "willnorris" orgs, _, err := client.Organizations.List(ctx, "willnorris", nil)
Some API methods have optional parameters that can be passed. For example:
client := github.NewClient(nil) // list public repositories for org "github" opt := &github.RepositoryListByOrgOptions{Type: "public"} repos, _, err := client.Repositories.ListByOrg(ctx, "github", opt)
The services of a client divide the API into logical chunks and correspond to the structure of the GitHub API documentation at https://developer.github.com/v3/.
NOTE: Using the https://godoc.org/context package, one can easily pass cancelation signals and deadlines to various services of the client for handling a request. In case there is no context available, then context.Background() can be used as a starting point.
For more sample code snippets, head over to the https://github.com/google/go-github/tree/master/example directory.
Authentication ¶
The go-github library does not directly handle authentication. Instead, when creating a new client, pass an http.Client that can handle authentication for you. The easiest and recommended way to do this is using the golang.org/x/oauth2 library, but you can always use any other library that provides an http.Client. If you have an OAuth2 access token (for example, a personal API token), you can use it with the oauth2 library using:
import "golang.org/x/oauth2" func main() { ctx := context.Background() ts := oauth2.StaticTokenSource( &oauth2.Token{AccessToken: "... your access token ..."}, ) tc := oauth2.NewClient(ctx, ts) client := github.NewClient(tc) // list all repositories for the authenticated user repos, _, err := client.Repositories.List(ctx, "", nil) }
Note that when using an authenticated Client, all calls made by the client will include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users.
See the oauth2 docs for complete instructions on using that library.
For API methods that require HTTP Basic Authentication, use the BasicAuthTransport.
GitHub Apps authentication can be provided by the https://github.com/bradleyfalzon/ghinstallation package.
import "github.com/bradleyfalzon/ghinstallation" func main() { // Wrap the shared transport for use with the integration ID 1 authenticating with installation ID 99. itr, err := ghinstallation.NewKeyFromFile(http.DefaultTransport, 1, 99, "2016-10-19.private-key.pem") if err != nil { // Handle error. } // Use installation transport with client client := github.NewClient(&http.Client{Transport: itr}) // Use client... }
Rate Limiting ¶
GitHub imposes a rate limit on all API clients. Unauthenticated clients are limited to 60 requests per hour, while authenticated clients can make up to 5,000 requests per hour. The Search API has a custom rate limit. Unauthenticated clients are limited to 10 requests per minute, while authenticated clients can make up to 30 requests per minute. To receive the higher rate limit when making calls that are not issued on behalf of a user, use UnauthenticatedRateLimitedTransport.
The returned Response.Rate value contains the rate limit information from the most recent API call. If a recent enough response isn't available, you can use RateLimits to fetch the most up-to-date rate limit data for the client.
To detect an API rate limit error, you can check if its type is *github.RateLimitError:
repos, _, err := client.Repositories.List(ctx, "", nil) if _, ok := err.(*github.RateLimitError); ok { log.Println("hit rate limit") }
Learn more about GitHub rate limiting at https://developer.github.com/v3/#rate-limiting.
Accepted Status ¶
Some endpoints may return a 202 Accepted status code, meaning that the information required is not yet ready and was scheduled to be gathered on the GitHub side. Methods known to behave like this are documented specifying this behavior.
To detect this condition of error, you can check if its type is *github.AcceptedError:
stats, _, err := client.Repositories.ListContributorsStats(ctx, org, repo) if _, ok := err.(*github.AcceptedError); ok { log.Println("scheduled on GitHub side") }
Conditional Requests ¶
The GitHub API has good support for conditional requests which will help prevent you from burning through your rate limit, as well as help speed up your application. go-github does not handle conditional requests directly, but is instead designed to work with a caching http.Transport. We recommend using https://github.com/gregjones/httpcache for that.
Learn more about GitHub conditional requests at https://developer.github.com/v3/#conditional-requests.
Creating and Updating Resources ¶
All structs for GitHub resources use pointer values for all non-repeated fields. This allows distinguishing between unset fields and those set to a zero-value. Helper functions have been provided to easily create these pointers for string, bool, and int values. For example:
// create a new private repository named "foo" repo := &github.Repository{ Name: github.String("foo"), Private: github.Bool(true), } client.Repositories.Create(ctx, "", repo)
Users who have worked with protocol buffers should find this pattern familiar.
Pagination ¶
All requests for resource collections (repos, pull requests, issues, etc.) support pagination. Pagination options are described in the github.ListOptions struct and passed to the list methods directly or as an embedded type of a more specific list options struct (for example github.PullRequestListOptions). Pages information is available via the github.Response struct.
client := github.NewClient(nil) opt := &github.RepositoryListByOrgOptions{ ListOptions: github.ListOptions{PerPage: 10}, } // get all pages of results var allRepos []*github.Repository for { repos, resp, err := client.Repositories.ListByOrg(ctx, "github", opt) if err != nil { return err } allRepos = append(allRepos, repos...) if resp.NextPage == 0 { break } opt.Page = resp.NextPage }
Index ¶
- Variables
- func Bool(v bool) *bool
- func CheckResponse(r *http.Response) error
- func DeliveryID(r *http.Request) string
- func Int(v int) *int
- func Int64(v int64) *int64
- func ParseWebHook(messageType string, payload []byte) (interface{}, error)
- func String(v string) *string
- func Stringify(message interface{}) string
- func ValidatePayload(r *http.Request, secretToken []byte) (payload []byte, err error)
- func ValidateSignature(signature string, payload, secretToken []byte) error
- func WebHookType(r *http.Request) string
- type APIMeta
- type AbuseRateLimitError
- type AcceptedError
- type ActionsService
- func (s *ActionsService) AddSelectedRepoToOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)
- func (s *ActionsService) CancelWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*Response, error)
- func (s *ActionsService) CreateOrUpdateOrgSecret(ctx context.Context, org string, eSecret *EncryptedSecret) (*Response, error)
- func (s *ActionsService) CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *EncryptedSecret) (*Response, error)
- func (s *ActionsService) CreateOrganizationRegistrationToken(ctx context.Context, owner string) (*RegistrationToken, *Response, error)
- func (s *ActionsService) CreateOrganizationRemoveToken(ctx context.Context, owner string) (*RemoveToken, *Response, error)
- func (s *ActionsService) CreateRegistrationToken(ctx context.Context, owner, repo string) (*RegistrationToken, *Response, error)
- func (s *ActionsService) CreateRemoveToken(ctx context.Context, owner, repo string) (*RemoveToken, *Response, error)
- func (s *ActionsService) DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Response, error)
- func (s *ActionsService) DeleteOrgSecret(ctx context.Context, org, name string) (*Response, error)
- func (s *ActionsService) DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*Response, error)
- func (s *ActionsService) DeleteWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64) (*Response, error)
- func (s *ActionsService) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, ...) (*url.URL, *Response, error)
- func (s *ActionsService) GetArtifact(ctx context.Context, owner, repo string, artifactID int64) (*Artifact, *Response, error)
- func (s *ActionsService) GetOrgPublicKey(ctx context.Context, org string) (*PublicKey, *Response, error)
- func (s *ActionsService) GetOrgSecret(ctx context.Context, org, name string) (*Secret, *Response, error)
- func (s *ActionsService) GetOrganizationRunner(ctx context.Context, owner string, runnerID int64) (*Runner, *Response, error)
- func (s *ActionsService) GetRepoPublicKey(ctx context.Context, owner, repo string) (*PublicKey, *Response, error)
- func (s *ActionsService) GetRepoSecret(ctx context.Context, owner, repo, name string) (*Secret, *Response, error)
- func (s *ActionsService) GetRunner(ctx context.Context, owner, repo string, runnerID int64) (*Runner, *Response, error)
- func (s *ActionsService) GetWorkflowByFileName(ctx context.Context, owner, repo, workflowFileName string) (*Workflow, *Response, error)
- func (s *ActionsService) GetWorkflowByID(ctx context.Context, owner, repo string, workflowID int64) (*Workflow, *Response, error)
- func (s *ActionsService) GetWorkflowJobByID(ctx context.Context, owner, repo string, jobID int64) (*WorkflowJob, *Response, error)
- func (s *ActionsService) GetWorkflowJobLogs(ctx context.Context, owner, repo string, jobID int64, followRedirects bool) (*url.URL, *Response, error)
- func (s *ActionsService) GetWorkflowRunByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRun, *Response, error)
- func (s *ActionsService) GetWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64, followRedirects bool) (*url.URL, *Response, error)
- func (s *ActionsService) GetWorkflowRunUsageByID(ctx context.Context, owner, repo string, runID int64) (*WorkflowRunUsage, *Response, error)
- func (s *ActionsService) GetWorkflowUsageByFileName(ctx context.Context, owner, repo, workflowFileName string) (*WorkflowUsage, *Response, error)
- func (s *ActionsService) GetWorkflowUsageByID(ctx context.Context, owner, repo string, workflowID int64) (*WorkflowUsage, *Response, error)
- func (s *ActionsService) ListArtifacts(ctx context.Context, owner, repo string, opts *ListOptions) (*ArtifactList, *Response, error)
- func (s *ActionsService) ListOrgSecrets(ctx context.Context, org string, opts *ListOptions) (*Secrets, *Response, error)
- func (s *ActionsService) ListOrganizationRunnerApplicationDownloads(ctx context.Context, owner string) ([]*RunnerApplicationDownload, *Response, error)
- func (s *ActionsService) ListOrganizationRunners(ctx context.Context, owner string, opts *ListOptions) (*Runners, *Response, error)
- func (s *ActionsService) ListRepoSecrets(ctx context.Context, owner, repo string, opts *ListOptions) (*Secrets, *Response, error)
- func (s *ActionsService) ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)
- func (s *ActionsService) ListRunnerApplicationDownloads(ctx context.Context, owner, repo string) ([]*RunnerApplicationDownload, *Response, error)
- func (s *ActionsService) ListRunners(ctx context.Context, owner, repo string, opts *ListOptions) (*Runners, *Response, error)
- func (s *ActionsService) ListSelectedReposForOrgSecret(ctx context.Context, org, name string) (*SelectedReposList, *Response, error)
- func (s *ActionsService) ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, ...) (*Jobs, *Response, error)
- func (s *ActionsService) ListWorkflowRunArtifacts(ctx context.Context, owner, repo string, runID int64, opts *ListOptions) (*ArtifactList, *Response, error)
- func (s *ActionsService) ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, ...) (*WorkflowRuns, *Response, error)
- func (s *ActionsService) ListWorkflowRunsByID(ctx context.Context, owner, repo string, workflowID int64, ...) (*WorkflowRuns, *Response, error)
- func (s *ActionsService) ListWorkflows(ctx context.Context, owner, repo string, opts *ListOptions) (*Workflows, *Response, error)
- func (s *ActionsService) RemoveOrganizationRunner(ctx context.Context, owner string, runnerID int64) (*Response, error)
- func (s *ActionsService) RemoveRunner(ctx context.Context, owner, repo string, runnerID int64) (*Response, error)
- func (s *ActionsService) RemoveSelectedRepoFromOrgSecret(ctx context.Context, org, name string, repo *Repository) (*Response, error)
- func (s *ActionsService) RerunWorkflowByID(ctx context.Context, owner, repo string, runID int64) (*Response, error)
- func (s *ActionsService) SetSelectedReposForOrgSecret(ctx context.Context, org, name string, ids SelectedRepoIDs) (*Response, error)
- type ActivityListStarredOptions
- type ActivityService
- func (s *ActivityService) DeleteRepositorySubscription(ctx context.Context, owner, repo string) (*Response, error)
- func (s *ActivityService) DeleteThreadSubscription(ctx context.Context, id string) (*Response, error)
- func (s *ActivityService) GetRepositorySubscription(ctx context.Context, owner, repo string) (*Subscription, *Response, error)
- func (s *ActivityService) GetThread(ctx context.Context, id string) (*Notification, *Response, error)
- func (s *ActivityService) GetThreadSubscription(ctx context.Context, id string) (*Subscription, *Response, error)
- func (s *ActivityService) IsStarred(ctx context.Context, owner, repo string) (bool, *Response, error)
- func (s *ActivityService) ListEvents(ctx context.Context, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsForOrganization(ctx context.Context, org string, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListFeeds(ctx context.Context) (*Feeds, *Response, error)
- func (s *ActivityService) ListIssueEventsForRepository(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error)
- func (s *ActivityService) ListNotifications(ctx context.Context, opts *NotificationListOptions) ([]*Notification, *Response, error)
- func (s *ActivityService) ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListRepositoryNotifications(ctx context.Context, owner, repo string, opts *NotificationListOptions) ([]*Notification, *Response, error)
- func (s *ActivityService) ListStargazers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Stargazer, *Response, error)
- func (s *ActivityService) ListStarred(ctx context.Context, user string, opts *ActivityListStarredOptions) ([]*StarredRepository, *Response, error)
- func (s *ActivityService) ListUserEventsForOrganization(ctx context.Context, org, user string, opts *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListWatched(ctx context.Context, user string, opts *ListOptions) ([]*Repository, *Response, error)
- func (s *ActivityService) ListWatchers(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error)
- func (s *ActivityService) MarkNotificationsRead(ctx context.Context, lastRead time.Time) (*Response, error)
- func (s *ActivityService) MarkRepositoryNotificationsRead(ctx context.Context, owner, repo string, lastRead time.Time) (*Response, error)
- func (s *ActivityService) MarkThreadRead(ctx context.Context, id string) (*Response, error)
- func (s *ActivityService) SetRepositorySubscription(ctx context.Context, owner, repo string, subscription *Subscription) (*Subscription, *Response, error)
- func (s *ActivityService) SetThreadSubscription(ctx context.Context, id string, subscription *Subscription) (*Subscription, *Response, error)
- func (s *ActivityService) Star(ctx context.Context, owner, repo string) (*Response, error)
- func (s *ActivityService) Unstar(ctx context.Context, owner, repo string) (*Response, error)
- type AdminEnforcement
- type AdminService
- func (s *AdminService) CreateOrg(ctx context.Context, org *Organization, admin string) (*Organization, *Response, error)
- func (s *AdminService) CreateUser(ctx context.Context, login, email string) (*User, *Response, error)
- func (s *AdminService) CreateUserImpersonation(ctx context.Context, username string, opts *ImpersonateUserOptions) (*UserAuthorization, *Response, error)
- func (s *AdminService) DeleteUser(ctx context.Context, username string) (*Response, error)
- func (s *AdminService) DeleteUserImpersonation(ctx context.Context, username string) (*Response, error)
- func (s *AdminService) GetAdminStats(ctx context.Context) (*AdminStats, *Response, error)
- func (s *AdminService) RenameOrg(ctx context.Context, org *Organization, newName string) (*RenameOrgResponse, *Response, error)
- func (s *AdminService) RenameOrgByName(ctx context.Context, org, newName string) (*RenameOrgResponse, *Response, error)
- func (s *AdminService) UpdateTeamLDAPMapping(ctx context.Context, team int64, mapping *TeamLDAPMapping) (*TeamLDAPMapping, *Response, error)
- func (s *AdminService) UpdateUserLDAPMapping(ctx context.Context, user string, mapping *UserLDAPMapping) (*UserLDAPMapping, *Response, error)
- type AdminStats
- func (a *AdminStats) GetComments() *CommentStats
- func (a *AdminStats) GetGists() *GistStats
- func (a *AdminStats) GetHooks() *HookStats
- func (a *AdminStats) GetIssues() *IssueStats
- func (a *AdminStats) GetMilestones() *MilestoneStats
- func (a *AdminStats) GetOrgs() *OrgStats
- func (a *AdminStats) GetPages() *PageStats
- func (a *AdminStats) GetPulls() *PullStats
- func (a *AdminStats) GetRepos() *RepoStats
- func (a *AdminStats) GetUsers() *UserStats
- func (s AdminStats) String() string
- type Alert
- func (a *Alert) GetClosedAt() Timestamp
- func (a *Alert) GetClosedBy() *User
- func (a *Alert) GetCreatedAt() Timestamp
- func (a *Alert) GetHTMLURL() string
- func (a *Alert) GetOpen() bool
- func (a *Alert) GetRuleDescription() string
- func (a *Alert) GetRuleID() string
- func (a *Alert) GetRuleSeverity() string
- func (a *Alert) GetTool() string
- func (a *Alert) GetURL() string
- func (a *Alert) ID() int64
- type AlertListOptions
- type AllowDeletions
- type AllowForcePushes
- type App
- func (a *App) GetCreatedAt() Timestamp
- func (a *App) GetDescription() string
- func (a *App) GetExternalURL() string
- func (a *App) GetHTMLURL() string
- func (a *App) GetID() int64
- func (a *App) GetName() string
- func (a *App) GetNodeID() string
- func (a *App) GetOwner() *User
- func (a *App) GetPermissions() *InstallationPermissions
- func (a *App) GetSlug() string
- func (a *App) GetUpdatedAt() Timestamp
- type AppConfig
- func (a *AppConfig) GetClientID() string
- func (a *AppConfig) GetClientSecret() string
- func (a *AppConfig) GetCreatedAt() Timestamp
- func (a *AppConfig) GetDescription() string
- func (a *AppConfig) GetExternalURL() string
- func (a *AppConfig) GetHTMLURL() string
- func (a *AppConfig) GetID() int64
- func (a *AppConfig) GetName() string
- func (a *AppConfig) GetNodeID() string
- func (a *AppConfig) GetOwner() *User
- func (a *AppConfig) GetPEM() string
- func (a *AppConfig) GetUpdatedAt() Timestamp
- func (a *AppConfig) GetWebhookSecret() string
- type AppsService
- func (s *AppsService) AddRepository(ctx context.Context, instID, repoID int64) (*Repository, *Response, error)
- func (s *AppsService) CompleteAppManifest(ctx context.Context, code string) (*AppConfig, *Response, error)
- func (s *AppsService) CreateAttachment(ctx context.Context, contentReferenceID int64, title, body string) (*Attachment, *Response, error)
- func (s *AppsService) CreateInstallationToken(ctx context.Context, id int64, opts *InstallationTokenOptions) (*InstallationToken, *Response, error)
- func (s *AppsService) DeleteInstallation(ctx context.Context, id int64) (*Response, error)
- func (s *AppsService) FindOrganizationInstallation(ctx context.Context, org string) (*Installation, *Response, error)
- func (s *AppsService) FindRepositoryInstallation(ctx context.Context, owner, repo string) (*Installation, *Response, error)
- func (s *AppsService) FindRepositoryInstallationByID(ctx context.Context, id int64) (*Installation, *Response, error)
- func (s *AppsService) FindUserInstallation(ctx context.Context, user string) (*Installation, *Response, error)
- func (s *AppsService) Get(ctx context.Context, appSlug string) (*App, *Response, error)
- func (s *AppsService) GetInstallation(ctx context.Context, id int64) (*Installation, *Response, error)
- func (s *AppsService) ListInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error)
- func (s *AppsService) ListRepos(ctx context.Context, opts *ListOptions) ([]*Repository, *Response, error)
- func (s *AppsService) ListUserInstallations(ctx context.Context, opts *ListOptions) ([]*Installation, *Response, error)
- func (s *AppsService) ListUserRepos(ctx context.Context, id int64, opts *ListOptions) ([]*Repository, *Response, error)
- func (s *AppsService) RemoveRepository(ctx context.Context, instID, repoID int64) (*Response, error)
- func (s *AppsService) RevokeInstallationToken(ctx context.Context) (*Response, error)
- func (s *AppsService) SuspendInstallation(ctx context.Context, id int64) (*Response, error)
- func (s *AppsService) UnsuspendInstallation(ctx context.Context, id int64) (*Response, error)
- type ArchiveFormat
- type Artifact
- func (a *Artifact) GetArchiveDownloadURL() string
- func (a *Artifact) GetCreatedAt() Timestamp
- func (a *Artifact) GetExpired() bool
- func (a *Artifact) GetExpiresAt() Timestamp
- func (a *Artifact) GetID() int64
- func (a *Artifact) GetName() string
- func (a *Artifact) GetNodeID() string
- func (a *Artifact) GetSizeInBytes() int64
- type ArtifactList
- type Attachment
- type Authorization
- func (a *Authorization) GetApp() *AuthorizationApp
- func (a *Authorization) GetCreatedAt() Timestamp
- func (a *Authorization) GetFingerprint() string
- func (a *Authorization) GetHashedToken() string
- func (a *Authorization) GetID() int64
- func (a *Authorization) GetNote() string
- func (a *Authorization) GetNoteURL() string
- func (a *Authorization) GetToken() string
- func (a *Authorization) GetTokenLastEight() string
- func (a *Authorization) GetURL() string
- func (a *Authorization) GetUpdatedAt() Timestamp
- func (a *Authorization) GetUser() *User
- func (a Authorization) String() string
- type AuthorizationApp
- type AuthorizationRequest
- func (a *AuthorizationRequest) GetClientID() string
- func (a *AuthorizationRequest) GetClientSecret() string
- func (a *AuthorizationRequest) GetFingerprint() string
- func (a *AuthorizationRequest) GetNote() string
- func (a *AuthorizationRequest) GetNoteURL() string
- func (a AuthorizationRequest) String() string
- type AuthorizationUpdateRequest
- type AuthorizationsService
- func (s *AuthorizationsService) Check(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error)
- func (s *AuthorizationsService) CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error)
- func (s *AuthorizationsService) DeleteGrant(ctx context.Context, clientID, accessToken string) (*Response, error)
- func (s *AuthorizationsService) DeleteImpersonation(ctx context.Context, username string) (*Response, error)
- func (s *AuthorizationsService) Reset(ctx context.Context, clientID, accessToken string) (*Authorization, *Response, error)
- func (s *AuthorizationsService) Revoke(ctx context.Context, clientID, accessToken string) (*Response, error)
- type AutoTriggerCheck
- type BasicAuthTransport
- type Blob
- type Branch
- type BranchCommit
- type BranchListOptions
- type BranchRestrictions
- type BranchRestrictionsRequest
- type CheckRun
- func (c *CheckRun) GetApp() *App
- func (c *CheckRun) GetCheckSuite() *CheckSuite
- func (c *CheckRun) GetCompletedAt() Timestamp
- func (c *CheckRun) GetConclusion() string
- func (c *CheckRun) GetDetailsURL() string
- func (c *CheckRun) GetExternalID() string
- func (c *CheckRun) GetHTMLURL() string
- func (c *CheckRun) GetHeadSHA() string
- func (c *CheckRun) GetID() int64
- func (c *CheckRun) GetName() string
- func (c *CheckRun) GetNodeID() string
- func (c *CheckRun) GetOutput() *CheckRunOutput
- func (c *CheckRun) GetStartedAt() Timestamp
- func (c *CheckRun) GetStatus() string
- func (c *CheckRun) GetURL() string
- func (c CheckRun) String() string
- type CheckRunAction
- type CheckRunAnnotation
- func (c *CheckRunAnnotation) GetAnnotationLevel() string
- func (c *CheckRunAnnotation) GetEndColumn() int
- func (c *CheckRunAnnotation) GetEndLine() int
- func (c *CheckRunAnnotation) GetMessage() string
- func (c *CheckRunAnnotation) GetPath() string
- func (c *CheckRunAnnotation) GetRawDetails() string
- func (c *CheckRunAnnotation) GetStartColumn() int
- func (c *CheckRunAnnotation) GetStartLine() int
- func (c *CheckRunAnnotation) GetTitle() string
- type CheckRunEvent
- func (c *CheckRunEvent) GetAction() string
- func (c *CheckRunEvent) GetCheckRun() *CheckRun
- func (c *CheckRunEvent) GetInstallation() *Installation
- func (c *CheckRunEvent) GetOrg() *Organization
- func (c *CheckRunEvent) GetRepo() *Repository
- func (c *CheckRunEvent) GetRequestedAction() *RequestedAction
- func (c *CheckRunEvent) GetSender() *User
- type CheckRunImage
- type CheckRunOutput
- type CheckSuite
- func (c *CheckSuite) GetAfterSHA() string
- func (c *CheckSuite) GetApp() *App
- func (c *CheckSuite) GetBeforeSHA() string
- func (c *CheckSuite) GetConclusion() string
- func (c *CheckSuite) GetHeadBranch() string
- func (c *CheckSuite) GetHeadCommit() *Commit
- func (c *CheckSuite) GetHeadSHA() string
- func (c *CheckSuite) GetID() int64
- func (c *CheckSuite) GetNodeID() string
- func (c *CheckSuite) GetRepository() *Repository
- func (c *CheckSuite) GetStatus() string
- func (c *CheckSuite) GetURL() string
- func (c CheckSuite) String() string
- type CheckSuiteEvent
- type CheckSuitePreferenceOptions
- type CheckSuitePreferenceResults
- type ChecksService
- func (s *ChecksService) CreateCheckRun(ctx context.Context, owner, repo string, opts CreateCheckRunOptions) (*CheckRun, *Response, error)
- func (s *ChecksService) CreateCheckSuite(ctx context.Context, owner, repo string, opts CreateCheckSuiteOptions) (*CheckSuite, *Response, error)
- func (s *ChecksService) GetCheckRun(ctx context.Context, owner, repo string, checkRunID int64) (*CheckRun, *Response, error)
- func (s *ChecksService) GetCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*CheckSuite, *Response, error)
- func (s *ChecksService) ListCheckRunAnnotations(ctx context.Context, owner, repo string, checkRunID int64, opts *ListOptions) ([]*CheckRunAnnotation, *Response, error)
- func (s *ChecksService) ListCheckRunsCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64, ...) (*ListCheckRunsResults, *Response, error)
- func (s *ChecksService) ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)
- func (s *ChecksService) ListCheckSuitesForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckSuiteOptions) (*ListCheckSuiteResults, *Response, error)
- func (s *ChecksService) ReRequestCheckSuite(ctx context.Context, owner, repo string, checkSuiteID int64) (*Response, error)
- func (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, repo string, opts CheckSuitePreferenceOptions) (*CheckSuitePreferenceResults, *Response, error)
- func (s *ChecksService) UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, ...) (*CheckRun, *Response, error)
- type Client
- func (c *Client) APIMeta(ctx context.Context) (*APIMeta, *Response, error)
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error)
- func (c *Client) GetCodeOfConduct(ctx context.Context, key string) (*CodeOfConduct, *Response, error)
- func (c *Client) ListCodesOfConduct(ctx context.Context) ([]*CodeOfConduct, *Response, error)
- func (c *Client) ListEmojis(ctx context.Context) (map[string]string, *Response, error)
- func (c *Client) ListServiceHooks(ctx context.Context) ([]*ServiceHook, *Response, error)
- func (c *Client) Markdown(ctx context.Context, text string, opts *MarkdownOptions) (string, *Response, error)
- func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)
- func (c *Client) NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string) (*http.Request, error)
- func (c *Client) Octocat(ctx context.Context, message string) (string, *Response, error)
- func (c *Client) RateLimits(ctx context.Context) (*RateLimits, *Response, error)
- func (c *Client) Zen(ctx context.Context) (string, *Response, error)
- type CodeOfConduct
- type CodeResult
- type CodeScanningService
- type CodeSearchResult
- type CollaboratorInvitation
- func (c *CollaboratorInvitation) GetCreatedAt() Timestamp
- func (c *CollaboratorInvitation) GetHTMLURL() string
- func (c *CollaboratorInvitation) GetID() int64
- func (c *CollaboratorInvitation) GetInvitee() *User
- func (c *CollaboratorInvitation) GetInviter() *User
- func (c *CollaboratorInvitation) GetPermissions() string
- func (c *CollaboratorInvitation) GetRepo() *Repository
- func (c *CollaboratorInvitation) GetURL() string
- type CombinedStatus
- func (c *CombinedStatus) GetCommitURL() string
- func (c *CombinedStatus) GetName() string
- func (c *CombinedStatus) GetRepositoryURL() string
- func (c *CombinedStatus) GetSHA() string
- func (c *CombinedStatus) GetState() string
- func (c *CombinedStatus) GetTotalCount() int
- func (s CombinedStatus) String() string
- type CommentStats
- type Commit
- func (c *Commit) GetAuthor() *CommitAuthor
- func (c *Commit) GetCommentCount() int
- func (c *Commit) GetCommitter() *CommitAuthor
- func (c *Commit) GetHTMLURL() string
- func (c *Commit) GetMessage() string
- func (c *Commit) GetNodeID() string
- func (c *Commit) GetSHA() string
- func (c *Commit) GetStats() *CommitStats
- func (c *Commit) GetTree() *Tree
- func (c *Commit) GetURL() string
- func (c *Commit) GetVerification() *SignatureVerification
- func (c Commit) String() string
- type CommitAuthor
- type CommitCommentEvent
- type CommitFile
- func (c *CommitFile) GetAdditions() int
- func (c *CommitFile) GetBlobURL() string
- func (c *CommitFile) GetChanges() int
- func (c *CommitFile) GetContentsURL() string
- func (c *CommitFile) GetDeletions() int
- func (c *CommitFile) GetFilename() string
- func (c *CommitFile) GetPatch() string
- func (c *CommitFile) GetPreviousFilename() string
- func (c *CommitFile) GetRawURL() string
- func (c *CommitFile) GetSHA() string
- func (c *CommitFile) GetStatus() string
- func (c CommitFile) String() string
- type CommitResult
- func (c *CommitResult) GetAuthor() *User
- func (c *CommitResult) GetCommentsURL() string
- func (c *CommitResult) GetCommit() *Commit
- func (c *CommitResult) GetCommitter() *User
- func (c *CommitResult) GetHTMLURL() string
- func (c *CommitResult) GetRepository() *Repository
- func (c *CommitResult) GetSHA() string
- func (c *CommitResult) GetScore() *float64
- func (c *CommitResult) GetURL() string
- type CommitStats
- type CommitsComparison
- func (c *CommitsComparison) GetAheadBy() int
- func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit
- func (c *CommitsComparison) GetBehindBy() int
- func (c *CommitsComparison) GetDiffURL() string
- func (c *CommitsComparison) GetHTMLURL() string
- func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit
- func (c *CommitsComparison) GetPatchURL() string
- func (c *CommitsComparison) GetPermalinkURL() string
- func (c *CommitsComparison) GetStatus() string
- func (c *CommitsComparison) GetTotalCommits() int
- func (c *CommitsComparison) GetURL() string
- func (c CommitsComparison) String() string
- type CommitsListOptions
- type CommitsSearchResult
- type CommunityHealthFiles
- func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric
- func (c *CommunityHealthFiles) GetContributing() *Metric
- func (c *CommunityHealthFiles) GetIssueTemplate() *Metric
- func (c *CommunityHealthFiles) GetLicense() *Metric
- func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric
- func (c *CommunityHealthFiles) GetReadme() *Metric
- type CommunityHealthMetrics
- type Contributor
- func (c *Contributor) GetAvatarURL() string
- func (c *Contributor) GetContributions() int
- func (c *Contributor) GetEventsURL() string
- func (c *Contributor) GetFollowersURL() string
- func (c *Contributor) GetFollowingURL() string
- func (c *Contributor) GetGistsURL() string
- func (c *Contributor) GetGravatarID() string
- func (c *Contributor) GetHTMLURL() string
- func (c *Contributor) GetID() int64
- func (c *Contributor) GetLogin() string
- func (c *Contributor) GetNodeID() string
- func (c *Contributor) GetOrganizationsURL() string
- func (c *Contributor) GetReceivedEventsURL() string
- func (c *Contributor) GetReposURL() string
- func (c *Contributor) GetSiteAdmin() bool
- func (c *Contributor) GetStarredURL() string
- func (c *Contributor) GetSubscriptionsURL() string
- func (c *Contributor) GetType() string
- func (c *Contributor) GetURL() string
- type ContributorStats
- type CreateCheckRunOptions
- func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp
- func (c *CreateCheckRunOptions) GetConclusion() string
- func (c *CreateCheckRunOptions) GetDetailsURL() string
- func (c *CreateCheckRunOptions) GetExternalID() string
- func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput
- func (c *CreateCheckRunOptions) GetStartedAt() Timestamp
- func (c *CreateCheckRunOptions) GetStatus() string
- type CreateCheckSuiteOptions
- type CreateEvent
- func (c *CreateEvent) GetDescription() string
- func (c *CreateEvent) GetInstallation() *Installation
- func (c *CreateEvent) GetMasterBranch() string
- func (c *CreateEvent) GetPusherType() string
- func (c *CreateEvent) GetRef() string
- func (c *CreateEvent) GetRefType() string
- func (c *CreateEvent) GetRepo() *Repository
- func (c *CreateEvent) GetSender() *User
- type CreateOrgInvitationOptions
- type CreateUserProjectOptions
- type DeleteEvent
- type DeployKeyEvent
- type Deployment
- func (d *Deployment) GetCreatedAt() Timestamp
- func (d *Deployment) GetCreator() *User
- func (d *Deployment) GetDescription() string
- func (d *Deployment) GetEnvironment() string
- func (d *Deployment) GetID() int64
- func (d *Deployment) GetNodeID() string
- func (d *Deployment) GetRef() string
- func (d *Deployment) GetRepositoryURL() string
- func (d *Deployment) GetSHA() string
- func (d *Deployment) GetStatusesURL() string
- func (d *Deployment) GetTask() string
- func (d *Deployment) GetURL() string
- func (d *Deployment) GetUpdatedAt() Timestamp
- type DeploymentEvent
- type DeploymentRequest
- func (d *DeploymentRequest) GetAutoMerge() bool
- func (d *DeploymentRequest) GetDescription() string
- func (d *DeploymentRequest) GetEnvironment() string
- func (d *DeploymentRequest) GetProductionEnvironment() bool
- func (d *DeploymentRequest) GetRef() string
- func (d *DeploymentRequest) GetRequiredContexts() []string
- func (d *DeploymentRequest) GetTask() string
- func (d *DeploymentRequest) GetTransientEnvironment() bool
- type DeploymentStatus
- func (d *DeploymentStatus) GetCreatedAt() Timestamp
- func (d *DeploymentStatus) GetCreator() *User
- func (d *DeploymentStatus) GetDeploymentURL() string
- func (d *DeploymentStatus) GetDescription() string
- func (d *DeploymentStatus) GetEnvironment() string
- func (d *DeploymentStatus) GetEnvironmentURL() string
- func (d *DeploymentStatus) GetID() int64
- func (d *DeploymentStatus) GetLogURL() string
- func (d *DeploymentStatus) GetNodeID() string
- func (d *DeploymentStatus) GetRepositoryURL() string
- func (d *DeploymentStatus) GetState() string
- func (d *DeploymentStatus) GetTargetURL() string
- func (d *DeploymentStatus) GetURL() string
- func (d *DeploymentStatus) GetUpdatedAt() Timestamp
- type DeploymentStatusEvent
- type DeploymentStatusRequest
- func (d *DeploymentStatusRequest) GetAutoInactive() bool
- func (d *DeploymentStatusRequest) GetDescription() string
- func (d *DeploymentStatusRequest) GetEnvironment() string
- func (d *DeploymentStatusRequest) GetEnvironmentURL() string
- func (d *DeploymentStatusRequest) GetLogURL() string
- func (d *DeploymentStatusRequest) GetState() string
- type DeploymentsListOptions
- type DiscussionComment
- func (d *DiscussionComment) GetAuthor() *User
- func (d *DiscussionComment) GetBody() string
- func (d *DiscussionComment) GetBodyHTML() string
- func (d *DiscussionComment) GetBodyVersion() string
- func (d *DiscussionComment) GetCreatedAt() Timestamp
- func (d *DiscussionComment) GetDiscussionURL() string
- func (d *DiscussionComment) GetHTMLURL() string
- func (d *DiscussionComment) GetLastEditedAt() Timestamp
- func (d *DiscussionComment) GetNodeID() string
- func (d *DiscussionComment) GetNumber() int
- func (d *DiscussionComment) GetReactions() *Reactions
- func (d *DiscussionComment) GetURL() string
- func (d *DiscussionComment) GetUpdatedAt() Timestamp
- func (c DiscussionComment) String() string
- type DiscussionCommentListOptions
- type DiscussionListOptions
- type DismissalRestrictions
- type DismissalRestrictionsRequest
- type DismissedReview
- type DispatchRequestOptions
- type DraftReviewComment
- func (d *DraftReviewComment) GetBody() string
- func (d *DraftReviewComment) GetLine() int
- func (d *DraftReviewComment) GetPath() string
- func (d *DraftReviewComment) GetPosition() int
- func (d *DraftReviewComment) GetSide() string
- func (d *DraftReviewComment) GetStartLine() int
- func (d *DraftReviewComment) GetStartSide() string
- func (c DraftReviewComment) String() string
- type EditChange
- type EncryptedSecret
- type Enterprise
- func (e *Enterprise) GetAvatarURL() string
- func (e *Enterprise) GetCreatedAt() Timestamp
- func (e *Enterprise) GetDescription() string
- func (e *Enterprise) GetHTMLURL() string
- func (e *Enterprise) GetID() int
- func (e *Enterprise) GetName() string
- func (e *Enterprise) GetNodeID() string
- func (e *Enterprise) GetSlug() string
- func (e *Enterprise) GetUpdatedAt() Timestamp
- func (e *Enterprise) GetWebsiteURL() string
- func (m Enterprise) String() string
- type Error
- type ErrorResponse
- type Event
- func (e *Event) GetActor() *User
- func (e *Event) GetCreatedAt() time.Time
- func (e *Event) GetID() string
- func (e *Event) GetOrg() *Organization
- func (e *Event) GetPublic() bool
- func (e *Event) GetRawPayload() json.RawMessage
- func (e *Event) GetRepo() *Repository
- func (e *Event) GetType() string
- func (e *Event) ParsePayload() (payload interface{}, err error)
- func (e *Event) Payload() (payload interface{})deprecated
- func (e Event) String() string
- type FeedLink
- type Feeds
- type ForkEvent
- type GPGEmail
- type GPGKey
- func (g *GPGKey) GetCanCertify() bool
- func (g *GPGKey) GetCanEncryptComms() bool
- func (g *GPGKey) GetCanEncryptStorage() bool
- func (g *GPGKey) GetCanSign() bool
- func (g *GPGKey) GetCreatedAt() time.Time
- func (g *GPGKey) GetExpiresAt() time.Time
- func (g *GPGKey) GetID() int64
- func (g *GPGKey) GetKeyID() string
- func (g *GPGKey) GetPrimaryKeyID() int64
- func (g *GPGKey) GetPublicKey() string
- func (k GPGKey) String() string
- type Gist
- func (g *Gist) GetComments() int
- func (g *Gist) GetCreatedAt() time.Time
- func (g *Gist) GetDescription() string
- func (g *Gist) GetGitPullURL() string
- func (g *Gist) GetGitPushURL() string
- func (g *Gist) GetHTMLURL() string
- func (g *Gist) GetID() string
- func (g *Gist) GetNodeID() string
- func (g *Gist) GetOwner() *User
- func (g *Gist) GetPublic() bool
- func (g *Gist) GetUpdatedAt() time.Time
- func (g Gist) String() string
- type GistComment
- type GistCommit
- type GistFile
- type GistFilename
- type GistFork
- type GistListOptions
- type GistStats
- type GistsService
- func (s *GistsService) Create(ctx context.Context, gist *Gist) (*Gist, *Response, error)
- func (s *GistsService) CreateComment(ctx context.Context, gistID string, comment *GistComment) (*GistComment, *Response, error)
- func (s *GistsService) Delete(ctx context.Context, id string) (*Response, error)
- func (s *GistsService) DeleteComment(ctx context.Context, gistID string, commentID int64) (*Response, error)
- func (s *GistsService) Edit(ctx context.Context, id string, gist *Gist) (*Gist, *Response, error)
- func (s *GistsService) EditComment(ctx context.Context, gistID string, commentID int64, comment *GistComment) (*GistComment, *Response, error)
- func (s *GistsService) Fork(ctx context.Context, id string) (*Gist, *Response, error)
- func (s *GistsService) Get(ctx context.Context, id string) (*Gist, *Response, error)
- func (s *GistsService) GetComment(ctx context.Context, gistID string, commentID int64) (*GistComment, *Response, error)
- func (s *GistsService) GetRevision(ctx context.Context, id, sha string) (*Gist, *Response, error)
- func (s *GistsService) IsStarred(ctx context.Context, id string) (bool, *Response, error)
- func (s *GistsService) List(ctx context.Context, user string, opts *GistListOptions) ([]*Gist, *Response, error)
- func (s *GistsService) ListAll(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error)
- func (s *GistsService) ListComments(ctx context.Context, gistID string, opts *ListOptions) ([]*GistComment, *Response, error)
- func (s *GistsService) ListCommits(ctx context.Context, id string, opts *ListOptions) ([]*GistCommit, *Response, error)
- func (s *GistsService) ListForks(ctx context.Context, id string, opts *ListOptions) ([]*GistFork, *Response, error)
- func (s *GistsService) ListStarred(ctx context.Context, opts *GistListOptions) ([]*Gist, *Response, error)
- func (s *GistsService) Star(ctx context.Context, id string) (*Response, error)
- func (s *GistsService) Unstar(ctx context.Context, id string) (*Response, error)
- type GitHubAppAuthorizationEvent
- type GitObject
- type GitService
- func (s *GitService) CreateBlob(ctx context.Context, owner string, repo string, blob *Blob) (*Blob, *Response, error)
- func (s *GitService) CreateCommit(ctx context.Context, owner string, repo string, commit *Commit) (*Commit, *Response, error)
- func (s *GitService) CreateRef(ctx context.Context, owner string, repo string, ref *Reference) (*Reference, *Response, error)
- func (s *GitService) CreateTag(ctx context.Context, owner string, repo string, tag *Tag) (*Tag, *Response, error)
- func (s *GitService) CreateTree(ctx context.Context, owner string, repo string, baseTree string, ...) (*Tree, *Response, error)
- func (s *GitService) DeleteRef(ctx context.Context, owner string, repo string, ref string) (*Response, error)
- func (s *GitService) GetBlob(ctx context.Context, owner string, repo string, sha string) (*Blob, *Response, error)
- func (s *GitService) GetBlobRaw(ctx context.Context, owner, repo, sha string) ([]byte, *Response, error)
- func (s *GitService) GetCommit(ctx context.Context, owner string, repo string, sha string) (*Commit, *Response, error)
- func (s *GitService) GetRef(ctx context.Context, owner string, repo string, ref string) (*Reference, *Response, error)
- func (s *GitService) GetTag(ctx context.Context, owner string, repo string, sha string) (*Tag, *Response, error)
- func (s *GitService) GetTree(ctx context.Context, owner string, repo string, sha string, recursive bool) (*Tree, *Response, error)
- func (s *GitService) ListMatchingRefs(ctx context.Context, owner, repo string, opts *ReferenceListOptions) ([]*Reference, *Response, error)
- func (s *GitService) UpdateRef(ctx context.Context, owner string, repo string, ref *Reference, force bool) (*Reference, *Response, error)
- type Gitignore
- type GitignoresService
- type GollumEvent
- type Grant
- type HeadCommit
- func (h *HeadCommit) GetAuthor() *CommitAuthor
- func (h *HeadCommit) GetCommitter() *CommitAuthor
- func (h *HeadCommit) GetDistinct() bool
- func (h *HeadCommit) GetID() string
- func (h *HeadCommit) GetMessage() string
- func (h *HeadCommit) GetSHA() string
- func (h *HeadCommit) GetTimestamp() Timestamp
- func (h *HeadCommit) GetTreeID() string
- func (h *HeadCommit) GetURL() string
- func (p HeadCommit) String() string
- type Hook
- type HookStats
- type Hovercard
- type HovercardOptions
- type IDPGroup
- type IDPGroupList
- type ImpersonateUserOptions
- type Import
- func (i *Import) GetAuthorsCount() int
- func (i *Import) GetAuthorsURL() string
- func (i *Import) GetCommitCount() int
- func (i *Import) GetFailedStep() string
- func (i *Import) GetHTMLURL() string
- func (i *Import) GetHasLargeFiles() bool
- func (i *Import) GetHumanName() string
- func (i *Import) GetLargeFilesCount() int
- func (i *Import) GetLargeFilesSize() int
- func (i *Import) GetMessage() string
- func (i *Import) GetPercent() int
- func (i *Import) GetPushPercent() int
- func (i *Import) GetRepositoryURL() string
- func (i *Import) GetStatus() string
- func (i *Import) GetStatusText() string
- func (i *Import) GetTFVCProject() string
- func (i *Import) GetURL() string
- func (i *Import) GetUseLFS() string
- func (i *Import) GetVCS() string
- func (i *Import) GetVCSPassword() string
- func (i *Import) GetVCSURL() string
- func (i *Import) GetVCSUsername() string
- func (i Import) String() string
- type Installation
- func (i *Installation) GetAccessTokensURL() string
- func (i *Installation) GetAccount() *User
- func (i *Installation) GetAppID() int64
- func (i *Installation) GetCreatedAt() Timestamp
- func (i *Installation) GetHTMLURL() string
- func (i *Installation) GetID() int64
- func (i *Installation) GetPermissions() *InstallationPermissions
- func (i *Installation) GetRepositoriesURL() string
- func (i *Installation) GetRepositorySelection() string
- func (i *Installation) GetSingleFileName() string
- func (i *Installation) GetTargetID() int64
- func (i *Installation) GetTargetType() string
- func (i *Installation) GetUpdatedAt() Timestamp
- func (i Installation) String() string
- type InstallationEvent
- type InstallationPermissions
- func (i *InstallationPermissions) GetAdministration() string
- func (i *InstallationPermissions) GetBlocking() string
- func (i *InstallationPermissions) GetChecks() string
- func (i *InstallationPermissions) GetContentReferences() string
- func (i *InstallationPermissions) GetContents() string
- func (i *InstallationPermissions) GetDeployments() string
- func (i *InstallationPermissions) GetEmails() string
- func (i *InstallationPermissions) GetFollowers() string
- func (i *InstallationPermissions) GetIssues() string
- func (i *InstallationPermissions) GetMembers() string
- func (i *InstallationPermissions) GetMetadata() string
- func (i *InstallationPermissions) GetOrganizationAdministration() string
- func (i *InstallationPermissions) GetOrganizationHooks() string
- func (i *InstallationPermissions) GetOrganizationPlan() string
- func (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string
- func (i *InstallationPermissions) GetOrganizationProjects() string
- func (i *InstallationPermissions) GetOrganizationUserBlocking() string
- func (i *InstallationPermissions) GetPackages() string
- func (i *InstallationPermissions) GetPages() string
- func (i *InstallationPermissions) GetPullRequests() string
- func (i *InstallationPermissions) GetRepositoryHooks() string
- func (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string
- func (i *InstallationPermissions) GetRepositoryProjects() string
- func (i *InstallationPermissions) GetSingleFile() string
- func (i *InstallationPermissions) GetStatuses() string
- func (i *InstallationPermissions) GetTeamDiscussions() string
- func (i *InstallationPermissions) GetVulnerabilityAlerts() string
- type InstallationRepositoriesEvent
- type InstallationToken
- type InstallationTokenOptions
- type InteractionRestriction
- type InteractionsService
- func (s *InteractionsService) GetRestrictionsForOrg(ctx context.Context, organization string) (*InteractionRestriction, *Response, error)
- func (s *InteractionsService) GetRestrictionsForRepo(ctx context.Context, owner, repo string) (*InteractionRestriction, *Response, error)
- func (s *InteractionsService) RemoveRestrictionsFromOrg(ctx context.Context, organization string) (*Response, error)
- func (s *InteractionsService) RemoveRestrictionsFromRepo(ctx context.Context, owner, repo string) (*Response, error)
- func (s *InteractionsService) UpdateRestrictionsForOrg(ctx context.Context, organization, limit string) (*InteractionRestriction, *Response, error)
- func (s *InteractionsService) UpdateRestrictionsForRepo(ctx context.Context, owner, repo, limit string) (*InteractionRestriction, *Response, error)
- type Invitation
- func (i *Invitation) GetCreatedAt() time.Time
- func (i *Invitation) GetEmail() string
- func (i *Invitation) GetID() int64
- func (i *Invitation) GetInvitationTeamURL() string
- func (i *Invitation) GetInviter() *User
- func (i *Invitation) GetLogin() string
- func (i *Invitation) GetNodeID() string
- func (i *Invitation) GetRole() string
- func (i *Invitation) GetTeamCount() int
- func (i Invitation) String() string
- type Issue
- func (i *Issue) GetActiveLockReason() string
- func (i *Issue) GetAssignee() *User
- func (i *Issue) GetAuthorAssociation() string
- func (i *Issue) GetBody() string
- func (i *Issue) GetClosedAt() time.Time
- func (i *Issue) GetClosedBy() *User
- func (i *Issue) GetComments() int
- func (i *Issue) GetCommentsURL() string
- func (i *Issue) GetCreatedAt() time.Time
- func (i *Issue) GetEventsURL() string
- func (i *Issue) GetHTMLURL() string
- func (i *Issue) GetID() int64
- func (i *Issue) GetLabelsURL() string
- func (i *Issue) GetLocked() bool
- func (i *Issue) GetMilestone() *Milestone
- func (i *Issue) GetNodeID() string
- func (i *Issue) GetNumber() int
- func (i *Issue) GetPullRequestLinks() *PullRequestLinks
- func (i *Issue) GetReactions() *Reactions
- func (i *Issue) GetRepository() *Repository
- func (i *Issue) GetRepositoryURL() string
- func (i *Issue) GetState() string
- func (i *Issue) GetTitle() string
- func (i *Issue) GetURL() string
- func (i *Issue) GetUpdatedAt() time.Time
- func (i *Issue) GetUser() *User
- func (i Issue) IsPullRequest() bool
- func (i Issue) String() string
- type IssueComment
- func (i *IssueComment) GetAuthorAssociation() string
- func (i *IssueComment) GetBody() string
- func (i *IssueComment) GetCreatedAt() time.Time
- func (i *IssueComment) GetHTMLURL() string
- func (i *IssueComment) GetID() int64
- func (i *IssueComment) GetIssueURL() string
- func (i *IssueComment) GetNodeID() string
- func (i *IssueComment) GetReactions() *Reactions
- func (i *IssueComment) GetURL() string
- func (i *IssueComment) GetUpdatedAt() time.Time
- func (i *IssueComment) GetUser() *User
- func (i IssueComment) String() string
- type IssueCommentEvent
- func (i *IssueCommentEvent) GetAction() string
- func (i *IssueCommentEvent) GetChanges() *EditChange
- func (i *IssueCommentEvent) GetComment() *IssueComment
- func (i *IssueCommentEvent) GetInstallation() *Installation
- func (i *IssueCommentEvent) GetIssue() *Issue
- func (i *IssueCommentEvent) GetRepo() *Repository
- func (i *IssueCommentEvent) GetSender() *User
- type IssueEvent
- func (i *IssueEvent) GetActor() *User
- func (i *IssueEvent) GetAssignee() *User
- func (i *IssueEvent) GetAssigner() *User
- func (i *IssueEvent) GetCommitID() string
- func (i *IssueEvent) GetCreatedAt() time.Time
- func (i *IssueEvent) GetDismissedReview() *DismissedReview
- func (i *IssueEvent) GetEvent() string
- func (i *IssueEvent) GetID() int64
- func (i *IssueEvent) GetIssue() *Issue
- func (i *IssueEvent) GetLabel() *Label
- func (i *IssueEvent) GetLockReason() string
- func (i *IssueEvent) GetMilestone() *Milestone
- func (i *IssueEvent) GetProjectCard() *ProjectCard
- func (i *IssueEvent) GetRename() *Rename
- func (i *IssueEvent) GetURL() string
- type IssueListByRepoOptions
- type IssueListCommentsOptions
- type IssueListOptions
- type IssueRequest
- type IssueStats
- type IssuesEvent
- func (i *IssuesEvent) GetAction() string
- func (i *IssuesEvent) GetAssignee() *User
- func (i *IssuesEvent) GetChanges() *EditChange
- func (i *IssuesEvent) GetInstallation() *Installation
- func (i *IssuesEvent) GetIssue() *Issue
- func (i *IssuesEvent) GetLabel() *Label
- func (i *IssuesEvent) GetRepo() *Repository
- func (i *IssuesEvent) GetSender() *User
- type IssuesSearchResult
- type IssuesService
- func (s *IssuesService) AddAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error)
- func (s *IssuesService) AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error)
- func (s *IssuesService) Create(ctx context.Context, owner string, repo string, issue *IssueRequest) (*Issue, *Response, error)
- func (s *IssuesService) CreateComment(ctx context.Context, owner string, repo string, number int, ...) (*IssueComment, *Response, error)
- func (s *IssuesService) CreateLabel(ctx context.Context, owner string, repo string, label *Label) (*Label, *Response, error)
- func (s *IssuesService) CreateMilestone(ctx context.Context, owner string, repo string, milestone *Milestone) (*Milestone, *Response, error)
- func (s *IssuesService) DeleteComment(ctx context.Context, owner string, repo string, commentID int64) (*Response, error)
- func (s *IssuesService) DeleteLabel(ctx context.Context, owner string, repo string, name string) (*Response, error)
- func (s *IssuesService) DeleteMilestone(ctx context.Context, owner string, repo string, number int) (*Response, error)
- func (s *IssuesService) Edit(ctx context.Context, owner string, repo string, number int, ...) (*Issue, *Response, error)
- func (s *IssuesService) EditComment(ctx context.Context, owner string, repo string, commentID int64, ...) (*IssueComment, *Response, error)
- func (s *IssuesService) EditLabel(ctx context.Context, owner string, repo string, name string, label *Label) (*Label, *Response, error)
- func (s *IssuesService) EditMilestone(ctx context.Context, owner string, repo string, number int, ...) (*Milestone, *Response, error)
- func (s *IssuesService) Get(ctx context.Context, owner string, repo string, number int) (*Issue, *Response, error)
- func (s *IssuesService) GetComment(ctx context.Context, owner string, repo string, commentID int64) (*IssueComment, *Response, error)
- func (s *IssuesService) GetEvent(ctx context.Context, owner, repo string, id int64) (*IssueEvent, *Response, error)
- func (s *IssuesService) GetLabel(ctx context.Context, owner string, repo string, name string) (*Label, *Response, error)
- func (s *IssuesService) GetMilestone(ctx context.Context, owner string, repo string, number int) (*Milestone, *Response, error)
- func (s *IssuesService) IsAssignee(ctx context.Context, owner, repo, user string) (bool, *Response, error)
- func (s *IssuesService) List(ctx context.Context, all bool, opts *IssueListOptions) ([]*Issue, *Response, error)
- func (s *IssuesService) ListAssignees(ctx context.Context, owner, repo string, opts *ListOptions) ([]*User, *Response, error)
- func (s *IssuesService) ListByOrg(ctx context.Context, org string, opts *IssueListOptions) ([]*Issue, *Response, error)
- func (s *IssuesService) ListByRepo(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error)
- func (s *IssuesService) ListComments(ctx context.Context, owner string, repo string, number int, ...) ([]*IssueComment, *Response, error)
- func (s *IssuesService) ListIssueEvents(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*IssueEvent, *Response, error)
- func (s *IssuesService) ListIssueTimeline(ctx context.Context, owner, repo string, number int, opts *ListOptions) ([]*Timeline, *Response, error)
- func (s *IssuesService) ListLabels(ctx context.Context, owner string, repo string, opts *ListOptions) ([]*Label, *Response, error)
- func (s *IssuesService) ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error)
- func (s *IssuesService) ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*Label, *Response, error)
- func (s *IssuesService) ListMilestones(ctx context.Context, owner string, repo string, opts *MilestoneListOptions) ([]*Milestone, *Response, error)
- func (s *IssuesService) ListRepositoryEvents(ctx context.Context, owner, repo string, opts *ListOptions) ([]*IssueEvent, *Response, error)
- func (s *IssuesService) Lock(ctx context.Context, owner string, repo string, number int, ...) (*Response, error)
- func (s *IssuesService) RemoveAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*Issue, *Response, error)
- func (s *IssuesService) RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*Response, error)
- func (s *IssuesService) RemoveLabelsForIssue(ctx context.Context, owner string, repo string, number int) (*Response, error)
- func (s *IssuesService) ReplaceLabelsForIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*Label, *Response, error)
- func (s *IssuesService) Unlock(ctx context.Context, owner string, repo string, number int) (*Response, error)
- type Jobs
- type Key
- type Label
- type LabelEvent
- type LabelResult
- func (l *LabelResult) GetColor() string
- func (l *LabelResult) GetDefault() bool
- func (l *LabelResult) GetDescription() string
- func (l *LabelResult) GetID() int64
- func (l *LabelResult) GetName() string
- func (l *LabelResult) GetScore() *float64
- func (l *LabelResult) GetURL() string
- func (l LabelResult) String() string
- type LabelsSearchResult
- type LargeFile
- type License
- func (l *License) GetBody() string
- func (l *License) GetConditions() []string
- func (l *License) GetDescription() string
- func (l *License) GetFeatured() bool
- func (l *License) GetHTMLURL() string
- func (l *License) GetImplementation() string
- func (l *License) GetKey() string
- func (l *License) GetLimitations() []string
- func (l *License) GetName() string
- func (l *License) GetPermissions() []string
- func (l *License) GetSPDXID() string
- func (l *License) GetURL() string
- func (l License) String() string
- type LicensesService
- type ListCheckRunsOptions
- type ListCheckRunsResults
- type ListCheckSuiteOptions
- type ListCheckSuiteResults
- type ListCollaboratorOptions
- type ListCollaboratorsOptions
- type ListCommentReactionOptions
- type ListContributorsOptions
- type ListCursorOptions
- type ListMembersOptions
- type ListOptions
- type ListOrgMembershipsOptions
- type ListOutsideCollaboratorsOptions
- type ListWorkflowJobsOptions
- type ListWorkflowRunsOptions
- type LockIssueOptions
- type MarkdownOptions
- type MarketplacePendingChange
- type MarketplacePlan
- func (m *MarketplacePlan) GetAccountsURL() string
- func (m *MarketplacePlan) GetBullets() []string
- func (m *MarketplacePlan) GetDescription() string
- func (m *MarketplacePlan) GetHasFreeTrial() bool
- func (m *MarketplacePlan) GetID() int64
- func (m *MarketplacePlan) GetMonthlyPriceInCents() int
- func (m *MarketplacePlan) GetName() string
- func (m *MarketplacePlan) GetPriceModel() string
- func (m *MarketplacePlan) GetState() string
- func (m *MarketplacePlan) GetURL() string
- func (m *MarketplacePlan) GetUnitName() string
- func (m *MarketplacePlan) GetYearlyPriceInCents() int
- type MarketplacePlanAccount
- func (m *MarketplacePlanAccount) GetEmail() string
- func (m *MarketplacePlanAccount) GetID() int64
- func (m *MarketplacePlanAccount) GetLogin() string
- func (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange
- func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase
- func (m *MarketplacePlanAccount) GetNodeID() string
- func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string
- func (m *MarketplacePlanAccount) GetType() string
- func (m *MarketplacePlanAccount) GetURL() string
- type MarketplacePurchase
- func (m *MarketplacePurchase) GetAccount() *MarketplacePlanAccount
- func (m *MarketplacePurchase) GetBillingCycle() string
- func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp
- func (m *MarketplacePurchase) GetNextBillingDate() Timestamp
- func (m *MarketplacePurchase) GetOnFreeTrial() bool
- func (m *MarketplacePurchase) GetPlan() *MarketplacePlan
- func (m *MarketplacePurchase) GetUnitCount() int
- type MarketplacePurchaseEvent
- func (m *MarketplacePurchaseEvent) GetAction() string
- func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp
- func (m *MarketplacePurchaseEvent) GetInstallation() *Installation
- func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase
- func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase
- func (m *MarketplacePurchaseEvent) GetSender() *User
- type MarketplaceService
- func (s *MarketplaceService) ListMarketplacePurchasesForUser(ctx context.Context, opts *ListOptions) ([]*MarketplacePurchase, *Response, error)
- func (s *MarketplaceService) ListPlanAccountsForAccount(ctx context.Context, accountID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error)
- func (s *MarketplaceService) ListPlanAccountsForPlan(ctx context.Context, planID int64, opts *ListOptions) ([]*MarketplacePlanAccount, *Response, error)
- func (s *MarketplaceService) ListPlans(ctx context.Context, opts *ListOptions) ([]*MarketplacePlan, *Response, error)
- type Match
- type MemberEvent
- type Membership
- type MembershipEvent
- func (m *MembershipEvent) GetAction() string
- func (m *MembershipEvent) GetInstallation() *Installation
- func (m *MembershipEvent) GetMember() *User
- func (m *MembershipEvent) GetOrg() *Organization
- func (m *MembershipEvent) GetScope() string
- func (m *MembershipEvent) GetSender() *User
- func (m *MembershipEvent) GetTeam() *Team
- type MetaEvent
- type Metric
- type Migration
- func (m *Migration) GetCreatedAt() string
- func (m *Migration) GetExcludeAttachments() bool
- func (m *Migration) GetGUID() string
- func (m *Migration) GetID() int64
- func (m *Migration) GetLockRepositories() bool
- func (m *Migration) GetState() string
- func (m *Migration) GetURL() string
- func (m *Migration) GetUpdatedAt() string
- func (m Migration) String() string
- type MigrationOptions
- type MigrationService
- func (s *MigrationService) CancelImport(ctx context.Context, owner, repo string) (*Response, error)
- func (s *MigrationService) CommitAuthors(ctx context.Context, owner, repo string) ([]*SourceImportAuthor, *Response, error)
- func (s *MigrationService) DeleteMigration(ctx context.Context, org string, id int64) (*Response, error)
- func (s *MigrationService) DeleteUserMigration(ctx context.Context, id int64) (*Response, error)
- func (s *MigrationService) ImportProgress(ctx context.Context, owner, repo string) (*Import, *Response, error)
- func (s *MigrationService) LargeFiles(ctx context.Context, owner, repo string) ([]*LargeFile, *Response, error)
- func (s *MigrationService) ListMigrations(ctx context.Context, org string, opts *ListOptions) ([]*Migration, *Response, error)
- func (s *MigrationService) ListUserMigrations(ctx context.Context) ([]*UserMigration, *Response, error)
- func (s *MigrationService) MapCommitAuthor(ctx context.Context, owner, repo string, id int64, author *SourceImportAuthor) (*SourceImportAuthor, *Response, error)
- func (s *MigrationService) MigrationArchiveURL(ctx context.Context, org string, id int64) (url string, err error)
- func (s *MigrationService) Migrat