From fdcf4d9454f050d199c49ff25f25d7bad133ff56 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 30 Oct 2025 18:29:10 +0100 Subject: [PATCH] tools: fix failing release-proposal linter for LTS transitions PR-URL: https://github.com/nodejs/node/pull/60465 Reviewed-By: Richard Lau Reviewed-By: Marco Ippolito Reviewed-By: Colin Ihrig --- tools/actions/lint-release-proposal-commit-list.mjs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/actions/lint-release-proposal-commit-list.mjs b/tools/actions/lint-release-proposal-commit-list.mjs index b5104a6503..a0deecc00e 100755 --- a/tools/actions/lint-release-proposal-commit-list.mjs +++ b/tools/actions/lint-release-proposal-commit-list.mjs @@ -26,9 +26,13 @@ if (commitListingStart === -1) { commitList = changelog.replace(/(^.+\n### Semver-Major|\n### Semver-(Minor|Patch)) Commits\n/gs, '') .replaceAll('**(SEMVER-MAJOR)** ', ''); } else { - const commitListingEnd = changelog.indexOf('\n\n<\/a>\n\n## \d+-\d+-\d+, Version \1/.exec(changelog); + assert.ok(releaseStart, 'Could not determine the start of the release section'); + const releaseEnd = changelog.indexOf('\n\n