-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitchangelog.rc
More file actions
52 lines (49 loc) · 1.93 KB
/
Copy path.gitchangelog.rc
File metadata and controls
52 lines (49 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##
## Format
##
## ACTION COMMIT_MSG [!TAG ...]
##
## ACTION is one of '[REF]', '[FIX]', '[ADD]', '[DEL]'.
##
## HISTORY sections (from ACTION):
## [ADD] → Added — new user-facing capability
## [FIX] → Fixed — bug or broken behavior
## [REF] → Changed — behavior change that is not a new feature
## [DEL] → Removed
##
## Omit from HISTORY: append !cosmetic / !refactor / !wip / !minor,
## or use a CI: subject prefix (see ignore_regexps below).
## Untagged subjects land in Other — prefer a tag or an ignore marker.
##
ignore_regexps = [
r'^(.{3,3}\s*:)?\s*(\[[A-Z]+\]\s*)?[Uu]pdating [Cc]hangelog and [Vv]ersion.*$',
r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
r'@minor', r'!minor',
r'@cosmetic', r'!cosmetic',
r'@refactor', r'!refactor',
r'@wip', r'!wip',
r'^[Cc][Ii]\s*:',
r'^.*:\s*[Cc][Ii]\s*:',
r'^.*[Cc]ircle[Cc][Ii]\s*',
r'^.*:github:.*$',
r'^.*:changelog:.*$',
r'^Git-svn-id',
r'^$',
]
section_regexps = [
('Added', [r'\[ADD\]\s*([^[\]]*?)(?:\s*\[[A-Z]+\]|$)', r'\`\[ADD\]\`\s*([^[\]]*?)(?:\s*\`\[[A-Z]+\]\`|$)']),
('Changed', [r'\[REF\]\s*([^[\]]*?)(?:\s*\[[A-Z]+\]|$)', r'\`\[REF\]\`\s*([^[\]]*?)(?:\s*\`\[[A-Z]+\]\`|$)']),
('Fixed', [r'\[FIX\]\s*([^[\]]*?)(?:\s*\[[A-Z]+\]|$)', r'\`\[FIX\]\`\s*([^[\]]*?)(?:\s*\`\[[A-Z]+\]\`|$)']),
('Removed', [r'\[DEL\]\s*([^[\]]*?)(?:\s*\[[A-Z]+\]|$)', r'\`\[DEL\]\`\s*([^[\]]*?)(?:\s*\`\[[A-Z]+\]\`|$)']),
('Other', [r'^([^[\]\s][^[\]]*?)(?:\s*\[[A-Z]+\].*|$)']),
]
body_process = ReSub(r'((^|\n)\[[A-Z]\w+(-\w+)*\] .*(\n\s+.*)*)+$', r'') | strip
subject_process = (strip |
ReSub(r'^((?:`?\[[A-Z]+\]`?)\s*[^[\]`]*?)(?:\s*(?:`?\[[A-Z]+\]`?).*)?$', r'\1') |
ReSub(r'^`?\[[A-Z]+\]`?\s*', r'') |
ReSub(r'(@[a-z]+\s+)*$', r'') |
ucfirst | final_dot)
tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$'
unreleased_version_label = "(unreleased)"
output_engine = makotemplate(".gitchangelog.tpl")
include_merge = False