mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-17 13:46:36 +02:00
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 a new issue