Use config vars over hardcoded literals

This commit is contained in:
Mario Campos
2026-10-06 14:50:28 -05:00
parent 0f6901c9a8
commit aae22cc693

View File

@@ -24,7 +24,12 @@ 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 {
CHANGELOG_FILE,
CHANGENOTES_DIR,
DryRunOption,
REPO_ROOT,
} from "./config";
import {
getCurrentVersion,
replaceVersionInPackageJson,
@@ -701,7 +706,7 @@ export async function prepareNewBranch(
{ ...options, initChangelog: true },
);
runGit(["add", "CHANGELOG.md", "unreleased-change-notes"], {
runGit(["add", CHANGELOG_FILE, CHANGENOTES_DIR], {
dryRun: options.dryRun,
});
runGit(["commit", "-m", `Update changelog for v${version}`], {