Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237f6b6 commit 175a35dCopy full SHA for 175a35d
.github/workflows/pr-file-check.yml
@@ -47,7 +47,8 @@ jobs:
47
script: |
48
const labels = context.payload.pull_request.labels.map(label => label.name);
49
if (!labels.includes('skip-issue-check')) {
50
- const issueLink = context.payload.pull_request.body.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
+ const prBody = context.payload.pull_request.body || '';
51
+ const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
52
if (!issueLink) {
53
core.setFailed('No associated issue found in the PR description.');
54
}
0 commit comments