Skip to content

Commit a1cc675

Browse files
authored
chore: Allow URLs as issue (#18372)
It seems that the full URL of the issue was not checked against. This now also allows full issue URLs (but only if they are in the `getsentry` org). This came up in #18369
1 parent 775ad19 commit a1cc675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/create-issue-for-unreferenced-prs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555
const prNumber = pr.number;
5656
5757
// Regex for GitHub issue references (e.g., #123, fixes #456)
58-
const issueRegexGitHub = /(?:(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved):?\s*)?#\d+/i;
58+
// https://regex101.com/r/eDiGrQ/1
59+
const issueRegexGitHub = /(?:(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved):?\s*)?(#\d+|https:\/\/github\.com\/getsentry\/[\w-]+\/issues\/\d+)/i;
5960
6061
// Regex for Linear issue references (e.g., ENG-123, resolves ENG-456)
6162
const issueRegexLinear = /(?:(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved):?\s*)?[A-Z]+-\d+/i;

0 commit comments

Comments
 (0)