Skip to content

Commit c0a30f2

Browse files
Nicolas PastorinoNicolas Pastorino
authored andcommitted
Ommitted in the previous commit : changes in Client.php, exposing the
PullRequest API.
1 parent 3700336 commit c0a30f2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎lib/Github/Client.php‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,20 @@ public function getObjectApi()
224224
return $this->apis['object'];
225225
}
226226

227+
/**
228+
* Get the pull request API
229+
*
230+
* @return Github_Api_PullRequest the pull request API
231+
*/
232+
public function getPullRequestApi()
233+
{
234+
if (!isset($this->apis['pullrequest'])) {
235+
$this->apis['pullrequest'] = new Github_Api_PullRequest($this);
236+
}
237+
238+
return $this->apis['pullrequest'];
239+
}
240+
227241
/**
228242
* Inject an API instance
229243
*

0 commit comments

Comments
 (0)