Skip to content

Commit c230eb9

Browse files
committed
chore: Move cliff config into release-plz.toml
1 parent d6ef150 commit c230eb9

File tree

2 files changed

+67
-103
lines changed

2 files changed

+67
-103
lines changed

.release-plz.toml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,70 @@
22
name = "galileo-web-example"
33
release = false
44

5+
[changelog]
6+
header = """# Changelog
7+
8+
## [Unreleased]
9+
"""
10+
11+
body = """
12+
13+
{% macro print_commit(commit) -%}
14+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
15+
{% if commit.breaking %}[**breaking**] {% endif %}\
16+
{{ commit.message | upper_first }} - \
17+
([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }}))\
18+
{% endmacro -%}
19+
20+
{% if version %}\
21+
{% if previous.version %}\
22+
## [{{ version }}]({{ release_link }})
23+
{% else %}\
24+
## [{{ version }}]
25+
{% endif %}\
26+
{% endif %}\
27+
28+
{% for group, commits in commits
29+
| filter(attribute="merge_commit", value=false)
30+
| unique(attribute="message")
31+
| group_by(attribute="group") %}
32+
### {{ group | striptags | trim | upper_first }}
33+
34+
{% for commit in commits
35+
| filter(attribute="scope")
36+
| sort(attribute="scope") %}
37+
{{ self::print_commit(commit=commit) }}
38+
{%- endfor -%}
39+
{% raw %}\n{% endraw %}\
40+
{%- for commit in commits %}
41+
{%- if not commit.scope -%}
42+
{{ self::print_commit(commit=commit) }}
43+
{% endif -%}
44+
{% endfor -%}
45+
{% endfor %}\n
46+
"""
47+
48+
commit_parsers = [
49+
{ message = "^feat", group = "<!-- 0 -->⛰️ Features" },
50+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
51+
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
52+
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
53+
{ message = "^refactor\\(clippy\\)", skip = true },
54+
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
55+
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
56+
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
57+
{ message = "^chore\\(release\\):", skip = true },
58+
{ message = "^chore: release", skip = true },
59+
{ message = "^chore\\(deps.*\\)", skip = true },
60+
{ message = "^chore\\(pr\\)", skip = true },
61+
{ message = "^chore\\(pull\\)", skip = true },
62+
{ message = "^chore\\(npm\\).*yarn\\.lock", skip = true },
63+
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
64+
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
65+
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
66+
]
67+
68+
link_parsers = [
69+
{ pattern = "#(\\d+)", href = "{{ remote.link }}/issues/$1" },
70+
{ pattern = "RFC(\\d+)", text = "ietf-rfc$1", href = "https://datatracker.ietf.org/doc/html/rfc$1" },
71+
]

cliff.toml

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)