Skip to content

Commit 637db3a

Browse files
authored
[6.0] Add support for swiftlang and apple org repo in update checkout
1 parent aa9094e commit 637db3a

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
@@ -684,7 +684,10 @@ def main():
684684

685685
cross_repos_pr = {}
686686
if github_comment:
687-
regex_pr = r'(apple/[-a-zA-Z0-9_]+/pull/\d+|apple/[-a-zA-Z0-9_]+#\d+)'
687+
regex_pr = r'(apple/[-a-zA-Z0-9_]+/pull/\d+'\
688+
r'|apple/[-a-zA-Z0-9_]+#\d+'\
689+
r'|swiftlang/[-a-zA-Z0-9_]+/pull/\d+'\
690+
r'|swiftlang/[-a-zA-Z0-9_]+#\d+)'
688691
repos_with_pr = re.findall(regex_pr, github_comment)
689692
print("Found related pull requests:", str(repos_with_pr))
690693
repos_with_pr = [pr.replace('/pull/', '#') for pr in repos_with_pr]

0 commit comments

Comments
 (0)