|
14 | 14 | ## 'fix' is for bug fixes |
15 | 15 | ## 'new' is for new features, big improvement |
16 | 16 | ## |
17 | | -## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc' |
| 17 | +## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'|'docs' |
18 | 18 | ## |
19 | 19 | ## Is WHO is concerned by the change. |
20 | 20 | ## |
@@ -82,13 +82,13 @@ ignore_regexps = [ |
82 | 82 | ## |
83 | 83 | section_regexps = [ |
84 | 84 | ('New', [ |
85 | | - r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', |
| 85 | + r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n]*)$', |
86 | 86 | ]), |
87 | 87 | ('Changes', [ |
88 | | - r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', |
| 88 | + r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n]*)$', |
89 | 89 | ]), |
90 | 90 | ('Fix', [ |
91 | | - r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', |
| 91 | + r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n]*)$', |
92 | 92 | ]), |
93 | 93 |
|
94 | 94 | ('Other', None ## Match all lines |
@@ -141,7 +141,7 @@ body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip |
141 | 141 | ## |
142 | 142 | ## Available constructs are those listed in ``body_process`` doc. |
143 | 143 | subject_process = (strip | |
144 | | - ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') | |
| 144 | + ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') | |
145 | 145 | SetIfEmpty("No commit message.") | ucfirst | final_dot) |
146 | 146 |
|
147 | 147 |
|
|
0 commit comments