Skip to content

Commit

Permalink
update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Dec 16, 2024
1 parent cef985d commit 51341d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-file-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
script: |
const labels = context.payload.pull_request.labels.map(label => label.name);
if (!labels.includes('skip-issue-check')) {
const issueNumber = context.payload.pull_request.body.match(/#(\d+)/);
const issueNumber = context.payload.pull_request.body.match(/#\d+/);
if (!issueNumber) {
core.setFailed('No associated issue found in the PR description.');
}
Expand Down

0 comments on commit 51341d5

Please sign in to comment.