Transfer change-notes to CHANGELOG.md via update-release-branch.ts

This commit is contained in:
Mario Campos
2026-10-06 14:43:33 -05:00
parent 9a9f454be5
commit fb4048e3e7
+5 -1
View File
@@ -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 },
);