Skip to content

Commit

Permalink
chg: [doc] updated Changelog.md to be more markdown friendly
Browse files Browse the repository at this point in the history
chg: [tools] Changed the way gen_misp_install_docs.sh parseses the changelog
new: [tools] Added simple tool for git log sanitizing.
  • Loading branch information
SteveClement committed Oct 26, 2018
1 parent 94eb322 commit 9b6c0d3
Show file tree
Hide file tree
Showing 4 changed files with 621 additions and 537 deletions.
10 changes: 5 additions & 5 deletions .gitchangelog.rc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## 'fix' is for bug fixes
## 'new' is for new features, big improvement
##
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'|'docs'
##
## Is WHO is concerned by the change.
##
Expand Down Expand Up @@ -82,13 +82,13 @@ ignore_regexps = [
##
section_regexps = [
('New', [
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n]*)$',
]),
('Changes', [
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n]*)$',
]),
('Fix', [
r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc|docs)\s*:\s*)?([^\n]*)$',
]),

('Other', None ## Match all lines
Expand Down Expand Up @@ -141,7 +141,7 @@ body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip
##
## Available constructs are those listed in ``body_process`` doc.
subject_process = (strip |
ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
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') |
SetIfEmpty("No commit message.") | ucfirst | final_dot)


Expand Down
Loading

0 comments on commit 9b6c0d3

Please sign in to comment.