pr

package
v2.1.111 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStepCreatePrFlags

func AddStepCreatePrFlags(cmd *cobra.Command, o *StepCreatePrOptions)

AddStepCreatePrFlags adds the common flags for all PR creation steps to the cmd and stores them in o

func NewCmdStepCreatePr

func NewCmdStepCreatePr(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePr Steps a command object for the "step" command

func NewCmdStepCreatePullRequestBrew

func NewCmdStepCreatePullRequestBrew(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestBrew Creates a new Command object

func NewCmdStepCreatePullRequestChart

func NewCmdStepCreatePullRequestChart(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestChart Creates a new Command object

func NewCmdStepCreatePullRequestDocker

func NewCmdStepCreatePullRequestDocker(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestDocker Creates a new Command object

func NewCmdStepCreatePullRequestGo

func NewCmdStepCreatePullRequestGo(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestGo Creates a new Command object

func NewCmdStepCreatePullRequestMake

func NewCmdStepCreatePullRequestMake(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestMake Creates a new Command object

func NewCmdStepCreatePullRequestQuickStarts

func NewCmdStepCreatePullRequestQuickStarts(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestQuickStarts Creates a new Command object

func NewCmdStepCreatePullRequestRegex

func NewCmdStepCreatePullRequestRegex(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestRegex Creates a new Command object

func NewCmdStepCreatePullRequestRepositories

func NewCmdStepCreatePullRequestRepositories(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestRepositories Creates a new Command object

func NewCmdStepCreatePullRequestVersion

func NewCmdStepCreatePullRequestVersion(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepCreatePullRequestVersion Creates a new Command object

Types

type StepCreatePrOptions

type StepCreatePrOptions struct {
	step.StepCreateOptions
	Results       *gits.PullRequestInfo
	BranchName    string
	GitURLs       []string
	Base          string
	Fork          bool
	SrcGitURL     string
	Component     string
	Version       string
	DryRun        bool
	SkipCommit    bool
	SkipAutoMerge bool
	Labels        []string
}

StepCreatePrOptions are the common options for all PR creation steps

func (*StepCreatePrOptions) CreatePullRequest

func (o *StepCreatePrOptions) CreatePullRequest(kind string, update operations.ChangeFilesFn) error

CreatePullRequest will fork (if needed) and pull a git repo, then perform the update, and finally create or update a PR for the change. Any open PR on the repo with the `updatebot` label will be updated.

func (*StepCreatePrOptions) Run

func (o *StepCreatePrOptions) Run() error

Run implements this command

func (*StepCreatePrOptions) ValidateOptions

func (o *StepCreatePrOptions) ValidateOptions(allowEmptyVersion bool) error

ValidateOptions validates the common options for all PR creation steps

type StepCreatePullRequestBrewOptions

type StepCreatePullRequestBrewOptions struct {
	StepCreatePrOptions
	Sha string
}

StepCreatePullRequestBrewOptions contains the command line flags

func (*StepCreatePullRequestBrewOptions) Run

Run implements this command

func (*StepCreatePullRequestBrewOptions) ValidateBrewOptions

func (o *StepCreatePullRequestBrewOptions) ValidateBrewOptions() error

ValidateOptions validates the common options for brew pr steps

type StepCreatePullRequestChartsOptions

type StepCreatePullRequestChartsOptions struct {
	StepCreatePrOptions

	Names []string
}

StepCreatePullRequestChartsOptions contains the command line flags

func (*StepCreatePullRequestChartsOptions) Run

Run implements this command

func (*StepCreatePullRequestChartsOptions) ValidateChartsOptions

func (o *StepCreatePullRequestChartsOptions) ValidateChartsOptions() error

ValidateChartsOptions validates the common options for chart pr steps

type StepCreatePullRequestDockersOptions

type StepCreatePullRequestDockersOptions struct {
	StepCreatePrOptions

	Names []string
}

StepCreatePullRequestDockersOptions contains the command line flags

func (*StepCreatePullRequestDockersOptions) Run

Run implements this command

func (*StepCreatePullRequestDockersOptions) ValidateDockersOptions

func (o *StepCreatePullRequestDockersOptions) ValidateDockersOptions() error

ValidateDockersOptions validates the common options for docker pr steps

type StepCreatePullRequestMakeOptions

type StepCreatePullRequestMakeOptions struct {
	StepCreatePrOptions

	Name string
}

StepCreatePullRequestMakeOptions contains the command line flags

func (*StepCreatePullRequestMakeOptions) Run

Run implements this command

func (*StepCreatePullRequestMakeOptions) ValidateMakeOptions

func (o *StepCreatePullRequestMakeOptions) ValidateMakeOptions() error

ValidateMakeOptions validates the common options for make pr steps

type StepCreatePullRequestQuickStartsOptions

type StepCreatePullRequestQuickStartsOptions struct {
	StepCreatePrOptions

	Location v1.QuickStartLocation
}

StepCreatePullRequestQuickStartsOptions contains the command line flags

func (*StepCreatePullRequestQuickStartsOptions) Run

Run implements this command

func (*StepCreatePullRequestQuickStartsOptions) ValidateQuickStartsOptions

func (o *StepCreatePullRequestQuickStartsOptions) ValidateQuickStartsOptions() error

ValidateQuickStartsOptions validates the common options for quickStarts pr steps

type StepCreatePullRequestRegexOptions

type StepCreatePullRequestRegexOptions struct {
	StepCreatePrOptions

	Regexps []string
	Files   []string
	Kind    string
}

StepCreatePullRequestRegexOptions contains the command line flags

func (*StepCreatePullRequestRegexOptions) Run

Run implements this command

func (*StepCreatePullRequestRegexOptions) ValidateRegexOptions

func (o *StepCreatePullRequestRegexOptions) ValidateRegexOptions() error

ValidateRegexOptions validates the common options for regex pr steps

type StepCreatePullRequestRepositoriesOptions

type StepCreatePullRequestRepositoriesOptions struct {
	StepCreatePrOptions
}

StepCreatePullRequestRepositoriesOptions contains the command line flags

func (*StepCreatePullRequestRepositoriesOptions) Run

Run implements this command

func (*StepCreatePullRequestRepositoriesOptions) ValidateRepositoriesOptions

func (o *StepCreatePullRequestRepositoriesOptions) ValidateRepositoriesOptions() error

ValidateRepositoriesOptions validates the common options for repositories pr steps

type StepCreatePullRequestVersionsOptions

type StepCreatePullRequestVersionsOptions struct {
	StepCreatePrOptions

	Kinds              []string
	Name               string
	Includes           []string
	Excludes           []string
	UpdateTektonImages bool
}

StepCreatePullRequestVersionsOptions contains the command line flags

func (*StepCreatePullRequestVersionsOptions) CreatePullRequestUpdateVersionFilesFn

func (o *StepCreatePullRequestVersionsOptions) CreatePullRequestUpdateVersionFilesFn(includes []string, excludes []string, kindStr string, helmer helm.Helmer) operations.ChangeFilesFn

CreatePullRequestUpdateVersionFilesFn creates the ChangeFilesFn for directory tree of stable version files, applying the includes and excludes

func (*StepCreatePullRequestVersionsOptions) Run

Run implements this command

func (*StepCreatePullRequestVersionsOptions) ValidateVersionsOptions

func (o *StepCreatePullRequestVersionsOptions) ValidateVersionsOptions() error

ValidateVersionsOptions validates the common options for versionstream pr steps

type StepCreatetPullRequestGoOptions

type StepCreatetPullRequestGoOptions struct {
	StepCreatePrOptions

	Name         string
	BuildCommand string
	FailOnBuild  bool
}

StepCreatetPullRequestGoOptions contains the command line flags

func (*StepCreatetPullRequestGoOptions) Run

Run implements this command

func (*StepCreatetPullRequestGoOptions) ValidateGoOptions

func (o *StepCreatetPullRequestGoOptions) ValidateGoOptions() error

ValidateGoOptions validates the common options for make pr steps

Jump to

Keyboard shortcuts

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