Skip to content

Add standalone build annotation listing - #1051

Merged
mcncl merged 2 commits into
mainfrom
feat/build_annotations
Oct 19, 2026
Merged

mcncl merged 2 commits into
mainfrom
feat/build_annotations

Conversation

@mcncl

@mcncl mcncl commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Description

Annotations are available inside bk build view, but there is no standalone
command to retrieve them for inspection or scripting.

Add bk build annotations with JSON, YAML, and text output:

bk build annotations 42 --pipeline acme/widgets --json
bk build annotations acme/widgets/42 --json | jq '.annotations[].body_html'

Changes

  • Accept an explicit build number, qualified build selector, or Buildkite URL,
    using the target organization's credentials.
  • Fetch every page of build- and job-scoped annotations, including HTML bodies.
  • Include build identity and consistent JSON/YAML field names. Empty results
    return annotations: []; request errors emit no partial results.
  • Avoid pipeline-selection prompts for structured output, preserve configured
    quiet/noninteractive settings, and document selectors and output behavior.

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

List all annotation pages with JSON, YAML, and text output. Support
explicit build selectors and target-organization credentials without
prompting during structured output or emitting partial results.
@mcncl
mcncl requested review from a team as code owners October 19, 2026 02:06
buildsworth-bk-app[bot]
buildsworth-bk-app Bot previously approved these changes Oct 19, 2026
Keep terminal-backed coverage for input suppression and quiet output
from configuration, environment, and flags. Exercise repository lookup
and target-organization client recreation without new dependencies.
@buildsworth-bk-app
buildsworth-bk-app Bot dismissed their stale review October 19, 2026 03:38

Superseded by a newer Buildsworth review.

@mcncl
mcncl merged commit b63fc50 into main Oct 19, 2026
2 checks passed
@mcncl
mcncl deleted the feat/build_annotations branch October 19, 2026 03:44
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