Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMergable ¶
Types ¶
type Mergable ¶
type Mergable struct { ApproverComments []string `long:"approver-comments" env:"GOVERN_APPROVER_COMMENTS" usage:"Regular expression that an approver writes"` ApproverTeams []string `` /* 138-byte string literal not displayed */ ApproveStates []string `` /* 126-byte string literal not displayed */ IgnoreLabels []string `long:"ignore-labels" env:"GOVERN_IGNORE_LABELS" usage:"Ignore the PR if it has any of these labels"` IgnoreStates []string `long:"ignore-states" env:"GOVERN_IGNORE_STATES" usage:"Ignore the PR if it has any of these states"` Labels []string `long:"labels" env:"GOVERN_LABELS" usage:"The PR must have these labels to be considered mergable"` MinApprovals int `` /* 130-byte string literal not displayed */ MinReviews int `` /* 129-byte string literal not displayed */ NoConflicts bool `long:"no-conflicts" env:"GOVERN_NO_CONFLICTS" usage:"Pull request must not have any conflicts"` NoDraft bool `long:"no-draft" env:"GOVERN_NO_DRAFT" usage:"Pull request must not be in a draft state"` NoRespectAssignees bool `` /* 177-byte string literal not displayed */ NoRespectReviewers bool `` /* 184-byte string literal not displayed */ ReviewerComments []string `long:"reviewer-comments" env:"GOVERN_REVIEWER_COMMENTS" usage:"Regular expression that a reviewer writes"` ReviewerTeams []string `` /* 134-byte string literal not displayed */ ReviewStates []string `long:"review-states" env:"GOVERN_REVIEW_STATES" usage:"The state of the GitHub approval from the reivewer"` States []string `long:"states" env:"GOVERN_STATES" usage:"Consider the PR mergable if it has one of these supplied states"` }
type Patch ¶
type Patch struct { Output string `long:"output" short:"o" env:"GOVERN_OUTPUT" usage:"Set the output format of choice [table, html, json, yaml]" default:"table"` CheckpatchScript string `long:"checkpatch-script" env:"GOVERN_CHECKPATCH_SCRIPT" usage:"Use an existing checkpatch.pl script"` BaseBranch string `long:"base" env:"GOVERN_BASE_BRANCH" usage:"Set the base branch name that the PR will be rebased onto"` Ignores []string `long:"ignore" env:"GOVERN_IGNORES" usage:"Ignore one or many checkpatch checks"` }
Click to show internal directories.
Click to hide internal directories.