From d512ae4687e9fa2bd856b37115e0174ba1caeabd Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Thu, 8 Feb 2024 00:41:19 -0700 Subject: [PATCH] let's see if this works on links rather than just numbers --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 8027a2877fe56..660924c6dc96d 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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]+)|.*?#([0-9]+)<\/span>/gi ; const prBody = context.payload.pull_request.body; const issueNumbers = [...prBody.matchAll(closingKeywords)].map(match => match[0]); const labelName = 'closes-issue';