-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcliff.toml
More file actions
38 lines (36 loc) · 1.31 KB
/
cliff.toml
File metadata and controls
38 lines (36 loc) · 1.31 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
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
[changelog]
header = "# Changelog\n\n"
# A Tera template to be rendered for each release in the changelog.
# See https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## Unreleased
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}\
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}
{% endfor %}\
{% endfor %}\n
"""
[git]
conventional_commits = true
filter_unconventional = true
require_conventional = false
split_commits = false
commit_parsers = [
{ message = "^.*\\(ignore\\):", skip = true },
{ message = "^chore", skip = true },
{ message = "^\\d+\\.\\d+\\.\\d+$", skip = true },
{ message = "^feat", group = "<!-- 1 -->Features" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^style", group = "<!-- 3 -->Styling" },
{ message = "^fix", group = "<!-- 4 -->Fixes" },
{ message = "^doc", group = "<!-- 5 -->Documentation" },
{ message = "^refactor", group = "Refactor" },
{ message = "^test", group = "Testing" },
]