From dbaf054781a0ecf6ea041ef13d3e5041bcd6d85a Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Sat, 6 Mar 2021 12:06:05 +0100 Subject: [PATCH] Cleanup usage of .fetchLabelPages() as page number isn't needed anymore In 4164d9ec2311f9a6143e7ff34083dc7d55fcf35a `.fetchLabelPages()` got simplified to use the built-in pagination of oktokit. That resulted in the using code no longer having to provide the page number wanting to be fetched. --- lib/node-repo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-repo.js b/lib/node-repo.js index 333dcc8..453376a 100644 --- a/lib/node-repo.js +++ b/lib/node-repo.js @@ -82,7 +82,7 @@ async function fetchExistingLabels (options) { return existingLabelsCache.get(cacheKey) } - const labelsResult = await fetchLabelPages(options, 1) + const labelsResult = await fetchLabelPages(options) const existingLabels = labelsResult.data || labelsResult || [] const existingLabelNames = existingLabels.map((label) => label.name)