Skip to content

Commit 2069be2

Browse files
committed
Add parameters to PullRequest commits method
1 parent df653f3 commit 2069be2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/PullRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public function show($username, $repository, $id)
8080
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$id);
8181
}
8282

83-
public function commits($username, $repository, $id)
83+
public function commits($username, $repository, $id, array $parameters = [])
8484
{
85-
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($id).'/commits');
85+
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($id).'/commits', $parameters);
8686
}
8787

8888
public function files($username, $repository, $id, array $parameters = [])

0 commit comments

Comments
 (0)