---
layout: article
title: Configure a repository
description: Configure Appwrite Reviews for a repository with a file in its root. Choose which branches and files get reviewed, add instructions for the reviewer, set up the sandbox, and see every setting with its default.
---

Every setting is optional. To change one, add an `appwrite.review.json` file to the root of the repository.

The file is read from each pull request's base branch, so a pull request can't change how it's reviewed. Edits to the file apply once they're merged. If the file has invalid JSON or an invalid setting, the review uses the defaults and says why.

```json
{
  "reviews": {
    "profile": "balanced",
    "baseBranches": ["main"],
    "pathFilters": ["src/**", "!src/generated/**"],
    "minSeverity": "minor",
    "requestChanges": "major"
  },
  "instructions": "We target Node 22. Flag any use of synchronous filesystem APIs.",
  "pathInstructions": [
    { "path": "migrations/**", "instructions": "Migrations must be reversible." }
  ],
  "sandbox": { "setup": "npm ci" }
}
```

[Settings](#settings) lists every setting with its default.

# Choose what gets reviewed

- **Branches**: `reviews.baseBranches` limits reviews to pull requests into the branches you list, such as `["main", "release"]`. Leave it empty to review pull requests into any branch.
- **Files**: `reviews.pathFilters` takes glob patterns. Patterns without `!` list the only files to review. Patterns that start with `!` exclude files.
- **Drafts**: Draft pull requests are reviewed once they're marked ready for review. Set `reviews.drafts` to `true` to review drafts too.
- **Automatic reviews**: Set `reviews.auto` to `false` to review only when someone asks with [`@appwrite review`](/docs/products/reviews/mentions#request-a-review).
- **Generated files**: List generated code, such as an SDK, in `reviews.generated`. These files are still reviewed, but one that is too large to show doesn't stop an approval.

For example, to skip changes to Markdown files and the `docs` directory:

```json
{
  "reviews": {
    "pathFilters": ["!**/*.md", "!docs/**"]
  }
}
```

When a filter excludes every changed file in a pull request, its review is skipped.

Some files are [skipped by default](/docs/products/reviews/how-it-works#skipped-files), such as lockfiles, build output, and vendored code. A path you list in `reviews.pathFilters` without `!` is reviewed even if it's skipped by default.

# Set how picky the reviewer is

`reviews.profile` sets what the reviewer reports:

- `chill` reports only bugs it can confirm in the code.
- `balanced`, the default, also flags risky patterns, weak or missing tests, and broken documentation examples.
- `strict` also flags naming, style, and maintainability problems.

To post fewer comments without changing what the reviewer looks for, raise `reviews.minSeverity` or lower `reviews.maxComments`.

# Add instructions

`instructions` adds guidance for the whole repository, in plain language. `pathInstructions` adds guidance for files that match a glob pattern:

```json
{
  "instructions": "We target Node 22. Flag any use of synchronous filesystem APIs.",
  "pathInstructions": [
    { "path": "migrations/**", "instructions": "Migrations must be reversible." },
    { "path": "src/api/**", "instructions": "Every endpoint needs an authorization check." }
  ]
}
```

For preferences that come up in a conversation, a [learning](/docs/products/reviews/learnings) is quicker: ask the reviewer to remember it in a comment.

Set `language` to write review comments in another language, such as `"de"`.

# Set up the sandbox

At Normal and Expert [strength](/docs/products/reviews/strength), the reviewer can run commands in an isolated sandbox that holds the pull request's code. Nothing from the repository runs outside the sandbox, and no credentials reach it.

Set `sandbox.setup` to a command that prepares the code, such as `npm ci` or `composer install`, so the reviewer can run your tests and type checkers:

```json
{
  "sandbox": {
    "setup": "npm ci",
    "network": "public"
  }
}
```

By default, the sandbox can reach public hosts over HTTP and HTTPS, never private networks. Set `sandbox.network` to `none` to remove network access.

# Settings

## Reviews

| Setting | Default | Description |
|---------|---------|-------------|
| `reviews.enabled` | `true` | Review pull requests in this repository. Answers to mentions follow this too. |
| `reviews.auto` | `true` | Review when a pull request is opened or gets new commits. Mentions work either way. |
| `reviews.drafts` | `false` | Review draft pull requests too. |
| `reviews.baseBranches` | `[]` | Only review pull requests into these branches. Empty means every branch. |
| `reviews.pathFilters` | `[]` | Glob patterns of files to review. A leading `!` excludes, such as `"!docs/**"`. |
| `reviews.generated` | `[]` | Glob patterns of generated files, such as `"src/sdk/**"`. Still reviewed, but one too large to show doesn't stop an approval. |
| `reviews.profile` | `balanced` | How picky the reviewer is: `chill`, `balanced`, or `strict`. See [Set how picky the reviewer is](#profile). |
| `reviews.minSeverity` | `minor` | Findings below this severity aren't posted: `info`, `minor`, `major`, or `critical`. |
| `reviews.maxComments` | `15` | The most inline comments one review posts, up to `100`. |

## Verdicts

| Setting | Default | Description |
|---------|---------|-------------|
| `reviews.approve` | `true` | Approve pull requests with no blocking findings and no open bugs. |
| `reviews.requestChanges` | `major` | Findings at or above this severity request changes. `never` only comments, and still never approves a pull request with a major or critical finding. |
| `reviews.approveOutsideContributors` | `false` | Approve pull requests from people without write access, such as pull requests from forks. Off by default, because their changes could try to talk the model into an approval. |

## Instructions

| Setting | Default | Description |
|---------|---------|-------------|
| `instructions` | `""` | Extra review instructions for the repository, in plain language. |
| `pathInstructions` | `[]` | Review instructions for files that match a glob pattern, as `{ "path", "instructions" }` objects. |
| `language` | `en` | The language of review comments, such as `"de"`. |

## Sandbox

| Setting | Default | Description |
|---------|---------|-------------|
| `sandbox.setup` | `""` | A shell command that runs in the sandbox before the review starts, such as `"npm ci"`. |
| `sandbox.network` | `public` | `public` allows HTTP and HTTPS to public hosts, never private networks. `none` removes network access. |
