Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 175a35d

Browse files
authored
fix: temp for PR file check failure (microsoft#24939)
Fix microsoft#24938
1 parent 237f6b6 commit 175a35d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pr-file-check.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
script: |
4848
const labels = context.payload.pull_request.labels.map(label => label.name);
4949
if (!labels.includes('skip-issue-check')) {
50-
const issueLink = context.payload.pull_request.body.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
50+
const prBody = context.payload.pull_request.body || '';
51+
const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
5152
if (!issueLink) {
5253
core.setFailed('No associated issue found in the PR description.');
5354
}

0 commit comments

Comments
 (0)