diff --git a/lib/Github/Api/PullRequest.php b/lib/Github/Api/PullRequest.php index 7d7daf4e624..8c8d8bcd2f5 100644 --- a/lib/Github/Api/PullRequest.php +++ b/lib/Github/Api/PullRequest.php @@ -37,7 +37,7 @@ public function listPullRequests($username, $repo, $state = '') public function show($username, $repo, $pullRequestId) { $response = $this->get('pulls/'.urlencode($username).'/'.urlencode($repo).'/'.urlencode($pullRequestId)); - return $response['pulls']; + return $response['pull']; } /**