Repository: PyGithub/PyGithub

Issue:
Add support to reply to a comment in a PullRequest
https://developer.github.com/v3/pulls/comments/#create-a-review-comment-reply


Discussion:

Resolving patch:
diff --git a/github/PullRequest.py b/github/PullRequest.py
--- a/github/PullRequest.py
+++ b/github/PullRequest.py
@@ -402,6 +402,25 @@ def create_review_comment(self, body, commit_id, path, position):
             self._requester, headers, data, completed=True
         )
 
+    def create_review_comment_reply(self, comment_id, body):
+        """
+        :calls: `POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies <http://developer.github.com/v3/pulls/comments>`_
+        :param comment_id: int
+        :param body: string
+        :rtype: :class:`github.PullRequestComment.PullRequestComment`
+        """
+        assert isinstance(comment_id, int), comment_id
+        assert isinstance(body, str), body
+        post_parameters = {"body": body}
+        headers, data = self._requester.requestJsonAndCheck(
+            "POST",
+            self.url + "/comments/" + str(comment_id) + "/replies",
+            input=post_parameters,
+        )
+        return github.PullRequestComment.PullRequestComment(
+            self._requester, headers, data, completed=True
+        )
+
     def create_issue_comment(self, body):
         """
         :calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_


Test patch:
diff --git a/tests/AllTests.py b/tests/AllTests.py
--- a/tests/AllTests.py
+++ b/tests/AllTests.py
@@ -111,6 +111,7 @@
 from .PullRequest import PullRequest
 from .PullRequest1168 import PullRequest1168
 from .PullRequest1169 import PullRequest1169
+from .PullRequest1375 import PullRequest1375
 from .PullRequestComment import PullRequestComment
 from .PullRequestFile import PullRequestFile
 from .PullRequestReview import PullRequestReview
@@ -201,6 +202,7 @@
     PullRequest,
     PullRequest1168,
     PullRequest1169,
+    PullRequest1375,
     PullRequestComment,
     PullRequestReview,
     PullRequestFile,
diff --git a/tests/PullRequest1375.py b/tests/PullRequest1375.py
new file mode 100644
--- /dev/null
+++ b/tests/PullRequest1375.py
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+
+############################ Copyrights and license ############################
+#                                                                              #
+# Copyright 2019 Olof-Joachim Frahm <olof@macrolet.net>                        #
+#                                                                              #
+# This file is part of PyGithub.                                               #
+# http://pygithub.readthedocs.io/                                              #
+#                                                                              #
+# PyGithub is free software: you can redistribute it and/or modify it under    #
+# the terms of the GNU Lesser General Public License as published by the Free  #
+# Software Foundation, either version 3 of the License, or (at your option)    #
+# any later version.                                                           #
+#                                                                              #
+# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY  #
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    #
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
+# details.                                                                     #
+#                                                                              #
+# You should have received a copy of the GNU Lesser General Public License     #
+# along with PyGithub. If not, see <http://www.gnu.org/licenses/>.             #
+#                                                                              #
+################################################################################
+
+from . import Framework
+
+
+class PullRequest1375(Framework.TestCase):
+    def setUp(self):
+        super().setUp()
+        self.pr = self.g.get_repo("rsn491/PyGithub").get_pulls()[0]
+
+    def testCreateReviewCommentReply(self):
+        comment_id = 373866377  # id of pull request comment without replies
+        first_reply_body = "Comment reply created by PyGithub"
+        second_reply_body = "Second comment reply created by PyGithub"
+
+        first_reply = self.pr.create_review_comment_reply(comment_id, first_reply_body)
+        second_reply = self.pr.create_review_comment_reply(
+            first_reply.id, second_reply_body
+        )
+
+        # ensure both first and second reply have `in_reply_to_id` attr set to top comment
+        self.assertEqual(first_reply.in_reply_to_id, comment_id)
+        self.assertEqual(second_reply.in_reply_to_id, comment_id)
+
+        self.assertEqual(first_reply.body, first_reply_body)
+        self.assertEqual(second_reply.body, second_reply_body)
diff --git a/tests/ReplayData/PullRequest1375.setUp.txt b/tests/ReplayData/PullRequest1375.setUp.txt
new file mode 100644
--- /dev/null
+++ b/tests/ReplayData/PullRequest1375.setUp.txt
@@ -0,0 +1,21 @@
+https
+GET
+api.github.com
+None
+/repos/rsn491/PyGithub
+{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
+None
+200
+[('Date', 'Sun, 09 Feb 2020 10:55:31 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4956'), ('X-RateLimit-Reset', '1581246202'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, Accept-Encoding'), ('ETag', 'W/"760c058d22aeb5b86a8af5cc8c447b1d"'), ('Last-Modified', 'Sun, 02 Feb 2020 17:37:55 GMT'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', 'repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '4136:31292:4C71B2D:5BA8613:5E3FE522')]
+{"id":237809495,"node_id":"MDEwOlJlcG9zaXRvcnkyMzc4MDk0OTU=","name":"PyGithub","full_name":"rsn491/PyGithub","private":false,"owner":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rsn491/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/rsn491/PyGithub","forks_url":"https://api.github.com/repos/rsn491/PyGithub/forks","keys_url":"https://api.github.com/repos/rsn491/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsn491/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsn491/PyGithub/teams","hooks_url":"https://api.github.com/repos/rsn491/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/rsn491/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/rsn491/PyGithub/events","assignees_url":"https://api.github.com/repos/rsn491/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/rsn491/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/rsn491/PyGithub/tags","blobs_url":"https://api.github.com/repos/rsn491/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsn491/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsn491/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsn491/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsn491/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/rsn491/PyGithub/languages","stargazers_url":"https://api.github.com/repos/rsn491/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/rsn491/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/rsn491/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/rsn491/PyGithub/subscription","commits_url":"https://api.github.com/repos/rsn491/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsn491/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsn491/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsn491/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsn491/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/rsn491/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsn491/PyGithub/merges","archive_url":"https://api.github.com/repos/rsn491/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsn491/PyGithub/downloads","issues_url":"https://api.github.com/repos/rsn491/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/rsn491/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/rsn491/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/rsn491/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsn491/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/rsn491/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/rsn491/PyGithub/deployments","created_at":"2020-02-02T17:37:53Z","updated_at":"2020-02-02T17:37:55Z","pushed_at":"2020-02-03T18:51:24Z","git_url":"git://github.com/rsn491/PyGithub.git","ssh_url":"git@github.com:rsn491/PyGithub.git","clone_url":"https://github.com/rsn491/PyGithub.git","svn_url":"https://github.com/rsn491/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":12439,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master","permissions":{"admin":true,"push":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"delete_branch_on_merge":false,"parent":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars0.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://api.github.com/repos/PyGithub/PyGithub","forks_url":"https://api.github.com/repos/PyGithub/PyGithub/forks","keys_url":"https://api.github.com/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyGithub/PyGithub/teams","hooks_url":"https://api.github.com/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/PyGithub/PyGithub/events","assignees_url":"https://api.github.com/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/PyGithub/PyGithub/tags","blobs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/PyGithub/PyGithub/languages","stargazers_url":"https://api.github.com/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/PyGithub/PyGithub/subscription","commits_url":"https://api.github.com/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyGithub/PyGithub/merges","archive_url":"https://api.github.com/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyGithub/PyGithub/downloads","issues_url":"https://api.github.com/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2020-02-09T09:38:54Z","pushed_at":"2020-02-09T09:38:52Z","git_url":"git://github.com/PyGithub/PyGithub.git","ssh_url":"git@github.com:PyGithub/PyGithub.git","clone_url":"https://github.com/PyGithub/PyGithub.git","svn_url":"https://github.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":12495,"stargazers_count":3177,"watchers_count":3177,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1040,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":54,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":1040,"open_issues":54,"watchers":3177,"default_branch":"master"},"source":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars0.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://api.github.com/repos/PyGithub/PyGithub","forks_url":"https://api.github.com/repos/PyGithub/PyGithub/forks","keys_url":"https://api.github.com/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyGithub/PyGithub/teams","hooks_url":"https://api.github.com/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/PyGithub/PyGithub/events","assignees_url":"https://api.github.com/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/PyGithub/PyGithub/tags","blobs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/PyGithub/PyGithub/languages","stargazers_url":"https://api.github.com/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/PyGithub/PyGithub/subscription","commits_url":"https://api.github.com/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyGithub/PyGithub/merges","archive_url":"https://api.github.com/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyGithub/PyGithub/downloads","issues_url":"https://api.github.com/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2020-02-09T09:38:54Z","pushed_at":"2020-02-09T09:38:52Z","git_url":"git://github.com/PyGithub/PyGithub.git","ssh_url":"git@github.com:PyGithub/PyGithub.git","clone_url":"https://github.com/PyGithub/PyGithub.git","svn_url":"https://github.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":12495,"stargazers_count":3177,"watchers_count":3177,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1040,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":54,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":1040,"open_issues":54,"watchers":3177,"default_branch":"master"},"network_count":1040,"subscribers_count":0}
+
+https
+GET
+api.github.com
+None
+/repos/rsn491/PyGithub/pulls
+{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
+None
+200
+[('Date', 'Sun, 09 Feb 2020 10:55:31 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4955'), ('X-RateLimit-Reset', '1581246203'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, Accept-Encoding'), ('ETag', 'W/"58debf75745afdbf060e311364326085"'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '4135:3CC0E:64613D3:786284A:5E3FE523')]
+[{"url":"https://api.github.com/repos/rsn491/PyGithub/pulls/1","id":370041455,"node_id":"MDExOlB1bGxSZXF1ZXN0MzcwMDQxNDU1","html_url":"https://github.com/rsn491/PyGithub/pull/1","diff_url":"https://github.com/rsn491/PyGithub/pull/1.diff","patch_url":"https://github.com/rsn491/PyGithub/pull/1.patch","issue_url":"https://api.github.com/repos/rsn491/PyGithub/issues/1","number":1,"state":"open","locked":false,"title":"Add support to reply to a Pull request comment","user":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"body":"","created_at":"2020-02-02T18:43:53Z","updated_at":"2020-02-09T10:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e628e03651c068242bcc1d674e47ee249b901338","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rsn491/PyGithub/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rsn491/PyGithub/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rsn491/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rsn491/PyGithub/issues/1/comments","statuses_url":"https://api.github.com/repos/rsn491/PyGithub/statuses/a7c8a2142a33b026f51eecd3f5cba3694bd52f8b","head":{"label":"rsn491:ricardo-add-pr-create-comment-reply","ref":"ricardo-add-pr-create-comment-reply","sha":"a7c8a2142a33b026f51eecd3f5cba3694bd52f8b","user":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"repo":{"id":237809495,"node_id":"MDEwOlJlcG9zaXRvcnkyMzc4MDk0OTU=","name":"PyGithub","full_name":"rsn491/PyGithub","private":false,"owner":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rsn491/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/rsn491/PyGithub","forks_url":"https://api.github.com/repos/rsn491/PyGithub/forks","keys_url":"https://api.github.com/repos/rsn491/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsn491/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsn491/PyGithub/teams","hooks_url":"https://api.github.com/repos/rsn491/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/rsn491/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/rsn491/PyGithub/events","assignees_url":"https://api.github.com/repos/rsn491/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/rsn491/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/rsn491/PyGithub/tags","blobs_url":"https://api.github.com/repos/rsn491/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsn491/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsn491/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsn491/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsn491/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/rsn491/PyGithub/languages","stargazers_url":"https://api.github.com/repos/rsn491/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/rsn491/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/rsn491/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/rsn491/PyGithub/subscription","commits_url":"https://api.github.com/repos/rsn491/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsn491/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsn491/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsn491/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsn491/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/rsn491/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsn491/PyGithub/merges","archive_url":"https://api.github.com/repos/rsn491/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsn491/PyGithub/downloads","issues_url":"https://api.github.com/repos/rsn491/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/rsn491/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/rsn491/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/rsn491/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsn491/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/rsn491/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/rsn491/PyGithub/deployments","created_at":"2020-02-02T17:37:53Z","updated_at":"2020-02-02T17:37:55Z","pushed_at":"2020-02-03T18:51:24Z","git_url":"git://github.com/rsn491/PyGithub.git","ssh_url":"git@github.com:rsn491/PyGithub.git","clone_url":"https://github.com/rsn491/PyGithub.git","svn_url":"https://github.com/rsn491/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":12439,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rsn491:master","ref":"master","sha":"2af3e60d1b2475219c47ee7463dd1e76dad93010","user":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"repo":{"id":237809495,"node_id":"MDEwOlJlcG9zaXRvcnkyMzc4MDk0OTU=","name":"PyGithub","full_name":"rsn491/PyGithub","private":false,"owner":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rsn491/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/rsn491/PyGithub","forks_url":"https://api.github.com/repos/rsn491/PyGithub/forks","keys_url":"https://api.github.com/repos/rsn491/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsn491/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsn491/PyGithub/teams","hooks_url":"https://api.github.com/repos/rsn491/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/rsn491/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/rsn491/PyGithub/events","assignees_url":"https://api.github.com/repos/rsn491/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/rsn491/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/rsn491/PyGithub/tags","blobs_url":"https://api.github.com/repos/rsn491/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsn491/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsn491/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsn491/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsn491/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/rsn491/PyGithub/languages","stargazers_url":"https://api.github.com/repos/rsn491/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/rsn491/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/rsn491/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/rsn491/PyGithub/subscription","commits_url":"https://api.github.com/repos/rsn491/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsn491/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsn491/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsn491/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsn491/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/rsn491/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsn491/PyGithub/merges","archive_url":"https://api.github.com/repos/rsn491/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsn491/PyGithub/downloads","issues_url":"https://api.github.com/repos/rsn491/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/rsn491/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/rsn491/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/rsn491/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsn491/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/rsn491/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/rsn491/PyGithub/deployments","created_at":"2020-02-02T17:37:53Z","updated_at":"2020-02-02T17:37:55Z","pushed_at":"2020-02-03T18:51:24Z","git_url":"git://github.com/rsn491/PyGithub.git","ssh_url":"git@github.com:rsn491/PyGithub.git","clone_url":"https://github.com/rsn491/PyGithub.git","svn_url":"https://github.com/rsn491/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":12439,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/1"},"html":{"href":"https://github.com/rsn491/PyGithub/pull/1"},"issue":{"href":"https://api.github.com/repos/rsn491/PyGithub/issues/1"},"comments":{"href":"https://api.github.com/repos/rsn491/PyGithub/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rsn491/PyGithub/statuses/a7c8a2142a33b026f51eecd3f5cba3694bd52f8b"}},"author_association":"OWNER"}]
diff --git a/tests/ReplayData/PullRequest1375.testCreateReviewCommentReply.txt b/tests/ReplayData/PullRequest1375.testCreateReviewCommentReply.txt
new file mode 100644
--- /dev/null
+++ b/tests/ReplayData/PullRequest1375.testCreateReviewCommentReply.txt
@@ -0,0 +1,21 @@
+https
+POST
+api.github.com
+None
+/repos/rsn491/PyGithub/pulls/1/comments/373866377/replies
+{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
+{"body": "Comment reply created by PyGithub"}
+201
+[('Date', 'Sun, 09 Feb 2020 10:55:32 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2428'), ('Server', 'GitHub.com'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4954'), ('X-RateLimit-Reset', '1581246203'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, Accept-Encoding'), ('ETag', '"79d219bd6e6270c667266594e56b1d64"'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', ''), ('Location', 'https://api.github.com/repos/rsn491/PyGithub/pulls/comments/376773699'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', '4156:18A71:635B55D:776AD00:5E3FE523')]
+{"url":"https://api.github.com/repos/rsn491/PyGithub/pulls/comments/376773699","pull_request_review_id":355598622,"id":376773699,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM3Njc3MzY5OQ==","diff_hunk":"@@ -402,6 +402,24 @@ def create_review_comment(self, body, commit_id, path, position):\n             self._requester, headers, data, completed=True\n         )\n \n+    def create_review_comment_reply(self, comment_id, body):\n+        \"\"\"\n+        :calls: `POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies <http://developer.github.com/v3/pulls/comments>`_\n+        :param body: string\n+        :rtype: :class:`github.PullRequestComment.PullRequestComment`\n+        \"\"\"\n+        assert isinstance(comment_id, int), comment_id","path":"github/PullRequest.py","position":11,"original_position":10,"commit_id":"a7c8a2142a33b026f51eecd3f5cba3694bd52f8b","original_commit_id":"36b1e39275a2cc163896144ce49efd4512634a85","user":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"body":"Comment reply created by PyGithub","created_at":"2020-02-09T10:55:32Z","updated_at":"2020-02-09T10:55:32Z","html_url":"https://github.com/rsn491/PyGithub/pull/1#discussion_r376773699","pull_request_url":"https://api.github.com/repos/rsn491/PyGithub/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/comments/376773699"},"html":{"href":"https://github.com/rsn491/PyGithub/pull/1#discussion_r376773699"},"pull_request":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/1"}},"in_reply_to_id":373866377}
+
+https
+POST
+api.github.com
+None
+/repos/rsn491/PyGithub/pulls/1/comments/376773699/replies
+{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
+{"body": "Second comment reply created by PyGithub"}
+201
+[('Date', 'Sun, 09 Feb 2020 10:55:33 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2435'), ('Server', 'GitHub.com'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4953'), ('X-RateLimit-Reset', '1581246203'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, Accept-Encoding'), ('ETag', '"07c32e94aeb2492b4a189d13ee7db848"'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', ''), ('Location', 'https://api.github.com/repos/rsn491/PyGithub/pulls/comments/376773701'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', '4153:31293:64191CF:7898943:5E3FE524')]
+{"url":"https://api.github.com/repos/rsn491/PyGithub/pulls/comments/376773701","pull_request_review_id":355598624,"id":376773701,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM3Njc3MzcwMQ==","diff_hunk":"@@ -402,6 +402,24 @@ def create_review_comment(self, body, commit_id, path, position):\n             self._requester, headers, data, completed=True\n         )\n \n+    def create_review_comment_reply(self, comment_id, body):\n+        \"\"\"\n+        :calls: `POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies <http://developer.github.com/v3/pulls/comments>`_\n+        :param body: string\n+        :rtype: :class:`github.PullRequestComment.PullRequestComment`\n+        \"\"\"\n+        assert isinstance(comment_id, int), comment_id","path":"github/PullRequest.py","position":11,"original_position":10,"commit_id":"a7c8a2142a33b026f51eecd3f5cba3694bd52f8b","original_commit_id":"36b1e39275a2cc163896144ce49efd4512634a85","user":{"login":"rsn491","id":7198529,"node_id":"MDQ6VXNlcjcxOTg1Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/7198529?v=4","gravatar_id":"","url":"https://api.github.com/users/rsn491","html_url":"https://github.com/rsn491","followers_url":"https://api.github.com/users/rsn491/followers","following_url":"https://api.github.com/users/rsn491/following{/other_user}","gists_url":"https://api.github.com/users/rsn491/gists{/gist_id}","starred_url":"https://api.github.com/users/rsn491/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsn491/subscriptions","organizations_url":"https://api.github.com/users/rsn491/orgs","repos_url":"https://api.github.com/users/rsn491/repos","events_url":"https://api.github.com/users/rsn491/events{/privacy}","received_events_url":"https://api.github.com/users/rsn491/received_events","type":"User","site_admin":false},"body":"Second comment reply created by PyGithub","created_at":"2020-02-09T10:55:32Z","updated_at":"2020-02-09T10:55:32Z","html_url":"https://github.com/rsn491/PyGithub/pull/1#discussion_r376773701","pull_request_url":"https://api.github.com/repos/rsn491/PyGithub/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/comments/376773701"},"html":{"href":"https://github.com/rsn491/PyGithub/pull/1#discussion_r376773701"},"pull_request":{"href":"https://api.github.com/repos/rsn491/PyGithub/pulls/1"}},"in_reply_to_id":373866377}