-
Notifications
You must be signed in to change notification settings - Fork 1
/
cliff.toml
25 lines (24 loc) · 971 Bytes
/
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
[changelog]
body = """
{% for group, commits in commits | group_by(attribute="group") %}\
### {{ group | upper_first }}
{% for commit in commits %}
{%- if commit.scope -%}
{% else %}
- **{% if commit.breaking %}[**BREAKING**] {% endif -%}{{ commit.message | upper_first }}.**{% if commit.body %}\n{{ commit.body | indent(first=true) }}{% endif %}\
{% endif %}\
{% endfor %}\
{% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %}
- **{% if commit.breaking %}[**BREAKING**] {% endif -%}\
**{{ commit.scope | upper }}**: {{ commit.message | upper_first }}.**{% if commit.body %}\n{{ commit.body | indent(first=true) }}{% endif %}\
{% endfor %}\n
{% endfor %}
"""
[git]
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^perf", group = "Performance"},
{ message = "^fix", group = "Fixes"},
]
filter_commits = true
tag_pattern = "[v0-9]*"