From db5d731d964102aa7bd88ae280dd93160b2e31c9 Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Fri, 17 Apr 2020 10:20:41 -0700 Subject: [PATCH] fix(repo): pass optionalPrivateToken to recursive calls (#258) --- src/repo/github.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/repo/github.js b/src/repo/github.js index 6cb8272a..bde0e930 100644 --- a/src/repo/github.js +++ b/src/repo/github.js @@ -66,9 +66,11 @@ function getContributorsPage(githubUrl, optionalPrivateToken) { const nextLink = getNextLink(res.headers.link) if (nextLink) { - return getContributorsPage(nextLink).then(nextContributors => { - return contributorsIds.concat(nextContributors) - }) + return getContributorsPage(nextLink, optionalPrivateToken).then( + nextContributors => { + return contributorsIds.concat(nextContributors) + }, + ) } return contributorsIds