Writes a dev.knotless.rerun record, as `knotless rerun` does, in the account logged in to this appview's web pages, which must be the repository's owner: its runners run the ref, or the pull's head, again where it points when they read it. Name one ref or one pull. With workflow, only that one: of the pull's, or at the ref, one that runs on a push to it or whose trigger is to be asked for, its steps seeing env. Requires the session cookie the pages' login sets.
Input
application/jsonenv
array
Optional
With a ref and a workflow, variables its steps see, over the workflow's own of the same names.
maxLength: 32 itemspull
stringat-uri
Optional
Or the dev.knotless.pull record whose head to run.
ref
string
Optional
The ref to run: a branch or a tag by name, or in full.
maxLength: 1024 bytesrepo
stringat-uri
Required
The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.
workflow
string
Optional
The one workflow to run, by name.
maxLength: 64 bytesOutput
application/jsonuri
stringat-uri
Required
The dev.knotless.rerun record written.
Errors
NotFound
No such repository. AuthenticationRequired
No account is logged in to the pages, or its session has ended. UpstreamFailure
Nothing was asked, as the reason says: the account is not the owner, the repository names no runners, or what was named is not there. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Writes a dev.knotless.rerun record, as `knotless rerun` does, in the account logged in to this appview's web pages, which must be the repository's owner: its runners run the ref, or the pull's head, again where it points when they read it. Name one ref or one pull. With workflow, only that one: of the pull's, or at the ref, one that runs on a push to it or whose trigger is to be asked for, its steps seeing env. Requires the session cookie the pages' login sets.",
"errors": [
{
"description": "No such repository.",
"name": "NotFound"
},
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
},
{
"description": "Nothing was asked, as the reason says: the account is not the owner, the repository names no runners, or what was named is not there.",
"name": "UpstreamFailure"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"env": {
"description": "With a ref and a workflow, variables its steps see, over the workflow's own of the same names.",
"items": {
"ref": "dev.knotless.rerun#var",
"type": "ref"
},
"maxLength": 32,
"type": "array"
},
"pull": {
"description": "Or the dev.knotless.pull record whose head to run.",
"format": "at-uri",
"type": "string"
},
"ref": {
"description": "The ref to run: a branch or a tag by name, or in full.",
"maxLength": 1024,
"type": "string"
},
"repo": {
"description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
"format": "at-uri",
"type": "string"
},
"workflow": {
"description": "The one workflow to run, by name.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"repo"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"uri": {
"description": "The dev.knotless.rerun record written.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri"
],
"type": "object"
}
},
"type": "procedure"
}