File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Add this to your ``.pre-commit-config.yaml``:
20
20
.. code-block :: yaml
21
21
22
22
- repo : https://github.com/Cielquan/commit-msg-jira-hook
23
- rev : v0.1 .0 # Use the ref you want to point at
23
+ rev : v0.2 .0 # Use the ref you want to point at
24
24
hooks :
25
25
- id : jira_commit_msg
26
26
stages : [commit-msg]
@@ -32,11 +32,19 @@ Then add a ``jira.ini`` to you projects root directory with following data:
32
32
[jira]
33
33
JIRA_URL = e.g. https://jira.atlassian.com
34
34
JIRA_TAG = tag
35
+
36
+ Then add a ``.jira.ini `` to your home direcotry with the following data:
37
+
38
+ .. code-block :: ini
39
+
40
+ [jira]
35
41
JIRA_USERNAME = email
36
42
JIRA_TOKEN = api-token
37
43
38
44
Get api token from here: https://id.atlassian.com/manage/api-tokens
39
45
46
+ The split into two ``*.ini `` files is so you do not commit your credentials into your repo.
47
+
40
48
Lastly install the hook:
41
49
42
50
.. code-block :: console
You can’t perform that action at this time.
0 commit comments