Skip to main content
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 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

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: [].
  • 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.
.unblocked/code-review.yaml
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.