Skip to content

rust port of the git jira autokey project originally written in go

Notifications You must be signed in to change notification settings

sMailund/git-jira-autokey-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git jira autokey

A common request from clients is that each commit is tagged with the jira issue key for the feature I am working on. This is very easy to forget, so it is better to automate it.

demo

$ git branch --show-current
feature/ISSUE-1337-the-key-should-always-be-included-in-commit-message
$ git add src/main.rs
$ git commit -m "issue key will be added automatically now"
[feature/ISSUE-1337-the-key-should-always-be-included-in-commit-message 699c022] [ISSUE-1337] issue key will be added automatically now
 1 file changed, 1 insertion(+)
$ git log -n 1
commit 699c02224787ee1fc08afc6edeaa75f50df2ff58 (HEAD -> feature/ISSUE-1337-the-key-should-always-be-included-in-commit-message)
Author: Author name <[email protected]>
Date:   <date>

    [ISSUE-1337] issue key will be added automatically now

usage

cargo build --release

move the binary to your global git hooks folder and rename to commit-msg

About

rust port of the git jira autokey project originally written in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages