mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36: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)
|
||||
if (nextLink) {
|
||||
return getContributorsPage(nextLink).then(nextContributors => {
|
||||
return contributorsIds.concat(nextContributors)
|
||||
})
|
||||
return getContributorsPage(nextLink, optionalPrivateToken).then(
|
||||
nextContributors => {
|
||||
return contributorsIds.concat(nextContributors)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
return contributorsIds
|
||||
|
|
Loading…
Reference in a new issue