jx: github.com/jenkins-x/jx/pkg/cmd/step/create/pr Index | Files

package pr

import "github.com/jenkins-x/jx/pkg/cmd/step/create/pr"

Index

Package Files

step_create_pr.go step_create_pr_brew.go step_create_pr_chart.go step_create_pr_docker.go step_create_pr_go.go step_create_pr_make.go step_create_pr_quickstarts.go step_create_pr_regex.go step_create_pr_repositories.go step_create_pr_versions.go

func AddStepCreatePrFlags Uses

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 Uses

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

NewCmdStepCreatePr Steps a command object for the "step" command

func NewCmdStepCreatePullRequestBrew Uses

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

NewCmdStepCreatePullRequestBrew Creates a new Command object

func NewCmdStepCreatePullRequestChart Uses

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

NewCmdStepCreatePullRequestChart Creates a new Command object

func NewCmdStepCreatePullRequestDocker Uses

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

NewCmdStepCreatePullRequestDocker Creates a new Command object

func NewCmdStepCreatePullRequestGo Uses

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

NewCmdStepCreatePullRequestGo Creates a new Command object

func NewCmdStepCreatePullRequestMake Uses

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

NewCmdStepCreatePullRequestMake Creates a new Command object

func NewCmdStepCreatePullRequestQuickStarts Uses

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

NewCmdStepCreatePullRequestQuickStarts Creates a new Command object

func NewCmdStepCreatePullRequestRegex Uses

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

NewCmdStepCreatePullRequestRegex Creates a new Command object

func NewCmdStepCreatePullRequestRepositories Uses

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

NewCmdStepCreatePullRequestRepositories Creates a new Command object

func NewCmdStepCreatePullRequestVersion Uses

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

NewCmdStepCreatePullRequestVersion Creates a new Command object

type StepCreatePrOptions Uses

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
}

StepCreatePrOptions are the common options for all PR creation steps

func (*StepCreatePrOptions) CreatePullRequest Uses

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 Uses

func (o *StepCreatePrOptions) Run() error

Run implements this command

func (*StepCreatePrOptions) ValidateOptions Uses

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

ValidateOptions validates the common options for all PR creation steps

type StepCreatePullRequestBrewOptions Uses

type StepCreatePullRequestBrewOptions struct {
    StepCreatePrOptions
    Sha string
}

StepCreatePullRequestBrewOptions contains the command line flags

func (*StepCreatePullRequestBrewOptions) Run Uses

func (o *StepCreatePullRequestBrewOptions) Run() error

Run implements this command

func (*StepCreatePullRequestBrewOptions) ValidateBrewOptions Uses

func (o *StepCreatePullRequestBrewOptions) ValidateBrewOptions() error

ValidateOptions validates the common options for brew pr steps

type StepCreatePullRequestChartsOptions Uses

type StepCreatePullRequestChartsOptions struct {
    StepCreatePrOptions

    Names []string
}

StepCreatePullRequestChartsOptions contains the command line flags

func (*StepCreatePullRequestChartsOptions) Run Uses

func (o *StepCreatePullRequestChartsOptions) Run() error

Run implements this command

func (*StepCreatePullRequestChartsOptions) ValidateChartsOptions Uses

func (o *StepCreatePullRequestChartsOptions) ValidateChartsOptions() error

ValidateChartsOptions validates the common options for chart pr steps

type StepCreatePullRequestDockersOptions Uses

type StepCreatePullRequestDockersOptions struct {
    StepCreatePrOptions

    Names []string
}

StepCreatePullRequestDockersOptions contains the command line flags

func (*StepCreatePullRequestDockersOptions) Run Uses

func (o *StepCreatePullRequestDockersOptions) Run() error

Run implements this command

func (*StepCreatePullRequestDockersOptions) ValidateDockersOptions Uses

func (o *StepCreatePullRequestDockersOptions) ValidateDockersOptions() error

ValidateDockersOptions validates the common options for docker pr steps

type StepCreatePullRequestMakeOptions Uses

type StepCreatePullRequestMakeOptions struct {
    StepCreatePrOptions

    Name string
}

StepCreatePullRequestMakeOptions contains the command line flags

func (*StepCreatePullRequestMakeOptions) Run Uses

func (o *StepCreatePullRequestMakeOptions) Run() error

Run implements this command

func (*StepCreatePullRequestMakeOptions) ValidateMakeOptions Uses

func (o *StepCreatePullRequestMakeOptions) ValidateMakeOptions() error

ValidateMakeOptions validates the common options for make pr steps

type StepCreatePullRequestQuickStartsOptions Uses

type StepCreatePullRequestQuickStartsOptions struct {
    StepCreatePrOptions

    Location v1.QuickStartLocation
}

StepCreatePullRequestQuickStartsOptions contains the command line flags

func (*StepCreatePullRequestQuickStartsOptions) Run Uses

func (o *StepCreatePullRequestQuickStartsOptions) Run() error

Run implements this command

func (*StepCreatePullRequestQuickStartsOptions) ValidateQuickStartsOptions Uses

func (o *StepCreatePullRequestQuickStartsOptions) ValidateQuickStartsOptions() error

ValidateQuickStartsOptions validates the common options for quickStarts pr steps

type StepCreatePullRequestRegexOptions Uses

type StepCreatePullRequestRegexOptions struct {
    StepCreatePrOptions

    Regexps []string
    Files   []string
    Kind    string
}

StepCreatePullRequestRegexOptions contains the command line flags

func (*StepCreatePullRequestRegexOptions) Run Uses

func (o *StepCreatePullRequestRegexOptions) Run() error

Run implements this command

func (*StepCreatePullRequestRegexOptions) ValidateRegexOptions Uses

func (o *StepCreatePullRequestRegexOptions) ValidateRegexOptions() error

ValidateRegexOptions validates the common options for regex pr steps

type StepCreatePullRequestRepositoriesOptions Uses

type StepCreatePullRequestRepositoriesOptions struct {
    StepCreatePrOptions
}

StepCreatePullRequestRepositoriesOptions contains the command line flags

func (*StepCreatePullRequestRepositoriesOptions) Run Uses

func (o *StepCreatePullRequestRepositoriesOptions) Run() error

Run implements this command

func (*StepCreatePullRequestRepositoriesOptions) ValidateRepositoriesOptions Uses

func (o *StepCreatePullRequestRepositoriesOptions) ValidateRepositoriesOptions() error

ValidateRepositoriesOptions validates the common options for repositories pr steps

type StepCreatePullRequestVersionsOptions Uses

type StepCreatePullRequestVersionsOptions struct {
    StepCreatePrOptions

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

StepCreatePullRequestVersionsOptions contains the command line flags

func (*StepCreatePullRequestVersionsOptions) CreatePullRequestUpdateVersionFilesFn Uses

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 Uses

func (o *StepCreatePullRequestVersionsOptions) Run() error

Run implements this command

func (*StepCreatePullRequestVersionsOptions) ValidateVersionsOptions Uses

func (o *StepCreatePullRequestVersionsOptions) ValidateVersionsOptions() error

ValidateVersionsOptions validates the common options for versionstream pr steps

type StepCreatetPullRequestGoOptions Uses

type StepCreatetPullRequestGoOptions struct {
    StepCreatePrOptions

    Name         string
    BuildCommand string
    FailOnBuild  bool
}

StepCreatetPullRequestGoOptions contains the command line flags

func (*StepCreatetPullRequestGoOptions) Run Uses

func (o *StepCreatetPullRequestGoOptions) Run() error

Run implements this command

func (*StepCreatetPullRequestGoOptions) ValidateGoOptions Uses

func (o *StepCreatetPullRequestGoOptions) ValidateGoOptions() error

ValidateGoOptions validates the common options for make pr steps

Package pr imports 28 packages (graph) and is imported by 2 packages. Updated 2019-11-04. Refresh now. Tools for package owners.