Skip to content
Prev Previous commit
Next Next commit
fix for revert commits
  • Loading branch information
aduh95 committed Dec 18, 2024
commit eae03e36cc79a4a10eb744177c2278b4d643ccfb
5 changes: 4 additions & 1 deletion tools/actions/lint-release-proposal-commit-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ for await (const line of stdinLineByLine) {
continue;
}

assert(commitList.includes('\n' + line), `Missing "${line}" in commit list`);
// Revert commit have a special treatment.
const fixedLine = line.replace(' - **Revert \"', ' - _**Revert**_ "**');

assert(commitList.includes('\n' + fixedLine), `Missing "${fixedLine}" in commit list`);
expectedNumberOfCommitsLeft--;
}
assert.strictEqual(expectedNumberOfCommitsLeft, 0, 'Release commit is not the last commit in the proposal');