-
Notifications
You must be signed in to change notification settings - Fork 17
/
cliff.toml
35 lines (33 loc) · 1010 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
26
27
28
29
30
31
32
33
34
35
[changelog]
header = """
## What's Changed
"""
body = """
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
* {{ commit.message | upper_first }}\
{% if commit.breaking %} (**breaking**){% endif %}\
{%- if commit.links %} ({% for link in commit.links %}{{link.text}}{% endfor -%}){% endif %}\
{%- if commit.body %}\n → {{ commit.body }}{%- endif %}\
{% endfor %}
{% endfor %}\n
"""
footer = """
### Acknowledgements
Thanks to XYZ for their contributions!
"""
trim = false
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^merge", group = "Merges"},
{ message = "^doc", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^test", skip = true},
{ message = "^chore", skip = true},
]
link_parsers = [ { pattern = "#(\\d+)", href = "$1"} ]