Skip to content

Commit 77abbd1

Browse files
committed
chore(cliff): update changelog
1 parent 0252b23 commit 77abbd1

File tree

2 files changed

+51
-17
lines changed

2 files changed

+51
-17
lines changed

β€Žcliff.tomlβ€Ž

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,3 @@
44
[bump]
55
features_always_bump_minor = true
66
breaking_always_bump_major = false
7-
8-
[git]
9-
commit_parsers = [
10-
{ message = "^feat", group = "<!-- 0 -->πŸš€ Features" },
11-
{ message = "^fix", group = "<!-- 1 -->πŸ› Bug Fixes" },
12-
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
13-
{ message = "^doc", group = "<!-- 3 -->πŸ“š Documentation" },
14-
{ message = "^perf", group = "<!-- 4 -->⚑ Performance" },
15-
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
16-
{ message = "^test", group = "<!-- 6 -->πŸ§ͺ Testing" },
17-
{ message = "^chore|^ci|^deps", skip = true },
18-
{ body = ".*security", group = "<!-- 7 -->πŸ›‘οΈ Security" },
19-
{ message = "^revert", group = "<!-- 8 -->◀️ Revert" },
20-
{ message = ".*", group = "<!-- 9 -->πŸ’Ό Other" },
21-
]
22-
# protect breaking changes from being skipped due to matching a skipping commit_parser
23-
protect_breaking_commits = false

β€Žrelease-plz.tomlβ€Ž

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,54 @@ git_release_enable = true
1616
name = "oxc_resolver_napi"
1717
version_group = "group"
1818
changelog_update = false
19+
20+
[changelog]
21+
body = """
22+
23+
## [{{ version }}]\
24+
{%- if release_link -%}\
25+
({{ release_link }})\
26+
{% endif %} \
27+
- {{ timestamp | date(format="%Y-%m-%d") }}
28+
{% for group, commits in commits | group_by(attribute="group") %}
29+
### {{ group | upper_first }}
30+
31+
{% for commit in commits %}
32+
{%- if commit.scope -%}
33+
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}\
34+
{{ commit.message }}{{ self::username(commit=commit) }}\
35+
{%- if commit.links %} \
36+
({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%})\
37+
{% endif %}
38+
{% else -%}
39+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{{ self::username(commit=commit) }}{{ self::pr(commit=commit) }}
40+
{% endif -%}
41+
{% endfor -%}
42+
{% endfor %}
43+
{%- if remote.contributors %}
44+
### Contributors
45+
{% for contributor in remote.contributors %}
46+
* @{{ contributor.username }}
47+
{%- endfor %}
48+
{% endif -%}
49+
{%- macro username(commit) -%}
50+
{% if commit.remote.username %} (by @{{ commit.remote.username }}){% endif -%}
51+
{% endmacro -%}
52+
{%- macro pr(commit) -%}
53+
{% if commit.remote.pr_number %} - #{{ commit.remote.pr_number }}{% endif -%}
54+
{% endmacro -%}
55+
"""
56+
57+
commit_parsers = [
58+
{ message = "^feat", group = "<!-- 0 -->πŸš€ Features" },
59+
{ message = "^fix", group = "<!-- 1 -->πŸ› Bug Fixes" },
60+
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
61+
{ message = "^doc", group = "<!-- 3 -->πŸ“š Documentation" },
62+
{ message = "^perf", group = "<!-- 4 -->⚑ Performance" },
63+
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
64+
{ message = "^test", group = "<!-- 6 -->πŸ§ͺ Testing" },
65+
{ message = "^chore|^ci|^deps", skip = true },
66+
{ body = ".*security", group = "<!-- 7 -->πŸ›‘οΈ Security" },
67+
{ message = "^revert", group = "<!-- 8 -->◀️ Revert" },
68+
{ message = ".*", group = "<!-- 9 -->πŸ’Ό Other" },
69+
]

0 commit comments

Comments
Β (0)