Skip to content

Commit c22e2be

Browse files
committed
Added Repository source attribute.
1 parent 6f81313 commit c22e2be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

github2/repositories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Repository(BaseData):
2424
has_issues = Attribute("If True, this repository has an issue tracker.")
2525
language = Attribute("Primary language for the repository.")
2626
parent = Attribute("The parent project of this fork.")
27+
source = Attribute("The root project of this fork")
2728

2829
def _project(self):
2930
return self.owner + "/" + self.name

tests/test_repositories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_fork_properties(self):
4848
assert_equals(repo.forks, 0)
4949
assert_equals(repo.fork, True)
5050
assert_equals(repo.parent, 'ask/python-github2')
51+
assert_equals(repo.source, 'ask/python-github2')
5152

5253

5354
class RepoQueries(utils.HttpMockTestCase):

0 commit comments

Comments
 (0)