root_runner

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 9 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
	Strict      bool
	// 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, strict bool) *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

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
}

Jump to

Keyboard shortcuts

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