Skip to content

Commit

Permalink
Changes pagination size to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
jeramysoucy committed Dec 27, 2023
1 parent c250e28 commit 0b919f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/github/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ensureLabelsAreCreated = async (octokit, client, ghOwner, ghRepo, issues)

let responseData
try {
responseData = await octokit.paginate(`GET /repos/${conf.ghOwner}/${conf.ghRepo}/labels`)
responseData = await octokit.paginate(`GET /repos/${conf.ghOwner}/${conf.ghRepo}/labels?per_page=100`)
} catch (err) {
throw new Error(dressError(err, `Failed to paginate octokit request for labels in repository: ${ghRepo}`))
}
Expand Down

0 comments on commit 0b919f5

Please sign in to comment.