Skip to content

Commit 2c3f909

Browse files
shahmishaljmschonfeld
authored andcommitted
Split the regex into multiple line to clean up lint error
1 parent 4a53cf5 commit 2c3f909

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/[-a-zA-Z0-9_]+/pull/\d+|apple/[-a-zA-Z0-9_]+#\d+|swiftlang/[-a-zA-Z0-9_]+/pull/\d+|swiftlang/[-a-zA-Z0-9_]+#\d+)'
703+
regex_pr = r'(apple/[-a-zA-Z0-9_]+/pull/\d+'\
704+
'|apple/[-a-zA-Z0-9_]+#\d+'\
705+
'|swiftlang/[-a-zA-Z0-9_]+/pull/\d+'\
706+
'|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)