Bots should not respond (incorrectly) to merge request URLs (LP: #868416)
This commit is contained in:
@ -480,6 +480,8 @@ class Bugtracker(callbacks.PluginRegexp):
|
||||
if 'launchpad' in snarfhost:
|
||||
if not 'bug' in snarfhost: # Not a bug URL
|
||||
return None
|
||||
if snarfhost.lower().startswith("code."):
|
||||
return None
|
||||
|
||||
if snarfhost.startswith('pad.lv'): # Launchpad URL shortening
|
||||
snarfhost = snarfhost[:snarfhost.rfind('/')]
|
||||
|
Reference in New Issue
Block a user