-
Notifications
You must be signed in to change notification settings - Fork 0
/
cliff.toml
46 lines (45 loc) · 1.78 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
35
36
37
38
39
40
41
42
43
44
45
46
[changelog]
header = "# Changelog\n"
body = """
{% if version %}\
## v{{ version | trim_start_matches(pat="v") }}
Release date: *{{ timestamp | date(format="%Y-%m-%d") }}*
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="scope") %}
### {{ group | upper_first }}
{% for group, commits in commits | group_by(attribute="group") %}
#### {{ group | upper_first }}
{% for commit in commits %}
{% if commit.breaking %}\
- **BREAKING**: {{ commit.message | upper_first }}\
{% else %}\
- {{ commit.message | upper_first }} [{{ commit.id | truncate(length=7, end="") }}]\
{% endif %}\
{% endfor %}
{% endfor %}\
{% endfor %}\n
"""
trim = true
footer = ""
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_parsers = [
{ message = "^chore", group = "🚲 Miscellaneous Tasks", default_scope = "global changes"},
{ message = "^feat", group = "🛳 Features", default_scope = "global changes"},
{ message = "^fix", group = "🐞 Bug Fixes", default_scope = "global changes"},
{ message = "^doc", group = "📄 Documentation", default_scope = "global changes"},
{ message = "^perf", group = "🏎 Performance", default_scope = "global changes"},
{ message = "^refactor", group = "🏗 Refactor", default_scope = "global changes"},
{ message = "^style", group = "Styling", default_scope = "global changes"},
{ message = "^test", group = "⚒ Testing", default_scope = "global changes"},
{ message = "^version", group = "☯ Version specifics", default_scope = "global changes"},
]
protect_breaking_commits = false
filter_commits = false
ignore_tags = ""
topo_order = false
sort_commits = "oldest"