mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Updated PullRequest reviewer request according to API changes (#690)
https://developer.github.com/changes/2018-01-24-end-thor-preview/
This commit is contained in:
committed by
Jason White
parent
2f9b1e018a
commit
5c9c2f7523
@@ -175,7 +175,7 @@ class PaginatedList(PaginatedListBase):
|
||||
self.__nextParams = None
|
||||
|
||||
if self.__list_item in data:
|
||||
self.__totalCount = data['total_count']
|
||||
self.__totalCount = data.get('total_count')
|
||||
data = data[self.__list_item]
|
||||
|
||||
content = [
|
||||
@@ -211,7 +211,7 @@ class PaginatedList(PaginatedListBase):
|
||||
)
|
||||
|
||||
if self.__list_item in data:
|
||||
self.__totalCount = data['total_count']
|
||||
self.__totalCount = data.get('total_count')
|
||||
data = data[self.__list_item]
|
||||
|
||||
return [
|
||||
|
||||
@@ -538,7 +538,8 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
self._requester,
|
||||
self.url + "/requested_reviewers",
|
||||
None,
|
||||
headers={'Accept': 'application/vnd.github.black-cat-preview+json'}
|
||||
headers={'Accept': 'application/vnd.github.black-cat-preview+json'},
|
||||
list_item='users'
|
||||
)
|
||||
|
||||
def is_merged(self):
|
||||
|
||||
Reference in New Issue
Block a user