get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$pullRequest.'/requested_reviewers', $params); } /** * @link https://developer.github.com/v3/pulls/review_requests/#create-a-review-request * * @param string $username * @param string $repository * @param int $pullRequest * @param array $reviewers * @param array $teamReviewers * * @return string */ public function create($username, $repository, $pullRequest, array $reviewers = [], array $teamReviewers = []) { return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$pullRequest.'/requested_reviewers', ['reviewers' => $reviewers, 'team_reviewers' => $teamReviewers]); } /** * @link https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request * * @param string $username * @param string $repository * @param int $pullRequest * @param array $reviewers * @param array $teamReviewers * * @return string */ public function remove($username, $repository, $pullRequest, array $reviewers = [], array $teamReviewers = []) { return $this->delete('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$pullRequest.'/requested_reviewers', ['reviewers' => $reviewers, 'team_reviewers' => $teamReviewers]); } }