File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -328,12 +328,22 @@ export async function pnpmFix(
328
328
} else if ( openPrs . length ) {
329
329
debugFn ( 'miss: 0 active branches found' )
330
330
}
331
- infos = infos . filter (
332
- info =>
333
- ! activeBranches . find (
334
- b => b . newVersion === info . firstPatchedVersionIdentifier ,
335
- ) ,
336
- )
331
+ infos = infos . filter ( info => {
332
+ const found = activeBranches . find (
333
+ b => b . newVersion === info . firstPatchedVersionIdentifier ,
334
+ )
335
+ if ( found ) {
336
+ debugFn (
337
+ `found: active branch for ${ name } @${ info . firstPatchedVersionIdentifier } ` ,
338
+ )
339
+ return false
340
+ } else {
341
+ debugFn (
342
+ `miss: no active branch found for ${ name } @${ info . firstPatchedVersionIdentifier } ` ,
343
+ )
344
+ return true
345
+ }
346
+ } )
337
347
}
338
348
339
349
if ( ! infos . length ) {
You can’t perform that action at this time.
0 commit comments