Fix a bug with the changelog script, on commit pagination
This commit is contained in:
parent
65c6774af0
commit
c809d4beaf
@ -278,7 +278,7 @@ class RepositoryFetcher {
|
||||
if (commits.map(({oid}) => oid).includes(stopCommit.oid)) {
|
||||
return _.takeWhile(commits, ({oid}) => oid !== stopCommit.oid);
|
||||
} else if (pageInfo.hasNextPage) {
|
||||
return commits.concat(await fetchPaginatedCommits(stopCommit, pageInfo.endCursor));
|
||||
return commits.concat(await fetchPaginatedCommits(pageInfo.endCursor));
|
||||
}
|
||||
|
||||
return commits;
|
||||
|
Loading…
Reference in New Issue
Block a user