From 678ce8d6306ededf38894c020af4e3a8b2bcebc9 Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Fri, 28 Mar 2025 13:37:36 -0700 Subject: [PATCH] fix: temp for PR file check failure --- .github/workflows/pr-file-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-file-check.yml b/.github/workflows/pr-file-check.yml index fcdf91b4f64b..b5ba2fe1f109 100644 --- a/.github/workflows/pr-file-check.yml +++ b/.github/workflows/pr-file-check.yml @@ -47,7 +47,8 @@ jobs: script: | const labels = context.payload.pull_request.labels.map(label => label.name); if (!labels.includes('skip-issue-check')) { - const issueLink = context.payload.pull_request.body.match(/https:\/\/github\.com\/\S+\/issues\/\d+/); + const prBody = context.payload.pull_request.body || ''; + const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/); if (!issueLink) { core.setFailed('No associated issue found in the PR description.'); }