Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrEmptyBranchName = "branch name is empty" ErrDetachedHead = "detached HEAD state" ErrInvalidPattern = "invalid branch pattern" )
Error messages
View Source
const ( LogBranchDetected = "branch_detected" LogMainBranchMatched = "main_branch_matched" LogBranchPrerelease = "branch_prerelease_generated" LogBranchNotEnabled = "branch_versioning_not_enabled" )
Log messages
Variables ¶
This section is empty.
Functions ¶
func DefaultMainBranches ¶
func DefaultMainBranches() []string
DefaultMainBranches returns the default list of main branch patterns
func IsMainBranch ¶
IsMainBranch checks if the branch name matches any of the main branch patterns Supports exact matches and glob patterns (e.g., "release/*")
func SanitizeBranchName ¶
SanitizeBranchName ensures branch name is valid for semver pre-release identifier According to SemVer 2.0.0, pre-release identifiers must be alphanumeric and hyphens only
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.