pr

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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
	AddChangelog       string
	GitCommitUsername  string
	GitCommitUserEmail string
	AutoMerge          bool
	NoVersion          bool
	GitCredentials     bool
	Labels             []string
	TemplateData       map[string]interface{}
	PullRequestSHAs    map[string]string
	Helmer             helmer.Helmer
	GraphQLClient      *githubv4.Client
	UpdateConfig       v1alpha1.UpdateConfig
}

Options the options for the command

func NewCmdPullRequest

func NewCmdPullRequest() (*cobra.Command, *Options)

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

func (o *Options) ApplyChanges(dir, gitURL string, change v1alpha1.Change) error

ApplyChanges applies the changes to the given dir

func (*Options) ApplyCommand added in v0.0.73

func (o *Options) ApplyCommand(dir, url string, change v1alpha1.Change, command *v1alpha1.Command) error

func (*Options) ApplyGo added in v0.0.23

func (o *Options) ApplyGo(dir, gitURL string, change v1alpha1.Change, gc *v1alpha1.GoChange) error

ApplyGo applies the go change

func (*Options) ApplyRegex added in v0.0.21

func (o *Options) ApplyRegex(dir, 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, gitURL string, change v1alpha1.Change, vs *v1alpha1.VersionStreamChange) error

ApplyVersionStream applies the version stream change

func (*Options) EvaluateVersionTemplate added in v0.0.17

func (o *Options) EvaluateVersionTemplate(templateText, gitURL string) (string, error)

func (*Options) FindURLs added in v0.0.23

func (o *Options) FindURLs(rule *v1alpha1.Rule) error

func (*Options) GetSparseCheckoutPatterns added in v0.2.0

func (o *Options) GetSparseCheckoutPatterns(rule v1alpha1.Rule) ([]string, error)

func (*Options) GoFindURLs added in v0.0.23

func (o *Options) GoFindURLs(rule *v1alpha1.Rule, change v1alpha1.Change, gc *v1alpha1.GoChange) error

GoFindURLs find the git URLs for the given go dependency change

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) SparseCheckoutPatternsGo added in v0.2.0

func (o *Options) SparseCheckoutPatternsGo() []string

SparseCheckoutPatternsGo return the patterns to check out sparsely

func (*Options) SparseCheckoutPatternsRegex added in v0.2.0

func (o *Options) SparseCheckoutPatternsRegex(regex *v1alpha1.Regex) []string

SparseCheckoutPatternsRegex return the patterns to check out sparsely

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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