File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
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 `
You can’t perform that action at this time.
0 commit comments