Versions in this module Expand all Collapse all v0 v0.0.7 Nov 17, 2023 v0.0.6 Nov 17, 2023 v0.0.5 Sep 5, 2023 v0.0.4 May 24, 2023 v0.0.3 Mar 16, 2023 v0.0.2 Mar 13, 2023 Changes in this version + const Approve + const Comment + const DefaultAPIEndpoint + const DefaultGraphQLEndpoint + const DefaultHost + const DefaultInitialDelay + const DefaultMax404Retries + const DefaultMaxRetries + const DefaultMaxSleepTime + const DiffSideLeft + const DiffSideRight + const EventGUID + const ImageSizeLimit + const MaxRequestTime + const OrgLogField + const PrLogField + const PrivacyClosed + const PrivacySecret + const PullRequestFileAdded + const PullRequestFileModified + const PullRequestFileRemoved + const PullRequestFileRenamed + const PullRequestStateClosed + const PullRequestStateOpen + const ReactionConfused + const ReactionHeart + const ReactionHooray + const ReactionLaugh + const ReactionThumbsDown + const ReactionThumbsUp + const RepoLogField + const RequestChanges + const ReviewStateApproved + const ReviewStateChangesRequested + const ReviewStateCommented + const ReviewStateDismissed + const ReviewStatePending + const RoleAdmin + const RoleAll + const RoleMaintainer + const RoleMember + const SearchTimeFormat + const StateActive + const StatePending + const StatusError + const StatusFailure + const StatusPending + const StatusSuccess + const UserTypeBot + const UserTypeUser + var AllHookEvents = []string + var FoundingYear = time.Parse(SearchTimeFormat, "2007-01-01T00:00:00Z") + var SecurityForkNameRE = regexp.MustCompile(`^[\w-]+-ghsa-[\w-]+$`) + var TimeNow = func() time.Time + func HasLabel(label string, issueLabels []Label) bool + func HasLabels(labels []string, issueLabels []Label) bool + func ImageTooBig(url string) (bool, error) + func IsNotFound(err error) bool + func NewAppsAuthClientWithFields(fields logrus.Fields, censor func([]byte) []byte, appID string, ...) (TokenGenerator, UserGenerator, Client, error) + func NewAppsAuthDryRunClientWithFields(fields logrus.Fields, censor func([]byte) []byte, appId string, ...) (TokenGenerator, UserGenerator, Client, error) + func NewClientFromOptions(fields logrus.Fields, options ClientOptions) (TokenGenerator, UserGenerator, Client, error) + func NewNotFound() error + func NormLogin(login string) string + func PayloadSignature(payload []byte, key []byte) string + func ValidatePayload(payload []byte, sig string, tokenGenerator func() []byte) bool + func ValidateWebhook(w http.ResponseWriter, r *http.Request, tokenGenerator func() []byte) (string, string, []byte, bool, int) + type AllowDeletions struct + Enabled bool + type AllowForcePushes struct + Enabled bool + type AlternativeClientError struct + DocumentationURL string + Errors []string + Message string + func (r AlternativeClientError) Error() string + type App struct + CreatedAt string + Description string + Events []string + ExternalURL string + HTMLURL string + ID int64 + Name string + NodeID string + Owner User + Permissions *InstallationPermissions + Slug string + UpdatedAt string + type AppInstallation struct + AccessTokensURL string + Account User + AppID int64 + AppSlug string + CreatedAt string + Events []string + HTMLURL string + ID int64 + NodeID string + Permissions InstallationPermissions + RepositoriesURL string + RepositorySelection string + SingleFileName string + TargetID int64 + TargetType string + UpdatedAt string + type AppInstallationList struct + Installations []AppInstallation + Total int + type AppInstallationToken struct + ExpiresAt time.Time + Permissions InstallationPermissions + Repositories []Repo + Token string + type Branch struct + Name string + Protected bool + type BranchProtection struct + AllowDeletions AllowDeletions + AllowForcePushes AllowForcePushes + EnforceAdmins EnforceAdmins + RequiredLinearHistory RequiredLinearHistory + RequiredPullRequestReviews *RequiredPullRequestReviews + RequiredStatusChecks *RequiredStatusChecks + Restrictions *Restrictions + type BranchProtectionRequest struct + AllowDeletions bool + AllowForcePushes bool + EnforceAdmins *bool + RequiredLinearHistory bool + RequiredPullRequestReviews *RequiredPullRequestReviewsRequest + RequiredStatusChecks *RequiredStatusChecks + Restrictions *RestrictionsRequest + func (r BranchProtectionRequest) String() string + type BypassRestrictions struct + Teams []Team + Users []User + type BypassRestrictionsRequest struct + Teams *[]string + Users *[]string + type CheckRun struct + App App + CheckSuite CheckSuite + CompletedAt string + Conclusion string + DetailsURL string + ExternalID string + HTMLURL string + HeadSHA string + ID int64 + Name string + NodeID string + Output CheckRunOutput + PullRequests []PullRequest + StartedAt string + Status string + URL string + type CheckRunAnnotation struct + AnnotationLevel string + EndColumn int + EndLine int + Message string + Path string + RawDetails string + StartColumn int + StartLine int + Title string + type CheckRunImage struct + Alt string + Caption string + ImageURL string + type CheckRunList struct + CheckRuns []CheckRun + Total int + type CheckRunOutput struct + Annotations []CheckRunAnnotation + AnnotationsCount int + AnnotationsURL string + Images []CheckRunImage + Summary string + Text string + Title string + type CheckSuite struct + AfterSHA string + App *App + BeforeSHA string + Conclusion string + HeadBranch string + HeadCommit *Commit + HeadSHA string + ID int64 + NodeID string + PullRequests []PullRequest + Repository *Repo + Status string + URL string + type Client interface + ForPlugin func(plugin string) Client + ForSubcomponent func(subcomponent string) Client + GetApp func() (*App, error) + GetAppWithContext func(ctx context.Context) (*App, error) + GetFailedActionRunsByHeadBranch func(org, repo, branchName, headSHA string) ([]WorkflowRun, error) + IsAppInstalled func(org, repo string) (bool, error) + ListAppInstallations func() ([]AppInstallation, error) + ListAppInstallationsForOrg func(org string) ([]AppInstallation, error) + MutateWithGitHubAppsSupport func(ctx context.Context, m interface{}, input githubql.Input, ...) error + QueryWithGitHubAppsSupport func(ctx context.Context, q interface{}, vars map[string]interface{}, org string) error + SetMax404Retries func(int) + Throttle func(hourlyTokens, burst int, org ...string) error + TriggerGitHubWorkflow func(org, repo string, id int) error + Used func() bool + UsesAppAuth func() bool + WithFields func(fields logrus.Fields) Client + func NewClient(getToken func() []byte, censor func([]byte) []byte, graphqlEndpoint string, ...) (Client, error) + func NewClientWithFields(fields logrus.Fields, getToken func() []byte, censor func([]byte) []byte, ...) (Client, error) + func NewDryRunClient(getToken func() []byte, censor func([]byte) []byte, graphqlEndpoint string, ...) (Client, error) + func NewDryRunClientWithFields(fields logrus.Fields, getToken func() []byte, censor func([]byte) []byte, ...) (Client, error) + func NewFakeClient() Client + type ClientError struct + Errors []clientErrorSubError + Message string + func (r ClientError) Error() string + type ClientOptions struct + AppID string + AppPrivateKey func() *rsa.PrivateKey + BaseRoundTripper http.RoundTripper + Bases []string + Censor func([]byte) []byte + DryRun bool + GetToken func() []byte + GraphqlEndpoint string + InitialDelay time.Duration + Max404Retries int + MaxRequestTime time.Duration + MaxRetries int + MaxSleepTime time.Duration + func (o ClientOptions) Default() ClientOptions + type CombinedStatus struct + SHA string + State string + Statuses []Status + type CommentClient interface + CreateComment func(org, repo string, number int, comment string) error + CreateCommentReaction func(org, repo string, id int, reaction string) error + CreateCommentWithContext func(ctx context.Context, org, repo string, number int, comment string) error + DeleteComment func(org, repo string, id int) error + DeleteCommentWithContext func(ctx context.Context, org, repo string, id int) error + DeleteStaleComments func(org, repo string, number int, comments []IssueComment, ...) error + DeleteStaleCommentsWithContext func(ctx context.Context, org, repo string, number int, comments []IssueComment, ...) error + EditComment func(org, repo string, id int, comment string) error + EditCommentWithContext func(ctx context.Context, org, repo string, id int, comment string) error + type Commit struct + Added []string + ID string + Message string + Modified []string + Removed []string + type CommitAuthor struct + Date time.Time + Email string + Login *string + Name string + type CommitClient interface + CreateCheckRun func(org, repo string, checkRun CheckRun) error + CreateStatus func(org, repo, SHA string, s Status) error + CreateStatusWithContext func(ctx context.Context, org, repo, SHA string, s Status) error + DeleteRef func(org, repo, ref string) error + GetCombinedStatus func(org, repo, ref string) (*CombinedStatus, error) + GetRef func(org, repo, ref string) (string, error) + GetSingleCommit func(org, repo, SHA string) (RepositoryCommit, error) + ListCheckRuns func(org, repo, ref string) (*CheckRunList, error) + ListFileCommits func(org, repo, path string) ([]RepositoryCommit, error) + ListStatuses func(org, repo, ref string) ([]Status, error) + type CommitFile struct + Additions int + BlobURL string + Changes int + ContentsURL string + Deletions int + Filename string + Patch string + PreviousFilename string + RawURL string + SHA string + Status string + type CommitStats struct + Additions int + Deletions int + Total int + type Content struct + Content string + SHA string + type DiffSide string + type DirectoryContent struct + Name string + Path string + SHA string + Type string + type DismissalRestrictions struct + Teams []Team + Users []User + type DismissalRestrictionsRequest struct + Teams *[]string + Users *[]string + type DismissedReview struct + DismissalCommitID string + DismissalMessage string + ReviewID int64 + State string + type DraftReview struct + Action ReviewAction + Body string + Comments []DraftReviewComment + CommitSHA string + type DraftReviewComment struct + Body string + Path string + Position int + type EnforceAdmins struct + Enabled bool + type ExtraUsers struct + Users []string + func (e ExtraUsers) Error() string + type FileNotFound struct + func (e *FileNotFound) Error() string + type FullRepo struct + AllowMergeCommit bool + AllowRebaseMerge bool + AllowSquashMerge bool + SquashMergeCommitMessage string + SquashMergeCommitTitle string + type GenericCommentEvent struct + Action GenericCommentEventAction + Assignees []User + Body string + CommentID *int + GUID string + HTMLURL string + ID int + IsPR bool + IssueAuthor User + IssueBody string + IssueHTMLURL string + IssueState string + IssueTitle string + NodeID string + Number int + Repo Repo + User User + type GenericCommentEventAction string + const GenericCommentActionCreated + const GenericCommentActionDeleted + const GenericCommentActionEdited + type GenericEvent struct + Org Organization + Repo Repo + Sender User + type GetRefResponse []GetRefResult + func (grr *GetRefResponse) RefNames() []string + func (grr *GetRefResponse) UnmarshalJSON(data []byte) error + type GetRefResult struct + NodeID string + Object struct{ ... } + Ref string + URL string + type GetRefTooManyResultsError struct + func (GetRefTooManyResultsError) Is(err error) bool + func (e GetRefTooManyResultsError) Error() string + type GitCommit struct + Author CommitAuthor + CommentCount *int + Committer CommitAuthor + HTMLURL string + Message string + NodeID string + Parents []GitCommit + SHA string + Stats *CommitStats + Tree Tree + URL string + Verification *SignatureVerification + type HMACToken struct + CreatedAt time.Time + Value string + type HMACsForRepo []HMACToken + type Hook struct + Active bool + Config HookConfig + Events []string + ID int + Name string + type HookClient interface + AcceptUserOrgInvitation func(org string) error + AcceptUserRepoInvitation func(invitationID int) error + CreateOrgHook func(org string, req HookRequest) (int, error) + CreateRepoHook func(org, repo string, req HookRequest) (int, error) + DeleteOrgHook func(org string, id int, req HookRequest) error + DeleteRepoHook func(org, repo string, id int, req HookRequest) error + EditOrgHook func(org string, id int, req HookRequest) error + EditRepoHook func(org, repo string, id int, req HookRequest) error + ListCurrentUserOrgInvitations func() ([]UserOrgInvitation, error) + ListCurrentUserRepoInvitations func() ([]UserRepoInvitation, error) + ListOrgHooks func(org string) ([]Hook, error) + ListRepoHooks func(org, repo string) ([]Hook, error) + type HookConfig struct + ContentType *string + Secret *string + URL string + type HookRequest struct + Active *bool + AddEvents []string + Config *HookConfig + Events []string + Name string + RemoveEvents []string + type InstallationPermissions struct + Administration string + Blocking string + Checks string + ContentReferences string + Contents string + Deployments string + Emails string + Followers string + Issues string + Members string + Metadata string + OrganizationAdministration string + OrganizationHooks string + OrganizationPlan string + OrganizationPreReceiveHooks string + OrganizationProjects string + OrganizationUserBlocking string + Packages string + Pages string + PullRequests string + RepositoryHooks string + RepositoryPreReceiveHooks string + RepositoryProjects string + SingleFile string + Statuses string + TeamDiscussions string + VulnerabilityAlerts string + type Issue struct + Assignees []User + Body string + CreatedAt time.Time + HTMLURL string + ID int + Labels []Label + Milestone Milestone + NodeID string + Number int + PullRequest *struct{} + State string + StateReason string + Title string + UpdatedAt time.Time + User User + func (i Issue) HasLabel(labelToFind string) bool + func (i Issue) IsAssignee(login string) bool + func (i Issue) IsAuthor(login string) bool + func (i Issue) IsPullRequest() bool + type IssueClient interface + AssignIssue func(org, repo string, number int, logins []string) error + CloseIssue func(org, repo string, number int) error + CloseIssueAsNotPlanned func(org, repo string, number int) error + CreateIssue func(org, repo, title, body string, milestone int, labels, assignees []string) (int, error) + CreateIssueReaction func(org, repo string, id int, reaction string) error + EditIssue func(org, repo string, number int, issue *Issue) (*Issue, error) + FindIssues func(query, sort string, asc bool) ([]Issue, error) + FindIssuesWithOrg func(org, query, sort string, asc bool) ([]Issue, error) + GetIssue func(org, repo string, number int) (*Issue, error) + GetIssueLabels func(org, repo string, number int) ([]Label, error) + ListIssueComments func(org, repo string, number int) ([]IssueComment, error) + ListIssueCommentsWithContext func(ctx context.Context, org, repo string, number int) ([]IssueComment, error) + ListIssueEvents func(org, repo string, num int) ([]ListedIssueEvent, error) + ListOpenIssues func(org, repo string) ([]Issue, error) + ReopenIssue func(org, repo string, number int) error + UnassignIssue func(org, repo string, number int, logins []string) error + type IssueComment struct + Body string + CreatedAt time.Time + HTMLURL string + ID int + UpdatedAt time.Time + User User + type IssueCommentEvent struct + Action IssueCommentEventAction + Comment IssueComment + GUID string + Issue Issue + Repo Repo + type IssueCommentEventAction string + const IssueCommentActionCreated + const IssueCommentActionDeleted + const IssueCommentActionEdited + type IssueEvent struct + Action IssueEventAction + GUID string + Issue Issue + Label Label + Repo Repo + Sender User + type IssueEventAction string + const IssueActionAssigned + const IssueActionClosed + const IssueActionDeleted + const IssueActionDemilestoned + const IssueActionEdited + const IssueActionLabeled + const IssueActionLocked + const IssueActionMilestoned + const IssueActionOpened + const IssueActionPinned + const IssueActionReopened + const IssueActionTransferred + const IssueActionUnassigned + const IssueActionUnlabeled + const IssueActionUnlocked + const IssueActionUnpinned + type IssuesSearchResult struct + Issues []Issue + Total int + type Label struct + Color string + Description string + Name string + URL string + type ListedIssueEvent struct + Actor User + Assignee User + Assigner User + CommitID string + CreatedAt time.Time + DismissedReview DismissedReview + Event IssueEventAction + ID int64 + Issue Issue + Label Label + LockReason string + Milestone Milestone + ProjectCard ProjectCard + Rename Rename + RequestedReviewer User + ReviewRequester User + URL string + type Membership struct + Role string + State string + type MergeCommitsForbiddenError string + func (e MergeCommitsForbiddenError) Error() string + type MergeDetails struct + CommitMessage string + CommitTitle string + MergeMethod string + SHA string + type Milestone struct + Number int + State string + Title string + type MilestoneClient interface + ClearMilestone func(org, repo string, num int) error + ListMilestones func(org, repo string) ([]Milestone, error) + SetMilestone func(org, repo string, issueNum, milestoneNum int) error + type MissingUsers struct + Users []string + func (m MissingUsers) Error() string + type ModifiedHeadError string + func (e ModifiedHeadError) Error() string + type OrgInvitation struct + Email string + Inviter TeamMember + type OrgMembership struct + type OrgPermissionLevel string + const OrgAdmin + const OrgMember + const OrgReinstate + const OrgUnaffiliated + func (l *OrgPermissionLevel) UnmarshalText(text []byte) error + func (l OrgPermissionLevel) MarshalText() ([]byte, error) + type Organization struct + BillingEmail string + Company string + DefaultRepositoryPermission string + Description string + Email string + HasOrganizationProjects bool + HasRepositoryProjects bool + Id int + Location string + Login string + MembersCanCreateRepositories bool + Name string + type OrganizationClient interface + EditOrg func(name string, config Organization) (*Organization, error) + GetOrg func(name string) (*Organization, error) + GetUserPermission func(org, repo, user string) (string, error) + HasPermission func(org, repo, user string, roles ...string) (bool, error) + IsMember func(org, user string) (bool, error) + ListOrgInvitations func(org string) ([]OrgInvitation, error) + ListOrgMembers func(org, role string) ([]TeamMember, error) + RemoveOrgMembership func(org, user string) error + UpdateOrgMembership func(org, user string, admin bool) (*OrgMembership, error) + type ParentRepo struct + FullName string + HTMLURL string + Name string + Owner User + type Project struct + ID int + Name string + type ProjectCard struct + ContentID int + ContentType string + ContentURL string + ID int + type ProjectClient interface + CreateProjectCard func(org string, columnID int, projectCard ProjectCard) (*ProjectCard, error) + DeleteProjectCard func(org string, projectCardID int) error + GetColumnProjectCard func(org string, columnID int, issueURL string) (*ProjectCard, error) + GetColumnProjectCards func(org string, columnID int) ([]ProjectCard, error) + GetOrgProjects func(org string) ([]Project, error) + GetProjectColumns func(org string, projectID int) ([]ProjectColumn, error) + GetRepoProjects func(owner, repo string) ([]Project, error) + MoveProjectCard func(org string, projectCardID int, newColumnID int) error + type ProjectColumn struct + ID int + Name string + type PullRequest struct + Assignees []User + AuthorAssociation string + Base PullRequestBranch + Body string + Commits int + CreatedAt time.Time + Draft bool + HTMLURL string + Head PullRequestBranch + ID int + Labels []Label + Mergable *bool + MergeSHA *string + Merged bool + Milestone *Milestone + NodeID string + Number int + RequestedReviewers []User + RequestedTeams []Team + State string + Title string + UpdatedAt time.Time + User User + type PullRequestBranch struct + Ref string + Repo Repo + SHA string + type PullRequestChange struct + Additions int + BlobURL string + Changes int + Deletions int + Filename string + Patch string + PreviousFilename string + SHA string + Status string + type PullRequestClient interface + ClosePR func(org, repo string, number int) error + CreatePullRequest func(org, repo, title, body, head, base string, canModify bool) (int, error) + CreatePullRequestReviewComment func(org, repo string, number int, rc ReviewComment) error + CreateReview func(org, repo string, number int, r DraftReview) error + EditPullRequest func(org, repo string, number int, pr *PullRequest) (*PullRequest, error) + GetPullRequest func(org, repo string, number int) (*PullRequest, error) + GetPullRequestChanges func(org, repo string, number int) ([]PullRequestChange, error) + GetPullRequestPatch func(org, repo string, number int) ([]byte, error) + GetPullRequests func(org, repo string) ([]PullRequest, error) + IsMergeable func(org, repo string, number int, SHA string) (bool, error) + ListPRCommits func(org, repo string, number int) ([]RepositoryCommit, error) + ListPullRequestComments func(org, repo string, number int) ([]ReviewComment, error) + ListReviews func(org, repo string, number int) ([]Review, error) + Merge func(org, repo string, pr int, details MergeDetails) error + ReopenPR func(org, repo string, number int) error + RequestReview func(org, repo string, number int, logins []string) error + UnrequestReview func(org, repo string, number int, logins []string) error + UpdatePullRequest func(org, repo string, number int, title, body *string, open *bool, branch *string, ...) error + UpdatePullRequestBranch func(org, repo string, number int, expectedHeadSha *string) error + type PullRequestEvent struct + Action PullRequestEventAction + Changes json.RawMessage + GUID string + Label Label + Number int + PullRequest PullRequest + Repo Repo + Sender User + type PullRequestEventAction string + const PullRequestActionAssigned + const PullRequestActionAutoMergeDisabled + const PullRequestActionAutoMergeEnabled + const PullRequestActionClosed + const PullRequestActionConvertedToDraft + const PullRequestActionEdited + const PullRequestActionLabeled + const PullRequestActionLocked + const PullRequestActionOpened + const PullRequestActionReadyForReview + const PullRequestActionReopened + const PullRequestActionReviewRequestRemoved + const PullRequestActionReviewRequested + const PullRequestActionSynchronize + const PullRequestActionUnassigned + const PullRequestActionUnlabeled + const PullRequestActionUnlocked + type PullRequestFileStatus string + type PushEvent struct + After string + Before string + Commits []Commit + Compare string + Created bool + Deleted bool + Forced bool + GUID string + Pusher User + Ref string + Repo Repo + Sender User + func (pe PushEvent) Branch() string + type Reaction struct + Content string + type Rename struct + From string + To string + type Repo struct + Archived bool + DefaultBranch string + Description string + Fork bool + FullName string + HTMLURL string + HasIssues bool + HasProjects bool + HasWiki bool + Homepage string + Name string + NodeID string + Owner User + Parent ParentRepo + Permissions RepoPermissions + Private bool + type RepoCreateRequest struct + AutoInit *bool + GitignoreTemplate *string + LicenseTemplate *string + type RepoPermissionLevel string + const Admin + const Maintain + const None + const Read + const Triage + const Write + func LevelFromPermissions(permissions RepoPermissions) RepoPermissionLevel + func (l *RepoPermissionLevel) UnmarshalText(text []byte) error + func (l RepoPermissionLevel) MarshalText() ([]byte, error) + type RepoPermissions struct + Admin bool + Maintain bool + Pull bool + Push bool + Triage bool + func PermissionsFromTeamPermission(permission TeamPermission) RepoPermissions + type RepoRequest struct + AllowMergeCommit *bool + AllowRebaseMerge *bool + AllowSquashMerge *bool + Description *string + HasIssues *bool + HasProjects *bool + HasWiki *bool + Homepage *string + Name *string + Private *bool + SquashMergeCommitMessage *string + SquashMergeCommitTitle *string + func (r RepoRequest) Defined() bool + func (r RepoRequest) ToRepo() *FullRepo + type RepoUpdateRequest struct + Archived *bool + DefaultBranch *string + func (r RepoUpdateRequest) Defined() bool + func (r RepoUpdateRequest) ToRepo() *FullRepo + type RepositoryClient interface + AddLabel func(org, repo string, number int, label string) error + AddLabelWithContext func(ctx context.Context, org, repo string, number int, label string) error + AddLabels func(org, repo string, number int, labels ...string) error + AddLabelsWithContext func(ctx context.Context, org, repo string, number int, labels ...string) error + AddRepoLabel func(org, repo, label, description, color string) error + CreateFork func(owner, repo string) (string, error) + CreateRepo func(owner string, isUser bool, repo RepoCreateRequest) (*FullRepo, error) + DeleteRepoLabel func(org, repo, label string) error + EnsureFork func(forkingUser, org, repo string) (string, error) + GetBranchProtection func(org, repo, branch string) (*BranchProtection, error) + GetBranches func(org, repo string, onlyProtected bool) ([]Branch, error) + GetDirectory func(org, repo, dirpath, commit string) ([]DirectoryContent, error) + GetFile func(org, repo, filepath, commit string) ([]byte, error) + GetRepo func(owner, name string) (FullRepo, error) + GetRepoLabels func(org, repo string) ([]Label, error) + GetRepos func(org string, isUser bool) ([]Repo, error) + IsCollaborator func(org, repo, user string) (bool, error) + ListCollaborators func(org, repo string) ([]User, error) + ListRepoTeams func(org, repo string) ([]Team, error) + RemoveBranchProtection func(org, repo, branch string) error + RemoveLabel func(org, repo string, number int, label string) error + RemoveLabelWithContext func(ctx context.Context, org, repo string, number int, label string) error + UpdateBranchProtection func(org, repo, branch string, config BranchProtectionRequest) error + UpdateRepo func(owner, name string, repo RepoUpdateRequest) (*FullRepo, error) + UpdateRepoLabel func(org, repo, label, newName, description, color string) error + WasLabelAddedByHuman func(org, repo string, number int, label string) (bool, error) + type RepositoryCommit struct + Author User + CommentsURL string + Commit GitCommit + Committer User + Files []CommitFile + HTMLURL string + NodeID string + Parents []GitCommit + SHA string + Stats *CommitStats + URL string + type RequiredLinearHistory struct + Enabled bool + type RequiredPullRequestReviews struct + BypassRestrictions *BypassRestrictions + DismissStaleReviews bool + DismissalRestrictions *DismissalRestrictions + RequireCodeOwnerReviews bool + RequiredApprovingReviewCount int + type RequiredPullRequestReviewsRequest struct + BypassRestrictions BypassRestrictionsRequest + DismissStaleReviews bool + DismissalRestrictions DismissalRestrictionsRequest + RequireCodeOwnerReviews bool + RequiredApprovingReviewCount int + type RequiredStatusChecks struct + Contexts []string + Strict bool + type RerunClient interface + GetIssueLabels func(org, repo string, number int) ([]Label, error) + IsCollaborator func(org, repo, user string) (bool, error) + IsMember func(org, user string) (bool, error) + TeamBySlugHasMember func(org string, teamSlug string, memberLogin string) (bool, error) + TeamHasMember func(org string, teamID int, memberLogin string) (bool, error) + type Restrictions struct + Apps []App + Teams []Team + Users []User + type RestrictionsRequest struct + Apps *[]string + Teams *[]string + Users *[]string + type Review struct + Body string + HTMLURL string + ID int + NodeID string + State ReviewState + SubmittedAt time.Time + User User + type ReviewAction string + type ReviewComment struct + Body string + CreatedAt time.Time + HTMLURL string + ID int + Line int + NodeID string + Path string + Position *int + ReviewID int + Side DiffSide + StartLine int + StartSide DiffSide + UpdatedAt time.Time + User User + type ReviewCommentEvent struct + Action ReviewCommentEventAction + Comment ReviewComment + GUID string + PullRequest PullRequest + Repo Repo + type ReviewCommentEventAction string + const ReviewCommentActionCreated + const ReviewCommentActionDeleted + const ReviewCommentActionEdited + type ReviewEvent struct + Action ReviewEventAction + GUID string + PullRequest PullRequest + Repo Repo + Review Review + type ReviewEventAction string + const ReviewActionDismissed + const ReviewActionEdited + const ReviewActionSubmitted + type ReviewState string + type SignatureVerification struct + Payload string + Reason string + Signature string + Verified bool + type StateCannotBeChanged struct + Message string + func (s StateCannotBeChanged) Error() string + type Status struct + Context string + Description string + State string + TargetURL string + type StatusEvent struct + Context string + Description string + GUID string + ID int + Name string + Repo Repo + SHA string + Sender User + State string + TargetURL string + type Team struct + Description string + ID int + Name string + Parent *Team + ParentTeamID *int + Permission TeamPermission + Privacy string + Slug string + type TeamClient interface + CreateTeam func(org string, team Team) (*Team, error) + DeleteTeam func(org string, id int) error + DeleteTeamBySlug func(org, teamSlug string) error + EditTeam func(org string, t Team) (*Team, error) + GetTeamBySlug func(slug string, org string) (*Team, error) + ListTeamInvitations func(org string, id int) ([]OrgInvitation, error) + ListTeamInvitationsBySlug func(org, teamSlug string) ([]OrgInvitation, error) + ListTeamMembers func(org string, id int, role string) ([]TeamMember, error) + ListTeamMembersBySlug func(org, teamSlug, role string) ([]TeamMember, error) + ListTeamRepos func(org string, id int) ([]Repo, error) + ListTeamReposBySlug func(org, teamSlug string) ([]Repo, error) + ListTeams func(org string) ([]Team, error) + RemoveTeamMembership func(org string, id int, user string) error + RemoveTeamMembershipBySlug func(org, teamSlug, user string) error + RemoveTeamRepo func(id int, org, repo string) error + RemoveTeamRepoBySlug func(org, teamSlug, repo string) error + TeamBySlugHasMember func(org string, teamSlug string, memberLogin string) (bool, error) + TeamHasMember func(org string, teamID int, memberLogin string) (bool, error) + UpdateTeamMembership func(org string, id int, user string, maintainer bool) (*TeamMembership, error) + UpdateTeamMembershipBySlug func(org, teamSlug, user string, maintainer bool) (*TeamMembership, error) + UpdateTeamRepo func(id int, org, repo string, permission TeamPermission) error + UpdateTeamRepoBySlug func(org, teamSlug, repo string, permission TeamPermission) error + type TeamMember struct + Login string + type TeamMembership struct + type TeamPermission string + const RepoAdmin + const RepoMaintain + const RepoPull + const RepoPush + const RepoTriage + type TokenGenerator func(org string) (string, error) + type Tree struct + SHA string + type UnauthorizedToPushError string + func (e UnauthorizedToPushError) Error() string + type UnmergablePRBaseChangedError string + func (e UnmergablePRBaseChangedError) Error() string + type UnmergablePRError string + func (e UnmergablePRError) Error() string + type User struct + Email string + HTMLURL string + ID int + Login string + Name string + Permissions RepoPermissions + Type string + type UserClient interface + BotUser func() (*UserData, error) + BotUserChecker func() (func(candidate string) bool, error) + BotUserCheckerWithContext func(ctx context.Context) (func(candidate string) bool, error) + Email func() (string, error) + type UserData struct + Email string + Login string + Name string + type UserGenerator func() (string, error) + type UserOrgInvitation struct + Org UserOrganization + Role OrgPermissionLevel + State string + type UserOrganization struct + Login string + type UserRepoInvitation struct + InvitationID int + Permission RepoPermissionLevel + Repository *Repo + type Workflow struct + CreatedAt time.Time + ID int + Name string + NodeID string + Path string + State string + UpdatedAt time.Time + type WorkflowRun struct + CheckSuiteID int64 + CheckSuiteNodeID string + Conclusion string + CreatedAt time.Time + Event string + HeadBranch string + HeadCommit *Commit + HeadSha string + ID int + Name string + NodeID string + PullRequests []PullRequest + Repository *Repo + RunAttempt int + RunNumber int + RunStartedAt time.Time + Status string + URL string + UpdatedAt time.Time + WorkflowID int + type WorkflowRunEvent struct + Action string + GUID string + Organization Organization + Repo *Repo + Sender User + Workflow Workflow + WorkflowRun WorkflowRun + type WorkflowRuns struct + Count int + WorflowRuns []WorkflowRun