mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-28 15:02:39 +01:00
Fix the regex for patch-for-review comment checker
After upgrading gerrit, this broke as the URL schema changed.
This commit is contained in:
parent
a4796e5b68
commit
dbb3ee2c40
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class Checker():
|
||||||
return False
|
return False
|
||||||
raw_comment = case['comments'][0]['content']['raw']
|
raw_comment = case['comments'][0]['content']['raw']
|
||||||
gerrit_patch_id = re.findall(
|
gerrit_patch_id = re.findall(
|
||||||
r'https\:\/\/gerrit\.wikimedia\.org\/r\/(\d+)', raw_comment)[0]
|
r'https://gerrit(?:-test|)\.wikimedia\.org/r/.*(\d+)(?:$|\]\])', raw_comment)[0]
|
||||||
merged = re.findall(
|
merged = re.findall(
|
||||||
r'Change \d+ (?:\*\*merged\*\*|abandoned) by ',
|
r'Change \d+ (?:\*\*merged\*\*|abandoned) by ',
|
||||||
raw_comment)
|
raw_comment)
|
||||||
|
|
Loading…
Reference in a new issue