A prepare-commit-msg hook for pre-commit.
If present in the branch name, this hook prepends the Shortcut Story ID to the commit message.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/Masabi/shortcut-commit-msg-hook
rev: v0.2
hooks:
- id: shortcut-commit-msg-hook
and install prepare-commit-msg hooks using
pre-commit install --hook-type prepare-commit-msg