Skip to content

Commit 50fa64c

Browse files
committed
Add more infos filter debug
1 parent 0fad69e commit 50fa64c

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/commands/fix/pnpm-fix.mts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,22 @@ export async function pnpmFix(
328328
} else if (openPrs.length) {
329329
debugFn('miss: 0 active branches found')
330330
}
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+
})
337347
}
338348

339349
if (!infos.length) {

0 commit comments

Comments
 (0)