vcs

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBranches

func GetBranches() []string

GetBranches returns a list of currently known branches

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(cfg *config.Config, ctx *util.ServerContext)

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