Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.
/ cz-ovh-commit Public archive

A commitizen adapter for ovh

License

Notifications You must be signed in to change notification settings

ovh-ux/cz-ovh-commit

Repository files navigation

cz-ovh-commit

OVH component

Maintenance Chat on gitter Build Status Commitizen friendly

NPM

Tool for unifying commit style inside OVH

Installation

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

customization

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

Get the sources

    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

Run the tests

no test for the moment

Build the documentation

look in ovh-config.js for building your config file

Related links

License

See https://github.com/ovh-ux/cz-ovh-commit/blob/master/LICENSE