Skip to content

Commit

Permalink
Merge pull request #50 from g1a/matchingPRsInUser-per-page-100
Browse files Browse the repository at this point in the history
Set per_page to 100 in matchingPRsInUser function.
  • Loading branch information
kporras07 authored Mar 21, 2022
2 parents 9893540 + 252996b commit badfc71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HubphAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ public function matchingPRsInUser($user, $preamble, $pattern = '')
$q = "user:$user in:title archived:false is:pr state:open $preamble";
$result = new PullRequests();
$gitHubAPI = $this->gitHubAPI();
$searchResults = $gitHubAPI->api('search')->issues($q);
$searchApi = $gitHubAPI->api('search')->setPerPage(100);
$searchResults = $searchApi->issues($q);
$result->addSearchResults($searchResults, $pattern);

return $result;
Expand Down

0 comments on commit badfc71

Please sign in to comment.