Home

Awesome

cz-customizable

The customizable Commitizen plugin (or standalone utility) to help achieve consistent commit messages such as Conventional Commits. Note that you can create any commit message pattern. You don't have to use the pattern from the Conventional Commits. For example, my team uses this pattern: [minor] add new feature xyz

screenshot

Suitable for large teams working with multiple projects with their own commit scopes. It allows you to select the pre-defined scopes or commit types. It works perfectly with https://github.com/semantic-release/semantic-release.

Commitizen friendly semantic-release npm monthly downloads bundlephobia

You have two ways to use cz-customizable. Originally, this project started as a commitizen plugin (Option 1). We introduced the second option to run this cz-customizable in standalone mode (Option 2), just like any NodeJS script. It's recommended to use Option 2 for simplicity. The way you configure is shared between both options.

Quick start (New, recommended)

Configuration

cz-customizable via global install

npm i cz-customizable -g

Then run cz-customizable from your root repo. You can also use the alias cz-cust.

If everything is correct, you should see commit questions like the image above.

Slow start

Option 1 - cz-customizable via npx

npx cz-customizable

Option 2 - cz-customizable in standalone mode

Use cz-customizable without commitzen.

"scripts" : {
  ...
  "commit": "./node_modules/cz-customizable/standalone.js"
}

Option 3 - cz-customizable as commitizen plugin

This is how this project started.

...
"config": {
  "commitizen": {
    "path": "node_modules/cz-customizable"
  }
}

Configuration (Shared between options 1,2 and 3)

Option 1 - You can make changes to your git repository, file package.json.

...
"config": {
  "commitizen": { // not needed for standlone usage
    "path": "node_modules/cz-customizable"
  },
  "cz-customizable": {
    "config": "config/path/to/my/config.js"
  }
}

Note: option one allows you to have your config away from root directory. It also gives you a change to define any name to your .cz-config.js.

No Changes to your git repository*.

This is suitable when your team is not ready to roll cz-customizable across all teams but you still would like to use it for your own commits, no matter the project.

Steps:

Additional steps when used as commitizen plugin

Notes:

Hopefully this will help you to have consistent commit messages and have a fully automated deployment without any human intervention.


Options

Here are the options you can set in your .cz-config.js:

Related tools

GOTCHAS

my items are:
 - item01
 - item 02

CONTRIBUTING

Contributor Guidelines

Conduct of Code:

Leonardo Correa