-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcliff.toml
More file actions
49 lines (46 loc) · 1.44 KB
/
cliff.toml
File metadata and controls
49 lines (46 loc) · 1.44 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
42
43
44
45
46
47
48
49
# git-cliff configuration
# https://git-cliff.org/docs/configuration
[changelog]
header = """
# Changelog\n
"""
body = """
{% if version %}\
## {{ version }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
{% endif %}\
"""
footer = """
## v1
- Initial release: strace v5.9 (ARM64, GCC10, LTO, stripped)
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
tag_pattern = "^v[0-9]"
skip_tags = "^v1$"
commit_preprocessors = [
# Keep only the first line of multi-line commit messages
{ pattern = "\n[\\s\\S]*", replace = "" },
]
commit_parsers = [
# Historical commits (pre-conventional)
{ message = "^init$", skip = true },
{ message = "^Strace", skip = true },
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^ci", group = "<!-- 3 -->CI/CD" },
{ message = "^build", group = "<!-- 4 -->Build" },
{ message = "^docs", group = "<!-- 5 -->Documentation" },
{ message = "^refactor", group = "<!-- 6 -->Refactoring" },
{ message = "^style", group = "<!-- 7 -->Styling" },
{ message = "^test", group = "<!-- 8 -->Testing" },
{ message = "^chore", group = "<!-- 9 -->Chores" },
]