-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcliff.toml
57 lines (53 loc) · 2.17 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
47
48
49
50
51
52
53
54
55
56
57
# https://git-cliff.org/docs/configuration
[changelog]
# template for the changelog header
header = "# Changelog"
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
## {{ version }}
{% else %}\
## Unreleased
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}{{ commit.scope }}: {% endif %}\
{{ commit.message | split(pat="\n") | first | upper_first | trim }} \
([{{ commit.id | truncate(length=7, end="") }}](https://github.com/desbma/shh/commit/{{ commit.id }}) by {{ commit.author.name }})\
{% endfor %}
{% endfor %}
---
"""
# template for the changelog footer
footer = ""
# remove the leading and trailing whitespace from the templates
trim = true
[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = false
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 01 -->💡 Features" },
{ message = "^fix", group = "<!-- 02 -->🐛 Bug fixes" },
{ message = "^perf", group = "<!-- 03 -->🏃 Performance" },
{ message = "^doc", group = "<!-- 04 -->📗 Documentation" },
{ message = "^test", group = "<!-- 05 -->🧪 Testing" },
{ message = "^refactor", group = "<!-- 06 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 07 -->🎨 Styling" },
{ message = "^build", group = "<!-- 08 -->🏗 Build" },
{ message = "^ci", group = "<!-- 09 -->🤖 Continuous integration" },
{ message = "^chore: version ", skip = true },
{ message = "^chore", group = "<!-- 10 -->🧰 Miscellaneous tasks" },
{ message = "^revert", group = "<!-- 10 -->🧰 Miscellaneous tasks", default_scope = "revert" },
{ body = ".*security", group = "<!-- 00 -->🛡️ Security" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"