mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-24 13:02: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:
parent
0c97322d2e
commit
b72da2b58f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue