Configure your Conventional prefixes¶
Conventional Commits offers a fantastic approach to controlling semantic versioning through commit prefixes. An industry standard convention devised by the Angular team is most commonly used to date.
BREAKING CHANGE
: any commit with this footer triggers a major update.!
: any conventional prefix with this suffix (e.g.refactor!
) triggers a major update.feat
: triggers a minor update.fix
: triggers a patch update.
Defining your own rules¶
breaking
: triggers a major update1.0.0
~>2.0.0
.feat
,deps
: triggers a minor update0.1.0
~>0.2.0
.fix
,docs
,styles
: triggers a patch update0.3.1
~>0.3.2
.
Don't worry—when defining your custom prefixes, both the BREAKING CHANGE
footer and the !
suffix are automatically supported.
How prefix matching works¶
nsv
matches a prefix in one of two ways:
breaking
is a wildcard prefix capable of matching against an optional scope.breaking(api)
is an exact match only.