-
Notifications
You must be signed in to change notification settings - Fork 327
Expand file tree
/
Copy pathcliff.toml
More file actions
61 lines (51 loc) · 2.08 KB
/
Copy pathcliff.toml
File metadata and controls
61 lines (51 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# git-cliff configuration for Thunderbolt.
# Docs: https://git-cliff.org/docs/configuration
#
# Section ordering is achieved by prefixing group names with "<!-- N -->".
# The template strips the comment via `striptags`, so the file renders
# the group name without the prefix; the prefix is kept in the sort key.
[changelog]
header = """# Changelog
All notable changes to Thunderbolt are documented in this file.
Generated by [git-cliff](https://git-cliff.org).
"""
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 }}
{% for commit in commits -%}
- {{ commit.message | split(pat="\n") | first | trim | upper_first }} ({{ commit.id | truncate(length=7, end="") }})
{% endfor -%}
{% endfor %}
"""
footer = ""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
# Order: noise filters first (highest priority), then categorized parsers,
# then a catch-all that routes the remainder to "Other".
commit_parsers = [
{ message = "^chore: bump version", skip = true },
{ message = "^chore: nightly build", skip = true },
{ message = "^chore\\(deps", skip = true },
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^refactor", group = "<!-- 3 -->Refactor" },
{ message = "^docs", group = "<!-- 4 -->Documentation" },
{ message = "^THU-\\d+:\\s*(add|implement|introduce|create|enable|support|new)\\b", group = "<!-- 0 -->Features" },
{ message = "^THU-\\d+:\\s*(fix|repair|resolve|correct|patch|prevent)\\b", group = "<!-- 1 -->Fixes" },
{ message = "^THU-\\d+", group = "<!-- 5 -->Other" },
{ message = ".*", group = "<!-- 5 -->Other" },
]
filter_commits = false
# Match only SemVer release tags. RC tags like v1.2.3-ios-rc are excluded.
tag_pattern = "v[0-9]+\\.[0-9]+\\.[0-9]+$"
sort_commits = "newest"
topo_order = false