Skip to content

Commit c8e0f02

Browse files
author
Simen Mailund Svendsen
committed
readme
1 parent 86b41d8 commit c8e0f02

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

readme.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# git jira autokey
2+
3+
A common request from clients is that each commit is tagged with the jira issue key for the feature I am working on.
4+
This is very easy to forget, so it is better to automate it.
5+
6+
## demo
7+
```shell
8+
$ git branch --show-current
9+
feature/ISSUE-1337-the-key-should-always-be-included-in-commit-message
10+
$ git add src/main.rs
11+
$ git commit -m "issue key will be added automatically now"
12+
[feature/ISSUE-1337-the-key-should-always-be-included-in-commit-message 699c022] [ISSUE-1337] issue key will be added automatically now
13+
1 file changed, 1 insertion(+)
14+
$ git log -n 1
15+
commit 699c02224787ee1fc08afc6edeaa75f50df2ff58 (HEAD -> feature/ISSUE-1337-the-key-should-always-be-included-in-commit-message)
16+
Author: Author name <[email protected]>
17+
Date: <date>
18+
19+
[ISSUE-1337] issue key will be added automatically now
20+
21+
22+
```
23+
24+
## usage
25+
`cargo build --release`
26+
27+
move the binary to your global git hooks folder and rename to `commit-msg`

0 commit comments

Comments
 (0)