Skip to content

Commit 4330180

Browse files
committed
tools: fix linter for semver-major release proposals
1 parent 77d8197 commit 4330180

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/actions/lint-release-proposal-commit-list.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ const commitListingStart = changelog.indexOf('\n### Commits\n');
2323
let commitList;
2424
if (commitListingStart === -1) {
2525
// We're preparing a semver-major release.
26-
commitList = changelog.replace(/(^.+\n### Semver-Major|\n### Semver-(Minor|Patch)) Commits\n/gs, '')
27-
.replaceAll('**(SEMVER-MAJOR)** ', '');
26+
assert.match(changelog, /\n### Semver-Major Commits\n/)
27+
// The proposal should contain only the release commit.
28+
commitList = '';
2829
} else {
2930
const commitListingEnd = changelog.indexOf('\n\n<a', commitListingStart);
3031
assert.notStrictEqual(commitListingEnd, -1);

0 commit comments

Comments
 (0)