-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.git-cliff.toml
37 lines (33 loc) · 954 Bytes
/
.git-cliff.toml
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
[changelog]
header = """
# Changelog
"""
body = """
{% if version %}\
## {{ version | trim_start_matches(pat="v") }}
{% else %}\
## Unreleased
{% endif %}\
{% for group, commits in commits | filter(attribute="group", value="Features") | group_by(attribute="group") %}\
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }}\
{% endfor %}\n
{% endfor %}\
{% for group, commits in commits | filter(attribute="group", value="Fixes") | group_by(attribute="group") %}\
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }}\
{% endfor %}\n
{% endfor %}\
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Fixes" },
{ message = "^docs", group = "Documentation", skip = true },
]
# filter_commits = true