Skip to content

Add --json output to build view#4

Merged
novr merged 1 commit into
mainfrom
cursor/build-view-json
Jul 8, 2026
Merged

Add --json output to build view#4
novr merged 1 commit into
mainfrom
cursor/build-view-json

Conversation

@novr

@novr novr commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add --json to br build view for machine-readable build details
  • Output is a single JSON object with list fields plus failedSteps ([{name, exitCode}])
  • Fetch build logs only when failedSteps is requested (or with all / *)
  • Update README, AGENTS.md, and the br agent skill

Test plan

  • go test ./cmd -run 'TestNeedsFailedStepLog|TestBuildViewToFieldMap|TestValidBuildViewFields'
  • go build ./...
  • br build view <n> --json status,buildNumber,failedSteps on a failed build
  • br build view <n> --json status,buildNumber skips log fetch on failed builds

Emit a single JSON object with list fields plus failedSteps, fetching logs only when that field is requested.
@novr
novr merged commit 8ca1857 into main Jul 8, 2026
1 check 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.

1 participant