feat(ci-view): view any pipeline via id
Description
This change allows viewing any pipeline via the pipeline ID. Before it would only allow the latest pipeline for a given branch, however now we can view past pipelines from any branch via the ID.
- patch(gen-docs): update docs
- minor(ci-view): view any pipeline via id
Related Issues
Resolves #768 (closed)
How has this been tested?
# Find older pipeline as an example
❯ ./bin/glab ci list -u faleksic --per-page=1 --sort asc --orderBy updated_at
Showing 1 pipeline on gitlab-org/cli. (Page 1)
State IID Ref Created
(failed) • #1639476502 (#4107) refs/merge-requests/1856/merge (about 9 months ago)
# Open it in the UI so we know how it looks like
❯ ./bin/glab ci view -p 1639476502 --web
Opening gitlab.com/gitlab-org/cli/-/pipelines/1639476502 in your browser.
# Compare with TUI output
❯ ./bin/glab ci view -p 1639476502
Screenshots (if appropriate):
| command | output |
|---|---|
./bin/glab ci view -p 1639476502 |
![]() |
./bin/glab ci view -b main |
![]() |
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap

