-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.git-cliff.toml
More file actions
46 lines (39 loc) · 1.08 KB
/
.git-cliff.toml
File metadata and controls
46 lines (39 loc) · 1.08 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
# git-cliff configuration for HeyClaude
# Docs: https://git-cliff.org/docs/configuration
[changelog]
header = """
# Changelog
"""
body = """
{% if version %}\
## {{ timestamp | date(format="%Y-%m-%d") }} - {{ version | trim_start_matches(pat="v") }}
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | trim }}
{% endfor %}
{% endfor %}\
"""
footer = ""
trim = true
output = "CHANGELOG.md"
prepend = true
[git]
conventional_commits = true
filter_unconventional = true
sort_commits = "oldest"
commit_parsers = [
{ message = "^feat", group = "Added" },
{ message = "^fix", group = "Fixed" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Changed" },
{ message = "^docs", group = "Docs" },
{ message = "^build", group = "Build" },
{ message = "^ci", group = "CI" },
{ message = "^test", group = "Tests" },
{ message = "^chore", group = "Maintenance" },
{ message = "^revert", group = "Reverted" },
]