Skip to content

Commit a24ac37

Browse files
author
Trevor Currie
committed
Added request reviewers function within GHPullRequest.
1 parent 192e21a commit a24ac37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/kohsuke/github/GHPullRequest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
public class GHPullRequest extends GHIssue {
4242

4343
private static final String COMMENTS_ACTION = "/comments";
44+
private static final String REQUEST_REVIEWERS = "/requested_reviewers";
4445

4546
private String patch_url, diff_url, issue_url;
4647
private GHCommitPointer base;
@@ -345,6 +346,12 @@ public GHPullRequestReviewComment createReviewComment(String body, String sha, S
345346
.to(getApiRoute() + COMMENTS_ACTION, GHPullRequestReviewComment.class).wrapUp(this);
346347
}
347348

349+
public void requestReviewers(List<GHUser> reviewers) {
350+
return new Requester(root).method("POST")
351+
.with("reviewers", toLogins(reviewers))
352+
.to(getApiRoute() + REQUEST_REVIEWERS)
353+
}
354+
348355
/**
349356
* Merge this pull request.
350357
*

0 commit comments

Comments
 (0)