$ cnpm install @di-unternehmer/commitlint-plugin-salesapp
Commitlint plugin to adapt the linting to our needs in the salesapp team.
For more information about commitlint see: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
The defined header types are:
Issue prefix: #
The header (1st line) of a commit message has to follow this pattern:
header: (breaking?)type(scope?) [jira-ticket-number]: Not more then 72 chars in total on first line
The scope
and breaking
, inclusive the ()
, are optional.
The breaking
change is shown with !!!
before the type.
The []
and the ticket number is mandatory as well as :
inclusive a space before the sentence begins The [jira-ticket-number]
has to follow the rule:
header pattern: type(scope?) [XX-123]: Not more then 72 chars in total on first line
Breaking Change:
header pattern: !!!type(scope?) [XXX-1234]: Not more then 72 chars in total on first line
FEATURE(api) [SWN-1]: Headline of the ticket - or more helpfull message
Breaking Change:
!!!FEATURE(api) [SWN-1]: Headline of the ticket - or more helpfull message
Copyright 2014 - 2017 © taobao.org |