cz-conventional-changelog

Commitizen adapter following the conventional-changelog format.

MIT 22 个版本
安装
npm install cz-conventional-changelog
yarn add cz-conventional-changelog
pnpm add cz-conventional-changelog
bun add cz-conventional-changelog
README

cz-conventional-changelog

Greenkeeper badge

Status: npm version npm downloads Build Status

Part of the commitizen family. Prompts for conventional changelog standard.

Configuration

package.json

Like commitizen, you specify the configuration of cz-conventional-changelog through the package.json's config.commitizen key.

{
// ...  default values
    "config": {
        "commitizen": {
            "path": "./node_modules/cz-conventional-changelog",
            "disableScopeLowerCase": false,
            "disableSubjectLowerCase": false,
            "maxHeaderWidth": 100,
            "maxLineWidth": 100,
            "defaultType": "",
            "defaultScope": "",
            "defaultSubject": "",
            "defaultBody": "",
            "defaultIssues": "",
            "types": {
              ...
              "feat": {
                "description": "A new feature",
                "title": "Features"
              },
              ...
            }
        }
    }
// ...
}

Environment variables

The following environment varibles can be used to override any default configuration or package.json based configuration.

  • CZ_TYPE = defaultType
  • CZ_SCOPE = defaultScope
  • CZ_SUBJECT = defaultSubject
  • CZ_BODY = defaultBody
  • CZ_MAX_HEADER_WIDTH = maxHeaderWidth
  • CZ_MAX_LINE_WIDTH = maxLineWidth

Commitlint

If using the commitlint js library, the "maxHeaderWidth" configuration property will default to the configuration of the "header-max-length" rule instead of the hard coded value of 100. This can be ovewritten by setting the 'maxHeaderWidth' configuration in package.json or the CZ_MAX_HEADER_WIDTH environment variable.

版本列表
3.3.0 2020-08-26
3.2.1 2020-08-24
3.2.0 2020-05-04
3.1.1 2020-05-04
3.1.0 2020-01-28
3.0.3 2020-01-28
3.0.2 2019-07-21
3.0.1 2019-07-19
3.0.0 2019-07-19
2.1.0 2017-10-27
2.0.0 2017-02-21
1.2.0 2016-08-14
1.1.7 2016-08-07
1.1.6 2016-04-21
1.1.5 2015-12-02
1.1.4 2015-10-08
1.1.3 2015-10-08
1.1.2 2015-09-28
1.1.1 2015-09-23
1.1.0 2015-05-06
1.0.1 2015-04-24
1.0.0 2015-04-20