We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f81313 commit c22e2beCopy full SHA for c22e2be
github2/repositories.py
@@ -24,6 +24,7 @@ class Repository(BaseData):
24
has_issues = Attribute("If True, this repository has an issue tracker.")
25
language = Attribute("Primary language for the repository.")
26
parent = Attribute("The parent project of this fork.")
27
+ source = Attribute("The root project of this fork")
28
29
def _project(self):
30
return self.owner + "/" + self.name
tests/test_repositories.py
@@ -48,6 +48,7 @@ def test_fork_properties(self):
48
assert_equals(repo.forks, 0)
49
assert_equals(repo.fork, True)
50
assert_equals(repo.parent, 'ask/python-github2')
51
+ assert_equals(repo.source, 'ask/python-github2')
52
53
54
class RepoQueries(utils.HttpMockTestCase):
0 commit comments