mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00: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
467dbd31e6
commit
623e264e93
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…
Reference in New Issue
Block a user