pr

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

func NewMerge

func NewMerge() *cobra.Command

Types

type Merge

type Merge 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 */
	BaseBranch         string   `long:"base" env:"GOVERN_BASE" usage:"Set the base branch name that the PR will be rebased onto"`
	Branch             string   `long:"branch" env:"GOVERN_BRANCH" usage:"Set the branch to merge into"`
	CommitterEmail     string   `long:"committer-email" short:"e" env:"GOVERN_COMMITTER_EMAIL" usage:"Set the Git committer author's email"`
	CommitterName      string   `long:"committer-name" short:"n" env:"GOVERN_COMMITTER_NAME" usage:"Set the Git committer author's name"`
	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 */
	NoAutoTrailerPatch bool     `` /* 133-byte string literal not displayed */
	NoCheckMergable    bool     `` /* 128-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 */
	Push               bool     `long:"push" env:"GOVERN_PUSH" usage:"Following the merge push to the remote"`
	Repo               string   `long:"repo" short:"p" env:"GOVERN_REPO" usage:"Apply patches to the following local repository"`
	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"`
	Trailers           []string `long:"trailer" short:"t" env:"GOVERN_TRAILER" usage:"Append additional Git trailers to each git commit message"`
}

func (*Merge) Run

func (opts *Merge) Run(ctx context.Context, args []string) error

type PR

type PR struct{}

func (*PR) Run

func (opts *PR) Run(_ context.Context, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL