Skip to content

Commit 27060a0

Browse files
author
Jonas Obrist
committed
Added more properties to Repository.
1 parent a0f9846 commit 27060a0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

github2/repositories.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from github2.core import BaseData, GithubCommand, Attribute
1+
from github2.core import BaseData, GithubCommand, Attribute, DateAttribute
22

33

44
class Repository(BaseData):
@@ -12,6 +12,11 @@ class Repository(BaseData):
1212
owner = Attribute("Username of the user owning this repository.")
1313
homepage = Attribute("Homepage for this project.")
1414
open_issues = Attribute("List of open issues for this repository.")
15+
created_at = DateAttribute("Datetime the repository was created.")
16+
pushed_at = DateAttribute("Datetime of the last push to this repository")
17+
has_downloads = Attribute("If True, this repository has downloads.")
18+
has_wiki = Attribute("If True, this repository has a wiki.")
19+
has_issues = Attribute("If True, this repository has an issue tracker.")
1520

1621
def __repr__(self):
1722
return "<Repository: %s/%s>" % (self.owner, self.name)

0 commit comments

Comments
 (0)