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.
This commit is contained in:
Brian J. Murrell
2018-09-26 09:55:33 +08:00
committed by Wan Liuyang
parent 598bee8193
commit a18eeb3a05
+2
View File
@@ -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",