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

Fix checking for abandoned patches for removing #patch-for-review

The formatting has changed.

Bug: T276390
This commit is contained in:
Amir Sarabadani 2021-03-12 10:50:20 +01:00
parent 420c5ae215
commit 2cbe8ea3af

View file

@ -41,7 +41,7 @@ class Checker():
gerrit_patch_id = re.findall(
r'https://gerrit(?:-test|)\.wikimedia\.org/r/.*(\d+)(?:$|\]\])', raw_comment)[0]
merged = re.findall(
r'Change \d+ (?:\*\*merged\*\*|abandoned) by ',
r'Change \d+ \*\*(?:merged|abandoned)\*\* by ',
raw_comment)
gerrit_patch_status[gerrit_patch_id].append(not(bool(merged)))