Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentVersion ¶
func GetCurrentVersion(r *git.Repository, settings *Settings, branchSettings *BranchSettings, verbose bool) (version string, err error)
GetCurrentVersion returns the current version
func GetPrereleaseLabel ¶
func GetPrereleaseLabel(r *git.Repository, settings *Settings, branchSettings *BranchSettings) (result string, err error)
GetPrereleaseLabel returns the prerelease label for the current branch
Types ¶
type BranchSettings ¶
BranchSettings contains flags that determine how branches are handled when calculating versions.
type Settings ¶
type Settings struct { MajorPattern string `yaml:"major-version-bump-message"` MinorPattern string `yaml:"minor-version-bump-message"` PatchPattern string `yaml:"patch-version-bump-message"` }
Settings provides the regex patterns used for version bumping
func GetDefaultSettings ¶
func GetDefaultSettings() *Settings
GetDefaultSettings returns the default settings
Click to show internal directories.
Click to hide internal directories.