Skip to content

Commit

Permalink
2290: Update PullRequest::updateReview
Browse files Browse the repository at this point in the history
Reviewed-by: erikj
  • Loading branch information
zhaosongzs committed Jun 7, 2024
1 parent 3f7de91 commit c40e621
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void addReview(Review.Verdict verdict, String body) {
}

@Override
public void updateReview(int id, String body) {
public void updateReview(String id, String body) {
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public interface PullRequest extends Issue {
/**
* Updates the comment body of a review.
*/
void updateReview(int id, String body);
void updateReview(String id, String body);

/**
* Add a file specific comment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void addReview(Review.Verdict verdict, String body) {
}

@Override
public void updateReview(int id, String body) {
public void updateReview(String id, String body) {
request.put("pulls/" + json.get("number").toString() + "/reviews/" + id)
.body("body", body)
.execute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void addReview(Review.Verdict verdict, String body) {
}

@Override
public void updateReview(int id, String body) {
public void updateReview(String id, String body) {
throw new RuntimeException("not implemented yet");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void addReview(Review.Verdict verdict, String body) {
}

@Override
public void updateReview(int id, String body) {
public void updateReview(String id, String body) {
throw new RuntimeException("not implemented yet");
}

Expand Down

0 comments on commit c40e621

Please sign in to comment.