diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js index 20fbd9ec1a76e6df08fb5011e26fea484d627a3b..23f801667fdd294acf15227c7cb025100f332445 100644 --- a/lib/platform/github/gh-got-wrapper.js +++ b/lib/platform/github/gh-got-wrapper.js @@ -37,7 +37,11 @@ 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 && linkHeader.next.page !== '11') { + if ( + linkHeader && + linkHeader.next && + (process.env.RENOVATE_PAGINATE_ALL || linkHeader.next.page !== '11') + ) { res.body = res.body.concat( (await get(linkHeader.next.url, opts, retries)).body );