List a commit's check runs
List a commit's check runs, named by its SHA, a branch or a tag: those reported through the API and each job of its g1t Actions workflow runs. filter latest (the default) gives each name's latest run and each workflow's latest run per event; all gives every one.
GET
/repos/{owner}/{name}/commits/{ref}/check-runsNarrow with check_name, status and app (a reporter’s slug; actions for g1t Actions).
- Authentication: Optional. Public data can be read without a token; send one to see what is private.
- MCP tool:
workflowwithactionlist_check_runs, and the same inputs - Scope: An access token needs
checks:read.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
owner |
string | Yes | The workspace that owns the repository. |
name |
string | Yes | The repository’s name. |
ref |
string | Yes | The commit: its SHA, a branch or a tag. |
Query parameters
Section titled “Query parameters”| Name | Type | Required | Description |
|---|---|---|---|
check_name |
string | No | Only runs of this name. |
status |
string | No | Only runs in this status. One of queued, in_progress, completed. |
app |
string | No | Only this reporter’s runs, by slug: actions for g1t Actions. |
filter |
string | No | latest (the default) or all. One of latest, all. |
Example request
Section titled “Example request”curl "https://api.g1t.sh/repos/flagon-io/hello/commits/main/check-runs?filter=latest" \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
{ "total_count": 2, "check_runs": [ { "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n", "name": "lint", "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e", "status": "completed", "conclusion": "failure", "started_at": "2026-10-07T14:02:11.000Z", "completed_at": "2026-10-07T14:02:36.000Z", "details_url": "https://ci.example.com/builds/4821", "external_id": "4821", "html_url": "https://g1t.sh/flagon-io/hello/checks/cr_01kq4b7c8d9e0f1g2h3j4k5m6n", "output": { "title": "2 problems", "summary": "**2** problems in 1 file.", "text": null, "annotations_count": 2 }, "actions": [ { "label": "Fix this", "description": "Apply the suggested fixes", "identifier": "fix" } ], "check_suite": { "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p" }, "app": { "slug": "buildkite", "name": "Buildkite" }, "created_at": "2026-10-07T14:02:11.318Z" }, { "id": "job_01kq4b6a7b8c9d0e1f2g3h4j5k", "name": "Test", "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e", "status": "completed", "conclusion": "success", "started_at": "2026-10-07T14:01:02.000Z", "completed_at": "2026-10-07T14:01:27.000Z", "details_url": "https://g1t.sh/flagon-io/hello/actions/runs/run_01kq4b6a7b8c9d0e1f2g3h4j5m?job=job_01kq4b6a7b8c9d0e1f2g3h4j5k", "external_id": null, "html_url": "https://g1t.sh/flagon-io/hello/actions/runs/run_01kq4b6a7b8c9d0e1f2g3h4j5m?job=job_01kq4b6a7b8c9d0e1f2g3h4j5k", "output": { "title": null, "summary": null, "text": null, "annotations_count": 0 }, "actions": [], "check_suite": { "id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m" }, "app": { "slug": "actions", "name": "g1t Actions" }, "workflow": { "run_id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m", "name": "CI", "event": "push" }, "created_at": "2026-10-07T14:01:00.512Z" } ]}Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 422 | invalid |
The input is not valid. message says which field and why. |