Skip to content

Add isCurrentBranch and publishTo to status --json#40

Merged
theoephraim merged 5 commits into
mainfrom
feat/status-json-enhancements
Apr 22, 2026
Merged

Add isCurrentBranch and publishTo to status --json#40
theoephraim merged 5 commits into
mainfrom
feat/status-json-enhancements

Conversation

@theoephraim

@theoephraim theoephraim commented Apr 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds inCurrentBranch field to bump files and releases in bumpy status --json output — only present when running on a non-base branch, indicates which items belong to the current PR
  • Adds publishTargets field to each release — an array of publish targets ("npm", "custom", or empty for private/skipped packages)
  • Enables preview package publishing workflows: filter by inCurrentBranch === true && publishTargets.includes("npm")

Test plan

  • All 194 existing tests pass
  • Manual test: run bumpy status --json on main (no inCurrentBranch fields present)
  • Manual test: run bumpy status --json on a feature branch (fields present with correct values)
  • Verify publishTargets correctly reflects publishCommand, skipNpmPublish, and private package config

🤖 Generated with Claude Code

theoephraim and others added 3 commits April 22, 2026 00:02
Enhances the JSON output of `bumpy status --json` with two new fields:
- `isCurrentBranch`: indicates which bump files/releases belong to the
  current branch (only present when not on the base branch)
- `publishTo`: array of publish targets per release ("npm", "custom", or empty)

These enable workflows like preview package publishing where you need to
know which npm packages are being changed in the current PR.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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

bumpy-bot commented Apr 22, 2026

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.2.0 → 1.2.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 and others added 2 commits April 22, 2026 00:06
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theoephraim theoephraim merged commit 63eb50a into main Apr 22, 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