GithubHelp home page GithubHelp logo

alziqziq / cz-conventional-changelog-for-jira-al Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digitalroute/cz-conventional-changelog-for-jira

0.0 0.0 0.0 1.83 MB

A commitizen adapter for the angular preset of https://github.com/conventional-changelog/conventional-changelog

License: MIT License

JavaScript 100.00%

cz-conventional-changelog-for-jira-al's Introduction

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 variable package.json Default Description
CZ_MAX_HEADER_WIDTH maxHeaderWidth 72 This limits how long a commit message head can be.
CZ_MIN_HEADER_WIDTH minHeaderWidth 2 This limits how short a commit message can be.
CZ_MAX_LINE_WIDTH maxLineWidth 100 Commit message bodies are automatically wrapped. This decides how long the lines will be.
CZ_SKIP_DESCRIPTION skipDescription false If description should be used in commit messages.
CZ_SKIP_BREAKING skipBreaking false If breaking changes should be used in commit messages.
scopes undefined A 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_TYPE defaultType undefined The default type.
CZ_SUBJECT defaultSubject undefined A default subject.
CZ_BODY defaultBody undefined A default body.
CZ_ISSUES defaultIssues undefined A default issue.
CZ_JIRA_PREFIX jiraPrefix "DAZ" If this is set it will be displayed as the default JIRA ticket prefix
CZ_EXCLAMATION_MARK exclamationMark false On 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.

cz-conventional-changelog-for-jira-al's People

Contributors

juliuscc avatar polarn avatar linusu avatar greenkeeper[bot] avatar jimthedev avatar notrev avatar travi avatar s-hoff avatar antodd avatar michalniemiec28 avatar wpater avatar wilsonmsalberto avatar ivikash avatar brendtumi avatar tomaszkasowicz avatar smccollum-blurb avatar rayman avatar petermetz avatar saeger avatar mmeester avatar yinzara avatar markdalgleish avatar endzeitbegins avatar laytong avatar kunyan avatar krasimir-dr avatar jlengstorf avatar jacobq avatar giedrius-timinskis avatar eranshapira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.