This is a TypeScript implementation of a commitizen adapter for conventional changelogs, with the jira id as first item in the commit message head. This Project is in an early state but will be improved soon. Any Contribution is appreciated.
- npm >=5.8.0
- node >=10.15.2
First install the package via npm:
npm i --save-dev cz-conventional-changelog-jira-first
As every commitizen adapter, you need to add a reference to this adapter in your commitizen config in your package.json
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-jira-first"
}
or your commitizen config file .czrz
{
"path": "./node_modules/cz-conventional-changelog-jira-first"
}
Just use your configured default commitizen command:
git cz
or
npm run commit
or if you added prepare commit message hooks via husky
git commit
For easier debugging, there is a helper script that runs the adapter without committing. It just prints the generated commit message to the console. This script is not part of the npm package. It's only used for development. I added VSCode launchsettings for easy to go debugging and launching the helper. If you are not using VSCode, you can start the script with first calling the TypeScript transpiler and run the script afterwards with NodeJs.
tsc
node dist/debugHelper.js
👤 Michael Kopf
- Website: https://kopf.codes
- Github: @Michriko
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2021 Michael Kopf.
This project is MIT licensed.