Documentation ¶
Index ¶
- func GetChangesFromGitRepository(gitWorkspace, radixConfigBranch, radixConfigFileName, targetCommitHash string, ...) (map[string][]string, bool, error)
- func GetCommitHashAndTags(env env.Env) (string, string, error)
- func GetGitCommitHash(workspace string, e env.Env) (string, error)
- func GetGitCommitHashFromHead(gitWorkspace string, branchName string) (string, error)
- func ResetGitHead(gitWorkspace, commitHashString string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChangesFromGitRepository ¶
func GetChangesFromGitRepository(gitWorkspace, radixConfigBranch, radixConfigFileName, targetCommitHash string, lastCommitHashesForEnvs commithash.EnvCommitHashMap) (map[string][]string, bool, error)
GetChangesFromGitRepository Get changed folders in environments and if radixconfig.yaml was changed
func GetCommitHashAndTags ¶
GetCommitHashAndTags gets target commit hash and tags from GitHub repository
func GetGitCommitHash ¶
GetGitCommitHash returns commit hash from webhook commit ID that triggered job, if present. If not, returns HEAD of build branch
func GetGitCommitHashFromHead ¶
GetGitCommitHashFromHead returns the commit hash for the HEAD of branchName in gitDir
func ResetGitHead ¶
ResetGitHead alters HEAD of the git repository on file system to point to commitHashString
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.