diff options
Diffstat (limited to 'pygithub3/resources/repos.py')
-rw-r--r-- | pygithub3/resources/repos.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py index 99a6d4b..9d8ebf6 100644 --- a/pygithub3/resources/repos.py +++ b/pygithub3/resources/repos.py @@ -115,3 +115,10 @@ class Download(Resource): 'Filename': self.name, 'AWSAccessKeyId': self.accesskeyid, 'Policy': self.policy, 'Signature': self.signature, 'Content-Type': self.mime_type}) + +class Hook(Resource): + + _dates = ('created_at', 'pushed_at') + + def __str__(self): + return '<Hook (%s)>' % getattr(self, 'name', '') |