diff --git a/utils/update_checkout/update_checkout/update_checkout.py b/utils/update_checkout/update_checkout/update_checkout.py index 8ea523a64dde7..17dc04abdcaff 100755 --- a/utils/update_checkout/update_checkout/update_checkout.py +++ b/utils/update_checkout/update_checkout/update_checkout.py @@ -700,7 +700,10 @@ def main(): cross_repos_pr = {} if github_comment: - regex_pr = r'(?:apple/|swiftlang/)([-a-zA-Z0-9_]+/pull/\d+|[-a-zA-Z0-9_]+#\d+)' + regex_pr = r'(apple/[-a-zA-Z0-9_]+/pull/\d+'\ + r'|apple/[-a-zA-Z0-9_]+#\d+'\ + r'|swiftlang/[-a-zA-Z0-9_]+/pull/\d+'\ + r'|swiftlang/[-a-zA-Z0-9_]+#\d+)' repos_with_pr = re.findall(regex_pr, github_comment) print("Found related pull requests:", str(repos_with_pr)) repos_with_pr = [pr.replace('/pull/', '#') for pr in repos_with_pr]