Skip to content

Commit 3fbf0dd

Browse files
committed
Fix tests and add defaults
1 parent 1406c44 commit 3fbf0dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Github/Api/PullRequest.php

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ class PullRequest extends AbstractApi
2525
*/
2626
public function all($username, $repository, array $params = array())
2727
{
28-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls', $params );
28+
$parameters = array_merge(array(
29+
'page' => 1,
30+
'per_page' => 30
31+
), $params);
32+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls', $parameters);
2933
}
3034

3135
/**

0 commit comments

Comments
 (0)