> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunblocked.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration file

> Override Code Review settings for a single repository with a YAML file.

Add `.unblocked/code-review.yaml` to a repository to override your team's dashboard settings for that repository. The file lives in the repo, so changes to it get reviewed in pull requests like any other code.

## Add the file

Create `.unblocked/code-review.yaml` at the root of the repository and merge it into the default branch. Unblocked reads the file from the default branch, so changes made in an open pull request only take effect after they're merged. Code Review must already be [set up](https://docs.getunblocked.com/code-review/setup-and-configuration.md) for the repository.

Each setting in the file replaces the matching dashboard setting for that repository. Settings you leave out keep their dashboard values.

## Available settings

Add settings at the top level of the file. Entries in lists must be nonempty strings.

### Review settings

| Key | Type | What it controls |
| - | - | - |
| `deepReview` | `boolean` | Enables [Deep Review](https://docs.getunblocked.com/code-review/setup-and-configuration.md#deep-review) with `true` or disables it with `false`. |
| `excludedPaths` | `string[]` | Skips files that match case-sensitive globs such as `*.md` for Markdown files at any depth or `test/fixtures/**` for files under `test/fixtures` at the repository root. Set `excludedPaths: []` to clear the dashboard's excluded paths for this repository. [Automatic file exclusions](https://docs.getunblocked.com/code-review/setup-and-configuration.md#excluded-paths), including those for vendored and generated files, still apply. |

### Pull request filters

Filters control which pull requests get automatic reviews. A pull request is reviewed only if it matches at least one entry in every nonempty `include` list and none of the entries in any `exclude` list.

Each include list and its matching exclude list act as one filter. Setting either list replaces that whole filter from the dashboard, so if you set only `excludeLabels`, any dashboard `includeLabels` are cleared too. To clear a dashboard filter without adding entries, set one of its lists to an empty list, such as `includeLabels: []`.

| Key | Type | What it controls |
| - | - | - |
| `includeSourceBranches` | `string[]` | Reviews only pull requests from matching source branches. |
| `excludeSourceBranches` | `string[]` | Skips pull requests from matching source branches. |
| `includeTargetBranches` | `string[]` | Reviews only pull requests that target matching branches. |
| `excludeTargetBranches` | `string[]` | Skips pull requests that target matching branches. |
| `includeTitleKeywords` | `string[]` | Reviews only pull requests whose titles contain matching text. |
| `excludeTitleKeywords` | `string[]` | Skips pull requests whose titles contain matching text. |
| `includeLabels` | `string[]` | Reviews only pull requests with a matching label. |
| `excludeLabels` | `string[]` | Skips pull requests with a matching label. |

* All filters are case-insensitive.
* Branch and label patterns support `*` as a wildcard.
* Title text matches anywhere in the title, including inside a word.
* Label filters work on GitHub and GitLab, including self-hosted instances.

## Example

This file turns on Deep Review, skips fixtures and sample code, and skips automatic reviews for release branches and for pull requests whose titles opt out.

```yaml .unblocked/code-review.yaml theme={null}
deepReview: true

excludedPaths:
  - "test/fixtures/**"
  - "examples/**"

# Changes reach release branches as cherry-picks that were already reviewed.
excludeTargetBranches:
  - "release/*"

excludeTitleKeywords:
  - "[skip review]"
  - "[wip]"
```

Setting `excludeTargetBranches` replaces the whole dashboard target branch filter for this repository, including any `includeTargetBranches`. The source branch and label filters still use the dashboard values.
