From 5913765f7ac0e5a2cfac81e7490e94a4c7b3baee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Sat, 30 May 2026 16:36:19 +1200 Subject: [PATCH] ci: generate release changelogs in PRs without committing CHANGELOG.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changelog_update was false, which suppressed changelog generation entirely — the release PR body and GitHub release notes both came out empty. Re-enable generation so the release PR body lists the changes, and gitignore CHANGELOG.md so release-plz writes it only to populate the PR body, never committing it to the repo. GitHub release notes derive from the committed file, so they remain empty by design. Co-authored-by: Claude --- .gitignore | 4 ++++ release-plz.toml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a0471c3e..b2e7a40d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ /target *.txt /testfiles + +# release-plz generates these to populate the release PR body; we don't commit +# them (matches CHANGELOG.md in the repo root and every crate directory). +CHANGELOG.md diff --git a/release-plz.toml b/release-plz.toml index 386ec3c6..528c0ef2 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -2,7 +2,11 @@ pr_name = "repo: release" pr_branch_prefix = "release-plz/" pr_labels = ["autorelease"] -changelog_update = false +# Generate changelogs so the release PR body lists the changes, but keep them +# out of the repo: CHANGELOG.md is gitignored, so release-plz writes it to +# populate the PR body without committing it. GitHub release notes are derived +# from the committed file, so they stay empty by design. +changelog_update = true git_tag_name = "{{ package }}-v{{ version }}" [[package]]