Skip to content

BBC2-21 add bb pipeline list#27

Open
b2l wants to merge 1 commit into
mainfrom
b2lpowa/bbc2-21-bb-pipeline-list
Open

BBC2-21 add bb pipeline list#27
b2l wants to merge 1 commit into
mainfrom
b2lpowa/bbc2-21-bb-pipeline-list

Conversation

@b2l
Copy link
Copy Markdown
Owner

@b2l b2l commented Apr 27, 2026

Summary

  • bb pipeline list — list recent pipeline runs for the current repo
  • Columns: #, STATUS, BRANCH, COMMIT, TRIGGER, DURATION, CREATOR, CREATED
  • Filterable by branch (-b) and status (-s: pending, running, success, failed, stopped, error)
  • Pagination via -L/--limit (default 30)
  • Handles all Bitbucket pipeline state variants (pending, running, paused, success, failed, stopped, error)
  • New command group bb pipeline (alias bb pipe) for future pipeline commands (view, run, stop)

Test plan

  • bun test — 170 pass, 0 fail
  • bun run lint — clean
  • Backend tests: all 7 state variants, branch/status filters, trigger extraction, commit truncation, duration computation, creator fallback, 404 error
  • bb pipeline list on a repo with pipelines
  • bb pipeline list -b main filters by branch
  • bb pipeline list -s failed filters by status
  • bb pipeline list --json structured output

List recent pipeline runs for the current repo.

- `bb pipeline list` shows build number, status, branch, commit,
  trigger, duration, creator, and relative time
- Filterable by branch (-b) and status (-s: pending, running, success,
  failed, stopped, error)
- Pagination via -L/--limit (default 30)
- Handles all Bitbucket pipeline state variants: pending, in-progress
  (running/paused), completed (success/failed/stopped/error)
- Extracts trigger type, truncates commit hash to 12 chars, computes
  duration from timestamps
- Backend with 15 tests covering all states, filters, field mapping,
  duration computation, error handling
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