Skip to content

Commit

Permalink
fix for revert commits
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Dec 18, 2024
1 parent d69f027 commit eae03e3
Showing 1 changed file with 4 additions and 1 deletion.
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**_ "**');

Check failure on line 31 in tools/actions/lint-release-proposal-commit-list.mjs

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Unnecessary escape character: \"

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');

0 comments on commit eae03e3

Please sign in to comment.