-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathcliff.toml
More file actions
68 lines (62 loc) · 2.52 KB
/
cliff.toml
File metadata and controls
68 lines (62 loc) · 2.52 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
62
63
64
65
66
67
68
# git-cliff configuration for ros-z
# https://git-cliff.org/docs/configuration
[remote.github]
owner = "ZettaScaleLabs"
repo = "ros-z"
[changelog]
header = ""
body = """
{% if version %}\
## {{ version | trim_start_matches(pat="v") }} — {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## Unreleased
{% endif %}\
## Changelog
{% for group, commits in commits | group_by(attribute="group") %}\
<details>
<summary><strong>{{ group | striptags | trim | upper_first }}</strong></summary>
{% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %}\
- {% if commit.scope %}**({{ commit.scope }})** {% endif %}{{ commit.message | upper_first }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/ZettaScaleLabs/ros-z/commit/{{ commit.id }}))
{% endfor %}\
{% for commit in commits %}\
{%- if not commit.scope %}\
- {{ commit.message | upper_first }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/ZettaScaleLabs/ros-z/commit/{{ commit.id }}))
{% endif %}\
{% endfor %}
</details>
{% endfor %}\
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
### New Contributors
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\
- @{{ contributor.username }} made their first contribution\
{% if contributor.pr_number %} in [#{{ contributor.pr_number }}](https://github.com/ZettaScaleLabs/ros-z/pull/{{ contributor.pr_number }}){% endif %}
{% endfor %}\
{% endif %}\
"""
footer = ""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "(#${2})" },
]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^refactor", group = "<!-- 3 -->Refactor" },
{ message = "^test", group = "<!-- 4 -->Testing" },
{ message = "^docs?", group = "<!-- 5 -->Documentation" },
{ message = "^ci", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore", skip = true },
{ message = "^style", skip = true },
{ message = "^build", skip = true },
]
protect_breaking_commits = true
filter_commits = true
tag_pattern = "v[0-9].*"
ignore_tags = "rc|alpha|beta"
sort_commits = "newest"