Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Pattern defines the regular expression for matching a semantic version // as a raw sequence of characters Pattern = `(v?)(\d+)\.(\d+)\.(\d+)` )
Variables ¶
View Source
var ( // Regex for parsing a matching a semantic version Regex = regexp.MustCompile(Pattern) )
Functions ¶
This section is empty.
Types ¶
type Increment ¶
type Increment string
Increment defines the different types of increment that can be performed against a semantic version
const ( // NoIncrement represents no increment change to a semantic version NoIncrement Increment = "None" // PatchIncrement represents a patch increment (1.0.x) to a semantic version PatchIncrement Increment = "Patch" // MinorIncrement represents a minor increment (1.x.0) to a semantic version MinorIncrement Increment = "Minor" // MajorIncrement represents a major increment (x.0.0) to a semantic version MajorIncrement Increment = "Major" )
func ParseCommit ¶
ParseCommit will identify the type of increment to perform by parsing the commit message against the conventional commit standards defined, @see: https://www.conventionalcommits.org/en/v1.0.0/
Click to show internal directories.
Click to hide internal directories.