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