Skip to content

Commit 9b6c0d3

Browse files
committed
chg: [doc] updated Changelog.md to be more markdown friendly
chg: [tools] Changed the way gen_misp_install_docs.sh parseses the changelog new: [tools] Added simple tool for git log sanitizing.
1 parent 94eb322 commit 9b6c0d3

File tree

4 files changed

+621
-537
lines changed

4 files changed

+621
-537
lines changed

.gitchangelog.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
## 'fix' is for bug fixes
1515
## 'new' is for new features, big improvement
1616
##
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'
1818
##
1919
## Is WHO is concerned by the change.
2020
##
@@ -82,13 +82,13 @@ ignore_regexps = [
8282
##
8383
section_regexps = [
8484
('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]*)$',
8686
]),
8787
('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]*)$',
8989
]),
9090
('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]*)$',
9292
]),
9393

9494
('Other', None ## Match all lines
@@ -141,7 +141,7 @@ body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip
141141
##
142142
## Available constructs are those listed in ``body_process`` doc.
143143
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') |
145145
SetIfEmpty("No commit message.") | ucfirst | final_dot)
146146

147147

0 commit comments

Comments
 (0)