File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ name: PR files
33on :
44 pull_request :
55 types :
6- # On by default if you specify no types.
76 - ' opened'
87 - ' reopened'
98 - ' synchronize'
10- # For `skip-label` only.
119 - ' labeled'
1210 - ' unlabeled'
1311
5048 const labels = context.payload.pull_request.labels.map(label => label.name);
5149 console.log('PR Body:', context.payload.pull_request.body);
5250 if (!labels.includes('skip-issue-check')) {
53- const issueNumber = context.payload.pull_request.body.match(/# \d+/);
54- if (!issueNumber ) {
51+ const issueLink = context.payload.pull_request.body.match(/https:\/\/github\.com\/\S+\/issues\/ \d+/);
52+ if (!issueLink ) {
5553 core.setFailed('No associated issue found in the PR description.');
5654 }
5755 }
You can’t perform that action at this time.
0 commit comments