From f8e33620f469f2abb2f43c6e3cd4c324bf2b837a Mon Sep 17 00:00:00 2001 From: Kevin LaFlamme Date: Fri, 29 Nov 2019 20:14:50 -0500 Subject: [PATCH] Fix class used returning pull request comments (#1307) Repository.get_pull_request_comments() was returning the wrong type. --- github/Repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/Repository.py b/github/Repository.py index 3ef4d7fb..aa58edb0 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -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