Skip to content

Git commit hook for adding related JIRA issue id to commit messages.

License

Notifications You must be signed in to change notification settings

kaamos1/add-issue-id-hook

 
 

Repository files navigation

Add issue id hook

Git commit hook for adding related JIRA issue ids to commit messages, packaged for pre-commit-hooks.

Why this fork?

In this fork of the original add-issue-id-hook repo, I packaged the python script and make the hook installable via pre-commit-hooks

Installation

In your repository, add following block to your .pre-commit-config.yaml.

  - repo: https://github.com/kaamos1/add-issue-id-hook.git
    rev: ccbc68f5cc2efd1410c65462ded4830099dc9d71
    hooks:
      - id: add-issue-id
        name: Prepend issue ID to commit message
        language: python
        stages: [commit-msg]

Dont forget to install the stage hooks:

pre-commit install -f --hook-type commit-msg

Contributions

Feel free to create an issue or open a PR in case you want to further extend this tool.

Acknowledge

Many, many thanks to the original Author Piotr Betkier

About

Git commit hook for adding related JIRA issue id to commit messages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%