15a9ac8
From c53fe24fe8529dd2dd0a989a4a57b49ace2e1a6d Mon Sep 17 00:00:00 2001
15a9ac8
From: "Brian J. Murrell" <brian@interlinx.bc.ca>
15a9ac8
Date: Tue, 25 Sep 2018 17:31:10 -0400
15a9ac8
Subject: [PATCH] Line comments are not posted in create_review()
15a9ac8
15a9ac8
When create_review() is called with comments in the comments argument,
15a9ac8
they are not actually posted in the API call.
15a9ac8
---
15a9ac8
 github/PullRequest.py | 2 ++
15a9ac8
 1 file changed, 2 insertions(+)
15a9ac8
15a9ac8
diff --git a/github/PullRequest.py b/github/PullRequest.py
15a9ac8
index c855dfb8..688e0625 100644
15a9ac8
--- a/github/PullRequest.py
15a9ac8
+++ b/github/PullRequest.py
15a9ac8
@@ -434,6 +434,8 @@ def create_review(self, commit, body, event=github.GithubObject.NotSet, comments
15a9ac8
         post_parameters['event'] = 'COMMENT' if event == github.GithubObject.NotSet else event
15a9ac8
         if comments is github.GithubObject.NotSet:
15a9ac8
             post_parameters['comments'] = []
15a9ac8
+        else:
15a9ac8
+            post_parameters['comments'] = comments
15a9ac8
         headers, data = self._requester.requestJsonAndCheck(
15a9ac8
             "POST",
15a9ac8
             self.url + "/reviews",