Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConventionalCommitPattern = `(?P<type>[A-Za-z]+)((?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?)(:\s?(?P<subject>.*))?`
Conventional Commits - https://www.conventionalcommits.org/en/v1.0.0/
View Source
var DefaultReleaseVersionRules = []CommitVersionRule{
{
Type: `feat`,
Release: `minor`,
},
{
Type: `refactor`,
Release: `minor`,
},
{
Type: `fix`,
Release: `patch`,
},
{
Type: `ci`,
Release: `patch`,
},
{
Type: `build`,
Release: `patch`,
},
{
Type: `docs`,
Release: `patch`,
},
{
Type: `perf`,
Release: `patch`,
},
{
Type: `test`,
Release: `patch`,
},
{
Type: `style`,
Release: `patch`,
},
}
Functions ¶
func DeterminateNextReleaseVersion ¶
func DeterminateNextReleaseVersion(commits []vcsrepository.Commit, commitPatternList []string, rules []CommitVersionRule, previousVersionStr string) (string, error)
Types ¶
type CommitVersionRule ¶
type ReleaseType ¶
type ReleaseType int32
const ( ReleaseNone ReleaseType = 0 ReleasePatch ReleaseType = 1 ReleaseMinor ReleaseType = 2 ReleaseMajor ReleaseType = 3 )
Click to show internal directories.
Click to hide internal directories.