Skip to content

Commit dfc2695

Browse files
authored
chore: Update release-plz.toml
1 parent 33eb2d9 commit dfc2695

File tree

1 file changed

+35
-18
lines changed

1 file changed

+35
-18
lines changed

release-plz.toml

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
[workspace]
2+
changelog_path="./CHANGELOG.md"
23
dependencies_update = false
34
publish_timeout = "30m"
45
git_release_enable = false
56
git_tag_enable = false
6-
git_release_body = """
7-
{{ changelog }}
8-
{% if remote.contributors %}
9-
### Contributors
10-
{% for contributor in remote.contributors | unique(attribute="username") %}
11-
* @{{ contributor.username }}
12-
{% endfor %}
13-
{% endif %}
14-
"""
157

168
[changelog]
179
commit_parsers = [
@@ -26,6 +18,40 @@ commit_parsers = [
2618
{ message = "^security", group = "security" },
2719
{ message = "^.*", group = "other" },
2820
]
21+
body = """
22+
## [{{ version | trim_start_matches(pat="v") }}]\
23+
{%- if release_link -%}\
24+
({{ release_link }})\
25+
{% endif %} \
26+
- {{ timestamp | date(format="%Y-%m-%d") }}
27+
{% for group, commits in commits | group_by(attribute="group") %}
28+
### {{ group | upper_first }}
29+
30+
{% for commit in commits %}
31+
{%- if commit.scope -%}
32+
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}\
33+
{{ commit.message }}{{ self::username(commit=commit) }}\
34+
{%- if commit.links %} \
35+
({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%})\
36+
{% endif %}
37+
{% else -%}
38+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{{ self::username(commit=commit) }}{{ self::pr(commit=commit) }}
39+
{% endif -%}
40+
{% endfor -%}
41+
{% endfor %}
42+
{%- if remote.contributors %}
43+
### Contributors
44+
{% for contributor in remote.contributors %}
45+
* @{{ contributor.username }}
46+
{%- endfor %}
47+
{% endif -%}
48+
{%- macro username(commit) -%}
49+
{% if commit.remote.username %} (by @{{ commit.remote.username }}){% endif -%}
50+
{% endmacro -%}
51+
{%- macro pr(commit) -%}
52+
{% if commit.remote.pr_number %} - #{{ commit.remote.pr_number }}{% endif -%}
53+
{% endmacro -%}
54+
"""
2955

3056
[[package]]
3157
name = "bevy_mod_scripting"
@@ -37,14 +63,6 @@ git_tag_enable = true
3763
git_tag_name = "v{{ version }}"
3864
git_release_name = "v{{ version }}"
3965

40-
changelog_include = [
41-
"bevy_mod_scripting_lua",
42-
"bevy_mod_scripting_core",
43-
"bevy_mod_scripting_rhai",
44-
# "bevy_mod_scripting_rune",
45-
"bevy_mod_scripting_functions",
46-
]
47-
4866
[[package]]
4967
name = "bevy_mod_scripting_lua"
5068
publish_features = ["lua54"]
@@ -87,7 +105,6 @@ git_tag_name = "v{{ version }}-ladfile_builder"
87105
git_release_name = "v{{ version }}-ladfile_builder"
88106

89107
[[package]]
90-
changelog_update = true
91108
name = "mdbook_lad_preprocessor"
92109
git_release_enable = true
93110
git_release_latest = false

0 commit comments

Comments
 (0)