This package has been deprecated

Author message:

Please use https://github.com/bk201-/jira-prepare-commit-msg

nfq-jira-prepare-commit-msg

1.1.5 • Public • Published

jira-prepare-commit-msg

Husky command to add JIRA ticket ID into the commit message if it is missed.

The JIRA ticket ID is taken from a git branch name.

Installation

Install the package using NPM

npm install husky jira-prepare-commit-msg --save-dev

Configuration

Inside your package.json add a standard husky npm script for the git hook:

{
  "husky": {
    "hooks": {
      "prepare-commit-msg": "jira-prepare-commit-msg"
    }
  }
}

Supported pattern

The following patterns are currently supported:

  • /([A-Z]+-\d+)/i

TODO

  • [ ] Support user patterns
  • [ ] Support configuration (package.json)
  • [x] Lint
  • [x] Tests

License

MIT

Package Sidebar

Install

npm i nfq-jira-prepare-commit-msg

Weekly Downloads

0

Version

1.1.5

License

MIT

Unpacked Size

16.9 kB

Total Files

13

Last publish

Collaborators

  • fdiskas