Converts commit messages based on commit conventions
Converts commit messages based on commit conventions.
Berkmann18@github.com/Berkmann18/commit-conv/blob/f2cfea85238195f356f5a850ccf76cf80e6fef06/index.js#L36-L68" title="Source code on GitHub">index.js:36-68
Convert a commit message into one that follows the specified commit convention
.
param
Object[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) Parametersparam.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!