Skip to content

Adds Jira issue key as a tag in commit messages if a Jira key is found in the branch's name

License

Notifications You must be signed in to change notification settings

ESSS/add-jira-tag-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

-   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).

⚠️ 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.

About

Adds Jira issue key as a tag in commit messages if a Jira key is found in the branch's name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages