# dev.knotless.listRuns

> The runs of a public repository's workflows that the runners its record names reported, newest first, of every workflow or of one: each as its check, with what it ran on. And the workflows on its default branch, those that run only when asked for by name among them. A page at a time: follow `cursor` until it is absent. No authentication; responses are not personalized.

- Kind: query
- 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.listRuns)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listRuns/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listRuns/analytics)

## Query (`dev.knotless.listRuns`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): The `cursor` of the page before.
  - Constraints: maxLength: 2048
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 30
- `repo` (string · at-uri, required): The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.
- `workflow` (string): Only the runs of this workflow, by name.
  - Constraints: maxLength: 64

### Output (application/json)

- `cursor` (string): Absent on the last page.
  - Constraints: maxLength: 2048
- `minutes` (array): The minutes each of the repository's runners counts for its owner, where it has counted any; none for a private repository.
  - `items` (ref)
    - Reference: `dev.knotless.defs#minutesView`
- `runs` (array, required)
  - `items` (ref)
    - Reference: `#runView`
- `workflows` (array, required): The workflows in .knotless/workflows on the default branch, by name.
  - `items` (ref)
    - Reference: `#workflowView`

## #runView (`dev.knotless.listRuns#runView`)

Type: object

One run of a workflow, with what it ran on.

### Properties

- `batch` (integer): For a run of a merge queue's batch, how many pulls it lands.
  - Constraints: minimum: 1
- `check` (ref, required)
  - Reference: `dev.knotless.defs#checkView`
- `pull` (ref): For a run of a pull's head, the pull.
  - Reference: `dev.knotless.defs#itemViewBasic`
- `ref` (string, required): The ref it ran at, in full: for a pull's run its head branch, for a merge queue batch's the branch it lands on.
  - Constraints: maxLength: 1024
- `subject` (string): For a run of a commit pushed to the ref, the first line of its message, where this server has the commit.

## #workflowView (`dev.knotless.listRuns#workflowView`)

Type: object

A workflow file on the default branch.

### Properties

- `about` (string): The first sentence of the comment its file opens with.
- `asked` (boolean): Whether it runs only when asked for by name, on no push or pull.
  - Constraints: default: false
- `name` (string, required)
  - Constraints: maxLength: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The runs of a public repository's workflows that the runners its record names reported, newest first, of every workflow or of one: each as its check, with what it ran on. And the workflows on its default branch, those that run only when asked for by name among them. A page at a time: follow `cursor` until it is absent. No authentication; responses are not personalized.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "maxLength": 2048,
              "type": "string"
            },
            "minutes": {
              "description": "The minutes each of the repository's runners counts for its owner, where it has counted any; none for a private repository.",
              "items": {
                "ref": "dev.knotless.defs#minutesView",
                "type": "ref"
              },
              "type": "array"
            },
            "runs": {
              "items": {
                "ref": "#runView",
                "type": "ref"
              },
              "type": "array"
            },
            "workflows": {
              "description": "The workflows in .knotless/workflows on the default branch, by name.",
              "items": {
                "ref": "#workflowView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "runs",
            "workflows"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "The `cursor` of the page before.",
            "maxLength": 2048,
            "type": "string"
          },
          "limit": {
            "default": 30,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "repo": {
            "description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
            "format": "at-uri",
            "type": "string"
          },
          "workflow": {
            "description": "Only the runs of this workflow, by name.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "runView": {
      "description": "One run of a workflow, with what it ran on.",
      "properties": {
        "batch": {
          "description": "For a run of a merge queue's batch, how many pulls it lands.",
          "minimum": 1,
          "type": "integer"
        },
        "check": {
          "ref": "dev.knotless.defs#checkView",
          "type": "ref"
        },
        "pull": {
          "description": "For a run of a pull's head, the pull.",
          "ref": "dev.knotless.defs#itemViewBasic",
          "type": "ref"
        },
        "ref": {
          "description": "The ref it ran at, in full: for a pull's run its head branch, for a merge queue batch's the branch it lands on.",
          "maxLength": 1024,
          "type": "string"
        },
        "subject": {
          "description": "For a run of a commit pushed to the ref, the first line of its message, where this server has the commit.",
          "type": "string"
        }
      },
      "required": [
        "check",
        "ref"
      ],
      "type": "object"
    },
    "workflowView": {
      "description": "A workflow file on the default branch.",
      "properties": {
        "about": {
          "description": "The first sentence of the comment its file opens with.",
          "type": "string"
        },
        "asked": {
          "default": false,
          "description": "Whether it runs only when asked for by name, on no push or pull.",
          "type": "boolean"
        },
        "name": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    }
  },
  "description": "What a repository's runners ran: every run of its workflows, and the workflows themselves.",
  "id": "dev.knotless.listRuns",
  "lexicon": 1
}
```
