Skip to content

Commit

Permalink
fix(github): Do not limit pagination for discovered repos (#7476)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
zharinov and viceice committed Oct 16, 2020
1 parent 87222bd commit 4e08d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/platform/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function getRepos(): Promise<string[]> {
try {
const res = await githubApi.getJson<{ full_name: string }[]>(
'user/repos?per_page=100',
{ paginate: true }
{ paginate: 'all' }
);
return res.body.map((repo) => repo.full_name);
} catch (err) /* istanbul ignore next */ {
Expand Down

0 comments on commit 4e08d56

Please sign in to comment.