# Repo config

The relayrunner.yml file, which sets a repo's checks and retries.

Copy page[View as Markdown](https://relayrunner.dev/docs/reference/repo-config.md) [For AI agents](https://relayrunner.dev/docs/reference/repo-config.txt)

`relayrunner.yml` turns on [optimized checks](/content/docs/concepts/optimized-checks/index.html) for every pull request in a repo, with no workflow. Put it at `.github/relayrunner.yml` or the repo root.

Checks read it from the default branch, so a pull request can’t change the checks it gets.

```
checks:

pr-title: true

lint: [oxlint, typos]
```

## `checks.pr-title`

[Section titled “checks.pr-title”](/content/docs/reference/repo-config/index.html#checkspr-title)

`true` posts a **PR title** check on each pull request that passes when the title is a Conventional Commit. To narrow the allowed types:

```
checks:

pr-title:

types: [feat, fix, docs, chore]
```

By default, all the usual Conventional Commit types are allowed.

## `checks.lint`

[Section titled “checks.lint”](/content/docs/reference/repo-config/index.html#checkslint)

A list of linters to run on each pull request: any of `oxlint`, `oxfmt`, `ruff`, `actionlint`, `zizmor`, `shellcheck` and `typos`. To count only some files:

```
checks:

lint:

tools: [oxlint]

paths: ["apps/**"]
```

Each tool gets a `Lint / <tool>` check run. Lint needs the RelayRunner Checks GitHub App and is in preview.

## `retry`

[Section titled “retry”](/content/docs/reference/repo-config/index.html#retry)

Turns [automatic retries](/content/docs/concepts/routing/index.html#automatic-retries) on or off for the repo, whatever the workspace sets. `true` uses the workspace’s choices, `false` turns retries off here, and you can set either choice:

```
retry:

runner: other # any, same or other

max: 2 # retries per run, 1 or 2
```

## Mistakes

[Section titled “Mistakes”](/content/docs/reference/repo-config/index.html#mistakes)

The file is checked strictly. An unknown key or a bad value fails the check with the reason, instead of being ignored.
