Find runs
squally-find-runFind CI runs for a project by branch, commit SHA, or status. Get summary counters with sharded runs collapsed into one entry per logical run.
Instructions
Finds CI runs of a project - the latest, or filtered by branch, commit SHA or status. One row per logical run: a sharded run is collapsed into a single entry. Returns summary counters only; use squally-get-run for the per-test rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | A commit SHA or a prefix of one (4-40 hex characters). Matches the run's commit or its tested revision (a pull request's head behind a merge commit). | |
| days | No | The period, in days, ending now. Must not exceed the plan's retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data. | |
| branch | No | Exact branch name. | |
| cursor | No | Opaque. Pass nextCursor for older runs, or prevCursor together with direction=prev for newer runs. | |
| status | No | Only runs with this outcome. | |
| perPage | No | Rows per page. | |
| direction | No | Which way the cursor pages. | next |
| projectId | Yes | A project id from GET /projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | Yes | ||
| total | Yes | ||
| window | Yes | ||
| project | Yes | ||
| nextCursor | Yes | Pass as ?cursor= for the next page of older runs; null on the last page. | |
| prevCursor | Yes | Pass as ?cursor= with direction=prev for newer runs; null on the first page. | |
| stableBranch | Yes |