Tool for unifying commit style inside OVH
in a terminal:
npm i -g commitizen
in the repos:
npm install --save-dev cz-ovh-commit
commitizen init cz-ovh-commit --save-dev --save-exact
git cz -a
You can specify a custom config in your package.json
, simply add:
"config": {
...
"cz-ovh-commit": {
"config": "./path/to/your/config/file"
}
...
}
this file can be either .json
or .js
.
Example of a json file type:
{
"TYPES": [
{ "value": "feat", "name": "A new feature" },
{ "value": "fix", "name": "A bug fix" },
{ "value": "docs", "name": "Documentation" },
{ "value": "style", "name": "Cosmetics purpose" },
{ "value": "refactor", "name": "Refactor"},
{ "value": "test", "name": "Adding missing or correcting tests" },
{ "value": "chore", "name": "Maintenance" }
],
"EMOJIS": {},
"useScope": ["feat", "fix", "docs", "style", "refactor", "test", "chore"]
}
You can find more details about the config file in ovh-config.js
git clone https://github.com/ovh-ux/cz-ovh-commit.git
cd cz-ovh-commit
You've developed a new cool feature? Fixed an annoying bug? We'd be happy to hear from you!
see: CONTRIBUTING.md
no test for the moment
look in ovh-config.js
for building your config file
- Contribute: https://github.com/ovh-ux/ovh-ux-guidelines/blob/master/.github/CONTRIBUTING.md
- Report bugs: https://github.com/ovh-ux/cz-ovh-commit/issues
- Get latest version: https://github.com/ovh-ux/cz-ovh-commit
See https://github.com/ovh-ux/cz-ovh-commit/blob/master/LICENSE