mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
tools: ignore CVE mention when linting release proposals
PR-URL: https://github.com/nodejs/node/pull/59037 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
parent
3e9ed4b080
commit
6a8a73aa35
2 changed files with 2 additions and 1 deletions
2
.github/workflows/lint-release-proposal.yml
vendored
2
.github/workflows/lint-release-proposal.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
|||
EXPECTED_TRAILER="^$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pull/[[:digit:]]+\$"
|
||||
echo "Expected trailer format: $EXPECTED_TRAILER"
|
||||
PR_URL="$(git --no-pager log -1 --format='%(trailers:key=PR-URL,valueonly)')"
|
||||
echo "Actual: $ACTUAL"
|
||||
echo "Actual: $PR_URL"
|
||||
echo "$PR_URL" | grep -E -q "$EXPECTED_TRAILER"
|
||||
|
||||
PR_HEAD="$(gh pr view "$PR_URL" --json headRefOid -q .headRefOid)"
|
||||
|
|
|
@ -34,6 +34,7 @@ if (commitListingStart === -1) {
|
|||
// Normalize for consistent comparison
|
||||
commitList = commitList
|
||||
.replaceAll('**(SEMVER-MINOR)** ', '')
|
||||
.replaceAll(/(?<= - )\*\*\(CVE-\d{4}-\d+\)\*\* (?=\*\*)/g, '')
|
||||
.replaceAll('\\', '');
|
||||
|
||||
let expectedNumberOfCommitsLeft = commitList.match(/\n\* \[/g)?.length ?? 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue