Documentation ¶
Index ¶
- type AddAssignOperation
- type AddIssueCommentOperation
- type AddLabelOperation
- type CheckEvent
- type CheckRun
- type CheckSuite
- type ClientInterface
- type CloseOperation
- type GetActionInterface
- type GetCommentInterface
- type GetInstallationInterface
- type GetIssueInterface
- type GetNumberInterface
- type GetPullRequestInterface
- type GetRepoInterface
- type GetReviewInterface
- type GetSenderInterface
- type MergeOperation
- type Object
- func (obj *Object) Action() (action string, ok bool)
- func (obj *Object) Author() (author string, ok bool)
- func (obj *Object) Body() (body string, ok bool)
- func (obj *Object) CheckEvent() (event *CheckEvent, ok bool)
- func (obj *Object) CommentAuthor() (author string, ok bool)
- func (obj *Object) GetAction() (action string, err error)
- func (obj *Object) GetAuthor() (author string, err error)
- func (obj *Object) GetBody() (body string, err error)
- func (obj *Object) GetCheckEvent() (event *CheckEvent, err error)
- func (obj *Object) GetCommentAuthor() (author string, err error)
- func (obj *Object) GetIssueHTMLURL() (url string, err error)
- func (obj *Object) GetLables() (labels []string, err error)
- func (obj *Object) GetNumber() (number int, err error)
- func (obj *Object) GetReviewState() (state string, err error)
- func (obj *Object) GetSenderUser() (user string, err error)
- func (obj *Object) IssueHTMLURL() (url string, ok bool)
- func (obj *Object) Labels() (labels []string, ok bool)
- func (obj *Object) Number() (number int, ok bool)
- func (obj *Object) Payload() interface{}
- func (obj *Object) ReviewState() (state string, ok bool)
- func (obj *Object) SenderUser() (user string, ok bool)
- type PullRequest
- type RemoveAssignOperation
- type RemoveLabelOperation
- type ReopenOperation
- type ReplaceLabelOperation
- type RequestReviewsCancelOperation
- type RequestReviewsOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAssignOperation ¶
type AddLabelOperation ¶
type CheckEvent ¶
type CheckEvent struct { Action string IsCheckRun bool Run *CheckRun IsCheckSuite bool Suite *CheckSuite }
type CheckRun ¶
type CheckRun struct { ID int64 HeadSHA string Status string Conclusion string Suite *CheckSuite }
type CheckSuite ¶
type ClientInterface ¶
type ClientInterface interface { DoOperation(ctx context.Context, op interface{}) error CheckMergeable(ctx context.Context, owner, repo string, number int) (bool, error) ListPullRequestBySHA(ctx context.Context, owner, repo, sha string) ([]PullRequest, error) ListFilesByPullRequest(ctx context.Context, owner, repo string, number int) ([]string, error) ListLabels(ctx context.Context, owner, repo string, number int) ([]string, error) }
func NewGithubClient ¶
func NewGithubClient(client *github.Client) ClientInterface
type CloseOperation ¶
type GetActionInterface ¶
type GetActionInterface interface {
GetAction() string
}
type GetCommentInterface ¶
type GetCommentInterface interface {
GetComment() *github.IssueComment
}
type GetInstallationInterface ¶
type GetInstallationInterface interface {
GetInstallation() *github.Installation
}
type GetIssueInterface ¶
type GetNumberInterface ¶
type GetNumberInterface interface {
GetNumber() int
}
type GetPullRequestInterface ¶
type GetPullRequestInterface interface {
GetPullRequest() *github.PullRequest
}
type GetRepoInterface ¶
type GetRepoInterface interface {
GetRepo() *github.Repository
}
type GetReviewInterface ¶
type GetReviewInterface interface {
GetReview() *github.PullRequestReview
}
type GetSenderInterface ¶
type MergeOperation ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) CheckEvent ¶
func (obj *Object) CheckEvent() (event *CheckEvent, ok bool)
func (*Object) CommentAuthor ¶
func (*Object) GetCheckEvent ¶
func (obj *Object) GetCheckEvent() (event *CheckEvent, err error)
func (*Object) GetCommentAuthor ¶
func (*Object) GetIssueHTMLURL ¶
func (*Object) GetReviewState ¶
func (*Object) GetSenderUser ¶
func (*Object) IssueHTMLURL ¶
func (*Object) ReviewState ¶
func (*Object) SenderUser ¶
type PullRequest ¶
type RemoveAssignOperation ¶
type RemoveLabelOperation ¶
type ReopenOperation ¶
type ReplaceLabelOperation ¶
type ReplaceLabelOperation struct { Owner string Repo string Number int ReplaceLabelPrefix string Labels []string }
Operations
Click to show internal directories.
Click to hide internal directories.