From fb4048e3e76e624a364b1f97ca4017bd9d92d626 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Tue, 6 Oct 2026 10:51:08 -0500 Subject: [PATCH] Transfer change-notes to CHANGELOG.md via update-release-branch.ts --- pr-checks/update-release-branch.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pr-checks/update-release-branch.ts b/pr-checks/update-release-branch.ts index 93e50f7ad..736e95b61 100755 --- a/pr-checks/update-release-branch.ts +++ b/pr-checks/update-release-branch.ts @@ -23,6 +23,7 @@ import { parseArgs } from "node:util"; import { type ApiClient, getApiClient } from "./api-client"; import * as changelog from "./changelog"; +import { transferChangenotesToChangelog } from "./changenotes"; import { DryRunOption, REPO_ROOT } from "./config"; import { getCurrentVersion, @@ -693,7 +694,10 @@ export async function prepareNewBranch( console.log("Updating changelog"); changelog.withChangelog( - (contents) => changelog.setVersionAndDate(version, contents), + (contents) => { + const populatedContents = transferChangenotesToChangelog(contents); + return changelog.setVersionAndDate(version, populatedContents); + }, { ...options, initChangelog: true }, );