Documentation
¶
Overview ¶
Package version computes the next release tag from the latest one using a small, predictable set of bump rules. While lumos is pre-1.0 every bump produces an alpha pre-release; the Stable level promotes the current numbers to a final release.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
type Level int
Level is the kind of version bump to apply.
const ( Prerelease Level = iota // bump the pre-release counter (the default) Patch Minor Major Stable // drop the pre-release, finalising the current numbers )
The available bump levels.
func BumpFromMessage ¶
BumpFromMessage derives a bump level from a commit message, honouring an explicit [major], [minor], [patch] or [stable] marker. The default is a pre-release bump.
Click to show internal directories.
Click to hide internal directories.