File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ async function resolveMilestones() {
209
209
{
210
210
search(
211
211
query: "repo:redwoodjs/redwood is:pr is:merged milestone:next-release-patch"
212
- first: 5
212
+ first: 51
213
213
type: ISSUE
214
214
) {
215
215
nodes {
@@ -222,12 +222,14 @@ async function resolveMilestones() {
222
222
` )
223
223
224
224
if ( semver === 'patch' ) {
225
+ const prettyPatch = chalk . magenta ( 'next-release-patch' )
226
+ const singularMsg = `There's 1 PR that has the ${ prettyPatch } milestone.`
227
+ const pluralMsg =
228
+ prs . length <= 50
229
+ ? `There are ${ prs . length } PRs that have the ${ prettyPatch } milestone.`
230
+ : `There are more than 50 PRs that have the ${ prettyPatch } milestone.`
225
231
console . log ( )
226
- console . log (
227
- `There's ${ prs . length } PR(s) that have the ${ chalk . magenta (
228
- 'next-release-patch'
229
- ) } milestone.`
230
- )
232
+ console . log ( prs . length === 1 ? singularMsg : pluralMsg )
231
233
232
234
if (
233
235
! isYes (
You can’t perform that action at this time.
0 commit comments