Converts commit messages based on commit conventions.
Convert a commit message into one that follows the specified commit convention
.
param
Object<string> Parameters
param.tag
string Tag of the commit message (e.g: fix
, chore
, feat
, docs
, test
, ...) (optional, default required('tag')
)param.msg
string Header of the commit message (optional, default required('msg')
)param.convention
string Name of the commit convention (angular
, atom
, ember
, eslint
, jshint
, gitmoji
or none
) (optional, default ''
)commitConv({tag: 'docs', msg: 'Update README.md', convention: 'angular'}); //'docs: update README.md'
commitConv({tag: 'fix', msg: 'bye bye #1', convention: 'eslint'}); //'Fix: Bye bye #1'
Returns string Commit message
Please refer to that.
Thanks goes to these wonderful people (emoji key):
Maximilian Berkmann π» π π€ π π§ β οΈ π‘ |
Semantic Release Bot π¦ |
Benjamin Bourgeois π» |
This project follows the all-contributors specification. Contributions of any kind are welcome!