From 765218e62a8d26d607c68e39c871e8f38fe3d72b Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Tue, 26 Nov 2024 20:13:14 -0700 Subject: [PATCH] Preserve changelog page name when generating release --- CHANGELOG.md | 4 ++++ scripts/create_release.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 409e150cb..53a8fa3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +--- +title: Changelog +--- + ## Unreleased ## v0.27.0 (2024-11-27) diff --git a/scripts/create_release.js b/scripts/create_release.js index c1b660a2b..ed94bf723 100644 --- a/scripts/create_release.js +++ b/scripts/create_release.js @@ -102,6 +102,9 @@ async function main() { date.getUTCDate().toString().padStart(2, "0"), ].join("-"); fullChangelog = + "---\n" + + "title: Changelog\n" + + "---\n\n" + "## Unreleased\n\n" + `## ${currentVersion} (${dateStr})` + fullChangelog.substring(start);