public function updatePullRequest($id, array $parameters)
{
if (isset($parameters['assignee'])) {
$assignee = $this->client->api('users')->search($parameters['assignee']);
if (count($assignee) === 0) {
throw new \InvalidArgumentException(sprintf('Could not find user %s', $parameters['assignee']));
}
$this->client->api('merge_requests')->update($this->getCurrentProject()->id, $id, ['assignee_id' => current($assignee)['id']]);
}
}