Skip to content

Commit fb4048e

Browse files
committed
Transfer change-notes to CHANGELOG.md via update-release-branch.ts
1 parent 9a9f454 commit fb4048e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎pr-checks/update-release-branch.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { parseArgs } from "node:util";
2323

2424
import { type ApiClient, getApiClient } from "./api-client";
2525
import * as changelog from "./changelog";
26+
import { transferChangenotesToChangelog } from "./changenotes";
2627
import { DryRunOption, REPO_ROOT } from "./config";
2728
import {
2829
getCurrentVersion,
@@ -693,7 +694,10 @@ export async function prepareNewBranch(
693694

694695
console.log("Updating changelog");
695696
changelog.withChangelog(
696-
(contents) => changelog.setVersionAndDate(version, contents),
697+
(contents) => {
698+
const populatedContents = transferChangenotesToChangelog(contents);
699+
return changelog.setVersionAndDate(version, populatedContents);
700+
},
697701
{ ...options, initChangelog: true },
698702
);
699703

0 commit comments

Comments
 (0)