Skip to content

Commit aae22cc

Browse files
committed
Use config vars over hardcoded literals
1 parent 0f6901c commit aae22cc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ import { parseArgs } from "node:util";
2424
import { type ApiClient, getApiClient } from "./api-client";
2525
import * as changelog from "./changelog";
2626
import { transferChangenotesToChangelog } from "./changenotes";
27-
import { DryRunOption, REPO_ROOT } from "./config";
27+
import {
28+
CHANGELOG_FILE,
29+
CHANGENOTES_DIR,
30+
DryRunOption,
31+
REPO_ROOT,
32+
} from "./config";
2833
import {
2934
getCurrentVersion,
3035
replaceVersionInPackageJson,
@@ -701,7 +706,7 @@ export async function prepareNewBranch(
701706
{ ...options, initChangelog: true },
702707
);
703708

704-
runGit(["add", "CHANGELOG.md", "unreleased-change-notes"], {
709+
runGit(["add", CHANGELOG_FILE, CHANGENOTES_DIR], {
705710
dryRun: options.dryRun,
706711
});
707712
runGit(["commit", "-m", `Update changelog for v${version}`], {

0 commit comments

Comments
 (0)