Repository navigation
Expand file tree
/
Copy pathcliff.toml
More file actions
43 lines (40 loc) · 1.51 KB
/
Copy pathcliff.toml
File metadata and controls
43 lines (40 loc) · 1.51 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
# git-cliff config — https://git-cliff.org/docs/configuration
# Groups Conventional Commits (feat/fix/docs/...) into release notes and CHANGELOG.md.
[changelog]
header = """
# Changelog
All notable changes to Vexlyx are documented here. Generated from Conventional Commits by git-cliff.
"""
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}\
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endfor %}
{% endfor %}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
protect_breaking_commits = true
# Matches only final release tags (v1.2.3), not pre-releases (v1.2.3-rc.1). Otherwise an rc tag
# counts as a release boundary, and the final tag's notes only cover the delta since the last rc
# instead of the full range since the previous final release.
tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
sort_commits = "oldest"
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug fixes" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactoring" },
{ message = "^docs", group = "Documentation" },
{ message = "^(chore|ci|build|test|style)", group = "Maintenance" },
{ message = ".*", group = "Other" },
]