Documentation ¶
Overview ¶
Package match implements branch matching
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRefForRepo ¶
func GetRefForRepo(ri RepoInfo, branches []BranchInfo) (sha string, branch string, err error)
GetRefForRepo contains the core branch matching algorithm. The input is data about the triggering repository/PR and the extant branches for the repo in question. Output is the branch and SHA to use for the repo
Types ¶
type BranchInfo ¶
BranchInfo includes the information about a specific branch of a git repo
type RefMap ¶
type RefMap map[string]BranchInfo
RefMap is a map of repository name to the ref (branch/sha) to use for that repo
func (RefMap) CommitSHAMap ¶
CommitSHAMap returns a map that can be cast to models.CommitSHAMap
Click to show internal directories.
Click to hide internal directories.