Skip to content

Commit e184bea

Browse files
committed
chore: keep changes to all packages in one CHANGELOG.md and use it in a
github release
1 parent 563d36e commit e184bea

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.md

Whitespace-only changes.

release-plz.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ release_always = false
77
# We don't want release-plz creating tags for every published crate.
88
git_release_enable = false
99
git_tag_enable = false
10+
# set the path of all the crates to the changelog to the root of the repository
11+
changelog_path = "./CHANGELOG.md"
1012

1113
[[package]]
1214
# The version bumps from any compiler crate should bubble up and bump the
@@ -18,3 +20,21 @@ git_tag_enable = true
1820
git_tag_name = "{{ version }}"
1921
git_release_name = "{{ version }}"
2022

23+
24+
[changelog]
25+
# group all the changes from all the packages in a single changelog
26+
# via https://release-plz.dev/docs/extra/single-changelog
27+
body = """
28+
29+
## `{{ package }}` - [{{ version }}]{%- if release_link -%}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") }}
30+
{% for group, commits in commits | group_by(attribute="group") %}
31+
### {{ group | upper_first }}
32+
{% for commit in commits %}
33+
{%- if commit.scope -%}
34+
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %}
35+
{% else -%}
36+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}
37+
{% endif -%}
38+
{% endfor -%}
39+
{% endfor -%}
40+
"""

0 commit comments

Comments
 (0)