Skip to content

Commit

Permalink
fix(repo): pass optionalPrivateToken to recursive calls (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie authored Apr 17, 2020
1 parent a671507 commit db5d731
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/repo/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db5d731

Please sign in to comment.