8000 Issue #137: Issues can sometimes have `pull` in the `html_url` · jeffcross/github3.py@bfa66db · GitHub
[go: up one dir, main page]

Skip to content

Commit bfa66db

Browse files
committed
Issue sigmavirus24#137: Issues can sometimes have pull in the html_url
1 parent 64193f9 commit bfa66db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github3/issues/issue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, issue, session=None):
7474
self.number = issue.get('number')
7575
#: Dictionary URLs for the pull request (if they exist)
7676
self.pull_request = issue.get('pull_request')
77-
m = match('https://[\w\d\-\.\:]+/(\S+)/(\S+)/issues/\d+',
77+
m = match('https://[\w\d\-\.\:]+/(\S+)/(\S+)/(?:issues|pull)/\d+',
7878
self.html_url)
7979
#: Returns ('owner', 'repository') this issue was filed on.
8080
self.repository = m.groups()

0 commit comments

Comments
 (0)
0