Skip to content

Automatically add issue references to commit messages based on branch or start of the message, useful for JIRA & co.

Notifications You must be signed in to change notification settings

Rukenshia/git-issue-ref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-issue-ref

Please read the documentation for more information.

This tool provides automatic issue references in commit messages based on the current branch or a prefix in the commit message. You can also supply manual formats so you don't have to supply anything.

Go get

go get github.com/Rukenshia/git-issue-ref

Installation from Source

Currently you need to build it yourself using go 1.7.5(or newer). Just go into the package and use go get && go build.

Examples

default format

the following examples assume that you initialized issue-ref using git issue-ref link.

# on branch master
git commit -am "MYTEAM-123 did something"

--> "[MYTEAM-123] did something"
# on branch MYTEAM-123-some-awesome-task
git commit -am "did something"

--> "[MYTEAM-123] did something"
# on branch feature/MYTEAM-123-some-awesome-task
git commit -am "did something"

--> "[MYTEAM-123] did something"

supplying a custom format

git issue-ref link --format "[MYTEAM-{ref}] "
git commit -am "123 did something"

--> "[MYTEAM-123] did something"
git issue-ref link --format "[MYTEAM-123] "
git commit -am "did something"

--> "[MYTEAM-123] did something"

About

Automatically add issue references to commit messages based on branch or start of the message, useful for JIRA & co.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages