-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitchangelog.rc
39 lines (27 loc) · 836 Bytes
/
.gitchangelog.rc
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
CURRENT_FORMAT = r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test)\s*:\s*)?([^\n]*)$'
unreleased_version_label = "%%version%% (unreleased)"
ignore_regexps = [
r'@minor',
r'@cosmetic',
r'@refactor',
]
replace_regexps = {
## current format (ie: 'chg: dev: my commit msg @tag1 @tag2')
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$':
r'\4',
}
section_regexps = (
('New', [
r'^[nN]ew\s*:\s*((dev|use?r|pkg)\s*:\s*)?([^\n]*)$',
]),
('Changes', [
r'^[cC]hg\s*:\s*((dev|use?r|pkg)\s*:\s*)?([^\n]*)$',
]),
('Fix', [
r'^[fF]ix\s*:\s*((dev|use?r|pkg)\s*:\s*)?([^\n]*)$',
]),
('Other', None ## Match all lines
),
)
body_split_regexp = r'\n(?=\w+\s*:)'
tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$'