Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions botbot_plugins/plugins/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Plugin(BasePlugin):
url = "https://api.github.com/repos"
config_class = Config

@listens_to_all(ur'(?:.*)(?:GH|gh):(?P<repo>[\w\-\_]+)#?(?P<issues>\d+(?:,\d+)*)(?:.*)')
@listens_to_all(ur'(?:.*)\b(?:GH|gh):(?P<repo>[\w\-\_]+)#?(?P<issues>\d+(?:,\d+)*)\b(?:.*)')
def issue_lookup(self, line, repo, issues):
"""Lookup an specified repo issue"""
# issues can be a list of issue separated by a comma
Expand All @@ -51,7 +51,7 @@ def issue_lookup(self, line, repo, issues):
return ", ".join(response_list)


@listens_to_all(ur'(?:.*)(?:GH|gh)#?(?P<issues>\d+(?:,\d+)*)(?:.*)')
@listens_to_all(ur'(?:.*)\b(?:GH|gh)#?(?P<issues>\d+(?:,\d+)*)\b(?:.*)')
def project_issue_lookup(self, line, issues):
"""Lookup an issue for the default repo"""
if not (self.config['organization'] and self.config['repo']):
Expand Down