File tree 2 files changed +60
-0
lines changed
2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ ignore_regexps = [
2
+ r'@minor', r'!minor',
3
+ r'@cosmetic', r'!cosmetic',
4
+ r'@refactor', r'!refactor',
5
+ r'@wip', r'!wip',
6
+ r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
7
+ r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
8
+ r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
9
+ ]
10
+
11
+ section_regexps = [
12
+ ('New', [
13
+ r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
14
+ ]),
15
+ ('Changes', [
16
+ r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
17
+ ]),
18
+ ('Fix', [
19
+ r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
20
+ ]),
21
+
22
+ ('Other', None ## Match all lines
23
+ ),
24
+
25
+ ]
26
+
27
+ body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip
28
+
29
+ subject_process = (strip |
30
+ ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
31
+ ucfirst | final_dot)
32
+
33
+ tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$'
34
+
35
+ unreleased_version_label = "%%version%% (unreleased)"
36
+
37
+ output_engine = rest_py
38
+
39
+ include_merge = True
Original file line number Diff line number Diff line change @@ -9,3 +9,24 @@ files to ``.git/hooks`` to use the hooks.
9
9
For example, to use the ``commit-msg `` hook, copy ``./hooks/commit-msg `` and
10
10
``./hooks/commit_message.py `` to your local git repo hooks folder located in
11
11
``.git/hooks `` from your repo root folder.
12
+
13
+ Changelog
14
+ =========
15
+
16
+ 0.1.0 (2016-04-17)
17
+ ------------------------
18
+
19
+ New
20
+ ~~~
21
+
22
+ - Add license. [Diego Hurtado]
23
+
24
+ The license for this project was defined as show in the LICENSE
25
+ file.
26
+
27
+ - Add the README. [Diego Hurtado]
28
+
29
+ The commit-msg hook is ready for use. Instructions on how to
30
+ use were added in the README.
31
+
32
+
You can’t perform that action at this time.
0 commit comments