-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
41 lines (36 loc) · 1.14 KB
/
cliff.toml
File metadata and controls
41 lines (36 loc) · 1.14 KB
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
40
41
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
"""
body = """
{% if version %}
## {{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%Y-%m-%d") }})
{%- else %}
## Unreleased
{%- endif %}
{%- if commits | filter(attribute="breaking", value=true) | length != 0 %}
### BREAKING CHANGES
{% for commit in commits | filter(attribute="breaking", value=true) %}
{%- for footer in commit.footers | filter(attribute="breaking", value=true) %}
- {{ footer.value }}
{%- endfor %}
{%- endfor %}
{%- endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group }}
{% for commit in commits %}
- {{ commit.message }}
{%- endfor %}
{% endfor %}
"""
[git]
commit_parsers = [
{ message = "^docs", group = "Documentation" },
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Fixes" },
{ message = "^perf", group = "Performance Improvements" },
]
conventional_commits = true
filter_commits = true
filter_unconventional = true