Skip to content
Permalink
Browse files
Always set commit_id and comments when adding review
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Feb 11, 2020
1 parent 0cb32dd commit a865b97ae1f0cd5be267a996852adb4a295c4715
Showing with 2 additions and 0 deletions.
  1. +2 −0 forge/src/main/java/org/openjdk/skara/forge/github/GitHubPullRequest.java
@@ -122,6 +122,8 @@ public void addReview(Review.Verdict verdict, String body) {
break;
}
query.put("body", body);
query.put("commit_id", headHash().hex());
query.put("comments", JSON.array());
request.post("pulls/" + json.get("number").toString() + "/reviews")
.body(query)
.execute();

0 comments on commit a865b97

Please sign in to comment.