Skip to content

Commit e57cdf6

Browse files
ministrike3sigmavirus24
authored andcommitted
Add repository attribute to PullDestinations
1 parent 7d92e99 commit e57cdf6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

github3/pulls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121

2222

2323
class PullDestination(models.GitHubCore):
24-
2524
"""The :class:`PullDestination <PullDestination>` object.
2625
2726
See also: http://developer.github.com/v3/pulls/#get-a-single-pull-request
2827
"""
2928

3029
def __init__(self, dest, direction):
3130
super(PullDestination, self).__init__(dest)
31+
from .repos.repo import Repository
3232
#: Direction of the merge with respect to this destination
3333
self.direction = direction
3434
#: Full reference string of the object
@@ -46,6 +46,7 @@ def __init__(self, dest, direction):
4646
if dest.get('repo'):
4747
self._repo_name = dest['repo'].get('name')
4848
self._repo_owner = dest['repo']['owner'].get('login')
49+
self.repository = Repository(dest.get('repo'), self)
4950
self.repo = (self._repo_owner, self._repo_name)
5051

5152
def _repr(self):

0 commit comments

Comments
 (0)