-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcliff.toml
More file actions
25 lines (23 loc) · 886 Bytes
/
cliff.toml
File metadata and controls
25 lines (23 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[git]
conventional_commits = false
filter_unconventional = false
commit_parsers = [
{ message = "^(?i)\\[API Change\\]", group = "💥 API Changes" },
{ message = "^(?i)\\[Feature\\]", group = "🚀 Features" },
{ message = "^(?i)\\[Patch\\]", group = "🐞 Fixes" },
{ message = "^(?i)\\[Docs?\\]", group = "📚 Docs" },
{ message = "^(?i)\\[Perf\\]", group = "⚡ Performance" },
{ message = "^(?i)\\[Refactor\\]", group = "🧰 Maintenance" },
{ message = "^Merge pull request", skip = true }
]
[changelog]
header = "# Changelog\n"
body = """
## {{ version }} - {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") -%}
### {{ group }}
{% for c in commits -%}
- {{ c.message | split(pat="\\n") | first }} ({{ c.id | truncate(length=7) }})
{% endfor -%}
{% endfor -%}
"""