husky-add-issue-tracker

Add issue tracker task to commit message

Usage no npm install needed!

<script type="module">
  import huskyAddIssueTracker from 'https://cdn.skypack.dev/husky-add-issue-tracker';
</script>

README

husky-add-issue-tracker

npm license Build Status dependencies Status devDependencies Status Coverage Status Known Vulnerabilities

Add this module to automatically add issue tracker task number to commit messages.

For example, if you are on branch XXX-666-add-legacy-code and you add a commit with message added some legacy code, you message will turn into XXX-666: added some legacy code.

Install

npm i husky-add-issue-tracker

Usage (package.json)

{
  "husky": {
    "hooks": {
      "prepare-commit-msg": "husky-add-issue-tracker"
    }
  }
}

See also