Gush\ThirdParty\Gitlab\Adapter\GitLabRepoAdapter::getPullRequest PHP Метод

getPullRequest() публичный Метод

public getPullRequest ( $id )
    public function getPullRequest($id)
    {
        $mr = MergeRequest::fromArray($this->client, $this->getCurrentProject(), $this->client->api('merge_requests')->show($this->getCurrentProject()->id, $id));
        $data = array_merge($mr->toArray(), ['url' => sprintf('%s/%s/%s/merge_requests/%d', $this->configuration['repo_domain_url'], $this->getUsername(), $this->getRepository(), $mr->iid)]);
        $data['milestone'] = $data['milestone']->title;
        $data['user'] = $data['author'];
        return $data;
    }