Skip to content

Commit

Permalink
Improve likelihood of Cherry Picking script including all PRs (#59871)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Mar 14, 2024
1 parent 159e3c0 commit 3706a2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/cherry-pick.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,18 @@ function cli( command, args, pipe = false ) {
*/
async function fetchPRs() {
const { items } = await GitHubFetch(
`/search/issues?q=is:pr state:closed sort:updated label:"${ LABEL }" repo:WordPress/gutenberg`
`/search/issues?per_page=100&q=is:pr state:closed sort:updated label:"${ LABEL }" repo:WordPress/gutenberg`
);
const PRs = items
.map( ( { id, number, title, pull_request, closed_at } ) => ( {
// eslint-disable-next-line camelcase
.map( ( { id, number, title, pull_request } ) => ( {
id,
number,
title,
// eslint-disable-next-line camelcase
pull_request,
} ) )
// eslint-disable-next-line camelcase
.filter( ( { pull_request } ) => !! pull_request?.merged_at )
.sort(
( a, b ) =>
Expand Down

0 comments on commit 3706a2f

Please sign in to comment.