0.3.0 • Published 1 year ago

cz-conventional-changelog-for-jira-al v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cz-conventional-changelog-for-jira

Part of the commitizen/cz-cli family. Prompts for conventional changelog standard and also prompts for a mandatory JIRA issue.

npm version npm downloads Build Status

Features

  • Works seamlessly with semantic-release 🚀
  • Works seamlessly with Jira smart commits
  • Automatically detects the Jira issue from the branch name

Quickstart

Installation

npm install commitizen cz-conventional-changelog-for-jira-al

and then add the following to package.json:

{
  "scripts": {
    "commit": "cz"
  },
  "config": {
    "commitizen": {
      "path": "cz-conventional-changelog-for-jira-al"
    }
  }
}

Usage

Gif of terminal when using cz-conventional-changelog-for-jira

Configuration

Like commitizen, you can specify the configuration of cz-conventional-changelog-for-jira through the package.json's config.commitizen key, or with environment variables.

Environment variablepackage.jsonDefaultDescription
CZ_MAX_HEADER_WIDTHmaxHeaderWidth72This limits how long a commit message head can be.
CZ_MIN_HEADER_WIDTHminHeaderWidth2This limits how short a commit message can be.
CZ_MAX_LINE_WIDTHmaxLineWidth100Commit message bodies are automatically wrapped. This decides how long the lines will be.
CZ_SKIP_DESCRIPTIONskipDescriptionfalseIf description should be used in commit messages.
CZ_SKIP_BREAKINGskipBreakingfalseIf breaking changes should be used in commit messages.
scopesundefinedA list (JS Array) of scopes that will be available for selection. Note that adding this will change the scope field from Inquirer 'input' to 'list'.
CZ_TYPEdefaultTypeundefinedThe default type.
CZ_SUBJECTdefaultSubjectundefinedA default subject.
CZ_BODYdefaultBodyundefinedA default body.
CZ_ISSUESdefaultIssuesundefinedA default issue.
CZ_JIRA_PREFIXjiraPrefix"DAZ"If this is set it will be displayed as the default JIRA ticket prefix
CZ_EXCLAMATION_MARKexclamationMarkfalseOn breaking changes, adds an exclamation mark (!) after the scope, e.g.: type(scope)!: break stuff. When activated, reduces the effective allowed header length by 1.

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 72. This can be ovewritten by setting the 'maxHeaderWidth' configuration in package.json or the CZ_MAX_HEADER_WIDTH environment variable.