Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 176 additions & 3 deletions docs/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,44 @@
],
"type": "object"
},
"CodegenEnvMissing": {
"description": "The run stopped before its pull request because a code generator needed\npublic values the repository's codegen environment doesn't set.",
"properties": {
"command": {
"description": "The generator that failed.",
"examples": [
"pnpm run typegen"
],
"type": "string"
},
"repo": {
"description": "The repository, `owner/name`.",
"examples": [
"acme/web"
],
"type": "string"
},
"vars": {
"description": "The public variable names it needs that aren't set. Set them in the\ndashboard under Settings, Repositories, the repository's Codegen\nenvironment (public values only, never secrets), then retry the run.",
"examples": [
[
"SANITY_STUDIO_PROJECT_ID",
"SANITY_STUDIO_DATASET"
]
],
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"repo",
"command",
"vars"
],
"type": "object"
},
"CreateEndpointBody": {
"description": "A new endpoint.",
"properties": {
Expand Down Expand Up @@ -1977,6 +2015,30 @@
],
"type": "object"
},
"PushedCommit": {
"description": "A checkpoint commit a fix round saved on its WIP branch before it stopped.",
"properties": {
"message": {
"description": "Its subject line.",
"examples": [
"WEB-42: Add the gallery tabs"
],
"type": "string"
},
"sha": {
"description": "The commit's SHA.",
"examples": [
"4f2a9c1e7b3d5a6c8e0f1a2b3c4d5e6f7a8b9c0d"
],
"type": "string"
}
},
"required": [
"sha",
"message"
],
"type": "object"
},
"Quarantine": {
"description": "The tests quarantined for the calling repository.",
"properties": {
Expand Down Expand Up @@ -2657,6 +2719,95 @@
],
"type": "object"
},
"RoundIncomplete": {
"description": "The last fix round on the run's open pull request didn't finish. The\nrun's status stays `completed` (the pull request is open); this says\nwhich round stopped, why, and what it pushed.",
"properties": {
"at": {
"description": "When it stopped (RFC 3339).",
"examples": [
"2026-10-22T15:40:02Z"
],
"type": "string"
},
"can_resume": {
"description": "Whether `POST /api/runs/{run_id}/retry` resumes the round on the same\npull request.",
"examples": [
true
],
"type": "boolean"
},
"files": {
"description": "The files those commits changed.",
"examples": [
[
"src/blocks/gallery/tabs.tsx"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"kind": {
"description": "The round: `ci_fix` (CI failed and CoderHelm was fixing it),\n`review_fix` (CoderHelm's reviewer asked for changes) or `feedback`\n(a person's review or comments).",
"examples": [
"review_fix"
],
"type": [
"string",
"null"
]
},
"number": {
"description": "Which fix of the run it was (1 for the first; 0 when not numbered).",
"examples": [
3
],
"format": "int32",
"minimum": 0,
"type": "integer"
},
"pushed": {
"description": "The checkpoint commits the round saved on `wip_branch` before it\nstopped, oldest first (never on the pull request).",
"items": {
"$ref": "#/components/schemas/PushedCommit"
},
"type": "array"
},
"reason": {
"description": "Why it stopped, in plain words.",
"examples": [
"the review fix round ran out of its time budget 3 times in a row"
],
"type": "string"
},
"summary": {
"description": "The run's status as a person reads it.",
"examples": [
"Pull request open; the last fix round didn't finish: the review fix round ran out of its time budget 3 times in a row."
],
"type": "string"
},
"wip_branch": {
"description": "The branch the round's work so far is saved on. A round that didn't\nfinish never pushes to the pull request; Resume continues from here.",
"examples": [
"coderhelm-wip/web-42-gallery"
],
"type": "string"
}
},
"required": [
"number",
"reason",
"summary",
"pushed",
"files",
"wip_branch",
"at",
"can_resume"
],
"type": "object"
},
"Run": {
"description": "One run, in full.",
"properties": {
Expand Down Expand Up @@ -2772,6 +2923,17 @@
"null"
]
},
"codegen_env_missing": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/CodegenEnvMissing",
"description": "Set when the run stopped before its pull request because a code\ngenerator needed public values the repository doesn't set. Null\notherwise."
}
]
},
"continued_run_id": {
"description": "The run that picked the answers up and continued the work.",
"examples": [
Expand Down Expand Up @@ -3036,6 +3198,17 @@
"null"
]
},
"round_incomplete": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/RoundIncomplete",
"description": "Set when the run's pull request is open but the last fix round on it\n(a CI fix, a review fix or a feedback round) didn't finish. Null\notherwise. Resume it with `POST /api/runs/{run_id}/retry`."
}
]
},
"run_id": {
"description": "The run's id, a ULID: the same id as in the path.",
"examples": [
Expand Down Expand Up @@ -3145,7 +3318,7 @@
"description": "What a run action did.",
"properties": {
"status": {
"description": "`retrying` after a retry, `cancelled` after a cancel.",
"description": "`retrying` after a retry, `resuming` when a retry resumed the run's\nunfinished fix round, `cancelled` after a cancel.",
"examples": [
"retrying"
],
Expand Down Expand Up @@ -6433,7 +6606,7 @@
},
"/api/runs/{run_id}/retry": {
"post": {
"description": "Starts the run's ticket again as a new run. Only a run that is `failed`, `needs_input`, `needs_outside_change`, `cancelled` or `closed` can be retried; the old run becomes `retried`, so retrying it twice is refused with `400`. Find the new run with `GET /api/runs?q=<ticket id>`.",
"description": "Starts the run's ticket again as a new run. Only a run that is `failed`, `needs_input`, `needs_outside_change`, `cancelled` or `closed` can be retried; the old run becomes `retried`, so retrying it twice is refused with `400`. Find the new run with `GET /api/runs?q=<ticket id>`.\n\nA `completed` run whose `round_incomplete` is set (its pull request is open but the last fix round on it didn't finish) is resumed instead: the same run picks the round up again on the same pull request, with a fresh time budget, and the answer's status is `resuming`.",
"operationId": "retryRun",
"parameters": [
{
Expand All @@ -6459,7 +6632,7 @@
}
}
},
"description": "The ticket is queued again.",
"description": "The ticket is queued again (`retrying`), or the unfinished round is resumed on the same run (`resuming`).",
"headers": {
"RateLimit-Limit": {
"description": "Requests this key may make in a minute.",
Expand Down
Loading
Loading