Versions in this module Expand all Collapse all v1 v1.9.106 Dec 1, 2020 v1.9.105 Nov 11, 2020 v1.9.104 Nov 11, 2020 v1.9.103 Nov 11, 2020 v1.9.102 Nov 11, 2020 v1.9.101 Nov 11, 2020 v1.9.100 Nov 11, 2020 v1.9.99 Nov 11, 2020 v1.5.201 Nov 10, 2020 Changes in this version + const AdminPermission + const EmptyCommit + const NoPermission + const ReadPermission + const ReviewStateApproved + const ReviewStateChangesRequested + const ReviewStateCommented + const ReviewStateDismissed + const ReviewStatePending + const SearchTimeFormat + const WritePermission + var ErrNotAuthorized = errors.New("Not Authorized") + var ErrNotFound = errors.New("Not Found") + var ErrNotSupported = errors.New("Not Supported") + var ErrSignatureInvalid = errors.New("Invalid webhook signature") + func ExpandRef(name, prefix string) string + func IsTag(ref string) bool + func IsUnknownWebhook(err error) bool + func Join(owner, name string) string + func Split(s string) (owner, name string) + func TrimRef(ref string) string + func URLJoin(paths ...string) string + func WithContext(parent context.Context, token *Token) context.Context + type Account struct + ID int + Link string + Login string + type Action int + const ActionAssigned + const ActionClose + const ActionCompleted + const ActionCreate + const ActionDelete + const ActionDismissed + const ActionEdited + const ActionLabel + const ActionMerge + const ActionOpen + const ActionReadyForReview + const ActionReopen + const ActionReviewRequestRemoved + const ActionReviewRequested + const ActionSubmitted + const ActionSync + const ActionUnassigned + const ActionUnlabel + const ActionUpdate + func (a *Action) UnmarshalJSON(data []byte) error + func (a Action) MarshalJSON() ([]byte, error) + func (a Action) String() (s string) + type AppService interface + CreateInstallationToken func(ctx context.Context, id int64) (*InstallationToken, *Response, error) + GetOrganisationInstallation func(ctx context.Context, organisation string) (*Installation, *Response, error) + GetRepositoryInstallation func(ctx context.Context, fullName string) (*Installation, *Response, error) + GetUserInstallation func(ctx context.Context, user string) (*Installation, *Response, error) + type BranchHook struct + Action Action + Installation *InstallationRef + Ref Reference + Repo Repository + Sender User + func (h *BranchHook) GetInstallationRef() *InstallationRef + func (h *BranchHook) Kind() WebhookKind + func (h *BranchHook) Repository() Repository + type Change struct + Added bool + Additions int + BlobURL string + Changes int + Deleted bool + Deletions int + Patch string + Path string + PreviousPath string + Renamed bool + Sha string + type CheckRunHook struct + Action Action + Installation *InstallationRef + Label Label + Repo Repository + Sender User + func (h *CheckRunHook) GetInstallationRef() *InstallationRef + func (h *CheckRunHook) Kind() WebhookKind + func (h *CheckRunHook) Repository() Repository + type CheckSuiteHook struct + Action Action + Installation *InstallationRef + Label Label + Repo Repository + Sender User + func (h *CheckSuiteHook) GetInstallationRef() *InstallationRef + func (h *CheckSuiteHook) Kind() WebhookKind + func (h *CheckSuiteHook) Repository() Repository + type Client struct + Apps AppService + BaseURL *url.URL + Client *http.Client + Contents ContentService + Deployments DeploymentService + Driver Driver + DumpResponse func(*http.Response, bool) ([]byte, error) + Git GitService + GraphQL GraphQLService + GraphQLURL *url.URL + Issues IssueService + Milestones MilestoneService + Organizations OrganizationService + PullRequests PullRequestService + Repositories RepositoryService + Reviews ReviewService + Users UserService + Webhooks WebhookService + func (c *Client) Do(ctx context.Context, in *Request) (*Response, error) + func (c *Client) Rate() Rate + func (c *Client) SetRate(rate Rate) + type CombinedStatus struct + Sha string + State State + Statuses []*Status + type Comment struct + Author User + AuthorId int + Body string + Created time.Time + ID int + Link string + Updated time.Time + Version int + type CommentInput struct + Body string + type Commit struct + Author Signature + Committer Signature + Link string + Message string + Sha string + Tree CommitTree + type CommitListOptions struct + Page int + Ref string + Sha string + Size int + type CommitTree struct + Link string + Sha string + type Content struct + Data []byte + Path string + Sha string + type ContentParams struct + Branch string + Data []byte + Message string + Ref string + Sha string + type ContentService interface + Create func(ctx context.Context, repo, path string, params *ContentParams) (*Response, error) + Delete func(ctx context.Context, repo, path, ref string) (*Response, error) + Find func(ctx context.Context, repo, path, ref string) (*Content, *Response, error) + List func(ctx context.Context, repo, path, ref string) ([]*FileEntry, *Response, error) + Update func(ctx context.Context, repo, path string, params *ContentParams) (*Response, error) + type DeployHook struct + Data interface{} + Desc string + Installation *InstallationRef + Ref Reference + Repo Repository + Sender User + Target string + TargetURL string + Task string + func (h *DeployHook) GetInstallationRef() *InstallationRef + func (h *DeployHook) Kind() WebhookKind + func (h *DeployHook) Repository() Repository + type Deployment struct + Author *User + Created time.Time + Description string + Environment string + FullName string + ID string + Link string + Name string + Namespace string + OriginalEnvironment string + ProductionEnvironment bool + Ref string + RepositoryLink string + Sha string + StatusLink string + TransientEnvironment bool + Updated time.Time + type DeploymentInput struct + AutoMerge bool + Description string + Environment string + Payload string + ProductionEnvironment bool + Ref string + RequiredContexts []string + Task string + TransientEnvironment bool + type DeploymentService interface + Create func(ctx context.Context, repoFullName string, deployment *DeploymentInput) (*Deployment, *Response, error) + CreateStatus func(ctx context.Context, repoFullName string, deploymentID string, ...) (*DeploymentStatus, *Response, error) + Delete func(ctx context.Context, repoFullName string, deploymentID string) (*Response, error) + Find func(ctx context.Context, repoFullName string, deploymentID string) (*Deployment, *Response, error) + FindStatus func(ctx context.Context, repoFullName string, deploymentID string, statusID string) (*DeploymentStatus, *Response, error) + List func(ctx context.Context, repoFullName string, opts ListOptions) ([]*Deployment, *Response, error) + ListStatus func(ctx context.Context, repoFullName string, deploymentID string, ...) ([]*DeploymentStatus, *Response, error) + type DeploymentStatus struct + Author *User + Created time.Time + DeploymentLink string + Description string + Environment string + EnvironmentLink string + ID string + LogLink string + RepositoryLink string + State string + TargetLink string + Updated time.Time + type DeploymentStatusHook struct + Action Action + Installation *InstallationRef + Label Label + Repo Repository + Sender User + func (h *DeploymentStatusHook) GetInstallationRef() *InstallationRef + func (h *DeploymentStatusHook) Kind() WebhookKind + func (h *DeploymentStatusHook) Repository() Repository + type DeploymentStatusInput struct + AutoInactive bool + Description string + Environment string + EnvironmentLink string + LogLink string + State string + TargetLink string + type Driver int + const DriverBitbucket + const DriverCoding + const DriverFake + const DriverGitea + const DriverGithub + const DriverGitlab + const DriverGogs + const DriverStash + const DriverUnknown + func (d Driver) String() (s string) + type ExtraUsers struct + Action string + Users []string + func (e ExtraUsers) Error() string + type FileEntry struct + Link string + Name string + Path string + Sha string + Size int + Type string + type ForkHook struct + Installation *InstallationRef + Repo Repository + Sender User + func (h *ForkHook) GetInstallationRef() *InstallationRef + func (h *ForkHook) Kind() WebhookKind + func (h *ForkHook) Repository() Repository + type GitService interface + CreateRef func(ctx context.Context, repo, ref, sha string) (*Reference, *Response, error) + DeleteRef func(ctx context.Context, repo, ref string) (*Response, error) + FindBranch func(ctx context.Context, repo, name string) (*Reference, *Response, error) + FindCommit func(ctx context.Context, repo, ref string) (*Commit, *Response, error) + FindRef func(ctx context.Context, repo, ref string) (string, *Response, error) + FindTag func(ctx context.Context, repo, name string) (*Reference, *Response, error) + ListBranches func(ctx context.Context, repo string, opts ListOptions) ([]*Reference, *Response, error) + ListChanges func(ctx context.Context, repo, ref string, opts ListOptions) ([]*Change, *Response, error) + ListCommits func(ctx context.Context, repo string, opts CommitListOptions) ([]*Commit, *Response, error) + ListTags func(ctx context.Context, repo string, opts ListOptions) ([]*Reference, *Response, error) + type GraphQLService interface + Query func(ctx context.Context, q interface{}, vars map[string]interface{}) error + type Hook struct + Active bool + Events []string + ID string + Name string + SkipVerify bool + Target string + type HookEvents struct + Branch bool + Issue bool + IssueComment bool + PullRequest bool + PullRequestComment bool + Push bool + Review bool + ReviewComment bool + Tag bool + type HookInput struct + Events HookEvents + Name string + NativeEvents []string + Secret string + SkipVerify bool + Target string + type Installation struct + AccessTokensLink string + Account Account + AppID int64 + CreatedAt *time.Time + Events []string + ID int64 + Link string + RepositoriesURL string + RepositorySelection string + TargetID int64 + TargetType string + UpdatedAt *time.Time + type InstallationHook struct + Action Action + Installation *Installation + Repos []*Repository + Sender User + func (h *InstallationHook) GetInstallationRef() *InstallationRef + func (h *InstallationHook) Kind() WebhookKind + func (h *InstallationHook) Repository() Repository + type InstallationRef struct + ID int64 + NodeID string + type InstallationRepositoryHook struct + Action Action + Installation *Installation + ReposAdded []*Repository + ReposRemoved []*Repository + RepositorySelection string + Sender User + func (h *InstallationRepositoryHook) GetInstallationRef() *InstallationRef + func (h *InstallationRepositoryHook) Kind() WebhookKind + func (h *InstallationRepositoryHook) Repository() Repository + type InstallationToken struct + ExpiresAt *time.Time + Token string + type Invitation struct + Created time.Time + ID int64 + Invitee *User + Inviter *User + Link string + Permissions string + Repo *Repository + type Issue struct + Assignees []User + Author User + Body string + Closed bool + Created time.Time + Labels []string + Link string + Locked bool + Number int + PullRequest bool + State string + Title string + Updated time.Time + type IssueCommentHook struct + Action Action + Comment Comment + Installation *InstallationRef + Issue Issue + Repo Repository + Sender User + func (h *IssueCommentHook) GetInstallationRef() *InstallationRef + func (h *IssueCommentHook) Kind() WebhookKind + func (h *IssueCommentHook) Repository() Repository + type IssueHook struct + Action Action + Installation *InstallationRef + Issue Issue + Repo Repository + Sender User + func (h *IssueHook) GetInstallationRef() *InstallationRef + func (h *IssueHook) Kind() WebhookKind + func (h *IssueHook) Repository() Repository + type IssueInput struct + Body string + Title string + type IssueListOptions struct + Closed bool + Open bool + Page int + Size int + type IssueService interface + AddLabel func(ctx context.Context, repo string, number int, label string) (*Response, error) + AssignIssue func(ctx context.Context, repo string, number int, logins []string) (*Response, error) + ClearMilestone func(ctx context.Context, repo string, id int) (*Response, error) + Close func(context.Context, string, int) (*Response, error) + Create func(context.Context, string, *IssueInput) (*Issue, *Response, error) + CreateComment func(context.Context, string, int, *CommentInput) (*Comment, *Response, error) + DeleteComment func(context.Context, string, int, int) (*Response, error) + DeleteLabel func(ctx context.Context, repo string, number int, label string) (*Response, error) + EditComment func(context.Context, string, int, int, *CommentInput) (*Comment, *Response, error) + Find func(context.Context, string, int) (*Issue, *Response, error) + FindComment func(context.Context, string, int, int) (*Comment, *Response, error) + List func(context.Context, string, IssueListOptions) ([]*Issue, *Response, error) + ListComments func(context.Context, string, int, ListOptions) ([]*Comment, *Response, error) + ListEvents func(context.Context, string, int, ListOptions) ([]*ListedIssueEvent, *Response, error) + ListLabels func(context.Context, string, int, ListOptions) ([]*Label, *Response, error) + Lock func(context.Context, string, int) (*Response, error) + Reopen func(context.Context, string, int) (*Response, error) + Search func(context.Context, SearchOptions) ([]*SearchIssue, *Response, error) + SetMilestone func(ctx context.Context, repo string, issueID int, number int) (*Response, error) + UnassignIssue func(ctx context.Context, repo string, number int, logins []string) (*Response, error) + Unlock func(context.Context, string, int) (*Response, error) + type Label struct + Color string + Description string + ID int64 + Name string + URL string + type LabelHook struct + Action Action + Installation *InstallationRef + Label Label + Repo Repository + Sender User + func (h *LabelHook) GetInstallationRef() *InstallationRef + func (h *LabelHook) Kind() WebhookKind + func (h *LabelHook) Repository() Repository + type ListOptions struct + Page int + Size int + URL string + type ListedIssueEvent struct + Actor User + Created time.Time + Event string + Label Label + type Membership struct + OrganizationName string + Role string + State string + type MergeableState string + const MergeableStateConflicting + const MergeableStateMergeable + const MergeableStateUnknown + func ToMergeableState(text string) MergeableState + func (s MergeableState) String() string + type Milestone struct + Description string + DueDate *time.Time + ID int + Link string + Number int + State string + Title string + type MilestoneInput struct + Description string + DueDate *time.Time + State string + Title string + type MilestoneListOptions struct + Closed bool + Open bool + Page int + Size int + type MilestoneService interface + Create func(context.Context, string, *MilestoneInput) (*Milestone, *Response, error) + Delete func(context.Context, string, int) (*Response, error) + Find func(context.Context, string, int) (*Milestone, *Response, error) + List func(context.Context, string, MilestoneListOptions) ([]*Milestone, *Response, error) + Update func(context.Context, string, int, *MilestoneInput) (*Milestone, *Response, error) + type MissingHeader struct + Header string + func (e MissingHeader) Error() string + type MissingUsers struct + Action string + Users []string + func (m MissingUsers) Error() string + type Organization struct + Avatar string + ID int + Name string + Permissions Permissions + type OrganizationInput struct + Description string + Homepage string + Name string + Private bool + type OrganizationPendingInvite struct + ID int + InviterLogin string + Login string + type OrganizationService interface + AcceptOrganizationInvitation func(ctx context.Context, org string) (*Response, error) + Create func(context.Context, *OrganizationInput) (*Organization, *Response, error) + Delete func(context.Context, string) (*Response, error) + Find func(context.Context, string) (*Organization, *Response, error) + IsAdmin func(ctx context.Context, org string, user string) (bool, *Response, error) + IsMember func(ctx context.Context, org string, user string) (bool, *Response, error) + List func(context.Context, ListOptions) ([]*Organization, *Response, error) + ListMemberships func(ctx context.Context, opts ListOptions) ([]*Membership, *Response, error) + ListOrgMembers func(ctx context.Context, org string, ops ListOptions) ([]*TeamMember, *Response, error) + ListPendingInvitations func(ctx context.Context, org string, ops ListOptions) ([]*OrganizationPendingInvite, *Response, error) + ListTeamMembers func(ctx context.Context, id int, role string, ops ListOptions) ([]*TeamMember, *Response, error) + ListTeams func(ctx context.Context, org string, ops ListOptions) ([]*Team, *Response, error) + type Page struct + First int + Last int + Next int + NextURL string + Prev int + type Perm struct + Admin bool + Pull bool + Push bool + type Permissions struct + MembersCreateInternal bool + MembersCreatePrivate bool + MembersCreatePublic bool + type PingHook struct + GUID string + Installation *InstallationRef + Repo Repository + Sender User + func (h *PingHook) GetInstallationRef() *InstallationRef + func (h *PingHook) Kind() WebhookKind + func (h *PingHook) Repository() Repository + type PullRequest struct + Assignees []User + Author User + AuthorId int + Base PullRequestBranch + Body string + Closed bool + Created time.Time + DiffLink string + Draft bool + Fork string + Head PullRequestBranch + Labels []*Label + Link string + MergeSha string + Mergeable bool + MergeableState MergeableState + Merged bool + Milestone Milestone + Number int + Rebaseable bool + Ref string + Reviewers []User + Sha string + Source string + State string + Target string + Title string + Updated time.Time + func (pr *PullRequest) Repository() Repository + type PullRequestBranch struct + Ref string + Repo Repository + Sha string + type PullRequestCommentHook struct + Action Action + Comment Comment + Installation *InstallationRef + PullRequest PullRequest + Repo Repository + Sender User + func (h *PullRequestCommentHook) GetInstallationRef() *InstallationRef + func (h *PullRequestCommentHook) Kind() WebhookKind + func (h *PullRequestCommentHook) Repository() Repository + type PullRequestHook struct + Action Action + Changes PullRequestHookChanges + GUID string + Installation *InstallationRef + Label Label + PullRequest PullRequest + Repo Repository + Sender User + func (h *PullRequestHook) GetInstallationRef() *InstallationRef + func (h *PullRequestHook) Kind() WebhookKind + func (h *PullRequestHook) Repository() Repository + type PullRequestHookBranch struct + Ref PullRequestHookBranchFrom + Repo Repository + Sha PullRequestHookBranchFrom + type PullRequestHookBranchFrom struct + From string + type PullRequestHookChanges struct + Base PullRequestHookBranch + type PullRequestInput struct + Base string + Body string + Head string + Title string + type PullRequestListOptions struct + Closed bool + CreatedAfter *time.Time + CreatedBefore *time.Time + Labels []string + Open bool + Page int + Size int + UpdatedAfter *time.Time + UpdatedBefore *time.Time + type PullRequestMergeOptions struct + CommitTitle string + DeleteSourceBranch bool + MergeMethod string + MergeWhenPipelineSucceeds bool + SHA string + type PullRequestService interface + AddLabel func(ctx context.Context, repo string, number int, label string) (*Response, error) + AssignIssue func(ctx context.Context, repo string, number int, logins []string) (*Response, error) + ClearMilestone func(ctx context.Context, repo string, prID int) (*Response, error) + Close func(context.Context, string, int) (*Response, error) + Create func(context.Context, string, *PullRequestInput) (*PullRequest, *Response, error) + CreateComment func(context.Context, string, int, *CommentInput) (*Comment, *Response, error) + DeleteComment func(context.Context, string, int, int) (*Response, error) + DeleteLabel func(ctx context.Context, repo string, number int, label string) (*Response, error) + EditComment func(context.Context, string, int, int, *CommentInput) (*Comment, *Response, error) + Find func(context.Context, string, int) (*PullRequest, *Response, error) + FindComment func(context.Context, string, int, int) (*Comment, *Response, error) + List func(context.Context, string, PullRequestListOptions) ([]*PullRequest, *Response, error) + ListChanges func(context.Context, string, int, ListOptions) ([]*Change, *Response, error) + ListComments func(context.Context, string, int, ListOptions) ([]*Comment, *Response, error) + ListEvents func(context.Context, string, int, ListOptions) ([]*ListedIssueEvent, *Response, error) + ListLabels func(context.Context, string, int, ListOptions) ([]*Label, *Response, error) + Merge func(context.Context, string, int, *PullRequestMergeOptions) (*Response, error) + Reopen func(context.Context, string, int) (*Response, error) + RequestReview func(ctx context.Context, repo string, number int, logins []string) (*Response, error) + SetMilestone func(ctx context.Context, repo string, prID int, number int) (*Response, error) + UnassignIssue func(ctx context.Context, repo string, number int, logins []string) (*Response, error) + UnrequestReview func(ctx context.Context, repo string, number int, logins []string) (*Response, error) + Update func(context.Context, string, int, *PullRequestInput) (*PullRequest, *Response, error) + type PushCommit struct + Added []string + ID string + Message string + Modified []string + Removed []string + type PushHook struct + After string + BaseRef string + Before string + Commit Commit + Commits []PushCommit + Compare string + Created bool + Deleted bool + Forced bool + GUID string + Installation *InstallationRef + Ref string + Repo Repository + Sender User + func (h *PushHook) GetInstallationRef() *InstallationRef + func (h *PushHook) Kind() WebhookKind + func (h *PushHook) Repository() Repository + type Rate struct + Limit int + Remaining int + Reset int64 + type Reference struct + Name string + Path string + Sha string + type ReleaseHook struct + Action Action + Installation *InstallationRef + Label Label + Repo Repository + Sender User + func (h *ReleaseHook) GetInstallationRef() *InstallationRef + func (h *ReleaseHook) Kind() WebhookKind + func (h *ReleaseHook) Repository() Repository + type Repository struct + Branch string + Clone string + CloneSSH string + Created time.Time + FullName string + ID string + Link string + Name string + Namespace string + Perm *Perm + Private bool + Updated time.Time + type RepositoryHook struct + Action Action + Installation *InstallationRef + Repo Repository + Sender User + func (h *RepositoryHook) GetInstallationRef() *InstallationRef + func (h *RepositoryHook) Kind() WebhookKind + func (h *RepositoryHook) Repository() Repository + type RepositoryInput struct + Description string + Homepage string + Name string + Namespace string + Private bool + type RepositoryService interface + AddCollaborator func(ctx context.Context, repo, user, permission string) (bool, bool, *Response, error) + Create func(context.Context, *RepositoryInput) (*Repository, *Response, error) + CreateHook func(context.Context, string, *HookInput) (*Hook, *Response, error) + CreateStatus func(context.Context, string, string, *StatusInput) (*Status, *Response, error) + Delete func(ctx context.Context, repo string) (*Response, error) + DeleteHook func(context.Context, string, string) (*Response, error) + Find func(context.Context, string) (*Repository, *Response, error) + FindCombinedStatus func(ctx context.Context, repo, ref string) (*CombinedStatus, *Response, error) + FindHook func(context.Context, string, string) (*Hook, *Response, error) + FindPerms func(context.Context, string) (*Perm, *Response, error) + FindUserPermission func(ctx context.Context, repo string, user string) (string, *Response, error) + Fork func(context.Context, *RepositoryInput, string) (*Repository, *Response, error) + IsCollaborator func(ctx context.Context, repo string, user string) (bool, *Response, error) + List func(context.Context, ListOptions) ([]*Repository, *Response, error) + ListCollaborators func(ctx context.Context, repo string, ops ListOptions) ([]User, *Response, error) + ListHooks func(context.Context, string, ListOptions) ([]*Hook, *Response, error) + ListLabels func(context.Context, string, ListOptions) ([]*Label, *Response, error) + ListOrganisation func(context.Context, string, ListOptions) ([]*Repository, *Response, error) + ListStatus func(context.Context, string, string, ListOptions) ([]*Status, *Response, error) + ListUser func(context.Context, string, ListOptions) ([]*Repository, *Response, error) + type Request struct + Body io.Reader + Header http.Header + Method string + Path string + type Response struct + Body io.ReadCloser + Header http.Header + ID string + Page Page + Rate Rate + Status int + func (r *Response) PopulatePageValues() + type Review struct + Author User + Body string + Created time.Time + ID int + Link string + Sha string + State string + Updated time.Time + type ReviewComment struct + Author User + Body string + Created time.Time + ID int + Line int + Link string + Path string + Sha string + Updated time.Time + type ReviewCommentHook struct + Action Action + Installation *InstallationRef + PullRequest PullRequest + Repo Repository + Review Review + func (h *ReviewCommentHook) GetInstallationRef() *InstallationRef + func (h *ReviewCommentHook) Kind() WebhookKind + func (h *ReviewCommentHook) Repository() Repository + type ReviewCommentInput struct + Body string + Line int + Path string + type ReviewHook struct + Action Action + GUID string + Installation *InstallationRef + PullRequest PullRequest + Repo Repository + Review Review + func (h *ReviewHook) GetInstallationRef() *InstallationRef + func (h *ReviewHook) Kind() WebhookKind + func (h *ReviewHook) Repository() Repository + type ReviewInput struct + Body string + Comments []*ReviewCommentInput + Event string + Sha string + type ReviewService interface + Create func(context.Context, string, int, *ReviewInput) (*Review, *Response, error) + Delete func(context.Context, string, int, int) (*Response, error) + Dismiss func(context.Context, string, int, int, string) (*Review, *Response, error) + Find func(context.Context, string, int, int) (*Review, *Response, error) + List func(context.Context, string, int, ListOptions) ([]*Review, *Response, error) + ListComments func(context.Context, string, int, int, ListOptions) ([]*ReviewComment, *Response, error) + Submit func(context.Context, string, int, int, *ReviewSubmitInput) (*Review, *Response, error) + Update func(context.Context, string, int, int, string) (*Review, *Response, error) + type ReviewSubmitInput struct + Body string + Event string + type SearchIssue struct + Repository Repository + type SearchOptions struct + Ascending bool + Query string + Sort string + func (o *SearchOptions) QueryArgument() string + type SecretFunc func(webhook Webhook) (string, error) + type Signature struct + Avatar string + Date time.Time + Email string + Login string + Name string + type StarHook struct + Action Action + Repo Repository + Sender User + StarredAt time.Time + func (h *StarHook) GetInstallationRef() *InstallationRef + func (h *StarHook) Kind() WebhookKind + func (h *StarHook) Repository() Repository + type State int + const StateCanceled + const StateError + const StateExpected + const StateFailure + const StatePending + const StateRunning + const StateSuccess + const StateUnknown + func ToState(s string) State + func (s *State) UnmarshalJSON(b []byte) error + func (s State) MarshalJSON() ([]byte, error) + func (s State) String() string + type StateCannotBeChanged struct + Message string + func (s StateCannotBeChanged) Error() string + type Status struct + Desc string + Label string + Link string + State State + Target string + func ConvertStatusInputToStatus(input *StatusInput) *Status + func ConvertStatusInputsToStatuses(inputs []*StatusInput) []*Status + type StatusHook struct + Action Action + Installation *InstallationRef + Label Label + Repo Repository + Sender User + func (h *StatusHook) GetInstallationRef() *InstallationRef + func (h *StatusHook) Kind() WebhookKind + func (h *StatusHook) Repository() Repository + type StatusInput struct + Desc string + Label string + Link string + State State + Target string + type TagHook struct + Action Action + Installation *InstallationRef + Ref Reference + Repo Repository + Sender User + func (h *TagHook) GetInstallationRef() *InstallationRef + func (h *TagHook) Kind() WebhookKind + func (h *TagHook) Repository() Repository + type Team struct + Description string + ID int + Name string + Parent *Team + ParentTeamID int + Privacy string + Slug string + type TeamMember struct + IsAdmin bool + Login string + type Token struct + Expires time.Time + Refresh string + Token string + type TokenKey struct + type TokenSource interface + Token func(context.Context) (*Token, error) + type UnknownWebhook struct + Event string + func (e UnknownWebhook) Error() string + type User struct + Avatar string + Created time.Time + Email string + ID int + IsAdmin bool + Link string + Login string + Name string + Updated time.Time + type UserService interface + AcceptInvitation func(context.Context, int64) (*Response, error) + CreateToken func(context.Context, string, string) (*UserToken, *Response, error) + DeleteToken func(context.Context, int64) (*Response, error) + Find func(context.Context) (*User, *Response, error) + FindEmail func(context.Context) (string, *Response, error) + FindLogin func(context.Context, string) (*User, *Response, error) + ListInvitations func(context.Context) ([]*Invitation, *Response, error) + type UserToken struct + ID int64 + Token string + type WatchHook struct + Action string + Installation *InstallationRef + Repo Repository + Sender User + func (h *WatchHook) GetInstallationRef() *InstallationRef + func (h *WatchHook) Kind() WebhookKind + func (h *WatchHook) Repository() Repository + type Webhook interface + GetInstallationRef func() *InstallationRef + Kind func() WebhookKind + Repository func() Repository + type WebhookKind string + const WebhookKindBranch + const WebhookKindCheckRun + const WebhookKindCheckSuite + const WebhookKindDeploy + const WebhookKindDeploymentStatus + const WebhookKindFork + const WebhookKindInstallation + const WebhookKindInstallationRepository + const WebhookKindIssue + const WebhookKindIssueComment + const WebhookKindLabel + const WebhookKindPing + const WebhookKindPullRequest + const WebhookKindPullRequestComment + const WebhookKindPush + const WebhookKindRelease + const WebhookKindRepository + const WebhookKindReview + const WebhookKindReviewCommentHook + const WebhookKindStar + const WebhookKindStatus + const WebhookKindTag + const WebhookKindWatch + type WebhookService interface + Parse func(req *http.Request, fn SecretFunc) (Webhook, error)