List runs
Runs in a period, newest first - one row per logical run (a sharded CI run is one row; each job of a CI run that sets a job key is its own run, see jobKey), placed in the period and ordered by the start of its first shard (since 1.0.0-beta.13). CI and local runs both, unless source narrows it. Filter by branch, commit SHA prefix, status or source; page with the cursors. Cheap to moderate: bounded by the period’s runs.
GET
/api/v1/projects/{projectId}/runsParameters
| Parameter | Description |
|---|---|
| A project id from GET /projects. | |
| 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. | |
| Exact branch name. | |
| A commit SHA or a prefix of one (4-40 hex characters). Matches the run’s commitSha - the commit the run is reported under: the pushed commit, or for a pull request its head - or its testedRevision, the application revision the run was told it tested (opt-in, usually null). | |
| Only runs with this status - the status field’s values. A cancelled run matches cancelled only (since 1.0.0-beta.14; passed and failed were the only values before it, and a cancelled run matched neither). | |
| Which runs are listed, by where they ran: all - every run (the default); ci - runs a shard reported a CI provider for; local - runs no shard did (each run’s local field). Since 1.0.0-beta.14. | |
| Rows per page. | |
| Opaque. Pass nextCursor for older runs, or prevCursor together with direction=prev for newer runs. | |
| Which way the cursor pages. |
Responses
200400401403404429500