mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
tools: fix linter for semver-major release proposals
PR-URL: https://github.com/nodejs/node/pull/60481 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
parent
3e31baeda6
commit
3c248c3556
|
|
@ -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 {
|
||||
// We can't assume the Commits section is the one for this release in case of
|
||||
// a release to transition to LTS (i.e. with no commits).
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user