This is an adapter for commitizen including both conventional-changelog and Jira's smart commits specifications.
- Install commitizen on your project :
npm install --save-dev commitizen
- Initialize the adapter :
./node_modules/.bin/commitizen init cz-jira-changelog --save-dev --save-exact
- Add a script tag to your package.json
...
"scripts": {
"commit": "git-cz"
}
When you are ready to commit your files, run the following command and start answering to the questions :
npm run commit