diff --git a/github.py b/github.py index c4ac00445e..484923d94c 100644 --- a/github.py +++ b/github.py @@ -20,7 +20,10 @@ import os import re -issueURL = r'https?://(?:www\.)?github.com/([A-z0-9\-]+/[A-z0-9\-]+)/issues/([\d]+)' +issueURL = (r'https?://(?:www\.)?github.com/' + '([A-z0-9\-]+/[A-z0-9\-]+)/' + '(?:issues|pull)/' + '([\d]+)') def checkConfig(bot): if not bot.config.has_option('github', 'oauth_token') or not bot.config.has_option('github', 'repo'):