From a18eeb3a0529bd67123eb025a6e251884e814fec Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Tue, 25 Sep 2018 21:55:33 -0400 Subject: [PATCH] Line comments are not posted in create_review() (#909) When create_review() is called with comments in the comments argument, they are not actually posted in the API call. --- github/PullRequest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github/PullRequest.py b/github/PullRequest.py index c855dfb8..688e0625 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -434,6 +434,8 @@ class PullRequest(github.GithubObject.CompletableGithubObject): post_parameters['event'] = 'COMMENT' if event == github.GithubObject.NotSet else event if comments is github.GithubObject.NotSet: post_parameters['comments'] = [] + else: + post_parameters['comments'] = comments headers, data = self._requester.requestJsonAndCheck( "POST", self.url + "/reviews",