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
160 changes: 160 additions & 0 deletions docs/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3966,6 +3966,24 @@
],
"type": "string"
},
"carried": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/RunCoveredCarried",
"description": "What the run put on its branch, when it continued in it."
}
]
},
"note": {
"description": "What the run page says, in one paragraph.",
"examples": [
"Continued in #52, CoderHelm's own open pull request that already covered this ticket."
],
"type": "string"
},
"number": {
"description": "Its number.",
"examples": [
Expand All @@ -3975,6 +3993,32 @@
"minimum": 0,
"type": "integer"
},
"open_items": {
"description": "What is still open for this ticket in it.",
"examples": [
[
"Register the two helper files"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"outcome": {
"description": "What the run did about it: `continued` (it carried its work over and\nended linked to it), `complete` (it already had everything), `person`\n(a person's pull request: untouched), `busy` (its run was working on\nit: nothing written) or `not_carried` (the work couldn't be carried\nover and stays on the run's branch). Empty on older runs.",
"examples": [
"continued"
],
"type": "string"
},
"own": {
"description": "It is CoderHelm's own pull request (opened by its app, on a branch in\nthe repository, recorded by one of the team's runs). Only then does a\nrun continue in it or mark and close the ticket's earlier one; a\nperson's pull request is never changed.",
"examples": [
true
],
"type": "boolean"
},
"reason": {
"description": "Why it does the run's work, in one sentence.",
"examples": [
Expand All @@ -3989,6 +4033,17 @@
],
"type": "string"
},
"superseded": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/RunSupersededPr",
"description": "The ticket's earlier pull request CoderHelm opened, now redundant."
}
]
},
"title": {
"description": "Its title.",
"examples": [
Expand All @@ -4010,6 +4065,57 @@
],
"type": "object"
},
"RunCoveredCarried": {
"description": "What a covered run carried over to CoderHelm's own covering pull request.",
"properties": {
"branch": {
"description": "The branch it went onto (the covering pull request's).",
"examples": [
"coderhelm/abc-2"
],
"type": "string"
},
"commits": {
"description": "The run's commits it brought.",
"examples": [
3
],
"format": "int64",
"minimum": 0,
"type": "integer"
},
"files": {
"description": "The files they change.",
"examples": [
[
"src/register.ts"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"head": {
"description": "The branch's head after.",
"examples": [
"9f2c1e0"
],
"type": "string"
},
"rebuilt": {
"description": "The two branches had diverged: the run's change was rebuilt on it.",
"examples": [
false
],
"type": "boolean"
}
},
"required": [
"branch"
],
"type": "object"
},
"RunNote": {
"description": "A note the run wrote while it worked.",
"properties": {
Expand Down Expand Up @@ -4295,6 +4401,60 @@
],
"type": "object"
},
"RunSupersededPr": {
"description": "The ticket's earlier pull request CoderHelm opened, superseded by the\ncovering one.",
"properties": {
"closed": {
"description": "A person closed it from the run page.",
"examples": [
false
],
"type": "boolean"
},
"closed_by": {
"description": "Who closed it.",
"examples": [
""
],
"type": "string"
},
"number": {
"description": "Its number.",
"examples": [
41
],
"format": "int64",
"minimum": 0,
"type": "integer"
},
"repo": {
"description": "Its repository, `owner/name`.",
"examples": [
"acme/web"
],
"type": "string"
},
"title": {
"description": "Its title.",
"examples": [
"Add the card block"
],
"type": "string"
},
"url": {
"description": "Its address on GitHub.",
"examples": [
"https://github.com/acme/web/pull/41"
],
"type": "string"
}
},
"required": [
"repo",
"number"
],
"type": "object"
},
"RunToolingFailure": {
"description": "A command the run itself ran that failed for want of a dependency or a\ntool: the run's own environment, never a question for the ticket.",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion selfhost/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"about": "The dashboard commit each platform release ships: a full 40-character commit SHA of CoderHelm/coderhelm, never a branch or tag (scripts/check-dashboard-ref.mjs fails CI and the release otherwise). The release workflow builds exactly this commit (dashboard/) into dashboard.tar.gz. Move it with scripts/bump-dashboard.sh in a reviewed PR, in the same PR as any API change the dashboard needs.",
"dashboardRef": "27e0445b4882dceb1e3d51d13636f554bc2d4676"
"dashboardRef": "506746110e88ee244de302a8bd83888ac2420535"
}
2 changes: 2 additions & 0 deletions services/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ pub mod repo_read;
// The test that every model call site is a metered helper
#[cfg(test)]
mod model_call_sites;
/// Which pull requests CoderHelm may push to, edit or close: its own.
pub mod own_pr;
/// Paginated DynamoDB lookups (follow LastEvaluatedKey to a match).
pub mod paged;
/// What happened to a PR Coderhelm opened, read from GitHub.
Expand Down
Loading
Loading