mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-10 05:56:29 +00:00
fix(repo): pass optionalPrivateToken to recursive calls (#258)
This commit is contained in:
parent
a6715074de
commit
db5d731d96
1 changed files with 5 additions and 3 deletions
|
@ -66,9 +66,11 @@ function getContributorsPage(githubUrl, optionalPrivateToken) {
|
||||||
|
|
||||||
const nextLink = getNextLink(res.headers.link)
|
const nextLink = getNextLink(res.headers.link)
|
||||||
if (nextLink) {
|
if (nextLink) {
|
||||||
return getContributorsPage(nextLink).then(nextContributors => {
|
return getContributorsPage(nextLink, optionalPrivateToken).then(
|
||||||
return contributorsIds.concat(nextContributors)
|
nextContributors => {
|
||||||
})
|
return contributorsIds.concat(nextContributors)
|
||||||
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return contributorsIds
|
return contributorsIds
|
||||||
|
|
Loading…
Reference in a new issue