Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAndMergeSHAs ¶
func FetchAndMergeSHAs(gitter gitclient.Interface, shas []string, baseBranch, baseSha, remote, dir string, extraMergeArgs []string) error
FetchAndMergeSHAs merges any SHAs into the baseBranch which has a tip of baseSha, fetching the commits from remote for the git repo in dir. It will try to fetch individual commits ( if the remote repo supports it - see https://github. com/git/git/commit/68ee628932c2196742b77d2961c5e16360734a62) otherwise it uses git remote update to pull down the whole repo.
func LocalBranches ¶
LocalBranches will list all local branches
Types ¶
type Options ¶
type Options struct { UserName string UserEmail string SHAs []string GitMergeArgs []string Remote string Dir string BaseBranch string BaseSHA string PullRefs string PullNumber string IncludeCommitComment string ExcludeCommitComment string Rebase bool DisableInClusterTest bool CommandRunner cmdrunner.CommandRunner GitClient gitclient.Interface }
Options the options for the command
func NewCmdGitMerge ¶
NewCmdGitMerge creates a command object for the command
func (*Options) FindCommitsToMerge ¶
func (*Options) RebaseToBaseSHA ¶ added in v0.2.97
type PullRefs ¶
PullRefs is the result of parsing the Prow PULL_REFS
func ParsePullRefs ¶
ParsePullRefs parses the Prow PULL_REFS env var formatted string and converts to a map of branch:sha