From 8cadefa5d8d0f558863e35327b6059aeef76523c Mon Sep 17 00:00:00 2001 From: ukimsanov Date: Wed, 5 Aug 2026 05:51:16 -0700 Subject: [PATCH] fix(scripts): import the changelog style note instead of duplicating it changelog-weekly.ts hard-copied the CHANGELOG_STYLE_NOTE literal that set-version.ts exports; both feed the release gate, so a drift silently weakened it. Import the constant so the two markers cannot diverge. Flagged by Copilot and Rames. --- scripts/changelog-weekly.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/changelog-weekly.ts b/scripts/changelog-weekly.ts index a8be16216..1c208347c 100644 --- a/scripts/changelog-weekly.ts +++ b/scripts/changelog-weekly.ts @@ -13,6 +13,7 @@ import { type ParsedCommit, type RawCommit, } from "./draft-changelog.ts"; +import { CHANGELOG_STYLE_NOTE } from "./set-version.ts"; const ROOT = join(import.meta.dirname, ".."); const REPO_URL = "https://github.com/heygen-com/hyperframes"; @@ -20,12 +21,13 @@ const DOCS_MARKER = "{/* New weekly digest entries are prepended by `bun run changelog:weekly --from YYYY-MM-DD --to YYYY-MM-DD --write`. */}"; /** * Weekly entries are rewritten by hand before publishing, so the generator's - * only influence on the final prose is the bar it stamps into the draft. Keep - * this in step with CHANGELOG_STYLE_NOTE in set-version.ts. + * only influence on the final prose is the bar it stamps into the draft. The + * style note is imported from set-version.ts rather than copied, so the two + * release-gate markers cannot drift apart. */ const WEEKLY_REVIEW_TODO = [ "", - "", + CHANGELOG_STYLE_NOTE, ].join("\n"); const CATEGORY_ORDER = [