diff --git a/github/Repository.py b/github/Repository.py index 6d360020..1d4514f5 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -1799,18 +1799,24 @@ class Repository(github.GithubObject.CompletableGithubObject): for attributes in data ] - def get_contributors(self): + def get_contributors(self, anon=github.GithubObject.NotSet): """ :calls: `GET /repos/:owner/:repo/contributors `_ + :param anon: string :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` """ + url_parameters = dict() + if anon is not github.GithubObject.NotSet: + url_parameters["anon"] = anon + return github.PaginatedList.PaginatedList( github.NamedUser.NamedUser, self._requester, self.url + "/contributors", - None + url_parameters ) + def get_download(self, id): """ :calls: `GET /repos/:owner/:repo/downloads/:id `_