tan-tan-kanarek / github-php-client

MIT License
184 stars 120 forks source link

listIssues skips some results #127

Closed cristiano-federico closed 5 years ago

cristiano-federico commented 5 years ago

$issues = $client->issues->listIssues($owner, $repo, $state="closed"); foreach($issues as $issue) { print_r($issue->getTitle()); }

This listIssues method is literally skipping some results in the response, may it be a problem with private repositories? I checked the OAuth token but it allows me to have total control of my repo, so I can't really figure this out.

tan-tan-kanarek commented 5 years ago

If the response doesn't contain them then I guess that the problem is not in the client lib.

cristiano-federico commented 5 years ago

Problem was paginated result capped at 30, but how can I call this method using per_page or page parameters in order to get all my issues?

tan-tan-kanarek commented 5 years ago

You can use $client->getNextPage() to get the next page.