# dev.knotless.rerun

> Kept in the account of the repository's owner, keyed `<repo key>.<tid>`. A runner acts on the requests in the owner's account, newer than the last it acted on, and on no one else's; it runs the ref or the pull's head where it points when the runner reads it. Naming neither a ref nor a pull asks for nothing. With a ref and a workflow, it runs only that workflow there, its steps seeing env: one that runs on a push to the ref, or one whose trigger is to be asked for. With a pull and a workflow, it runs only that one of the pull's workflows, where the pull is.

- Kind: record
- Record key: any
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.rerun)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.rerun/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.rerun/analytics)

## Record (`dev.knotless.rerun`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `env` (array): With workflow, variables its steps see, over the workflow's own of the same names.
  - Constraints: maxLength: 32
  - `items` (ref)
    - Reference: `#var`
- `pull` (string · at-uri): The dev.knotless.pull record whose head to run again.
- `ref` (string): The full ref name to run again, such as refs/heads/main.
  - Constraints: maxLength: 1024
- `repo` (ref, required): The repository, which is the owner's.
  - Reference: `dev.knotless.defs#repoRef`
- `workflow` (string): The name of the one workflow to run at the ref, or of the pull's.
  - Constraints: maxLength: 64

## #var (`dev.knotless.rerun#var`)

Type: object

A variable a requested run's steps see.

### Properties

- `name` (string, required): A shell variable's name, not the runner's own, which begin KNOTLESS_RUN.
  - Constraints: maxLength: 64
- `value` (string, required)
  - Constraints: maxLength: 4096

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Kept in the account of the repository's owner, keyed `<repo key>.<tid>`. A runner acts on the requests in the owner's account, newer than the last it acted on, and on no one else's; it runs the ref or the pull's head where it points when the runner reads it. Naming neither a ref nor a pull asks for nothing. With a ref and a workflow, it runs only that workflow there, its steps seeing env: one that runs on a push to the ref, or one whose trigger is to be asked for. With a pull and a workflow, it runs only that one of the pull's workflows, where the pull is.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "env": {
            "description": "With workflow, variables its steps see, over the workflow's own of the same names.",
            "items": {
              "ref": "#var",
              "type": "ref"
            },
            "maxLength": 32,
            "type": "array"
          },
          "pull": {
            "description": "The dev.knotless.pull record whose head to run again.",
            "format": "at-uri",
            "type": "string"
          },
          "ref": {
            "description": "The full ref name to run again, such as refs/heads/main.",
            "maxLength": 1024,
            "type": "string"
          },
          "repo": {
            "description": "The repository, which is the owner's.",
            "ref": "dev.knotless.defs#repoRef",
            "type": "ref"
          },
          "workflow": {
            "description": "The name of the one workflow to run at the ref, or of the pull's.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "repo",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "var": {
      "description": "A variable a requested run's steps see.",
      "properties": {
        "name": {
          "description": "A shell variable's name, not the runner's own, which begin KNOTLESS_RUN.",
          "maxLength": 64,
          "type": "string"
        },
        "value": {
          "maxLength": 4096,
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "type": "object"
    }
  },
  "description": "A repository owner's request that its runners run a ref's or a pull's workflows again.",
  "id": "dev.knotless.rerun",
  "lexicon": 1
}
```
