From 4330180baef8c8af1738325ebf06680bfdbd7fb9 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 29 Oct 2025 15:05:00 +0100 Subject: [PATCH 1/2] tools: fix linter for semver-major release proposals --- tools/actions/lint-release-proposal-commit-list.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/actions/lint-release-proposal-commit-list.mjs b/tools/actions/lint-release-proposal-commit-list.mjs index b5104a6503e489..5df01d2c42a26b 100755 --- a/tools/actions/lint-release-proposal-commit-list.mjs +++ b/tools/actions/lint-release-proposal-commit-list.mjs @@ -23,8 +23,9 @@ const commitListingStart = changelog.indexOf('\n### Commits\n'); let commitList; if (commitListingStart === -1) { // We're preparing a semver-major release. - commitList = changelog.replace(/(^.+\n### Semver-Major|\n### Semver-(Minor|Patch)) Commits\n/gs, '') - .replaceAll('**(SEMVER-MAJOR)** ', ''); + assert.match(changelog, /\n### Semver-Major Commits\n/) + // The proposal should contain only the release commit. + commitList = ''; } else { const commitListingEnd = changelog.indexOf('\n\n Date: Wed, 29 Oct 2025 15:22:39 +0100 Subject: [PATCH 2/2] fixup! tools: fix linter for semver-major release proposals --- tools/actions/lint-release-proposal-commit-list.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/actions/lint-release-proposal-commit-list.mjs b/tools/actions/lint-release-proposal-commit-list.mjs index 5df01d2c42a26b..9824f70ba553a1 100755 --- a/tools/actions/lint-release-proposal-commit-list.mjs +++ b/tools/actions/lint-release-proposal-commit-list.mjs @@ -23,7 +23,7 @@ const commitListingStart = changelog.indexOf('\n### Commits\n'); let commitList; if (commitListingStart === -1) { // We're preparing a semver-major release. - assert.match(changelog, /\n### Semver-Major Commits\n/) + assert.match(changelog, /\n### Semver-Major Commits\n/); // The proposal should contain only the release commit. commitList = ''; } else {