1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-23 04:22:38 +01:00

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
This commit is contained in:
Amir Sarabadani 2024-04-26 19:43:13 +02:00
parent 982cfc2f33
commit 8879d484ab

View file

@ -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