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:
Gilad Shefer
2018-01-26 19:06:09 -08:00
committed by Jason White
parent 2f9b1e018a
commit 5c9c2f7523
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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 [
+2 -1
View File
@@ -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):