Skip to content

Fix three bugs: homepage in release.yml, failedSteps constant, filterFields helper#8

Merged
novr merged 1 commit into
mainfrom
fix/code-review-issues
Jul 9, 2026
Merged

Fix three bugs: homepage in release.yml, failedSteps constant, filterFields helper#8
novr merged 1 commit into
mainfrom
fix/code-review-issues

Conversation

@novr

@novr novr commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • release.yml — Restore homepage input to dispatch-formula job, dropped during reusable-workflow migration (88982f4). source_repo was patched back in the very next commit, confirming homepage was an oversight. Without it the Homebrew formula either fails dispatch (if required) or silently loses its homepage URL.
  • build_view.go — Introduce const fieldFailedSteps = "failedSteps" and replace the three bare string literals (lines 71, 83, 115) with it. Renaming the JSON key previously had no compiler coverage; a missed site would silently drop failed-step output from br build view.
  • jsonout.go — Extract filterFields(row, requested) helper and remove the duplicated filter loop from printJSON and printJSONObject. Single point of change for filter semantics.

Test plan

  • go test ./... passes
  • br build view <failed-build> shows failed steps in human output
  • br build view <n> --json status,buildNumber,failedSteps returns correct JSON
  • br build list --json status,buildNumber still filters correctly
  • Next release: confirm dispatch-formula job includes homepage

Closes #5, #6, #7

🤖 Generated with Claude Code

- release.yml: restore homepage input to dispatch-formula job, dropped
  when migrating from inline dispatch to reusable workflow (issue #5)
- build_view.go: introduce fieldFailedSteps constant to give the three
  runtime uses of "failedSteps" a single rename point (issue #6)
- jsonout.go: extract filterFields helper to eliminate duplicated
  filter loop between printJSON and printJSONObject (issue #7)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

release.yml: homepage input dropped from dispatch-formula reusable workflow

1 participant