Skip to content

Commit

Permalink
Cleanup usage of .fetchLabelPages() as page number isn't needed anymore
Browse files Browse the repository at this point in the history
In 4164d9e `.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.
  • Loading branch information
phillipj committed Mar 6, 2021
1 parent 50eb8d5 commit dbaf054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dbaf054

Please sign in to comment.