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>.*))?`
ConventionalCommitPattern is a regex pattern of the Conventional Commits spec - 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`,
},
{
Type: `chore`,
Release: `patch`,
},
}
Functions ¶
Types ¶
type CommitVersionRule ¶
Click to show internal directories.
Click to hide internal directories.