File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ public class GHPullRequest extends GHIssue {
5858 private int changed_files ;
5959 private String merge_commit_sha ;
6060
61+ // pull request reviewers
62+ private GHUser [] requested_reviewers ;
63+
6164 /**
6265 * GitHub doesn't return some properties of {@link GHIssue} when requesting the GET on the 'pulls' API
6366 * route as opposed to 'issues' API route. This flag remembers whether we made the GET call on the 'issues' route
@@ -76,6 +79,7 @@ GHPullRequest wrapUp(GitHub root) {
7679 if (base != null ) base .wrapUp (root );
7780 if (head != null ) head .wrapUp (root );
7881 if (merged_by != null ) merged_by .wrapUp (root );
82+ if (requested_reviewers != null ) GHUser .wrap (requested_reviewers , root );
7983 return this ;
8084 }
8185
@@ -219,6 +223,11 @@ public String getMergeCommitSha() throws IOException {
219223 return merge_commit_sha ;
220224 }
221225
226+ public GHUser [] getRequestedReviewers () throws IOException {
227+ populate ();
228+ return requested_reviewers ;
229+ }
230+
222231 /**
223232 * Fully populate the data by retrieving missing data.
224233 *
You can’t perform that action at this time.
0 commit comments