# dev.knotless.listChecks

> The dev.knotless.check records written about a public repository by the accounts its record names in `runners`, newest run first; checks by any other account, and anything the appview has taken down, are left out. The `runners` read are those of the repository's record as the appview has it now. 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.listChecks)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listChecks/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listChecks/analytics)

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

Type: query · GET

### Parameters (query string)

- `commit` (string): Only checks of this commit, its hex object ID.
  - Constraints: minLength: 40, maxLength: 64
- `cursor` (string): The `cursor` of the page before.
  - Constraints: maxLength: 2048
- `key` (string · tid, required): The repository's `key`.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `pull` (string · at-uri): Only the runs of this pull's head.
- `ref` (string): Only checks of this ref, named in full, such as refs/heads/main.
  - Constraints: maxLength: 1024
- `repo` (string · at-uri, required): The repository's dev.knotless.repo record; only its owner is matched.

### Output (application/json)

- `checks` (array, required)
  - `items` (ref)
    - Reference: `#check`
- `cursor` (string): Absent on the last page.
  - Constraints: maxLength: 2048

## #check (`dev.knotless.listChecks#check`)

Type: object

One check, as its runner wrote it.

### Properties

- `runner` (string · did, required): The account the check is in: one of the repository's runners.
- `uri` (string · at-uri, required): The check record's URI.
- `value` (unknown, required): The dev.knotless.check record verbatim.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "check": {
      "description": "One check, as its runner wrote it.",
      "properties": {
        "runner": {
          "description": "The account the check is in: one of the repository's runners.",
          "format": "did",
          "type": "string"
        },
        "uri": {
          "description": "The check record's URI.",
          "format": "at-uri",
          "type": "string"
        },
        "value": {
          "description": "The dev.knotless.check record verbatim.",
          "type": "unknown"
        }
      },
      "required": [
        "uri",
        "runner",
        "value"
      ],
      "type": "object"
    },
    "main": {
      "description": "The dev.knotless.check records written about a public repository by the accounts its record names in `runners`, newest run first; checks by any other account, and anything the appview has taken down, are left out. The `runners` read are those of the repository's record as the appview has it now. A page at a time: follow `cursor` until it is absent. No authentication; responses are not personalized.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "checks": {
              "items": {
                "ref": "#check",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "description": "Absent on the last page.",
              "maxLength": 2048,
              "type": "string"
            }
          },
          "required": [
            "checks"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "commit": {
            "description": "Only checks of this commit, its hex object ID.",
            "maxLength": 64,
            "minLength": 40,
            "type": "string"
          },
          "cursor": {
            "description": "The `cursor` of the page before.",
            "maxLength": 2048,
            "type": "string"
          },
          "key": {
            "description": "The repository's `key`.",
            "format": "tid",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "pull": {
            "description": "Only the runs of this pull's head.",
            "format": "at-uri",
            "type": "string"
          },
          "ref": {
            "description": "Only checks of this ref, named in full, such as refs/heads/main.",
            "maxLength": 1024,
            "type": "string"
          },
          "repo": {
            "description": "The repository's dev.knotless.repo record; only its owner is matched.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "repo",
          "key"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "What the runners a public repository trusts have reported of its workflows, as an appview has indexed it from the firehose.",
  "id": "dev.knotless.listChecks",
  "lexicon": 1
}
```
