Skip to content

Commit

Permalink
chg: dev: allow Dev notes for gitchangelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sk2 committed Oct 16, 2014
1 parent 8735bd7 commit 4b12f98
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .gitchangelog.rc
Expand Up @@ -53,16 +53,24 @@
## Any commit having its full commit message matching any regexp listed here
## will be ignored and won't be reported in the changelog.
##

import os
INCLUDE_DEV = os.environ.get('GITCHANGELOG_DEV', False)
INCLUDE_DEV = bool(INCLUDE_DEV)


ignore_regexps = [
r'@minor' ,
r'@cosmetic',
r'@refactor',
r'@wip',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
r'^Bump version\: \d+\.\d+\.\d+ \xe2\x86\x92 (\d+\.\d+\.\d+)$',
]

if not INCLUDE_DEV:
ignore_regexps.append(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:')


##
## ``replace_regexps`` is a dict associating a regexp pattern and its replacement
Expand Down

0 comments on commit 4b12f98

Please sign in to comment.