From 68c1296b7af1bd0c8d17aa1db3311ac59efb2412 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 2 Oct 2026 21:44:03 +0200 Subject: [PATCH] Semver check: keep git's stderr out of the refusal (the fatal-message test fails without it) Co-Authored-By: Claude Opus 5.5 --- scripts/check-changelog-semver.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-changelog-semver.mjs b/scripts/check-changelog-semver.mjs index 30dfa94a..93a9d53e 100644 --- a/scripts/check-changelog-semver.mjs +++ b/scripts/check-changelog-semver.mjs @@ -170,7 +170,7 @@ export function evaluateRelease({ packageName, changelogText, version, previousV function resolvePreviousVersion(tagPrefix, currentVersion, cwd) { // A directory that cannot list tags (not a git repository, git missing) throws: that // is not evidence that there was no previous release. - const tags = execFileSync("git", ["tag", "-l", `${tagPrefix}-v*`], { cwd, encoding: "utf8" }) + const tags = execFileSync("git", ["tag", "-l", `${tagPrefix}-v*`], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }) .split("\n") .map((line) => line.trim()) .filter(Boolean);