Add recent run list trigger and PR filters#495
Merged
Conversation
WitoDelnat
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
depot ci run listgets the same recent-run filters the API just learned.What was happening
The run list command could show recent runs and narrow by status, repo, and SHA, but users still had to visually scan when they wanted a specific trigger type or a pull request. A bare PR number is not enough context because PR numbers are repository-scoped.
What happens now
depot ci run listsupports--triggerand--pr. The PR flag requires--repo, passes through to the CI API, and the help/examples show the intended recent-discovery usage.Anything else?
Pairs with the API change in https://github.com/depot/api/pull/3601. Branch/ref filtering stays out of this slice until we decide whether the user-facing contract should mean push branch, raw git ref, or PR head/base branch.
Note
Medium Risk
Changes the public protobuf contract for
ListRunsand updates CLI flag behavior, so mismatched server/client versions or incorrect filter semantics could alter what runs are returned.Overview
Adds recent run discovery filtering for CI run listings by introducing
triggerandprfields onListRunsRequest(and updating service docs to clarify it’s newest-first discovery, not historical search).Plumbs these new filters through the Go API wrapper (
CIListRunsOptions->ListRunsRequest) and exposes them indepot ci run listvia--triggerand--pr, including validation that--repois required when--pris provided; tests are updated/added to assert the new flags and request fields are passed across pagination.Reviewed by Cursor Bugbot for commit 24f2e87. Bugbot is set up for automated code reviews on this repo. Configure here.