Documentation ¶
Overview ¶
Package github provides a client for using the GitHub API.
Usage:
import "github.com/google/go-github/github"
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 ¶
- Constants
- 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, secretKey []byte) (payload []byte, err error)
- func WebHookType(r *http.Request) string
- type APIMeta
- type AbuseRateLimitError
- type AcceptedError
- 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, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsForOrganization(ctx context.Context, org string, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListFeeds(ctx context.Context) (*Feeds, *Response, error)
- func (s *ActivityService) ListIssueEventsForRepository(ctx context.Context, owner, repo string, opt *ListOptions) ([]*IssueEvent, *Response, error)
- func (s *ActivityService) ListNotifications(ctx context.Context, opt *NotificationListOptions) ([]*Notification, *Response, error)
- func (s *ActivityService) ListRepositoryEvents(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListRepositoryNotifications(ctx context.Context, owner, repo string, opt *NotificationListOptions) ([]*Notification, *Response, error)
- func (s *ActivityService) ListStargazers(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Stargazer, *Response, error)
- func (s *ActivityService) ListStarred(ctx context.Context, user string, opt *ActivityListStarredOptions) ([]*StarredRepository, *Response, error)
- func (s *ActivityService) ListUserEventsForOrganization(ctx context.Context, org, user string, opt *ListOptions) ([]*Event, *Response, error)
- func (s *ActivityService) ListWatched(ctx context.Context, user string, opt *ListOptions) ([]*Repository, *Response, error)
- func (s *ActivityService) ListWatchers(ctx context.Context, owner, repo string, opt *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) GetAdminStats(ctx context.Context) (*AdminStats, *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 App
- func (a *App) GetCreatedAt() time.Time
- 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) GetUpdatedAt() time.Time
- type AppsService
- func (s *AppsService) AddRepository(ctx context.Context, instID, repoID int64) (*Repository, *Response, error)
- func (s *AppsService) CreateInstallationToken(ctx context.Context, id int64) (*InstallationToken, *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) 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, opt *ListOptions) ([]*Installation, *Response, error)
- func (s *AppsService) ListRepos(ctx context.Context, opt *ListOptions) ([]*Repository, *Response, error)
- func (s *AppsService) ListUserInstallations(ctx context.Context, opt *ListOptions) ([]*Installation, *Response, error)
- func (s *AppsService) ListUserRepos(ctx context.Context, id int64, opt *ListOptions) ([]*Repository, *Response, error)
- func (s *AppsService) RemoveRepository(ctx context.Context, instID, repoID int64) (*Response, error)
- 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 string, token string) (*Authorization, *Response, error)
- func (s *AuthorizationsService) Create(ctx context.Context, auth *AuthorizationRequest) (*Authorization, *Response, error)
- func (s *AuthorizationsService) CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error)
- func (s *AuthorizationsService) Delete(ctx context.Context, id int64) (*Response, error)
- func (s *AuthorizationsService) DeleteGrant(ctx context.Context, id int64) (*Response, error)
- func (s *AuthorizationsService) DeleteImpersonation(ctx context.Context, username string) (*Response, error)
- func (s *AuthorizationsService) Edit(ctx context.Context, id int64, auth *AuthorizationUpdateRequest) (*Authorization, *Response, error)
- func (s *AuthorizationsService) Get(ctx context.Context, id int64) (*Authorization, *Response, error)
- func (s *AuthorizationsService) GetGrant(ctx context.Context, id int64) (*Grant, *Response, error)
- func (s *AuthorizationsService) GetOrCreateForApp(ctx context.Context, clientID string, auth *AuthorizationRequest) (*Authorization, *Response, error)
- func (s *AuthorizationsService) List(ctx context.Context, opt *ListOptions) ([]*Authorization, *Response, error)
- func (s *AuthorizationsService) ListGrants(ctx context.Context, opt *ListOptions) ([]*Grant, *Response, error)
- func (s *AuthorizationsService) Reset(ctx context.Context, clientID string, token string) (*Authorization, *Response, error)
- func (s *AuthorizationsService) Revoke(ctx context.Context, clientID string, token string) (*Response, error)
- type AutoTriggerCheck
- type BasicAuthTransport
- type Blob
- type Branch
- 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) 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) GetOutput() *CheckRunOutput
- func (c *CheckRun) GetStartedAt() Timestamp
- func (c *CheckRun) GetStatus() string
- func (c *CheckRun) GetURL() string
- func (c CheckRun) String() string
- type CheckRunAnnotation
- func (c *CheckRunAnnotation) GetBlobHRef() string
- func (c *CheckRunAnnotation) GetEndLine() int
- func (c *CheckRunAnnotation) GetFileName() string
- func (c *CheckRunAnnotation) GetMessage() string
- func (c *CheckRunAnnotation) GetRawDetails() string
- func (c *CheckRunAnnotation) GetStartLine() int
- func (c *CheckRunAnnotation) GetTitle() string
- func (c *CheckRunAnnotation) GetWarningLevel() string
- type CheckRunEvent
- 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) GetHeadSHA() string
- func (c *CheckSuite) GetID() int64
- 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, opt CreateCheckRunOptions) (*CheckRun, *Response, error)
- func (s *ChecksService) CreateCheckSuite(ctx context.Context, owner, repo string, opt 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, opt *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, opt *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)
- func (s *ChecksService) ListCheckSuitesForRef(ctx context.Context, owner, repo, ref string, opt *ListCheckSuiteOptions) (*ListCheckSuiteResults, *Response, error)
- func (s *ChecksService) RequestCheckSuite(ctx context.Context, owner, repo string, opt RequestCheckSuiteOptions) (*Response, error)
- func (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, repo string, opt 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, opt *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 CodeSearchResult
- 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) 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) 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 DeleteEvent
- 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) GetPayload() 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) GetID() int64
- func (d *DeploymentStatus) GetNodeID() string
- func (d *DeploymentStatus) GetRepositoryURL() string
- func (d *DeploymentStatus) GetState() string
- func (d *DeploymentStatus) GetTargetURL() string
- func (d *DeploymentStatus) GetUpdatedAt() Timestamp
- type DeploymentStatusEvent
- type DeploymentStatusRequest
- 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) GetURL() string
- func (d *DiscussionComment) GetUpdatedAt() Timestamp
- func (c DiscussionComment) String() string
- type DiscussionCommentListOptions
- type DiscussionListOptions
- type DismissalRestrictions
- type DismissalRestrictionsRequest
- type DraftReviewComment
- type EditChange
- 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, opt *GistListOptions) ([]*Gist, *Response, error)
- func (s *GistsService) ListAll(ctx context.Context, opt *GistListOptions) ([]*Gist, *Response, error)
- func (s *GistsService) ListComments(ctx context.Context, gistID string, opt *ListOptions) ([]*GistComment, *Response, error)
- func (s *GistsService) ListCommits(ctx context.Context, id string, opt *ListOptions) ([]*GistCommit, *Response, error)
- func (s *GistsService) ListForks(ctx context.Context, id string) ([]*GistFork, *Response, error)
- func (s *GistsService) ListStarred(ctx context.Context, opt *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 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) GetRefs(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) ListRefs(ctx context.Context, owner, repo string, opt *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 Hook
- type HookStats
- type Hovercard
- type HovercardOptions
- 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
- type InstallationRepositoriesEvent
- type InstallationToken
- 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) 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) 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) 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) 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) 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, opt *IssueListOptions) ([]*Issue, *Response, error)
- func (s *IssuesService) ListAssignees(ctx context.Context, owner, repo string, opt *ListOptions) ([]*User, *Response, error)
- func (s *IssuesService) ListByOrg(ctx context.Context, org string, opt *IssueListOptions) ([]*Issue, *Response, error)
- func (s *IssuesService) ListByRepo(ctx context.Context, owner string, repo string, opt *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, opt *ListOptions) ([]*IssueEvent, *Response, error)
- func (s *IssuesService) ListIssueTimeline(ctx context.Context, owner, repo string, number int, opt *ListOptions) ([]*Timeline, *Response, error)
- func (s *IssuesService) ListLabels(ctx context.Context, owner string, repo string, opt *ListOptions) ([]*Label, *Response, error)
- func (s *IssuesService) ListLabelsByIssue(ctx context.Context, owner string, repo string, number int, opt *ListOptions) ([]*Label, *Response, error)
- func (s *IssuesService) ListLabelsForMilestone(ctx context.Context, owner string, repo string, number int, opt *ListOptions) ([]*Label, *Response, error)
- func (s *IssuesService) ListMilestones(ctx context.Context, owner string, repo string, opt *MilestoneListOptions) ([]*Milestone, *Response, error)
- func (s *IssuesService) ListRepositoryEvents(ctx context.Context, owner, repo string, opt *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 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 ListCollaboratorsOptions
- type ListContributorsOptions
- type ListMembersOptions
- type ListOptions
- type ListOrgMembershipsOptions
- type ListOutsideCollaboratorsOptions
- type LockIssueOptions
- type MarkdownOptions
- type MarketplacePlan
- func (m *MarketplacePlan) GetAccountsURL() string
- func (m *MarketplacePlan) GetBullets() []string
- func (m *MarketplacePlan) GetDescription() string
- func (m *MarketplacePlan) GetID() int64
- func (m *MarketplacePlan) GetMonthlyPriceInCents() int
- func (m *MarketplacePlan) GetName() string
- func (m *MarketplacePlan) GetPriceModel() 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) GetMarketplacePurchase() *MarketplacePurchase
- func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string
- func (m *MarketplacePlanAccount) GetType() string
- func (m *MarketplacePlanAccount) GetURL() string
- type MarketplacePurchase
- 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, opt *ListOptions) ([]*MarketplacePurchase, *Response, error)
- func (s *MarketplaceService) ListPlanAccountsForAccount(ctx context.Context, accountID int64, opt *ListOptions) ([]*MarketplacePlanAccount, *Response, error)
- func (s *MarketplaceService) ListPlanAccountsForPlan(ctx context.Context, planID int64, opt *ListOptions) ([]*MarketplacePlanAccount, *Response, error)
- func (s *MarketplaceService) ListPlans(ctx context.Context, opt *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 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) ([]*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) MigrationStatus(ctx context.Context, org string, id int64) (*Migration, *Response, error)
- func (s *MigrationService) SetLFSPreference(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)
- func (s *MigrationService) StartImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)
- func (s *MigrationService) StartMigration(ctx context.Context, org string, repos []string, opt *MigrationOptions) (*Migration, *Response, error)
- func (s *MigrationService) StartUserMigration(ctx context.Context, repos []string, opt *UserMigrationOptions) (*UserMigration, *Response, error)
- func (s *MigrationService) UnlockRepo(ctx context.Context, org string, id int64, repo string) (*Response, error)
- func (s *MigrationService) UnlockUserRepo(ctx context.Context, id int64, repo string) (*Response, error)
- func (s *MigrationService) UpdateImport(ctx context.Context, owner, repo string, in *Import) (*Import, *Response, error)
- func (s *MigrationService) UserMigrationArchiveURL(ctx context.Context, id int64) (string, error)
- func (s *MigrationService) UserMigrationStatus(ctx context.Context, id int64) (*UserMigration, *Response, error)
- type Milestone
- func (m *Milestone) GetClosedAt() time.Time
- func (m *Milestone) GetClosedIssues() int
- func (m *Milestone) GetCreatedAt() time.Time
- func (m *Milestone) GetCreator() *User
- func (m *Milestone) GetDescription() string
- func (m *Milestone) GetDueOn() time.Time
- func (m *Milestone) GetHTMLURL() string
- func (m *Milestone) GetID() int64
- func (m *Milestone) GetLabelsURL() string
- func (m *Milestone) GetNodeID() string
- func (m *Milestone) GetNumber() int
- func (m *Milestone) GetOpenIssues() int
- func (m *Milestone) GetState() string
- func (m *Milestone) GetTitle() string
- func (m *Milestone) GetURL() string
- func (m *Milestone) GetUpdatedAt() time.Time
- func (m Milestone) String() string
- type MilestoneEvent
- func (m *MilestoneEvent) GetAction() string
- func (m *MilestoneEvent) GetChanges() *EditChange
- func (m *MilestoneEvent) GetInstallation() *Installation
- func (m *MilestoneEvent) GetMilestone() *Milestone
- func (m *MilestoneEvent) GetOrg() *Organization
- func (m *MilestoneEvent) GetRepo() *Repository
- func (m *MilestoneEvent) GetSender() *User
- type MilestoneListOptions
- type MilestoneStats
- type NewPullRequest
- type NewTeam
- type Notification
- func (n *Notification) GetID() string
- func (n *Notification) GetLastReadAt() time.Time
- func (n *Notification) GetReason() string
- func (n *Notification) GetRepository() *Repository
- func (n *Notification) GetSubject() *NotificationSubject
- func (n *Notification) GetURL() string
- func (n *Notification) GetUnread() bool
- func (n *Notification) GetUpdatedAt() time.Time
- type NotificationListOptions
- type NotificationSubject
- type OrgBlockEvent
- type OrgStats
- type Organization
- func (o *Organization) GetAvatarURL() string
- func (o *Organization) GetBillingEmail() string
- func (o *Organization) GetBlog() string
- func (o *Organization) GetCollaborators() int
- func (o *Organization) GetCompany() string
- func (o *Organization) GetCreatedAt() time.Time
- func (o *Organization) GetDescription() string
- func (o *Organization) GetDiskUsage() int
- func (o *Organization) GetEmail() string
- func (o *Organization) GetEventsURL() string
- func (o *Organization) GetFollowers() int
- func (o *Organization) GetFollowing() int
- func (o *Organization) GetHTMLURL() string
- func (o *Organization) GetHooksURL() string
- func (o *Organization) GetID() int64
- func (o *Organization) GetIssuesURL() string
- func (o *Organization) GetLocation() string
- func (o *Organization) GetLogin() string
- func (o *Organization) GetMembersURL() string
- func (o *Organization) GetName() string
- func (o *Organization) GetNodeID() string
- func (o *Organization) GetOwnedPrivateRepos() int
- func (o *Organization) GetPlan() *Plan
- func (o *Organization) GetPrivateGists() int
- func (o *Organization) GetPublicGists() int
- func (o *Organization) GetPublicMembersURL() string
- func (o *Organization) GetPublicRepos() int
- func (o *Organization) GetReposURL() string
- func (o *Organization) GetTotalPrivateRepos() int
- func (o *Organization) GetType() string
- func (o *Organization) GetURL() string
- func (o *Organization) GetUpdatedAt() time.Time
- func (o Organization) String() string
- type OrganizationEvent
- func (o *OrganizationEvent) GetAction() string
- func (o *OrganizationEvent) GetInstallation() *Installation
- func (o *OrganizationEvent) GetInvitation() *Invitation
- func (o *OrganizationEvent) GetMembership() *Membership
- func (o *OrganizationEvent) GetOrganization() *Organization
- func (o *OrganizationEvent) GetSender() *User
- type OrganizationsListOptions
- type OrganizationsService
- func (s *OrganizationsService) BlockUser(ctx context.Context, org string, user string) (*Response, error)
- func (s *OrganizationsService) ConcealMembership(ctx context.Context, org, user string) (*Response, error)
- func (s *OrganizationsService) ConvertMemberToOutsideCollaborator(ctx context.Context, org string, user string) (*Response, error)
- func (s *OrganizationsService) CreateHook(ctx context.Context, org string, hook *Hook) (*Hook, *Response, error)
- func (s *OrganizationsService) CreateOrgInvitation(ctx context.Context, org string, opt *CreateOrgInvitationOptions) (*Invitation, *Response, error)
- func (s *OrganizationsService) CreateProject(ctx context.Context, org string, opt *ProjectOptions) (*Project, *Response, error)
- func (s *OrganizationsService) DeleteHook(ctx context.Context, org string, id int64) (*Response, error)
- func (s *OrganizationsService) Edit(ctx context.Context, name string, org *Organization) (*Organization, *Response, error)
- func (s *OrganizationsService) EditHook(ctx context.Context, org string, id int64, hook *Hook) (*Hook, *Response, error)
- func (s *OrganizationsService) EditOrgMembership(ctx context.Context, user, org string, membership *Membership) (*Membership, *Response, error)
- func (s *OrganizationsService) Get(ctx context.Context, org string) (*Organization, *Response, error)
- func (s *OrganizationsService) GetByID(ctx context.Context, id int64) (*Organization, *Response, error)
- func (s *OrganizationsService) GetHook(ctx context.Context, org string, id int64) (*Hook, *Response, error)
- func (s *OrganizationsService) GetOrgMembership(ctx context.Context, user, org string) (*Membership, *Response, error)
- func (s *OrganizationsService) IsBlocked(ctx context.Context, org string, user string) (bool, *Response, error)
- func (s *OrganizationsService) IsMember(ctx context.Context, org, user string) (bool, *Response, error)
- func (s *OrganizationsService) IsPublicMember(ctx context.Context, org, user string) (bool, *Response, error)
- func (s *OrganizationsService) List(ctx context.Context, user string, opt *ListOptions) ([]*Organization, *Response, error)
- func (s *OrganizationsService) ListAll(ctx context.Context, opt *OrganizationsListOptions) ([]*Organization, *Response, error)
- func (s *OrganizationsService) ListBlockedUsers(ctx context.Context, org string, opt *ListOptions) ([]*User, *Response, error)
- func (s *OrganizationsService) ListHooks(ctx context.Context, org string, opt *ListOptions) ([]*Hook, *Response, error)
- func (s *OrganizationsService) ListMembers(ctx context.Context, org string, opt *ListMembersOptions) ([]*User, *Response, error)
- func (s *OrganizationsService) ListOrgInvitationTeams(ctx context.Context, org, invitationID string, opt *ListOptions) ([]*Team, *Response, error)
- func (s *OrganizationsService) ListOrgMemberships(ctx context.Context, opt *ListOrgMembershipsOptions) ([]*Membership, *Response, error)
- func (s *OrganizationsService) ListOutsideCollaborators(ctx context.Context, org string, opt *ListOutsideCollaboratorsOptions) ([]*User, *Response, error)
- func (s *OrganizationsService) ListPendingOrgInvitations(ctx context.Context, org string, opt *ListOptions) ([]*Invitation, *Response, error)
- func (s *OrganizationsService) ListProjects(ctx context.Context, org string, opt *ProjectListOptions) ([]*Project, *Response, error)
- func (s *OrganizationsService) PingHook(ctx context.Context, org string, id int64) (*Response, error)
- func (s *OrganizationsService) PublicizeMembership(ctx context.Context, org, user string) (*Response, error)
- func (s *OrganizationsService) RemoveMember(ctx context.Context, org, user string) (*Response, error)
- func (s *OrganizationsService) RemoveOrgMembership(ctx context.Context, user, org string) (*Response, error)
- func (s *OrganizationsService) RemoveOutsideCollaborator(ctx context.Context, org string, user string) (*Response, error)
- func (s *OrganizationsService) UnblockUser(ctx context.Context, org string, user string) (*Response, error)
- type Page
- type PageBuildEvent
- type PageStats
- type Pages
- type PagesBuild
- func (p *PagesBuild) GetCommit() string
- func (p *PagesBuild) GetCreatedAt() Timestamp
- func (p *PagesBuild) GetDuration() int
- func (p *PagesBuild) GetError() *PagesError
- func (p *PagesBuild) GetPusher() *User
- func (p *PagesBuild) GetStatus() string
- func (p *PagesBuild) GetURL() string
- func (p *PagesBuild) GetUpdatedAt() Timestamp
- type PagesError
- type PingEvent
- type Plan
- type PreReceiveHook
- type PreferenceList
- type Project
- func (p *Project) GetBody() string
- func (p *Project) GetCreatedAt() Timestamp
- func (p *Project) GetCreator() *User
- func (p *Project) GetID() int64
- func (p *Project) GetName() string
- func (p *Project) GetNodeID() string
- func (p *Project) GetNumber() int
- func (p *Project) GetOwnerURL() string
- func (p *Project) GetURL() string
- func (p *Project) GetUpdatedAt() Timestamp
- func (p Project) String() string
- type ProjectCard
- func (p *ProjectCard) GetArchived() bool
- func (p *ProjectCard) GetColumnID() int64
- func (p *ProjectCard) GetColumnURL() string
- func (p *ProjectCard) GetContentURL() string
- func (p *ProjectCard) GetCreatedAt() Timestamp
- func (p *ProjectCard) GetCreator() *User
- func (p *ProjectCard) GetID() int64
- func (p *ProjectCard) GetNodeID() string
- func (p *ProjectCard) GetNote() string
- func (p *ProjectCard) GetURL() string
- func (p *ProjectCard) GetUpdatedAt() Timestamp
- type ProjectCardChange
- type ProjectCardEvent
- func (p *ProjectCardEvent) GetAction() string
- func (p *ProjectCardEvent) GetAfterID() int64
- func (p *ProjectCardEvent) GetChanges() *ProjectCardChange
- func (p *ProjectCardEvent) GetInstallation() *Installation
- func (p *ProjectCardEvent) GetOrg() *Organization
- func (p *ProjectCardEvent) GetProjectCard() *ProjectCard
- func (p *ProjectCardEvent) GetRepo() *Repository
- func (p *ProjectCardEvent) GetSender() *User
- type ProjectCardListOptions
- type ProjectCardMoveOptions
- type ProjectCardOptions
- type ProjectChange
- type ProjectColumn
- type ProjectColumnChange
- type ProjectColumnEvent
- func (p *ProjectColumnEvent) GetAction() string
- func (p *ProjectColumnEvent) GetAfterID() int64
- func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange
- func (p *ProjectColumnEvent) GetInstallation() *Installation
- func (p *ProjectColumnEvent) GetOrg() *Organization
- func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn
- func (p *ProjectColumnEvent) GetRepo() *Repository
- func (p *ProjectColumnEvent) GetSender() *User
- type ProjectColumnMoveOptions
- type ProjectColumnOptions
- type ProjectEvent
- func (p *ProjectEvent) GetAction() string
- func (p *ProjectEvent) GetChanges() *ProjectChange
- func (p *ProjectEvent) GetInstallation() *Installation
- func (p *ProjectEvent) GetOrg() *Organization
- func (p *ProjectEvent) GetProject() *Project
- func (p *ProjectEvent) GetRepo() *Repository
- func (p *ProjectEvent) GetSender() *User
- type ProjectListOptions
- type ProjectOptions
- type ProjectsService
- func (s *ProjectsService) CreateProjectCard(ctx context.Context, columnID int64, opt *ProjectCardOptions) (*ProjectCard, *Response, error)
- func (s *ProjectsService) CreateProjectColumn(ctx context.Context, projectID int64, opt *ProjectColumnOptions) (*ProjectColumn, *Response, error)
- func (s *ProjectsService) DeleteProject(ctx context.Context, id int64) (*Response, error)
- func (s *ProjectsService) DeleteProjectCard(ctx context.Context, cardID int64) (*Response, error)
- func (s *ProjectsService) DeleteProjectColumn(ctx context.Context, columnID int64) (*Response, error)
- func (s *ProjectsService) GetProject(ctx context.Context, id int64) (*Project, *Response, error)
- func (s *ProjectsService) GetProjectCard(ctx context.Context, columnID int64) (*ProjectCard, *Response, error)
- func (s *ProjectsService) GetProjectColumn(ctx context.Context, id int64) (*ProjectColumn, *Response, error)
- func (s *ProjectsService) ListProjectCards(ctx context.Context, columnID int64, opt *ProjectCardListOptions) ([]*ProjectCard, *Response, error)
- func (s *ProjectsService) ListProjectColumns(ctx context.Context, projectID int64, opt *ListOptions) ([]*ProjectColumn, *Response, error)
- func (s *ProjectsService) MoveProjectCard(ctx context.Context, cardID int64, opt *ProjectCardMoveOptions) (*Response, error)
- func (s *ProjectsService) MoveProjectColumn(ctx context.Context, columnID int64, opt *ProjectColumnMoveOptions) (*Response, error)
- func (s *ProjectsService) UpdateProject(ctx context.Context, id int64, opt *ProjectOptions) (*Project, *Response, error)
- func (s *ProjectsService) UpdateProjectCard(ctx context.Context, cardID int64, opt *ProjectCardOptions) (*ProjectCard, *Response, error)
- func (s *ProjectsService) UpdateProjectColumn(ctx context.Context, columnID int64, opt *ProjectColumnOptions) (*ProjectColumn, *Response, error)
- type Protection
- type ProtectionRequest
- type PublicEvent
- type PullRequest
- func (p *PullRequest) GetActiveLockReason() string
- func (p *PullRequest) GetAdditions() int
- func (p *PullRequest) GetAssignee() *User
- func (p *PullRequest) GetAuthorAssociation() string
- func (p *PullRequest) GetBase() *PullRequestBranch
- func (p *PullRequest) GetBody() string
- func (p *PullRequest) GetChangedFiles() int
- func (p *PullRequest) GetClosedAt() time.Time
- func (p *PullRequest) GetComments() int
- func (p *PullRequest) GetCommentsURL() string
- func (p *PullRequest) GetCommits() int
- func (p *PullRequest) GetCommitsURL() string
- func (p *PullRequest) GetCreatedAt() time.Time
- func (p *PullRequest) GetDeletions() int
- func (p *PullRequest) GetDiffURL() string
- func (p *PullRequest) GetHTMLURL() string
- func (p *PullRequest) GetHead() *PullRequestBranch
- func (p *PullRequest) GetID() int64
- func (p *PullRequest) GetIssueURL() string
- func (p *PullRequest) GetMaintainerCanModify() bool
- func (p *PullRequest) GetMergeCommitSHA() string
- func (p *PullRequest) GetMergeable() bool
- func (p *PullRequest) GetMergeableState() string
- func (p *PullRequest) GetMerged() bool
- func (p *PullRequest) GetMergedAt() time.Time
- func (p *PullRequest) GetMergedBy() *User
- func (p *PullRequest) GetMilestone() *Milestone
- func (p *PullRequest) GetNodeID() string
- func (p *PullRequest) GetNumber() int
- func (p *PullRequest) GetPatchURL() string
- func (p *PullRequest) GetReviewCommentURL() string
- func (p *PullRequest) GetReviewCommentsURL() string
- func (p *PullRequest) GetState() string
- func (p *PullRequest) GetStatusesURL() string
- func (p *PullRequest) GetTitle() string
- func (p *PullRequest) GetURL() string
- func (p *PullRequest) GetUpdatedAt() time.Time
- func (p *PullRequest) GetUser() *User
- func (p PullRequest) String() string
- type PullRequestBranch
- type PullRequestComment
- func (p *PullRequestComment) GetAuthorAssociation() string
- func (p *PullRequestComment) GetBody() string
- func (p *PullRequestComment) GetCommitID() string
- func (p *PullRequestComment) GetCreatedAt() time.Time
- func (p *PullRequestComment) GetDiffHunk() string
- func (p *PullRequestComment) GetHTMLURL() string
- func (p *PullRequestComment) GetID() int64
- func (p *PullRequestComment) GetInReplyTo() int64
- func (p *PullRequestComment) GetOriginalCommitID() string
- func (p *PullRequestComment) GetOriginalPosition() int
- func (p *PullRequestComment) GetPath() string
- func (p *PullRequestComment) GetPosition() int
- func (p *PullRequestComment) GetPullRequestReviewID() int64
- func (p *PullRequestComment) GetPullRequestURL() string
- func (p *PullRequestComment) GetReactions() *Reactions
- func (p *PullRequestComment) GetURL() string
- func (p *PullRequestComment) GetUpdatedAt() time.Time
- func (p *PullRequestComment) GetUser() *User
- func (p PullRequestComment) String() string
- type PullRequestEvent
- func (p *PullRequestEvent) GetAction() string
- func (p *PullRequestEvent) GetChanges() *EditChange
- func (p *PullRequestEvent) GetInstallation() *Installation
- func (p *PullRequestEvent) GetLabel() *Label
- func (p *PullRequestEvent) GetNumber() int
- func (p *PullRequestEvent) GetPullRequest() *PullRequest
- func (p *PullRequestEvent) GetRepo() *Repository
- func (p *PullRequestEvent) GetRequestedReviewer() *User
- func (p *PullRequestEvent) GetSender() *User
- type PullRequestLinks
- type PullRequestListCommentsOptions
- type PullRequestListOptions
- type PullRequestMergeResult
- type PullRequestOptions
- type PullRequestReview
- func (p *PullRequestReview) GetBody() string
- func (p *PullRequestReview) GetCommitID() string
- func (p *PullRequestReview) GetHTMLURL() string
- func (p *PullRequestReview) GetID() int64
- func (p *PullRequestReview) GetPullRequestURL() string
- func (p *PullRequestReview) GetState() string
- func (p *PullRequestReview) GetSubmittedAt() time.Time
- func (p *PullRequestReview) GetUser() *User
- func (p PullRequestReview) String() string
- type PullRequestReviewCommentEvent
- func (p *PullRequestReviewCommentEvent) GetAction() string
- func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange
- func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment
- func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation
- func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest
- func (p *PullRequestReviewCommentEvent) GetRepo() *Repository
- func (p *PullRequestReviewCommentEvent) GetSender() *User
- type PullRequestReviewDismissalRequest
- type PullRequestReviewEvent
- func (p *PullRequestReviewEvent) GetAction() string
- func (p *PullRequestReviewEvent) GetInstallation() *Installation
- func (p *PullRequestReviewEvent) GetOrganization() *Organization
- func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest
- func (p *PullRequestReviewEvent) GetRepo() *Repository
- func (p *PullRequestReviewEvent) GetReview() *PullRequestReview
- func (p *PullRequestReviewEvent) GetSender() *User
- type PullRequestReviewRequest
- type PullRequestReviewsEnforcement
- type PullRequestReviewsEnforcementRequest
- type PullRequestReviewsEnforcementUpdate
- type PullRequestsService
- func (s *PullRequestsService) Create(ctx context.Context, owner string, repo string, pull *NewPullRequest) (*PullRequest, *Response, error)
- func (s *PullRequestsService) CreateComment(ctx context.Context, owner string, repo string, number int, ...) (*PullRequestComment, *Response, error)
- func (s *PullRequestsService) CreateCommentInReplyTo(ctx context.Context, owner string, repo string, number int, body string, ...) (*PullRequestComment, *Response, error)
- func (s *PullRequestsService) CreateReview(ctx context.Context, owner, repo string, number int, ...) (*PullRequestReview, *Response, error)
- func (s *PullRequestsService) DeleteComment(ctx context.Context, owner string, repo string, commentID int64) (*Response, error)
- func (s *PullRequestsService) DeletePendingReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error)
- func (s *PullRequestsService) DismissReview(ctx context.Context, owner, repo string, number int, reviewID int64, ...) (*PullRequestReview, *Response, error)
- func (s *PullRequestsService) Edit(ctx context.Context, owner string, repo string, number int, pull *PullRequest) (*PullRequest, *Response, error)
- func (s *PullRequestsService) EditComment(ctx context.Context, owner string, repo string, commentID int64, ...) (*PullRequestComment, *Response, error)
- func (s *PullRequestsService) Get(ctx context.Context, owner string, repo string, number int) (*PullRequest, *Response, error)
- func (s *PullRequestsService) GetComment(ctx context.Context, owner string, repo string, commentID int64) (*PullRequestComment, *Response, error)
- func (s *PullRequestsService) GetRaw(ctx context.Context, owner string, repo string, number int, opt RawOptions) (string, *Response, error)
- func (s *PullRequestsService) GetReview(ctx context.Context, owner, repo string, number int, reviewID int64) (*PullRequestReview, *Response, error)
- func (s *PullRequestsService) IsMerged(ctx context.Context, owner string, repo string, number int) (bool, *Response, error)
- func (s *PullRequestsService) List(ctx context.Context, owner string, repo string, opt *PullRequestListOptions) ([]*PullRequest, *Response, error)
- func (s *PullRequestsService) ListComments(ctx context.Context, owner string, repo string, number int, ...) ([]*PullRequestComment, *Response, error)
- func (s *PullRequestsService) ListCommits(ctx context.Context, owner string, repo string, number int, opt *ListOptions) ([]*RepositoryCommit, *Response, error)
- func (s *PullRequestsService) ListFiles(ctx context.Context, owner string, repo string, number int, opt *ListOptions) ([]*CommitFile, *Response, error)
- func (s *PullRequestsService) ListReviewComments(ctx context.Context, owner, repo string, number int, reviewID int64, ...) ([]*PullRequestComment, *Response, error)
- func (s *PullRequestsService) ListReviewers(ctx context.Context, owner, repo string, number int, opt *ListOptions) (*Reviewers, *Response, error)
- func (s *PullRequestsService) ListReviews(ctx context.Context, owner, repo string, number int, opt *ListOptions) ([]*PullRequestReview, *Response, error)
- func (s *PullRequestsService) Merge(ctx context.Context, owner string, repo string, number int, ...) (*PullRequestMergeResult, *Response, error)
- func (s *PullRequestsService) RemoveReviewers(ctx context.Context, owner, repo string, number int, ...) (*Response, error)
- func (s *PullRequestsService) RequestReviewers(ctx context.Context, owner, repo string, number int, ...) (*PullRequest, *Response, error)
- func (s *PullRequestsService) SubmitReview(ctx context.Context, owner, repo string, number int, reviewID int64, ...) (*PullRequestReview, *Response, error)
- type PullStats
- type PunchCard
- type PushEvent
- func (p *PushEvent) GetAfter() string
- func (p *PushEvent) GetBaseRef() string
- func (p *PushEvent) GetBefore() string
- func (p *PushEvent) GetCompare() string
- func (p *PushEvent) GetCreated() bool
- func (p *PushEvent) GetDeleted() bool
- func (p *PushEvent) GetDistinctSize() int
- func (p *PushEvent) GetForced() bool
- func (p *PushEvent) GetHead() string
- func (p *PushEvent) GetHeadCommit() *PushEventCommit
- func (p *PushEvent) GetInstallation() *Installation
- func (p *PushEvent) GetPushID() int64
- func (p *PushEvent) GetPusher() *User
- func (p *PushEvent) GetRef() string
- func (p *PushEvent) GetRepo() *PushEventRepository
- func (p *PushEvent) GetSender() *User
- func (p *PushEvent) GetSize() int
- func (p PushEvent) String() string
- type PushEventCommit
- func (p *PushEventCommit) GetAuthor() *CommitAuthor
- func (p *PushEventCommit) GetCommitter() *CommitAuthor
- func (p *PushEventCommit) GetDistinct() bool
- func (p *PushEventCommit) GetID() string
- func (p *PushEventCommit) GetMessage() string
- func (p *PushEventCommit) GetSHA() string
- func (p *PushEventCommit) GetTimestamp() Timestamp
- func (p *PushEventCommit) GetTreeID() string
- func (p *PushEventCommit) GetURL() string
- func (p PushEventCommit) String() string
- type PushEventRepoOwner
- type PushEventRepository
- func (p *PushEventRepository) GetArchiveURL() string
- func (p *PushEventRepository) GetCloneURL() string
- func (p *PushEventRepository) GetCreatedAt() Timestamp
- func (p *PushEventRepository) GetDefaultBranch() string
- func (p *PushEventRepository) GetDescription() string
- func (p *PushEventRepository) GetFork() bool
- func (p *PushEventRepository) GetForksCount() int
- func (p *PushEventRepository) GetFullName() string
- func (p *PushEventRepository) GetGitURL() string
- func (p *PushEventRepository) GetHTMLURL() string
- func (p *PushEventRepository) GetHasDownloads() bool
- func (p *PushEventRepository) GetHasIssues() bool
- func (p *PushEventRepository) GetHasPages() bool
- func (p *PushEventRepository) GetHasWiki() bool
- func (p *PushEventRepository) GetHomepage() string
- func (p *PushEventRepository) GetID() int64
- func (p *PushEventRepository) GetLanguage() string
- func (p *PushEventRepository) GetMasterBranch() string
- func (p *PushEventRepository) GetName() string
- func (p *PushEventRepository) GetNodeID() string
- func (p *PushEventRepository) GetOpenIssuesCount() int
- func (p *PushEventRepository) GetOrganization() string
- func (p *PushEventRepository) GetOwner() *PushEventRepoOwner
- func (p *PushEventRepository) GetPrivate() bool
- func (p *PushEventRepository) GetPushedAt() Timestamp
- func (p *PushEventRepository) GetSSHURL() string
- func (p *PushEventRepository) GetSVNURL() string
- func (p *PushEventRepository) GetSize() int
- func (p *PushEventRepository) GetStargazersCount() int
- func (p *PushEventRepository) GetStatusesURL() string
- func (p *PushEventRepository) GetURL() string
- func (p *PushEventRepository) GetUpdatedAt() Timestamp
- func (p *PushEventRepository) GetWatchersCount() int
- type Rate
- type RateLimitError
- type RateLimits
- type RawOptions
- type RawType
- type Reaction
- type Reactions
- type ReactionsService
- func (s ReactionsService) CreateCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error)
- func (s ReactionsService) CreateIssueCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error)
- func (s ReactionsService) CreateIssueReaction(ctx context.Context, owner, repo string, number int, content string) (*Reaction, *Response, error)
- func (s ReactionsService) CreatePullRequestCommentReaction(ctx context.Context, owner, repo string, id int64, content string) (*Reaction, *Response, error)
- func (s *ReactionsService) DeleteReaction(ctx context.Context, id int64) (*Response, error)
- func (s *ReactionsService) ListCommentReactions(ctx context.Context, owner, repo string, id int64, opt *ListOptions) ([]*Reaction, *Response, error)
- func (s *ReactionsService) ListIssueCommentReactions(ctx context.Context, owner, repo string, id int64, opt *ListOptions) ([]*Reaction, *Response, error)
- func (s *ReactionsService) ListIssueReactions(ctx context.Context, owner, repo string, number int, opt *ListOptions) ([]*Reaction, *Response, error)
- func (s *ReactionsService) ListPullRequestCommentReactions(ctx context.Context, owner, repo string, id int64, opt *ListOptions) ([]*Reaction, *Response, error)
- type Reference
- type ReferenceListOptions
- type ReleaseAsset
- func (r *ReleaseAsset) GetBrowserDownloadURL() string
- func (r *ReleaseAsset) GetContentType() string
- func (r *ReleaseAsset) GetCreatedAt() Timestamp
- func (r *ReleaseAsset) GetDownloadCount() int
- func (r *ReleaseAsset) GetID() int64
- func (r *ReleaseAsset) GetLabel() string
- func (r *ReleaseAsset) GetName() string
- func (r *ReleaseAsset) GetNodeID() string
- func (r *ReleaseAsset) GetSize() int
- func (r *ReleaseAsset) GetState() string
- func (r *ReleaseAsset) GetURL() string
- func (r *ReleaseAsset) GetUpdatedAt() Timestamp
- func (r *ReleaseAsset) GetUploader() *User
- func (r ReleaseAsset) String() string
- type ReleaseEvent
- type Rename
- type RepoStats
- type RepoStatus
- func (r *RepoStatus) GetContext() string
- func (r *RepoStatus) GetCreatedAt() time.Time
- func (r *RepoStatus) GetCreator() *User
- func (r *RepoStatus) GetDescription() string
- func (r *RepoStatus) GetID() int64
- func (r *RepoStatus) GetState() string
- func (r *RepoStatus) GetTargetURL() string
- func (r *RepoStatus) GetURL() string
- func (r *RepoStatus) GetUpdatedAt() time.Time
- func (r RepoStatus) String() string
- type RepositoriesSearchResult
- type RepositoriesService
- func (s *RepositoriesService) AddAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error)
- func (s *RepositoriesService) AddCollaborator(ctx context.Context, owner, repo, user string, ...) (*Response, error)
- func (s *RepositoriesService) CompareCommits(ctx context.Context, owner, repo string, base, head string) (*CommitsComparison, *Response, error)
- func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repository) (*Repository, *Response, error)
- func (s *RepositoriesService) CreateComment(ctx context.Context, owner, repo, sha string, comment *RepositoryComment) (*RepositoryComment, *Response, error)
- func (s *RepositoriesService) CreateDeployment(ctx context.Context, owner, repo string, request *DeploymentRequest) (*Deployment, *Response, error)
- func (s *RepositoriesService) CreateDeploymentStatus(ctx context.Context, owner, repo string, deployment int64, ...) (*DeploymentStatus, *Response, error)
- func (s *RepositoriesService) CreateFile(ctx context.Context, owner, repo, path string, ...) (*RepositoryContentResponse, *Response, error)
- func (s *RepositoriesService) CreateFork(ctx context.Context, owner, repo string, opt *RepositoryCreateForkOptions) (*Repository, *Response, error)
- func (s *RepositoriesService) CreateHook(ctx context.Context, owner, repo string, hook *Hook) (*Hook, *Response, error)
- func (s *RepositoriesService) CreateKey(ctx context.Context, owner string, repo string, key *Key) (*Key, *Response, error)
- func (s *RepositoriesService) CreateProject(ctx context.Context, owner, repo string, opt *ProjectOptions) (*Project, *Response, error)
- func (s *RepositoriesService) CreateRelease(ctx context.Context, owner, repo string, release *RepositoryRelease) (*RepositoryRelease, *Response, error)
- func (s *RepositoriesService) CreateStatus(ctx context.Context, owner, repo, ref string, status *RepoStatus) (*RepoStatus, *Response, error)
- func (s *RepositoriesService) Delete(ctx context.Context, owner, repo string) (*Response, error)
- func (s *RepositoriesService) DeleteComment(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) DeleteFile(ctx context.Context, owner, repo, path string, ...) (*RepositoryContentResponse, *Response, error)
- func (s *RepositoriesService) DeleteHook(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) DeleteInvitation(ctx context.Context, owner, repo string, invitationID int64) (*Response, error)
- func (s *RepositoriesService) DeleteKey(ctx context.Context, owner string, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) DeletePreReceiveHook(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) DeleteRelease(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) DeleteReleaseAsset(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) DisableDismissalRestrictions(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error)
- func (s *RepositoriesService) DownloadContents(ctx context.Context, owner, repo, filepath string, ...) (io.ReadCloser, error)
- func (s *RepositoriesService) DownloadReleaseAsset(ctx context.Context, owner, repo string, id int64) (rc io.ReadCloser, redirectURL string, err error)
- func (s *RepositoriesService) Edit(ctx context.Context, owner, repo string, repository *Repository) (*Repository, *Response, error)
- func (s *RepositoriesService) EditHook(ctx context.Context, owner, repo string, id int64, hook *Hook) (*Hook, *Response, error)
- func (s *RepositoriesService) EditKey(ctx context.Context, owner string, repo string, id int64, key *Key) (*Key, *Response, error)
- func (s *RepositoriesService) EditRelease(ctx context.Context, owner, repo string, id int64, release *RepositoryRelease) (*RepositoryRelease, *Response, error)
- func (s *RepositoriesService) EditReleaseAsset(ctx context.Context, owner, repo string, id int64, release *ReleaseAsset) (*ReleaseAsset, *Response, error)
- func (s *RepositoriesService) Get(ctx context.Context, owner, repo string) (*Repository, *Response, error)
- func (s *RepositoriesService) GetAdminEnforcement(ctx context.Context, owner, repo, branch string) (*AdminEnforcement, *Response, error)
- func (s *RepositoriesService) GetArchiveLink(ctx context.Context, owner, repo string, archiveformat archiveFormat, ...) (*url.URL, *Response, error)
- func (s *RepositoriesService) GetBranch(ctx context.Context, owner, repo, branch string) (*Branch, *Response, error)
- func (s *RepositoriesService) GetBranchProtection(ctx context.Context, owner, repo, branch string) (*Protection, *Response, error)
- func (s *RepositoriesService) GetByID(ctx context.Context, id int64) (*Repository, *Response, error)
- func (s *RepositoriesService) GetCodeOfConduct(ctx context.Context, owner, repo string) (*CodeOfConduct, *Response, error)
- func (s *RepositoriesService) GetCombinedStatus(ctx context.Context, owner, repo, ref string, opt *ListOptions) (*CombinedStatus, *Response, error)
- func (s *RepositoriesService) GetComment(ctx context.Context, owner, repo string, id int64) (*RepositoryComment, *Response, error)
- func (s *RepositoriesService) GetCommit(ctx context.Context, owner, repo, sha string) (*RepositoryCommit, *Response, error)
- func (s *RepositoriesService) GetCommitRaw(ctx context.Context, owner string, repo string, sha string, opt RawOptions) (string, *Response, error)
- func (s *RepositoriesService) GetCommitSHA1(ctx context.Context, owner, repo, ref, lastSHA string) (string, *Response, error)
- func (s *RepositoriesService) GetCommunityHealthMetrics(ctx context.Context, owner, repo string) (*CommunityHealthMetrics, *Response, error)
- func (s *RepositoriesService) GetContents(ctx context.Context, owner, repo, path string, ...) (fileContent *RepositoryContent, directoryContent []*RepositoryContent, ...)
- func (s *RepositoriesService) GetDeployment(ctx context.Context, owner, repo string, deploymentID int64) (*Deployment, *Response, error)
- func (s *RepositoriesService) GetDeploymentStatus(ctx context.Context, owner, repo string, ...) (*DeploymentStatus, *Response, error)
- func (s *RepositoriesService) GetHook(ctx context.Context, owner, repo string, id int64) (*Hook, *Response, error)
- func (s *RepositoriesService) GetKey(ctx context.Context, owner string, repo string, id int64) (*Key, *Response, error)
- func (s *RepositoriesService) GetLatestPagesBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error)
- func (s *RepositoriesService) GetLatestRelease(ctx context.Context, owner, repo string) (*RepositoryRelease, *Response, error)
- func (s *RepositoriesService) GetPageBuild(ctx context.Context, owner, repo string, id int64) (*PagesBuild, *Response, error)
- func (s *RepositoriesService) GetPagesInfo(ctx context.Context, owner, repo string) (*Pages, *Response, error)
- func (s *RepositoriesService) GetPermissionLevel(ctx context.Context, owner, repo, user string) (*RepositoryPermissionLevel, *Response, error)
- func (s *RepositoriesService) GetPreReceiveHook(ctx context.Context, owner, repo string, id int64) (*PreReceiveHook, *Response, error)
- func (s *RepositoriesService) GetPullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*PullRequestReviewsEnforcement, *Response, error)
- func (s *RepositoriesService) GetReadme(ctx context.Context, owner, repo string, opt *RepositoryContentGetOptions) (*RepositoryContent, *Response, error)
- func (s *RepositoriesService) GetRelease(ctx context.Context, owner, repo string, id int64) (*RepositoryRelease, *Response, error)
- func (s *RepositoriesService) GetReleaseAsset(ctx context.Context, owner, repo string, id int64) (*ReleaseAsset, *Response, error)
- func (s *RepositoriesService) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*RepositoryRelease, *Response, error)
- func (s *RepositoriesService) GetRequiredStatusChecks(ctx context.Context, owner, repo, branch string) (*RequiredStatusChecks, *Response, error)
- func (s *RepositoriesService) IsCollaborator(ctx context.Context, owner, repo, user string) (bool, *Response, error)
- func (s *RepositoriesService) License(ctx context.Context, owner, repo string) (*RepositoryLicense, *Response, error)
- func (s *RepositoriesService) List(ctx context.Context, user string, opt *RepositoryListOptions) ([]*Repository, *Response, error)
- func (s *RepositoriesService) ListAll(ctx context.Context, opt *RepositoryListAllOptions) ([]*Repository, *Response, error)
- func (s *RepositoriesService) ListAllTopics(ctx context.Context, owner, repo string) ([]string, *Response, error)
- func (s *RepositoriesService) ListBranches(ctx context.Context, owner string, repo string, opt *ListOptions) ([]*Branch, *Response, error)
- func (s *RepositoriesService) ListByOrg(ctx context.Context, org string, opt *RepositoryListByOrgOptions) ([]*Repository, *Response, error)
- func (s *RepositoriesService) ListCodeFrequency(ctx context.Context, owner, repo string) ([]*WeeklyStats, *Response, error)
- func (s *RepositoriesService) ListCollaborators(ctx context.Context, owner, repo string, opt *ListCollaboratorsOptions) ([]*User, *Response, error)
- func (s *RepositoriesService) ListComments(ctx context.Context, owner, repo string, opt *ListOptions) ([]*RepositoryComment, *Response, error)
- func (s *RepositoriesService) ListCommitActivity(ctx context.Context, owner, repo string) ([]*WeeklyCommitActivity, *Response, error)
- func (s *RepositoriesService) ListCommitComments(ctx context.Context, owner, repo, sha string, opt *ListOptions) ([]*RepositoryComment, *Response, error)
- func (s *RepositoriesService) ListCommits(ctx context.Context, owner, repo string, opt *CommitsListOptions) ([]*RepositoryCommit, *Response, error)
- func (s *RepositoriesService) ListContributors(ctx context.Context, owner string, repository string, ...) ([]*Contributor, *Response, error)
- func (s *RepositoriesService) ListContributorsStats(ctx context.Context, owner, repo string) ([]*ContributorStats, *Response, error)
- func (s *RepositoriesService) ListDeploymentStatuses(ctx context.Context, owner, repo string, deployment int64, opt *ListOptions) ([]*DeploymentStatus, *Response, error)
- func (s *RepositoriesService) ListDeployments(ctx context.Context, owner, repo string, opt *DeploymentsListOptions) ([]*Deployment, *Response, error)
- func (s *RepositoriesService) ListForks(ctx context.Context, owner, repo string, opt *RepositoryListForksOptions) ([]*Repository, *Response, error)
- func (s *RepositoriesService) ListHooks(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Hook, *Response, error)
- func (s *RepositoriesService) ListInvitations(ctx context.Context, owner, repo string, opt *ListOptions) ([]*RepositoryInvitation, *Response, error)
- func (s *RepositoriesService) ListKeys(ctx context.Context, owner string, repo string, opt *ListOptions) ([]*Key, *Response, error)
- func (s *RepositoriesService) ListLanguages(ctx context.Context, owner string, repo string) (map[string]int, *Response, error)
- func (s *RepositoriesService) ListPagesBuilds(ctx context.Context, owner, repo string, opt *ListOptions) ([]*PagesBuild, *Response, error)
- func (s *RepositoriesService) ListParticipation(ctx context.Context, owner, repo string) (*RepositoryParticipation, *Response, error)
- func (s *RepositoriesService) ListPreReceiveHooks(ctx context.Context, owner, repo string, opt *ListOptions) ([]*PreReceiveHook, *Response, error)
- func (s *RepositoriesService) ListProjects(ctx context.Context, owner, repo string, opt *ProjectListOptions) ([]*Project, *Response, error)
- func (s *RepositoriesService) ListPunchCard(ctx context.Context, owner, repo string) ([]*PunchCard, *Response, error)
- func (s *RepositoriesService) ListReleaseAssets(ctx context.Context, owner, repo string, id int64, opt *ListOptions) ([]*ReleaseAsset, *Response, error)
- func (s *RepositoriesService) ListReleases(ctx context.Context, owner, repo string, opt *ListOptions) ([]*RepositoryRelease, *Response, error)
- func (s *RepositoriesService) ListRequiredStatusChecksContexts(ctx context.Context, owner, repo, branch string) (contexts []string, resp *Response, err error)
- func (s *RepositoriesService) ListStatuses(ctx context.Context, owner, repo, ref string, opt *ListOptions) ([]*RepoStatus, *Response, error)
- func (s *RepositoriesService) ListTags(ctx context.Context, owner string, repo string, opt *ListOptions) ([]*RepositoryTag, *Response, error)
- func (s *RepositoriesService) ListTeams(ctx context.Context, owner string, repo string, opt *ListOptions) ([]*Team, *Response, error)
- func (s *RepositoriesService) ListTrafficClones(ctx context.Context, owner, repo string, opt *TrafficBreakdownOptions) (*TrafficClones, *Response, error)
- func (s *RepositoriesService) ListTrafficPaths(ctx context.Context, owner, repo string) ([]*TrafficPath, *Response, error)
- func (s *RepositoriesService) ListTrafficReferrers(ctx context.Context, owner, repo string) ([]*TrafficReferrer, *Response, error)
- func (s *RepositoriesService) ListTrafficViews(ctx context.Context, owner, repo string, opt *TrafficBreakdownOptions) (*TrafficViews, *Response, error)
- func (s *RepositoriesService) Merge(ctx context.Context, owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error)
- func (s *RepositoriesService) PingHook(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) RemoveAdminEnforcement(ctx context.Context, owner, repo, branch string) (*Response, error)
- func (s *RepositoriesService) RemoveBranchProtection(ctx context.Context, owner, repo, branch string) (*Response, error)
- func (s *RepositoriesService) RemoveCollaborator(ctx context.Context, owner, repo, user string) (*Response, error)
- func (s *RepositoriesService) RemovePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string) (*Response, error)
- func (s *RepositoriesService) ReplaceAllTopics(ctx context.Context, owner, repo string, topics []string) ([]string, *Response, error)
- func (s *RepositoriesService) RequestPageBuild(ctx context.Context, owner, repo string) (*PagesBuild, *Response, error)
- func (s *RepositoriesService) TestHook(ctx context.Context, owner, repo string, id int64) (*Response, error)
- func (s *RepositoriesService) Transfer(ctx context.Context, owner, repo string, transfer TransferRequest) (*Repository, *Response, error)
- func (s *RepositoriesService) UpdateBranchProtection(ctx context.Context, owner, repo, branch string, preq *ProtectionRequest) (*Protection, *Response, error)
- func (s *RepositoriesService) UpdateComment(ctx context.Context, owner, repo string, id int64, comment *RepositoryComment) (*RepositoryComment, *Response, error)
- func (s *RepositoriesService) UpdateFile(ctx context.Context, owner, repo, path string, ...) (*RepositoryContentResponse, *Response, error)
- func (s *RepositoriesService) UpdateInvitation(ctx context.Context, owner, repo string, invitationID int64, ...) (*RepositoryInvitation, *Response, error)
- func (s *RepositoriesService) UpdatePreReceiveHook(ctx context.Context, owner, repo string, id int64, hook *PreReceiveHook) (*PreReceiveHook, *Response, error)
- func (s *RepositoriesService) UpdatePullRequestReviewEnforcement(ctx context.Context, owner, repo, branch string, ...) (*PullRequestReviewsEnforcement, *Response, error)
- func (s *RepositoriesService) UpdateRequiredStatusChecks(ctx context.Context, owner, repo, branch string, ...) (*RequiredStatusChecks, *Response, error)
- func (s *RepositoriesService) UploadReleaseAsset(ctx context.Context, owner, repo string, id int64, opt *UploadOptions, ...) (*ReleaseAsset, *Response, error)
- type Repository
- func (r *Repository) GetAllowMergeCommit() bool
- func (r *Repository) GetAllowRebaseMerge() bool
- func (r *Repository) GetAllowSquashMerge() bool
- func (r *Repository) GetArchiveURL() string
- func (r *Repository) GetArchived() bool
- func (r *Repository) GetAssigneesURL() string
- func (r *Repository) GetAutoInit() bool
- func (r *Repository) GetBlobsURL() string
- func (r *Repository) GetBranchesURL() string
- func (r *Repository) GetCloneURL() string
- func (r *Repository) GetCodeOfConduct() *CodeOfConduct
- func (r *Repository) GetCollaboratorsURL() string
- func (r *Repository) GetCommentsURL() string
- func (r *Repository) GetCommitsURL() string
- func (r *Repository) GetCompareURL() string
- func (r *Repository) GetContentsURL() string
- func (r *Repository) GetContributorsURL() string
- func (r *Repository) GetCreatedAt() Timestamp
- func (r *Repository) GetDefaultBranch() string
- func (r *Repository) GetDeploymentsURL() string
- func (r *Repository) GetDescription() string
- func (r *Repository) GetDownloadsURL() string
- func (r *Repository) GetEventsURL() string
- func (r *Repository) GetFork() bool
- func (r *Repository) GetForksCount() int
- func (r *Repository) GetForksURL() string
- func (r *Repository) GetFullName() string
- func (r *Repository) GetGitCommitsURL() string
- func (r *Repository) GetGitRefsURL() string
- func (r *Repository) GetGitTagsURL() string
- func (r *Repository) GetGitURL() string
- func (r *Repository) GetGitignoreTemplate() string
- func (r *Repository) GetHTMLURL() string
- func (r *Repository) GetHasDownloads() bool
- func (r *Repository) GetHasIssues() bool
- func (r *Repository) GetHasPages() bool
- func (r *Repository) GetHasProjects() bool
- func (r *Repository) GetHasWiki() bool
- func (r *Repository) GetHomepage() string
- func (r *Repository) GetHooksURL() string
- func (r *Repository) GetID() int64
- func (r *Repository) GetIssueCommentURL() string
- func (r *Repository) GetIssueEventsURL() string
- func (r *Repository) GetIssuesURL() string
- func (r *Repository) GetKeysURL() string
- func (r *Repository) GetLabelsURL() string
- func (r *Repository) GetLanguage() string
- func (r *Repository) GetLanguagesURL() string
- func (r *Repository) GetLicense() *License
- func (r *Repository) GetLicenseTemplate() string
- func (r *Repository) GetMasterBranch() string
- func (r *Repository) GetMergesURL() string
- func (r *Repository) GetMilestonesURL() string
- func (r *Repository) GetMirrorURL() string
- func (r *Repository) GetName() string
- func (r *Repository) GetNetworkCount() int
- func (r *Repository) GetNodeID() string
- func (r *Repository) GetNotificationsURL() string
- func (r *Repository) GetOpenIssuesCount() int
- func (r *Repository) GetOrganization() *Organization
- func (r *Repository) GetOwner() *User
- func (r *Repository) GetParent() *Repository
- func (r *Repository) GetPermissions() map[string]bool
- func (r *Repository) GetPrivate() bool
- func (r *Repository) GetPullsURL() string
- func (r *Repository) GetPushedAt() Timestamp
- func (r *Repository) GetReleasesURL() string
- func (r *Repository) GetSSHURL() string
- func (r *Repository) GetSVNURL() string
- func (r *Repository) GetSize() int
- func (r *Repository) GetSource() *Repository
- func (r *Repository) GetStargazersCount() int
- func (r *Repository) GetStargazersURL() string
- func (r *Repository) GetStatusesURL() string
- func (r *Repository) GetSubscribersCount() int
- func (r *Repository) GetSubscribersURL() string
- func (r *Repository) GetSubscriptionURL() string
- func (r *Repository) GetTagsURL() string
- func (r *Repository) GetTeamID() int64
- func (r *Repository) GetTeamsURL() string
- func (r *Repository) GetTreesURL() string
- func (r *Repository) GetURL() string
- func (r *Repository) GetUpdatedAt() Timestamp
- func (r *Repository) GetWatchersCount() int
- func (r Repository) String() string
- type RepositoryAddCollaboratorOptions
- type RepositoryComment
- func (r *RepositoryComment) GetBody() string
- func (r *RepositoryComment) GetCommitID() string
- func (r *RepositoryComment) GetCreatedAt() time.Time
- func (r *RepositoryComment) GetHTMLURL() string
- func (r *RepositoryComment) GetID() int64
- func (r *RepositoryComment) GetPath() string
- func (r *RepositoryComment) GetPosition() int
- func (r *RepositoryComment) GetReactions() *Reactions
- func (r *RepositoryComment) GetURL() string
- func (r *RepositoryComment) GetUpdatedAt() time.Time
- func (r *RepositoryComment) GetUser() *User
- func (r RepositoryComment) String() string
- type RepositoryCommit
- func (r *RepositoryCommit) GetAuthor() *User
- func (r *RepositoryCommit) GetCommentsURL() string
- func (r *RepositoryCommit) GetCommit() *Commit
- func (r *RepositoryCommit) GetCommitter() *User
- func (r *RepositoryCommit) GetHTMLURL() string
- func (r *RepositoryCommit) GetSHA() string
- func (r *RepositoryCommit) GetStats() *CommitStats
- func (r *RepositoryCommit) GetURL() string
- func (r RepositoryCommit) String() string
- type RepositoryContent
- func (r *RepositoryContent) GetContent() (string, error)
- func (r *RepositoryContent) GetDownloadURL() string
- func (r *RepositoryContent) GetEncoding() string
- func (r *RepositoryContent) GetGitURL() string
- func (r *RepositoryContent) GetHTMLURL() string
- func (r *RepositoryContent) GetName() string
- func (r *RepositoryContent) GetPath() string
- func (r *RepositoryContent) GetSHA() string
- func (r *RepositoryContent) GetSize() int
- func (r *RepositoryContent) GetType() string
- func (r *RepositoryContent) GetURL() string
- func (r RepositoryContent) String() string
- type RepositoryContentFileOptions
- func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor
- func (r *RepositoryContentFileOptions) GetBranch() string
- func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor
- func (r *RepositoryContentFileOptions) GetMessage() string
- func (r *RepositoryContentFileOptions) GetSHA() string
- type RepositoryContentGetOptions
- type RepositoryContentResponse
- type RepositoryCreateForkOptions
- type RepositoryEvent
- type RepositoryInvitation
- func (r *RepositoryInvitation) GetCreatedAt() Timestamp
- func (r *RepositoryInvitation) GetHTMLURL() string
- func (r *RepositoryInvitation) GetID() int64
- func (r *RepositoryInvitation) GetInvitee() *User
- func (r *RepositoryInvitation) GetInviter() *User
- func (r *RepositoryInvitation) GetPermissions() string
- func (r *RepositoryInvitation) GetRepo() *Repository
- func (r *RepositoryInvitation) GetURL() string
- type RepositoryLicense
- func (r *RepositoryLicense) GetContent() string
- func (r *RepositoryLicense) GetDownloadURL() string
- func (r *RepositoryLicense) GetEncoding() string
- func (r *RepositoryLicense) GetGitURL() string
- func (r *RepositoryLicense) GetHTMLURL() string
- func (r *RepositoryLicense) GetLicense() *License
- func (r *RepositoryLicense) GetName() string
- func (r *RepositoryLicense) GetPath() string
- func (r *RepositoryLicense) GetSHA() string
- func (r *RepositoryLicense) GetSize() int
- func (r *RepositoryLicense) GetType() string
- func (r *RepositoryLicense) GetURL() string
- func (l RepositoryLicense) String() string
- type RepositoryListAllOptions
- type RepositoryListByOrgOptions
- type RepositoryListForksOptions
- type RepositoryListOptions
- type RepositoryMergeRequest
- type RepositoryParticipation
- type RepositoryPermissionLevel
- type RepositoryRelease
- func (r *RepositoryRelease) GetAssetsURL() string
- func (r *RepositoryRelease) GetAuthor() *User
- func (r *RepositoryRelease) GetBody() string
- func (r *RepositoryRelease) GetCreatedAt() Timestamp
- func (r *RepositoryRelease) GetDraft() bool
- func (r *RepositoryRelease) GetHTMLURL() string
- func (r *RepositoryRelease) GetID() int64
- func (r *RepositoryRelease) GetName() string
- func (r *RepositoryRelease) GetNodeID() string
- func (r *RepositoryRelease) GetPrerelease() bool
- func (r *RepositoryRelease) GetPublishedAt() Timestamp
- func (r *RepositoryRelease) GetTagName() string
- func (r *RepositoryRelease) GetTarballURL() string
- func (r *RepositoryRelease) GetTargetCommitish() string
- func (r *RepositoryRelease) GetURL() string
- func (r *RepositoryRelease) GetUploadURL() string
- func (r *RepositoryRelease) GetZipballURL() string
- func (r RepositoryRelease) String() string
- type RepositoryTag
- type RequestCheckSuiteOptions
- type RequiredStatusChecks
- type RequiredStatusChecksRequest
- type Response
- type Reviewers
- type ReviewersRequest
- type Scope
- type SearchOptions
- type SearchService
- func (s *SearchService) Code(ctx context.Context, query string, opt *SearchOptions) (*CodeSearchResult, *Response, error)
- func (s *SearchService) Commits(ctx context.Context, query string, opt *SearchOptions) (*CommitsSearchResult, *Response, error)
- func (s *SearchService) Issues(ctx context.Context, query string, opt *SearchOptions) (*IssuesSearchResult, *Response, error)
- func (s *SearchService) Labels(ctx context.Context, repoID int64, query string, opt *SearchOptions) (*LabelsSearchResult, *Response, error)
- func (s *SearchService) Repositories(ctx context.Context, query string, opt *SearchOptions) (*RepositoriesSearchResult, *Response, error)
- func (s *SearchService) Users(ctx context.Context, query string, opt *SearchOptions) (*UsersSearchResult, *Response, error)
- type ServiceHook
- type SignatureVerification
- type Source
- type SourceImportAuthor
- func (s *SourceImportAuthor) GetEmail() string
- func (s *SourceImportAuthor) GetID() int64
- func (s *SourceImportAuthor) GetImportURL() string
- func (s *SourceImportAuthor) GetName() string
- func (s *SourceImportAuthor) GetRemoteID() string
- func (s *SourceImportAuthor) GetRemoteName() string
- func (s *SourceImportAuthor) GetURL() string
- func (a SourceImportAuthor) String() string
- type Stargazer
- type StarredRepository
- type StatusEvent
- func (s *StatusEvent) GetCommit() *RepositoryCommit
- func (s *StatusEvent) GetContext() string
- func (s *StatusEvent) GetCreatedAt() Timestamp
- func (s *StatusEvent) GetDescription() string
- func (s *StatusEvent) GetID() int64
- func (s *StatusEvent) GetInstallation() *Installation
- func (s *StatusEvent) GetName() string
- func (s *StatusEvent) GetRepo() *Repository
- func (s *StatusEvent) GetSHA() string
- func (s *StatusEvent) GetSender() *User
- func (s *StatusEvent) GetState() string
- func (s *StatusEvent) GetTargetURL() string
- func (s *StatusEvent) GetUpdatedAt() Timestamp
- type Subscription
- func (s *Subscription) GetCreatedAt() Timestamp
- func (s *Subscription) GetIgnored() bool
- func (s *Subscription) GetReason() string
- func (s *Subscription) GetRepositoryURL() string
- func (s *Subscription) GetSubscribed() bool
- func (s *Subscription) GetThreadURL() string
- func (s *Subscription) GetURL() string
- type Tag
- type Team
- func (t *Team) GetDescription() string
- func (t *Team) GetID() int64
- func (t *Team) GetLDAPDN() string
- func (t *Team) GetMembersCount() int
- func (t *Team) GetMembersURL() string
- func (t *Team) GetName() string
- func (t *Team) GetOrganization() *Organization
- func (t *Team) GetParent() *Team
- func (t *Team) GetPermission() string
- func (t *Team) GetPrivacy() string
- func (t *Team) GetReposCount() int
- func (t *Team) GetRepositoriesURL() string
- func (t *Team) GetSlug() string
- func (t *Team) GetURL() string
- func (t Team) String() string
- type TeamAddEvent
- type TeamAddTeamMembershipOptions
- type TeamAddTeamRepoOptions
- type TeamChange
- type TeamDiscussion
- func (t *TeamDiscussion) GetAuthor() *User
- func (t *TeamDiscussion) GetBody() string
- func (t *TeamDiscussion) GetBodyHTML() string
- func (t *TeamDiscussion) GetBodyVersion() string
- func (t *TeamDiscussion) GetCommentsCount() int
- func (t *TeamDiscussion) GetCommentsURL() string
- func (t *TeamDiscussion) GetCreatedAt() Timestamp
- func (t *TeamDiscussion) GetHTMLURL() string
- func (t *TeamDiscussion) GetLastEditedAt() Timestamp
- func (t *TeamDiscussion) GetNodeID() string
- func (t *TeamDiscussion) GetNumber() int
- func (t *TeamDiscussion) GetPinned() bool
- func (t *TeamDiscussion) GetPrivate() bool
- func (t *TeamDiscussion) GetTeamURL() string
- func (t *TeamDiscussion) GetTitle() string
- func (t *TeamDiscussion) GetURL() string
- func (t *TeamDiscussion) GetUpdatedAt() Timestamp
- func (d TeamDiscussion) String() string
- type TeamEvent
- type TeamLDAPMapping
- func (t *TeamLDAPMapping) GetDescription() string
- func (t *TeamLDAPMapping) GetID() int64
- func (t *TeamLDAPMapping) GetLDAPDN() string
- func (t *TeamLDAPMapping) GetMembersURL() string
- func (t *TeamLDAPMapping) GetName() string
- func (t *TeamLDAPMapping) GetPermission() string
- func (t *TeamLDAPMapping) GetPrivacy() string
- func (t *TeamLDAPMapping) GetRepositoriesURL() string
- func (t *TeamLDAPMapping) GetSlug() string
- func (t *TeamLDAPMapping) GetURL() string
- func (m TeamLDAPMapping) String() string
- type TeamListTeamMembersOptions
- type TeamsService
- func (s *TeamsService) AddTeamMembership(ctx context.Context, team int64, user string, ...) (*Membership, *Response, error)
- func (s *TeamsService) AddTeamRepo(ctx context.Context, team int64, owner string, repo string, ...) (*Response, error)
- func (s *TeamsService) CreateComment(ctx context.Context, teamID int64, discsusionNumber int, ...) (*DiscussionComment, *Response, error)
- func (s *TeamsService) CreateDiscussion(ctx context.Context, teamID int64, discussion TeamDiscussion) (*TeamDiscussion, *Response, error)
- func (s *TeamsService) CreateTeam(ctx context.Context, org string, team NewTeam) (*Team, *Response, error)
- func (s *TeamsService) DeleteComment(ctx context.Context, teamID int64, discussionNumber, commentNumber int) (*Response, error)
- func (s *TeamsService) DeleteDiscussion(ctx context.Context, teamID int64, discussionNumber int) (*Response, error)
- func (s *TeamsService) DeleteTeam(ctx context.Context, team int64) (*Response, error)
- func (s *TeamsService) EditComment(ctx context.Context, teamID int64, discussionNumber, commentNumber int, ...) (*DiscussionComment, *Response, error)
- func (s *TeamsService) EditDiscussion(ctx context.Context, teamID int64, discussionNumber int, ...) (*TeamDiscussion, *Response, error)
- func (s *TeamsService) EditTeam(ctx context.Context, id int64, team NewTeam) (*Team, *Response, error)
- func (s *TeamsService) GetComment(ctx context.Context, teamID int64, discussionNumber, commentNumber int) (*DiscussionComment, *Response, error)
- func (s *TeamsService) GetDiscussion(ctx context.Context, teamID int64, discussionNumber int) (*TeamDiscussion, *Response, error)
- func (s *TeamsService) GetTeam(ctx context.Context, team int64) (*Team, *Response, error)
- func (s *TeamsService) GetTeamMembership(ctx context.Context, team int64, user string) (*Membership, *Response, error)
- func (s *TeamsService) IsTeamMember(ctx context.Context, team int64, user string) (bool, *Response, error)deprecated
- func (s *TeamsService) IsTeamRepo(ctx context.Context, team int64, owner string, repo string) (*Repository, *Response, error)
- func (s *TeamsService) ListChildTeams(ctx context.Context, teamID int64, opt *ListOptions) ([]*Team, *Response, error)
- func (s *TeamsService) ListComments(ctx context.Context, teamID int64, discussionNumber int, ...) ([]*DiscussionComment, *Response, error)
- func (s *TeamsService) ListDiscussions(ctx context.Context, teamID int64, options *DiscussionListOptions) ([]*TeamDiscussion, *Response, error)
- func (s *TeamsService) ListPendingTeamInvitations(ctx context.Context, team int64, opt *ListOptions) ([]*Invitation, *Response, error)
- func (s *TeamsService) ListTeamMembers(ctx context.Context, team int64, opt *TeamListTeamMembersOptions) ([]*User, *Response, error)
- func (s *TeamsService) ListTeamRepos(ctx context.Context, team int64, opt *ListOptions) ([]*Repository, *Response, error)
- func (s *TeamsService) ListTeams(ctx context.Context, org string, opt *ListOptions) ([]*Team, *Response, error)
- func (s *TeamsService) ListUserTeams(ctx context.Context, opt *ListOptions) ([]*Team, *Response, error)
- func (s *TeamsService) RemoveTeamMembership(ctx context.Context, team int64, user string) (*Response, error)
- func (s *TeamsService) RemoveTeamRepo(ctx context.Context, team int64, owner string, repo string) (*Response, error)
- type TextMatch
- type Timeline
- func (t *Timeline) GetActor() *User
- func (t *Timeline) GetAssignee() *User
- func (t *Timeline) GetCommitID() string
- func (t *Timeline) GetCommitURL() string
- func (t *Timeline) GetCreatedAt() time.Time
- func (t *Timeline) GetEvent() string
- func (t *Timeline) GetID() int64
- func (t *Timeline) GetLabel() *Label
- func (t *Timeline) GetMilestone() *Milestone
- func (t *Timeline) GetRename() *Rename
- func (t *Timeline) GetSource() *Source
- func (t *Timeline) GetURL() string
- type Timestamp
- type TrafficBreakdownOptions
- type TrafficClones
- type TrafficData
- type TrafficPath
- type TrafficReferrer
- type TrafficViews
- type TransferRequest
- type Tree
- type TreeEntry
- type TwoFactorAuthError
- type UnauthenticatedRateLimitedTransport
- type UpdateCheckRunOptions
- func (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp
- func (u *UpdateCheckRunOptions) GetConclusion() string
- func (u *UpdateCheckRunOptions) GetDetailsURL() string
- func (u *UpdateCheckRunOptions) GetExternalID() string
- func (u *UpdateCheckRunOptions) GetHeadBranch() string
- func (u *UpdateCheckRunOptions) GetHeadSHA() string
- func (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput
- func (u *UpdateCheckRunOptions) GetStatus() string
- type UploadOptions
- type User
- func (u *User) GetAvatarURL() string
- func (u *User) GetBio() string
- func (u *User) GetBlog() string
- func (u *User) GetCollaborators() int
- func (u *User) GetCompany() string
- func (u *User) GetCreatedAt() Timestamp
- func (u *User) GetDiskUsage() int
- func (u *User) GetEmail() string
- func (u *User) GetEventsURL() string
- func (u *User) GetFollowers() int
- func (u *User) GetFollowersURL() string
- func (u *User) GetFollowing() int
- func (u *User) GetFollowingURL() string
- func (u *User) GetGistsURL() string
- func (u *User) GetGravatarID() string
- func (u *User) GetHTMLURL() string
- func (u *User) GetHireable() bool
- func (u *User) GetID() int64
- func (u *User) GetLocation() string
- func (u *User) GetLogin() string
- func (u *User) GetName() string
- func (u *User) GetNodeID() string
- func (u *User) GetOrganizationsURL() string
- func (u *User) GetOwnedPrivateRepos() int
- func (u *User) GetPermissions() map[string]bool
- func (u *User) GetPlan() *Plan
- func (u *User) GetPrivateGists() int
- func (u *User) GetPublicGists() int
- func (u *User) GetPublicRepos() int
- func (u *User) GetReceivedEventsURL() string
- func (u *User) GetReposURL() string
- func (u *User) GetSiteAdmin() bool
- func (u *User) GetStarredURL() string
- func (u *User) GetSubscriptionsURL() string
- func (u *User) GetSuspendedAt() Timestamp
- func (u *User) GetTotalPrivateRepos() int
- func (u *User) GetType() string
- func (u *User) GetURL() string
- func (u *User) GetUpdatedAt() Timestamp
- func (u User) String() string
- type UserContext
- type UserEmail
- type UserLDAPMapping
- func (u *UserLDAPMapping) GetAvatarURL() string
- func (u *UserLDAPMapping) GetEventsURL() string
- func (u *UserLDAPMapping) GetFollowersURL() string
- func (u *UserLDAPMapping) GetFollowingURL() string
- func (u *UserLDAPMapping) GetGistsURL() string
- func (u *UserLDAPMapping) GetGravatarID() string
- func (u *UserLDAPMapping) GetID() int64
- func (u *UserLDAPMapping) GetLDAPDN() string
- func (u *UserLDAPMapping) GetLogin() string
- func (u *UserLDAPMapping) GetOrganizationsURL() string
- func (u *UserLDAPMapping) GetReceivedEventsURL() string
- func (u *UserLDAPMapping) GetReposURL() string
- func (u *UserLDAPMapping) GetSiteAdmin() bool
- func (u *UserLDAPMapping) GetStarredURL() string
- func (u *UserLDAPMapping) GetSubscriptionsURL() string
- func (u *UserLDAPMapping) GetType() string
- func (u *UserLDAPMapping) GetURL() string
- func (m UserLDAPMapping) String() string
- type UserListOptions
- type UserMigration
- func (u *UserMigration) GetCreatedAt() string
- func (u *UserMigration) GetExcludeAttachments() bool
- func (u *UserMigration) GetGUID() string
- func (u *UserMigration) GetID() int64
- func (u *UserMigration) GetLockRepositories() bool
- func (u *UserMigration) GetState() string
- func (u *UserMigration) GetURL() string
- func (u *UserMigration) GetUpdatedAt() string
- func (m UserMigration) String() string
- type UserMigrationOptions
- type UserStats
- type UsersSearchResult
- type UsersService
- func (s *UsersService) AcceptInvitation(ctx context.Context, invitationID int64) (*Response, error)
- func (s *UsersService) AddEmails(ctx context.Context, emails []string) ([]*UserEmail, *Response, error)
- func (s *UsersService) BlockUser(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) CreateGPGKey(ctx context.Context, armoredPublicKey string) (*GPGKey, *Response, error)
- func (s *UsersService) CreateKey(ctx context.Context, key *Key) (*Key, *Response, error)
- func (s *UsersService) DeclineInvitation(ctx context.Context, invitationID int64) (*Response, error)
- func (s *UsersService) DeleteEmails(ctx context.Context, emails []string) (*Response, error)
- func (s *UsersService) DeleteGPGKey(ctx context.Context, id int64) (*Response, error)
- func (s *UsersService) DeleteKey(ctx context.Context, id int64) (*Response, error)
- func (s *UsersService) DemoteSiteAdmin(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) Edit(ctx context.Context, user *User) (*User, *Response, error)
- func (s *UsersService) Follow(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) Get(ctx context.Context, user string) (*User, *Response, error)
- func (s *UsersService) GetByID(ctx context.Context, id int64) (*User, *Response, error)
- func (s *UsersService) GetGPGKey(ctx context.Context, id int64) (*GPGKey, *Response, error)
- func (s *UsersService) GetHovercard(ctx context.Context, user string, opt *HovercardOptions) (*Hovercard, *Response, error)
- func (s *UsersService) GetKey(ctx context.Context, id int64) (*Key, *Response, error)
- func (s *UsersService) IsBlocked(ctx context.Context, user string) (bool, *Response, error)
- func (s *UsersService) IsFollowing(ctx context.Context, user, target string) (bool, *Response, error)
- func (s *UsersService) ListAll(ctx context.Context, opt *UserListOptions) ([]*User, *Response, error)
- func (s *UsersService) ListBlockedUsers(ctx context.Context, opt *ListOptions) ([]*User, *Response, error)
- func (s *UsersService) ListEmails(ctx context.Context, opt *ListOptions) ([]*UserEmail, *Response, error)
- func (s *UsersService) ListFollowers(ctx context.Context, user string, opt *ListOptions) ([]*User, *Response, error)
- func (s *UsersService) ListFollowing(ctx context.Context, user string, opt *ListOptions) ([]*User, *Response, error)
- func (s *UsersService) ListGPGKeys(ctx context.Context, user string, opt *ListOptions) ([]*GPGKey, *Response, error)
- func (s *UsersService) ListInvitations(ctx context.Context, opt *ListOptions) ([]*RepositoryInvitation, *Response, error)
- func (s *UsersService) ListKeys(ctx context.Context, user string, opt *ListOptions) ([]*Key, *Response, error)
- func (s *UsersService) PromoteSiteAdmin(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) Suspend(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) UnblockUser(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) Unfollow(ctx context.Context, user string) (*Response, error)
- func (s *UsersService) Unsuspend(ctx context.Context, user string) (*Response, error)
- type WatchEvent
- type WebHookAuthor
- type WebHookCommit
- func (w *WebHookCommit) GetAuthor() *WebHookAuthor
- func (w *WebHookCommit) GetCommitter() *WebHookAuthor
- func (w *WebHookCommit) GetDistinct() bool
- func (w *WebHookCommit) GetID() string
- func (w *WebHookCommit) GetMessage() string
- func (w *WebHookCommit) GetTimestamp() time.Time
- func (w WebHookCommit) String() string
- type WebHookPayload
- func (w *WebHookPayload) GetAfter() string
- func (w *WebHookPayload) GetBefore() string
- func (w *WebHookPayload) GetCompare() string
- func (w *WebHookPayload) GetCreated() bool
- func (w *WebHookPayload) GetDeleted() bool
- func (w *WebHookPayload) GetForced() bool
- func (w *WebHookPayload) GetHeadCommit() *WebHookCommit
- func (w *WebHookPayload) GetPusher() *User
- func (w *WebHookPayload) GetRef() string
- func (w *WebHookPayload) GetRepo() *Repository
- func (w *WebHookPayload) GetSender() *User
- func (w WebHookPayload) String() string
- type WeeklyCommitActivity
- type WeeklyStats
Examples ¶
Constants ¶
const ( // Tarball specifies an archive in gzipped tar format. Tarball archiveFormat = "tarball" // Zipball specifies an archive in zip format. Zipball archiveFormat = "zipball" )
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range or equal to 202 Accepted. API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse. Any other response body will be silently ignored.
The error type will be *RateLimitError for rate limit exceeded errors, *AcceptedError for 202 Accepted status codes, and *TwoFactorAuthError for two-factor authentication errors.
func DeliveryID ¶
DeliveryID returns the unique delivery ID of webhook request r.
GitHub API docs: https://developer.github.com/v3/repos/hooks/#webhook-headers
func Int ¶
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
func Int64 ¶
Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.
func ParseWebHook ¶
ParseWebHook parses the event payload. For recognized event types, a value of the corresponding struct type will be returned (as returned by Event.ParsePayload()). An error will be returned for unrecognized event types.
Example usage:
func (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) { payload, err := github.ValidatePayload(r, s.webhookSecretKey) if err != nil { ... } event, err := github.ParseWebHook(github.WebHookType(r), payload) if err != nil { ... } switch event := event.(type) { case *github.CommitCommentEvent: processCommitCommentEvent(event) case *github.CreateEvent: processCreateEvent(event) ... } }
func String ¶
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
func Stringify ¶
func Stringify(message interface{}) string
Stringify attempts to create a reasonable string representation of types in the GitHub library. It does things like resolve pointers to their values and omits struct fields with nil values.
func ValidatePayload ¶
ValidatePayload validates an incoming GitHub Webhook event request and returns the (JSON) payload. The Content-Type header of the payload can be "application/json" or "application/x-www-form-urlencoded". If the Content-Type is neither then an error is returned. secretKey is the GitHub Webhook secret message.
Example usage:
func (s *GitHubEventMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) { payload, err := github.ValidatePayload(r, s.webhookSecretKey) if err != nil { ... } // Process payload... }
func WebHookType ¶
WebHookType returns the event type of webhook request r.
GitHub API docs: https://developer.github.com/v3/repos/hooks/#webhook-headers
Types ¶
type APIMeta ¶
type APIMeta struct { // An Array of IP addresses in CIDR format specifying the addresses // that incoming service hooks will originate from on GitHub.com. Hooks []string `json:"hooks,omitempty"` // An Array of IP addresses in CIDR format specifying the Git servers // for GitHub.com. Git []string `json:"git,omitempty"` // Whether authentication with username and password is supported. // (GitHub Enterprise instances using CAS or OAuth for authentication // will return false. Features like Basic Authentication with a // username and password, sudo mode, and two-factor authentication are // not supported on these servers.) VerifiablePasswordAuthentication *bool `json:"verifiable_password_authentication,omitempty"` // An array of IP addresses in CIDR format specifying the addresses // which serve GitHub Pages websites. Pages []string `json:"pages,omitempty"` // An Array of IP addresses specifying the addresses that source imports // will originate from on GitHub.com. Importer []string `json:"importer,omitempty"` }
APIMeta represents metadata about the GitHub API.
func (*APIMeta) GetVerifiablePasswordAuthentication ¶
GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise.
type AbuseRateLimitError ¶
type AbuseRateLimitError struct { Response *http.Response // HTTP response that caused this error Message string `json:"message"` // error message // RetryAfter is provided with some abuse rate limit errors. If present, // it is the amount of time that the client should wait before retrying. // Otherwise, the client should try again later (after an unspecified amount of time). RetryAfter *time.Duration }
AbuseRateLimitError occurs when GitHub returns 403 Forbidden response with the "documentation_url" field value equal to "https://developer.github.com/v3/#abuse-rate-limits".
func (*AbuseRateLimitError) Error ¶
func (r *AbuseRateLimitError) Error() string
func (*AbuseRateLimitError) GetRetryAfter ¶
func (a *AbuseRateLimitError) GetRetryAfter() time.Duration
GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.
type AcceptedError ¶
type AcceptedError struct{}
AcceptedError occurs when GitHub returns 202 Accepted response with an empty body, which means a job was scheduled on the GitHub side to process the information needed and cache it. Technically, 202 Accepted is not a real error, it's just used to indicate that results are not ready yet, but should be available soon. The request can be repeated after some time.
func (*AcceptedError) Error ¶
func (*AcceptedError) Error() string
type ActivityListStarredOptions ¶
type ActivityListStarredOptions struct { // How to sort the repository list. Possible values are: created, updated, // pushed, full_name. Default is "full_name". Sort string `url:"sort,omitempty"` // Direction in which to sort repositories. Possible values are: asc, desc. // Default is "asc" when sort is "full_name", otherwise default is "desc". Direction string `url:"direction,omitempty"` ListOptions }
ActivityListStarredOptions specifies the optional parameters to the ActivityService.ListStarred method.
type ActivityService ¶
type ActivityService service
ActivityService handles communication with the activity related methods of the GitHub API.
GitHub API docs: https://developer.github.com/v3/activity/
func (*ActivityService) DeleteRepositorySubscription ¶
func (s *ActivityService) DeleteRepositorySubscription(ctx context.Context, owner, repo string) (*Response, error)
DeleteRepositorySubscription deletes the subscription for the specified repository for the authenticated user.
This is used to stop watching a repository. To control whether or not to receive notifications from a repository, use SetRepositorySubscription.
GitHub API docs: https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription
func (*ActivityService) DeleteThreadSubscription ¶
func (s *ActivityService) DeleteThreadSubscription(ctx context.Context, id string) (*Response, error)
DeleteThreadSubscription deletes the subscription for the specified thread for the authenticated user.
GitHub API docs: https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
func (*ActivityService) GetRepositorySubscription ¶
func (s *ActivityService) GetRepositorySubscription(ctx context.Context, owner, repo string) (*Subscription, *Response, error)
GetRepositorySubscription returns the subscription for the specified repository for the authenticated user. If the authenticated user is not watching the repository, a nil Subscription is returned.
GitHub API docs: https://developer.github.com/v3/activity/watching/#get-a-repository-subscription
func (*ActivityService) GetThread ¶
func (s *ActivityService) GetThread(ctx context.Context, id string) (*Notification, *Response, error)
GetThread gets the specified notification thread.
GitHub API docs: https://developer.github.com/v3/activity/notifications/#view-a-single-thread
func (*ActivityService) GetThreadSubscription ¶
func (s *ActivityService) GetThreadSubscription(ctx context.Context, id string) (*Subscription, *Response, error)
GetThreadSubscription checks to see if the authenticated user is subscribed to a thread.
GitHub API docs: https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription
func (*ActivityService) IsStarred ¶
func (s *ActivityService) IsStarred(ctx context.Context, owner, repo string) (bool, *Response, error)
IsStarred checks if a repository is starred by authenticated user.
GitHub API docs: https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository
func (*ActivityService) ListEvents ¶
func (s *ActivityService) ListEvents(ctx context.Context, opt *ListOptions) ([]*Event, *Response, error)
ListEvents drinks from the firehose of all public events across GitHub.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-public-events
func (*ActivityService) ListEventsForOrganization ¶
func (s *ActivityService) ListEventsForOrganization(ctx context.Context, org string, opt *ListOptions) ([]*Event, *Response, error)
ListEventsForOrganization lists public events for an organization.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-public-events-for-an-organization
func (*ActivityService) ListEventsForRepoNetwork ¶
func (s *ActivityService) ListEventsForRepoNetwork(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Event, *Response, error)
ListEventsForRepoNetwork lists public events for a network of repositories.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
func (*ActivityService) ListEventsPerformedByUser ¶
func (s *ActivityService) ListEventsPerformedByUser(ctx context.Context, user string, publicOnly bool, opt *ListOptions) ([]*Event, *Response, error)
ListEventsPerformedByUser lists the events performed by a user. If publicOnly is true, only public events will be returned.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
func (*ActivityService) ListEventsReceivedByUser ¶
func (s *ActivityService) ListEventsReceivedByUser(ctx context.Context, user string, publicOnly bool, opt *ListOptions) ([]*Event, *Response, error)
ListEventsReceivedByUser lists the events received by a user. If publicOnly is true, only public events will be returned.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
func (*ActivityService) ListFeeds ¶
ListFeeds lists all the feeds available to the authenticated user.
GitHub provides several timeline resources in Atom format:
Timeline: The GitHub global public timeline User: The public timeline for any user, using URI template Current user public: The public timeline for the authenticated user Current user: The private timeline for the authenticated user Current user actor: The private timeline for activity created by the authenticated user Current user organizations: The private timeline for the organizations the authenticated user is a member of.
Note: Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens.
func (*ActivityService) ListIssueEventsForRepository ¶
func (s *ActivityService) ListIssueEventsForRepository(ctx context.Context, owner, repo string, opt *ListOptions) ([]*IssueEvent, *Response, error)
ListIssueEventsForRepository lists issue events for a repository.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
func (*ActivityService) ListNotifications ¶
func (s *ActivityService) ListNotifications(ctx context.Context, opt *NotificationListOptions) ([]*Notification, *Response, error)
ListNotifications lists all notifications for the authenticated user.
GitHub API docs: https://developer.github.com/v3/activity/notifications/#list-your-notifications
func (*ActivityService) ListRepositoryEvents ¶
func (s *ActivityService) ListRepositoryEvents(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Event, *Response, error)
ListRepositoryEvents lists events for a repository.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-repository-events
func (*ActivityService) ListRepositoryNotifications ¶
func (s *ActivityService) ListRepositoryNotifications(ctx context.Context, owner, repo string, opt *NotificationListOptions) ([]*Notification, *Response, error)
ListRepositoryNotifications lists all notifications in a given repository for the authenticated user.
GitHub API docs: https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository
func (*ActivityService) ListStargazers ¶
func (s *ActivityService) ListStargazers(ctx context.Context, owner, repo string, opt *ListOptions) ([]*Stargazer, *Response, error)
ListStargazers lists people who have starred the specified repo.
GitHub API docs: https://developer.github.com/v3/activity/starring/#list-stargazers
func (*ActivityService) ListStarred ¶
func (s *ActivityService) ListStarred(ctx context.Context, user string, opt *ActivityListStarredOptions) ([]*StarredRepository, *Response, error)
ListStarred lists all the repos starred by a user. Passing the empty string will list the starred repositories for the authenticated user.
GitHub API docs: https://developer.github.com/v3/activity/starring/#list-repositories-being-starred
func (*ActivityService) ListUserEventsForOrganization ¶
func (s *ActivityService) ListUserEventsForOrganization(ctx context.Context, org, user string, opt *ListOptions) ([]*Event, *Response, error)
ListUserEventsForOrganization provides the user’s organization dashboard. You must be authenticated as the user to view this.
GitHub API docs: https://developer.github.com/v3/activity/events/#list-events-for-an-organization
func (*ActivityService) ListWatched ¶
func (s *ActivityService) ListWatched(ctx context.Context, user string, opt *ListOptions) ([]*Repository, *Response, error)
ListWatched lists the repositories the specified user is watching. Passing the empty string will fetch watched repos for the authenticated user.
GitHub API docs: https://developer.github.com/v3/activity/watching/#list-repositories-being-watched
func (*ActivityService) ListWatchers ¶
func (s *ActivityService) ListWatchers(ctx context.Context, owner, repo string, opt *ListOptions) ([]*User, *Response, error)
ListWatchers lists watchers of a particular repo.
GitHub API docs: https://developer.github.com/v3/activity/watching/#list-watchers
func (*ActivityService) MarkNotificationsRead ¶
func (s *ActivityService) MarkNotificationsRead(ctx context.Context, lastRead time.Time) (*Response, error)
MarkNotificationsRead marks all notifications up to lastRead as read.
GitHub API docs: https://developer.github.com/v3/activity/notifications/#mark-as-read
func (*ActivityService) MarkRepositoryNotificationsRead ¶
func (s *ActivityService) MarkRepositoryNotificationsRead(ctx context.Context, owner, repo string, lastRead time.Time) (*Response, error)
MarkRepositoryNotificationsRead marks all notifications up to lastRead in the specified repository as read.
GitHub API docs: https://developer.github.com/v3/activity/n