Fix class used returning pull request comments (#1307)

Repository.get_pull_request_comments() was returning the wrong type.
This commit is contained in:
Kevin LaFlamme
2019-11-30 12:14:50 +11:00
committed by Steve Kowalik
parent 2ad51f352e
commit f8e33620f4
+1 -1
View File
@@ -2317,7 +2317,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
if since is not github.GithubObject.NotSet:
url_parameters["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ")
return github.PaginatedList.PaginatedList(
github.IssueComment.IssueComment,
github.PullRequestComment.PullRequestComment,
self._requester,
self.url + "/pulls/comments",
url_parameters