aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/issues.py
diff options
context:
space:
mode:
authorConor Branagan <conor.branagan@gmail.com>2012-04-13 16:31:31 -0400
committerAlejandro Gómez <alejandroogomez@gmail.com>2012-05-27 19:54:28 +0200
commit3310bde985aea5467ce93abcf9f0fc5008942f7c (patch)
treec401a7d518fd3bd369e94416d3eaf9ee05eadf88 /pygithub3/resources/issues.py
parentUse github.issues for the issues service (diff)
downloadpython-github3-3310bde985aea5467ce93abcf9f0fc5008942f7c.tar.xz
python-github3-3310bde985aea5467ce93abcf9f0fc5008942f7c.zip
Fix some issues resources
Diffstat (limited to 'pygithub3/resources/issues.py')
-rw-r--r--pygithub3/resources/issues.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygithub3/resources/issues.py b/pygithub3/resources/issues.py
index ce5b304..e864e79 100644
--- a/pygithub3/resources/issues.py
+++ b/pygithub3/resources/issues.py
@@ -7,7 +7,7 @@ from .users import User
class Issue(Resource):
_dates = ('created_at', 'updated_at')
- _maps = {'assignee': User}
+ _maps = {'assignee': User, 'user': User}
def __str__(self):
return '<Issue (%s)>' % getattr(self, 'number', '')
@@ -15,7 +15,7 @@ class Issue(Resource):
class Comment(Resource):
- _dates = ('created_at', 'update_at')
+ _dates = ('created_at', 'updated_at')
_maps = {'user': User}
def __str__(self):
@@ -25,7 +25,7 @@ class Comment(Resource):
class Event(Resource):
_dates = ('created_at', )
- _maps = {'actor': User}
+ _maps = {'actor': User, 'issue': Issue}
def __str__(self):
return '<Event (%s)>' % (getattr(self, 'commit_id', '')) \ No newline at end of file