Skip to content

Commit 5413f3d

Browse files
committed
Add git-cliff configuration
1 parent 164edef commit 5413f3d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

cliff.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[changelog]
2+
header = """
3+
# Changelog
4+
5+
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org) for commit guidelines.\n
6+
"""
7+
body = """
8+
{% if version %}\
9+
## [{{ version }}](https://github.com/alerque/fluent-lua/releases/{{ version }}) — {{ timestamp | date(format="%Y-%m-%d") }}
10+
{% else %}\
11+
## [unreleased]
12+
{% endif %}\
13+
{% for group, commits in commits | group_by(attribute="group") %}
14+
### {{ group }}
15+
{% for commit in commits %}
16+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
17+
{% endfor %}
18+
{% endfor %}\n
19+
"""
20+
footer = """
21+
<!-- generated by git-cliff -->
22+
"""
23+
24+
[git]
25+
commit_parsers = [
26+
{ message = "^feat:", group = "Features" },
27+
{ message = "^fix:", group = "Bug Fixes" },
28+
{ message = "^docs:", skip = true },
29+
{ message = "^perf:", group = "Optimizations" },
30+
{ message = "^refactor:", skip = true },
31+
{ message = "^style:", skip = true},
32+
{ message = "^test:", skip = true},
33+
{ message = "^ci:", skip = true },
34+
{ message = "^chore:", skip = true },
35+
{ body = ".*security", group = "Security" },
36+
]
37+
filter_commits = true
38+
tag_pattern = "v[0-9]*.[0-9]*.[0-9]*"
39+
skip_tags = "v0.0.[0-5]"

0 commit comments

Comments
 (0)