vcs

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMatchingBranch

func GetMatchingBranch(input string) (string, error)

GetMatchingBranch does a fuzzy search on all loaded branches. If there are multiple matching branches, it fails.

func InitBranchWatcher

func InitBranchWatcher(config config.Config, log *logrus.Logger)

InitBranchWatcher will load the current branches each X from the configured VCS -> e.g. used for branch lookup for Jenkins parameters

Types

type BranchFetcher

type BranchFetcher interface {
	LoadBranches() ([]string, error)
}

BranchFetcher loads a list of all available branch names in a repository

Jump to

Keyboard shortcuts

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