-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcliff.toml
34 lines (33 loc) · 1.3 KB
/
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
[changelog]
header = """
## What's New
"""
body = """
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | upper_first | trim }} \
{% if commit.remote.username and commit.remote.username != "MichaelOstermann" %}({{ commit.remote.username }}) {% endif %}\
{% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) {% endif %}\
([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))
{%- endfor %}
{% endfor %}
"""
footer = ""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->⛰️ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 2 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 3 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 4 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore", group = "<!-- 7 -->⚙️ Misc" }
]
filter_commits = false
topo_order = false
sort_commits = "oldest"