root_runner

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifySameBranch

func IdentifySameBranch(branchA, branchB string, gitRepo *history.Git) (bool, error)

IdentifySameBranch breaks up the reference names and tries to identify if the branches are the same

Types

type Runner

type Runner struct {
	DebugLogger *log.Logger
	Logger      *log.Logger
	// Debug is a deprecated flag. Will be replaced as all repos accept the debugLogger
	Debug bool
}

func New

func New(logger *log.Logger, debugLogger *log.Logger) *Runner

New returns a new instance of a RootRunner with fallback for logging

func (*Runner) Run

func (runner *Runner) Run(options RunnerOptions, args ...string) error

Run executes the base command for Commitsar

func (*Runner) RunPullRequest added in v0.15.0

func (runner *Runner) RunPullRequest(jiraKeys []string) ([]string, error)

RunPullRequest starts the runner for the PullRequest pipeline

type RunnerOptions

type RunnerOptions struct {
	// Path to repository
	Path string
	// UpstreamBranch is the branch against which to check
	UpstreamBranch string
	// Limit will limit how far back to check on upstream branch.
	Limit int
	// AllCommits will check all the commits on the upstream branch. Regardless of Limit setting.
	AllCommits bool
	Strict     bool
}

Jump to

Keyboard shortcuts

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