diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js index 72f7fd82173264c30fe82b0355aa42a2ee2af63f..ab3951483d69429e6dbc4618c425f685717257d6 100644 --- a/lib/platform/github/gh-got-wrapper.js +++ b/lib/platform/github/gh-got-wrapper.js @@ -37,7 +37,7 @@ async function get(path, opts, retries = 5) { if (opts && opts.paginate) { // Check if result is paginated const linkHeader = parseLinkHeader(res.headers.link); - if (linkHeader && linkHeader.next) { + if (linkHeader && linkHeader.next && res.body.length < 1000) { res.body = res.body.concat( (await get(linkHeader.next.url, opts, retries)).body );