From 8879d484ab34618a87220f0665c957ef02f717f3 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Fri, 26 Apr 2024 19:43:13 +0200 Subject: [PATCH] patchforreview_remover: Add support for gitlab MRs in some repos Some repos are not under /repos/. That's breaking stuff. Bad. Bug: T363232 Bug: T363573 --- patchforreview_remover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchforreview_remover.py b/patchforreview_remover.py index 97ea5ef..4b032ac 100755 --- a/patchforreview_remover.py +++ b/patchforreview_remover.py @@ -24,7 +24,7 @@ class Checker(): m = re.search(r'https://gerrit(?:-test|)\.wikimedia\.org/r/\d+', raw_comment) if m: return m[0] - m = re.search(r'https://gitlab\.wikimedia\.org/repos/.*/-/merge_requests/\d+', raw_comment) + m = re.search(r'https://gitlab\.wikimedia\.org/.*/-/merge_requests/\d+', raw_comment) if m: return m[0] return None