mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-24 21:12:38 +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
|
||||
raw_comment = case['comments'][0]['content']['raw']
|
||||
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(
|
||||
r'Change \d+ (?:\*\*merged\*\*|abandoned) by ',
|
||||
raw_comment)
|
||||
|
|
Loading…
Reference in a new issue