Skip to content

Commit

Permalink
let's see if this works on links rather than just numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas committed Feb 8, 2024
1 parent b53dc1c commit d512ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const closingKeywords = /\b(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\s*:? ?#([0-9]+)/gi;
const closingKeywords = /\b(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\s*:? ?#([0-9]+)|<span class="reference">.*?#([0-9]+)<\/span>/gi ;
const prBody = context.payload.pull_request.body;
const issueNumbers = [...prBody.matchAll(closingKeywords)].map(match => match[0]);
const labelName = 'closes-issue';
Expand Down

0 comments on commit d512ae4

Please sign in to comment.