We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b39ca7d commit 785293cCopy full SHA for 785293c
1 file changed
.github/workflows/pr-file-check.yml
@@ -3,11 +3,9 @@ name: PR files
3
on:
4
pull_request:
5
types:
6
- # On by default if you specify no types.
7
- 'opened'
8
- 'reopened'
9
- 'synchronize'
10
- # For `skip-label` only.
11
- 'labeled'
12
- 'unlabeled'
13
@@ -50,8 +48,8 @@ jobs:
50
48
const labels = context.payload.pull_request.labels.map(label => label.name);
51
49
console.log('PR Body:', context.payload.pull_request.body);
52
if (!labels.includes('skip-issue-check')) {
53
- const issueNumber = context.payload.pull_request.body.match(/#\d+/);
54
- if (!issueNumber) {
+ const issueLink = context.payload.pull_request.body.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
+ if (!issueLink) {
55
core.setFailed('No associated issue found in the PR description.');
56
}
57
0 commit comments