Documentation ¶
Index ¶
- Constants
- func AddAwaitingMergeLabel(list []*github.Label) []string
- func AddAwaitingReviewLabel(list []*github.Label) []string
- func AddComment(ctx context.Context, issueSvc *github.IssuesService, owner string, name string, ...) bool
- func AddFailsTestsWithUpsreamLabel(list []*github.Label) []string
- func AddNeedRebaseLabel(list []*github.Label) []string
- func CommentHeadIsDifferentFromAccepted(ctx context.Context, issueSvc *github.IssuesService, owner string, name string, ...)
- func DeleteBranchByPullRequest(ctx context.Context, svc *github.GitService, pr *github.PullRequest) (bool, error)
- func GetLabelsByIssue(ctx context.Context, issueSvc *github.IssuesService, owner string, name string, ...) []*github.Label
- func HasLabelInList(list []*github.Label, target string) bool
- func IsIncludeAutoBranch(branches []*github.Branch, auto string) bool
- func IsMergeable(ctx context.Context, prSvc *github.PullRequestsService, owner, name string, ...) (bool, bool)
- func IsRelatedToMaster(pr *github.PullRequest, owner, master string) bool
- func MergePullRequest(ctx context.Context, client *github.Client, owner string, name string, ...) bool
- func RemoveStatusLabelFromList(list []*github.Label) []string
- func TryWithMaster(ctx context.Context, client *github.Client, owner string, name string, ...) (bool, string)
Constants ¶
View Source
const ( STATUS_LABEL_PREFIX string = "S-" LABEL_AWAITING_REVIEW string = "S-awaiting-review" LABEL_AWAITING_MERGE string = "S-awaiting-merge" LABEL_NEEDS_REBASE string = "S-needs-rebase" LABEL_FAILS_TESTS_WITH_UPSTREAM string = "S-fails-tests-with-upstream" LABEL_DO_NOT_MERGE string = "S-do-not-merge" )
Variables ¶
This section is empty.
Functions ¶
func AddAwaitingMergeLabel ¶
func AddAwaitingReviewLabel ¶
func AddComment ¶
func AddNeedRebaseLabel ¶
func DeleteBranchByPullRequest ¶
func DeleteBranchByPullRequest(ctx context.Context, svc *github.GitService, pr *github.PullRequest) (bool, error)
func GetLabelsByIssue ¶
func IsMergeable ¶
func IsMergeable(ctx context.Context, prSvc *github.PullRequestsService, owner, name string, issue int, pr *github.PullRequest) (bool, bool)
func IsRelatedToMaster ¶
func IsRelatedToMaster(pr *github.PullRequest, owner, master string) bool
func MergePullRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.