Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .bumpy/fix-ci-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@varlock/bumpy': patch
---

Fixed CI check to skip gracefully when no managed packages changed, and count none entries as covered in strict mode.
13 changes: 13 additions & 0 deletions packages/bumpy/src/commands/ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ export async function ciCheckCommand(rootDir: string, opts: CheckOptions): Promi
return;
}

// Check if any managed packages actually changed — if not, no bump file is needed
const changedPackages = await findChangedPackages(changedFiles, packages, rootDir, config);
if (changedPackages.length === 0 && parseErrors.length === 0) {
log.info('No managed packages have changed — no bump files needed.');
return;
}

const willFail = !opts.noFail || parseErrors.length > 0;
const msg =
parseErrors.length > 0
Expand Down Expand Up @@ -188,7 +195,13 @@ export async function ciCheckCommand(rootDir: string, opts: CheckOptions): Promi
}

// Check for uncovered packages
// Include both released packages and those explicitly listed in bump files (e.g. with 'none')
const coveredPackages = new Set(plan.releases.map((r) => r.name));
for (const bf of prBumpFiles) {
for (const release of bf.releases) {
coveredPackages.add(release.name);
}
}
const changedPackages = await findChangedPackages(changedFiles, packages, rootDir, config);
const missing = changedPackages.filter((name) => !coveredPackages.has(name));
if (missing.length > 0) {
Expand Down
Loading