Skip to content

Commit f4a7200

Browse files
committed
Return repository collaborators as User instances.
1 parent 129a612 commit f4a7200

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

github2/repositories.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from github2.core import BaseData, GithubCommand, Attribute, DateAttribute
22

3+
from github2.users import User
4+
5+
36
class Repository(BaseData):
47
name = Attribute("Name of repository.")
58
description = Attribute("Repository description.")
@@ -204,5 +207,5 @@ def list_contributors(self, project):
204207
205208
:param str project: Github project
206209
"""
207-
return self.make_request("show", project, "contributors",
208-
filter="contributors")
210+
return self.get_values("show", project, "contributors",
211+
filter="contributors", datatype=User)

0 commit comments

Comments
 (0)