Documentation
¶
Index ¶
- func FindPullRequestAuthor(ctx context.Context, scmClient *scm.Client, repoFullName, prNumberStr string) (string, error)
- func MergeCommitPullRequestNumber(commit *scm.Commit) (string, error)
- type Options
- func (o *Options) AddPullRequest(pr *scm.PullRequest)
- func (o *Options) ApplyChanges(dir, gitURL string, change v1alpha1.Change) error
- func (o *Options) ApplyCommand(dir string, command *v1alpha1.Command) error
- func (o *Options) ApplyGo(dir, gitURL string, gc *v1alpha1.GoChange) error
- func (o *Options) ApplyRegex(dir, gitURL string, change v1alpha1.Change, regex *v1alpha1.Regex) error
- func (o *Options) ApplyVersionStream(dir string, vs *v1alpha1.VersionStreamChange) error
- func (o *Options) AssignUsersToIssue(pullRequest *scm.PullRequest, users []string, gitURL, gitKind string) error
- func (o *Options) AssignUsersToPullRequestIssue(rule *v1alpha1.Rule, pullRequest *scm.PullRequest, ...) error
- func (o *Options) EvaluateVersionTemplate(templateText, gitURL string) (string, error)
- func (o *Options) FindCommitAuthor(gitURL, sha, gitKind string) (string, error)
- func (o *Options) FindURLs(rule *v1alpha1.Rule) error
- func (o *Options) GetSparseCheckoutPatterns(rule *v1alpha1.Rule) ([]string, error)
- func (o *Options) GoFindURLs(rule *v1alpha1.Rule, gc *v1alpha1.GoChange) error
- func (o *Options) ProcessAndCreatePullRequests(rule *v1alpha1.Rule, baseBranch string, labels []string, automerge bool) error
- func (o *Options) ProcessRule(rule *v1alpha1.Rule, index int) error
- func (o *Options) Run() error
- func (o *Options) SetChangeLog(addChangeLog string) error
- func (o *Options) SetCommitDetails(dir string) error
- func (o *Options) SparseCheckoutPatternsGo() []string
- func (o *Options) SparseCheckoutPatternsRegex(regex *v1alpha1.Regex) []string
- func (o *Options) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindPullRequestAuthor ¶ added in v0.5.6
Types ¶
type Options ¶
type Options struct {
environments.EnvironmentPullRequestOptions
Dir string
ConfigFile string
Version string
VersionFile string
AddChangelog string
GitCommitUsername string
GitCommitUserEmail string
PipelineCommitSha string
PipelineRepoURL string
AutoMerge bool
NoVersion bool
GitCredentials bool
PRAssignees []string
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 ¶
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) ApplyCommand ¶ added in v0.0.73
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 string, vs *v1alpha1.VersionStreamChange) error
ApplyVersionStream applies the version stream change
func (*Options) AssignUsersToIssue ¶ added in v0.5.0
func (o *Options) AssignUsersToIssue(pullRequest *scm.PullRequest, users []string, gitURL, gitKind string) error
AssignUsersToIssue adds users as an assignee to the PR Issue
func (*Options) AssignUsersToPullRequestIssue ¶ added in v0.5.0
func (o *Options) AssignUsersToPullRequestIssue(rule *v1alpha1.Rule, pullRequest *scm.PullRequest, ruleURL, pipelineURL, pipelineSHA, gitKind string) error
AssignUsersToPullRequestIssue assigns user to a downstream PR issue
func (*Options) EvaluateVersionTemplate ¶ added in v0.0.17
func (*Options) FindCommitAuthor ¶ added in v0.5.0
FindCommitAuthor finds the author of the commit, or the author of the PR if the commit is a merge commit
func (*Options) GetSparseCheckoutPatterns ¶ added in v0.2.0
func (*Options) GoFindURLs ¶ added in v0.0.23
GoFindURLs find the git URLs for the given go dependency change
func (*Options) ProcessAndCreatePullRequests ¶ added in v0.5.2
func (o *Options) ProcessAndCreatePullRequests(rule *v1alpha1.Rule, baseBranch string, labels []string, automerge bool) error
ProcessAndCreatePullRequests handles the URL loop, sets the closure, and creates/reuses PRs.
func (*Options) ProcessRule ¶ added in v0.4.29
ProcessRule sets the Fork and SparseCheckoutPatterns for the given rule
func (*Options) SetChangeLog ¶ added in v0.4.29
func (*Options) SetCommitDetails ¶ added in v0.4.29
SetCommitDetails discovers the git URL, and sets the application name, commit message and title
func (*Options) SparseCheckoutPatternsGo ¶ added in v0.2.0
SparseCheckoutPatternsGo return the patterns to check out sparsely
func (*Options) SparseCheckoutPatternsRegex ¶ added in v0.2.0
SparseCheckoutPatternsRegex return the patterns to check out sparsely