Skip to content

Reviews

Configure a repository

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.

4 min read

Raw

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 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.
  • 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, 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 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, 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

SettingDefaultDescription
reviews.enabledtrueReview pull requests in this repository. Answers to mentions follow this too.
reviews.autotrueReview when a pull request is opened or gets new commits. Mentions work either way.
reviews.draftsfalseReview 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.profilebalancedHow picky the reviewer is: chill, balanced, or strict. See Set how picky the reviewer is.
reviews.minSeverityminorFindings below this severity aren't posted: info, minor, major, or critical.
reviews.maxComments15The most inline comments one review posts, up to 100.

Verdicts

SettingDefaultDescription
reviews.approvetrueApprove pull requests with no blocking findings and no open bugs.
reviews.requestChangesmajorFindings at or above this severity request changes. never only comments, and still never approves a pull request with a major or critical finding.
reviews.approveOutsideContributorsfalseApprove 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

SettingDefaultDescription
instructions""Extra review instructions for the repository, in plain language.
pathInstructions[]Review instructions for files that match a glob pattern, as { "path", "instructions" } objects.
languageenThe language of review comments, such as "de".

Sandbox

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

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.