Skip to content

Commit eae03e3

Browse files
committed
fix for revert commits
1 parent d69f027 commit eae03e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ for await (const line of stdinLineByLine) {
2727
continue;
2828
}
2929

30-
assert(commitList.includes('\n' + line), `Missing "${line}" in commit list`);
30+
// Revert commit have a special treatment.
31+
const fixedLine = line.replace(' - **Revert \"', ' - _**Revert**_ "**');
32+
33+
assert(commitList.includes('\n' + fixedLine), `Missing "${fixedLine}" in commit list`);
3134
expectedNumberOfCommitsLeft--;
3235
}
3336
assert.strictEqual(expectedNumberOfCommitsLeft, 0, 'Release commit is not the last commit in the proposal');

0 commit comments

Comments
 (0)