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

Make patchforreview not remove tag if there's a link to a github PR

Not any link to github. This would help a lot in cleaning up with better
precision.
This commit is contained in:
Amir Sarabadani 2020-09-29 15:03:19 +02:00
parent 0c97322d2e
commit b72da2b58f

View file

@ -18,7 +18,7 @@ class Checker():
def phid_check(self, phid):
gerrit_bot_actions = []
for transaction in self.client.getTransactions(phid):
if 'https://github.com/' in str(transaction):
if re.findall(re.escape('https://github.com/') + r'.+?/pull', str(transaction)):
return False
if transaction['authorPHID'] == self.gerrit_bot_phid:
gerrit_bot_actions.append(transaction)