https://github.com/esss/add-jira-tag-pre-commit
Adds Jira issue key as a tag in commit messages if a Jira key is found in the branch's name
https://github.com/esss/add-jira-tag-pre-commit
Last synced: about 1 year ago
JSON representation
Adds Jira issue key as a tag in commit messages if a Jira key is found in the branch's name
- Host: GitHub
- URL: https://github.com/esss/add-jira-tag-pre-commit
- Owner: ESSS
- License: mit
- Created: 2024-02-27T18:19:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-19T12:46:02.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T02:29:58.020Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# add-jira-tag-pre-commit
Adds Jira issue key as a tag in commit messages if a Jira key is found in the branch's name.
---
## Usage
Add the following to the `.pre-commit-config.yaml` file in you repo.
``` yaml
- repo: https://github.com/ESSS/add-jira-tag-pre-commit
rev: v0.1.1
hooks:
- id: add-jira-tag
name: add-jira-tag
stages: [ prepare-commit-msg ]
```
Then, install `pre-commit` hooks (usually `pre-commit install`).
> :warning: **`add-jira-tag` is a `prepare-commit-msg` hook**, so passing additional arguments `--install-hooks -t prepare-commit-msg` may be required during hooks installation.