From c809d4beafca2abe7fc707dc65e031f7b4939b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Mon, 22 Jan 2018 22:48:58 -0500 Subject: [PATCH] Fix a bug with the changelog script, on commit pagination --- scripts/changelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/changelog.js b/scripts/changelog.js index 7a33f323..8bdd5859 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -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;