Fix a bug with the changelog script, on commit pagination

This commit is contained in:
Jérémie Astori 2018-01-22 22:48:58 -05:00
parent 65c6774af0
commit c809d4beaf
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -278,7 +278,7 @@ class RepositoryFetcher {
if (commits.map(({oid}) => oid).includes(stopCommit.oid)) { if (commits.map(({oid}) => oid).includes(stopCommit.oid)) {
return _.takeWhile(commits, ({oid}) => oid !== stopCommit.oid); return _.takeWhile(commits, ({oid}) => oid !== stopCommit.oid);
} else if (pageInfo.hasNextPage) { } else if (pageInfo.hasNextPage) {
return commits.concat(await fetchPaginatedCommits(stopCommit, pageInfo.endCursor)); return commits.concat(await fetchPaginatedCommits(pageInfo.endCursor));
} }
return commits; return commits;