Skip to content

Commit

Permalink
feat: updated per page results
Browse files Browse the repository at this point in the history
Signed-off-by: dan.castillo <[email protected]>
  • Loading branch information
dancastillo committed Jan 20, 2023
1 parent adf5372 commit f79a5c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fetchIssues.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ const fetchIssues = async (includeBody, labels, org, client, cache) => {
const itemSearchResults = await Promise.all(
labels.map(async label => {
const issues = await client.search.issuesAndPullRequests({
q: `is:issue is:open sort:updated-desc label:"${label}" org:"${org}"`
q: `is:issue is:open label:"${label}" org:"${org}"`,
sort: 'updated',
order: 'desc',
per_page: 100
})
return issues.data.items
})
Expand Down

0 comments on commit f79a5c9

Please sign in to comment.