Documentation
¶
Index ¶
- Variables
- func ActualBranchName(path string) (string, error)
- func LastCommitHash(path string) (string, error)
- func LastCommitMessage(path string) (string, error)
- func LastModuleVersionFromCurrentBranch(path, appName string) (string, error)
- func ModuleVersions(path, appName string) ([]string, error)
- func ModuleVersionsFromCurrentBranch(path, appName string) ([]string, error)
- func ModuleVersionsWithHash(path, appName string) (map[string]string, error)
- func PushTags(path, tag string) error
- func TagCommit(path, tag string) error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoVersion is the error encountered when no version is found in the tags. ErrNoVersion = fmt.Errorf("no version in the tags") )
Functions ¶
func ActualBranchName ¶
ActualBranchName returns the actual branch name of the git repository at path.
func LastCommitHash ¶
LastCommitHash returns the hash of the last commit in the git repository at path.
func LastCommitMessage ¶
LastCommitMessage returns the message of the last commit in the git repository at path.
func LastModuleVersionFromCurrentBranch ¶
LastModuleVersionFromCurrentBranch returns the last version of a module in the git repository at path from the current branch.
func ModuleVersions ¶
ModuleVersions returns all the versions of a module in the git repository at path.
func ModuleVersionsFromCurrentBranch ¶
ModuleVersionsFromCurrentBranch returns all the version of a module in the git repository at path from the current branch.
func ModuleVersionsWithHash ¶
ModuleVersionsWithHash returns all the versions of a module in the git repository at path with their hash.
Types ¶
This section is empty.