Skip to content

Commit 680d3c6

Browse files
authored
Merge pull request #74875 from swiftlang/shahmishal-patch-2
2 parents a13c1dc + 40ecb09 commit 680d3c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/update_checkout/update_checkout/update_checkout.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,10 @@ def main():
700700

701701
cross_repos_pr = {}
702702
if github_comment:
703-
regex_pr = r'(?:apple/|swiftlang/)([-a-zA-Z0-9_]+/pull/\d+|[-a-zA-Z0-9_]+#\d+)'
703+
regex_pr = r'(apple/[-a-zA-Z0-9_]+/pull/\d+'\
704+
r'|apple/[-a-zA-Z0-9_]+#\d+'\
705+
r'|swiftlang/[-a-zA-Z0-9_]+/pull/\d+'\
706+
r'|swiftlang/[-a-zA-Z0-9_]+#\d+)'
704707
repos_with_pr = re.findall(regex_pr, github_comment)
705708
print("Found related pull requests:", str(repos_with_pr))
706709
repos_with_pr = [pr.replace('/pull/', '#') for pr in repos_with_pr]

0 commit comments

Comments
 (0)