ignore_regexps = [
    r'@skipChangelog', r'!skipChangelog', r'skipChangeLog', r'!skipChangeLog',
    r'@deploy', r'!deploy',
    r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
    r'Merge branch ',
    r'Merge remote-tracking ',
    r'^$',  ## ignore commits with empty messages
]

section_regexps = [
    ('New', [
        r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
     ]),
    ('Changes', [
        r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
     ]),
    ('Fix', [
        r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
     ]),
    ('Other', None ## Match all lines
     ),
]

body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip

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') |
    SetIfEmpty("No commit message.") | ucfirst | final_dot)

tag_filter_regexp = r'^v[0-9]+\.[0-9]+(\.[0-9]+)?$'

unreleased_version_label = "(unreleased)"

output_engine = mustache("markdown")

include_merge = True

revs = []
