mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
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:
committed by
Wan Liuyang
parent
598bee8193
commit
a18eeb3a05
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user