Documentation ¶
Index ¶
- func AssignReviewer(ctx context.Context, client *github.Client, ev *github.IssueCommentEvent, ...) (bool, error)
- func AssignReviewerFromPR(ctx context.Context, client *github.Client, ev *github.PullRequestEvent, ...) (bool, error)
- func CheckAutoBranchWithCheckSuiteEvent(ctx context.Context, client *github.Client, ...)
- func CheckAutoBranchWithStatusEvent(ctx context.Context, client *github.Client, ...)
- func DetectUnmergeablePR(ctx context.Context, client *github.Client, ev *github.PushEvent)
- func GetRepositoryInfo(ctx context.Context, repoSvc *github.RepositoriesService, owner, name string) *setting.RepositoryInfo
- func RemoveAllStatusLabel(ctx context.Context, client *github.Client, repo *github.Repository, ...)
- type AcceptCommand
- type CancelApprovedCommand
- type StateChangeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignReviewer ¶
func AssignReviewerFromPR ¶
func CheckAutoBranchWithCheckSuiteEvent ¶
func CheckAutoBranchWithCheckSuiteEvent(ctx context.Context, client *github.Client, autoMergeRepo *queue.AutoMergeQRepo, ev *github.CheckSuiteEvent)
func CheckAutoBranchWithStatusEvent ¶
func CheckAutoBranchWithStatusEvent(ctx context.Context, client *github.Client, autoMergeRepo *queue.AutoMergeQRepo, ev *github.StatusEvent)
func DetectUnmergeablePR ¶
func GetRepositoryInfo ¶
func GetRepositoryInfo(ctx context.Context, repoSvc *github.RepositoriesService, owner, name string) *setting.RepositoryInfo
func RemoveAllStatusLabel ¶
func RemoveAllStatusLabel(ctx context.Context, client *github.Client, repo *github.Repository, pr *github.PullRequest)
Types ¶
type AcceptCommand ¶
type AcceptCommand struct { Owner string Name string Client *github.Client BotName string Info *setting.RepositoryInfo AutoMergeRepo *queue.AutoMergeQRepo }
func (*AcceptCommand) AcceptChangesetByOthers ¶
func (c *AcceptCommand) AcceptChangesetByOthers(ctx context.Context, ev *github.IssueCommentEvent, cmd *input.AcceptChangeByOthersCommand) (bool, error)
func (*AcceptCommand) AcceptChangesetByReviewer ¶
func (c *AcceptCommand) AcceptChangesetByReviewer(ctx context.Context, ev *github.IssueCommentEvent, cmd *input.AcceptChangeByReviewerCommand) (bool, error)
type CancelApprovedCommand ¶
type CancelApprovedCommand struct { BotName string Client *github.Client Owner string Name string Number int Cmd *input.CancelApprovedByReviewerCommand Info *setting.RepositoryInfo AutoMergeRepo *queue.AutoMergeQRepo }
func (*CancelApprovedCommand) CancelApprovedChangeSet ¶
func (c *CancelApprovedCommand) CancelApprovedChangeSet(ctx context.Context, ev *github.IssueCommentEvent) (ok bool, err error)
Click to show internal directories.
Click to hide internal directories.