Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCommitGap = 20
DefaultCommitGap refers default gap commit number. If the PR is hehind the master branch more DefaultCommitGap commits, robot would tell submitter to rebase.
View Source
const FetchInterval = 3 * time.Minute
FetchInterval refers the interval of fetch action
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher is a worker to periodically get elements from github.
func (*Fetcher) AddConflictCommentToPR ¶
func (f *Fetcher) AddConflictCommentToPR(pr *github.PullRequest) error
AddConflictCommentToPR adds conflict comments to specific pull request.
func (*Fetcher) AddGapCommentToPR ¶
func (f *Fetcher) AddGapCommentToPR(pr *github.PullRequest, gap int) error
AddGapCommentToPR adds gap comments to specific pull request.
func (*Fetcher) CheckPRsConflict ¶
CheckPRsConflict checks that if a PR is conflict with the against branch.
func (*Fetcher) CheckPRsGap ¶
CheckPRsGap checks that if a PR is more than fetcher.gapCommits commits behind the branch.
Click to show internal directories.
Click to hide internal directories.