8000 When issuing pull requests, pull requests seem to have /pull/ as the … · Lukasa/github3.py@466ae5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 466ae5c

Browse files
author
Roger Hu
committed
When issuing pull requests, pull requests seem to have /pull/ as the issue_url. Allow both types to appear.
1 parent 818f136 commit 466ae5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github3/pulls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __init__(self, pull, session=None):
183183
#: GitHub.com url for review comments (not a template)
184184
self.review_comments_url = pull.get('review_comments_url')
185185

186-
m = match('https://[\w\d\-\.\:]+/(\S+)/(\S+)/issues/\d+',
186+
m = match('https://[\w\d\-\.\:]+/(\S+)/(\S+)/(?:issues|pull)?/\d+',
187187
self.issue_url)
188188
#: Returns ('owner', 'repository') this issue was filed on.
189189
self.repository = m.groups()

0 commit comments

Comments
 (0)
0