Skip to content

Fix empty bump files not deleted during versioning#32

Merged
theoephraim merged 2 commits into
mainfrom
fix/delete-empty-bump-files
Apr 21, 2026
Merged

Fix empty bump files not deleted during versioning#32
theoephraim merged 2 commits into
mainfrom
fix/delete-empty-bump-files

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Summary

  • Empty bump files (those with no releases in frontmatter, e.g. from bumpy add --empty) were not being deleted during bumpy version because parseBumpFile() returns null for them, so they never appeared in the release plan
  • Changed applyReleasePlan to delete all .md files from .bumpy/ (except README.md) instead of only those referenced in the release plan
  • Added tests for empty bump file deletion and README.md preservation

Test plan

  • All 177 existing + new tests pass
  • Verify in a real repo that bumpy version cleans up empty bump files

🤖 Generated with Claude Code

theoephraim and others added 2 commits April 21, 2026 14:41
Empty bump files (no releases in frontmatter) were skipped by
parseBumpFile() and never included in the release plan, so
applyReleasePlan only deleted non-empty bump files. Now deletes
all .md files from .bumpy/ directory instead of only those
referenced in the release plan.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bumpy-bot

Copy link
Copy Markdown
Collaborator

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • @varlock/bumpy 1.0.0 → 1.0.1

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@theoephraim theoephraim merged commit 12c0c4c into main Apr 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants