Documentation
¶
Index ¶
- type Options
- func (o *Options) AddPullRequest(pr *scm.PullRequest)
- func (o *Options) ApplyChanges(dir, gitURL string, change v1alpha1.Change) error
- func (o *Options) ApplyRegex(dir string, gitURL string, change v1alpha1.Change, regex *v1alpha1.Regex) error
- func (o *Options) ApplyVersionStream(dir string, gitURL string, change v1alpha1.Change, ...) error
- func (o *Options) EvaluateVersionTemplate(templateText, gitURL string) (string, error)
- func (o *Options) Run() error
- func (o *Options) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { environments.EnvironmentPullRequestOptions Dir string ConfigFile string Version string VersionFile string PullRequestTitle string PullRequestBody string AutoMerge bool Labels []string TemplateData map[string]interface{} PullRequestSHAs map[string]string Helmer helmer.Helmer UpdateConfig v1alpha1.UpdateConfig }
Options the options for the command
func NewCmdPullRequest ¶
NewCmdPullRequest creates a command object for the command
func (*Options) AddPullRequest ¶ added in v0.0.17
func (o *Options) AddPullRequest(pr *scm.PullRequest)
AddPullRequest lets store pull requests so we can use the PR data later on
func (*Options) ApplyChanges ¶
ApplyChanges applies the changes to the given dir
func (*Options) ApplyRegex ¶ added in v0.0.21
func (o *Options) ApplyRegex(dir string, gitURL string, change v1alpha1.Change, regex *v1alpha1.Regex) error
ApplyRegex applies the regex change
func (*Options) ApplyVersionStream ¶ added in v0.0.21
func (o *Options) ApplyVersionStream(dir string, gitURL string, change v1alpha1.Change, vs *v1alpha1.VersionStreamChange) error
ApplyVersionStream applies the version stream change
func (*Options) EvaluateVersionTemplate ¶ added in v0.0.17
Click to show internal directories.
Click to hide internal directories.