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
125 changes: 124 additions & 1 deletion docs/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3680,6 +3680,17 @@
"null"
]
},
"cost_usd": {
"description": "What the review's model calls cost, in US dollars. Null on sessions\nfrom before it was kept.",
"examples": [
0.84
],
"format": "double",
"type": [
"number",
"null"
]
},
"findings": {
"description": "How many findings the review kept, once there is a verdict.",
"examples": [
Expand All @@ -3699,6 +3710,13 @@
],
"type": "string"
},
"goes_on": {
"description": "This session read one part of a large pull request and the review\ngoes on in a new session; the verdict comes with the last part.",
"examples": [
false
],
"type": "boolean"
},
"head_sha": {
"description": "The commit reviewed.",
"examples": [
Expand Down Expand Up @@ -3819,6 +3837,17 @@
"REQUEST_CHANGES"
],
"type": "string"
},
"verification": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SessionVerification",
"description": "The checks the review ran on the change in a sandbox, once they ran.\nNull while it runs, when it ran none, and on older sessions."
}
]
}
},
"required": [
Expand All @@ -3839,7 +3868,8 @@
"review_url",
"steps",
"activity",
"activity_dropped"
"activity_dropped",
"goes_on"
],
"type": "object"
},
Expand Down Expand Up @@ -6508,6 +6538,54 @@
],
"type": "object"
},
"SessionCheck": {
"description": "One command of the verification run.",
"properties": {
"cmd": {
"description": "The command, as it ran in the package's folder.",
"examples": [
"npx vitest run src/auth/limits.test.ts"
],
"type": "string"
},
"dir": {
"description": "The package's folder, `.` for the root.",
"examples": [
"."
],
"type": "string"
},
"kind": {
"description": "`install`, `check` or `test`.",
"examples": [
"test"
],
"type": "string"
},
"result": {
"description": "`passed`, `failed`, `couldnt_run` or `skipped`.",
"examples": [
"passed"
],
"type": "string"
},
"why": {
"description": "Why it failed or couldn't run; empty when it passed.",
"examples": [
""
],
"type": "string"
}
},
"required": [
"kind",
"dir",
"cmd",
"result",
"why"
],
"type": "object"
},
"SessionStep": {
"description": "One step a review went through.",
"properties": {
Expand Down Expand Up @@ -6540,6 +6618,51 @@
],
"type": "object"
},
"SessionVerification": {
"description": "The review's verification run: each command it ran on the change, and\nwhat it left to the pull request's CI.",
"properties": {
"checks": {
"description": "Each command the review ran, in order.",
"items": {
"$ref": "#/components/schemas/SessionCheck"
},
"type": "array"
},
"left_out": {
"description": "What wasn't run here, and why.",
"examples": [
[
"`e2e/login.spec.ts`: end-to-end tests run against a preview, so the pull request's CI result stands for them"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"note": {
"description": "Why the run as a whole couldn't run; empty when it ran.",
"examples": [
""
],
"type": "string"
},
"outcome": {
"description": "`passed`, `failed` (a check the change made fail; it holds the\nmerge), `incomplete` (some of it couldn't run: CoderHelm's own\nproblem, never a hold) or `off` (the repository's reviews don't run\nchecks).",
"examples": [
"incomplete"
],
"type": "string"
}
},
"required": [
"outcome",
"checks",
"note",
"left_out"
],
"type": "object"
},
"SnsEnvelope": {
"description": "An Amazon SNS message, as SNS posts it to an HTTPS subscription.",
"examples": [
Expand Down
Loading