Code review

Getting started

Enable automated PR review for a repository and choose which projects it covers.

Connect the repository first

Code review runs against a project that's already connected to the workspace. If you haven't done that yet, see connecting a repository.

Enable PR review for the workspace

Open Admin → PR Review in the sidebar. The toggle in the header turns automated review on or off for the whole workspace — when enabled, a review is created each time a pull request is opened against a tracked branch of one of the workspace's repositories. Individual repositories can still be excluded (see below). Draft pull requests are skipped until marked ready for review, and a review can always be triggered manually from GitHub; see when a review runs.

Choose which pull requests are reviewed

Under Pull requests to review, workspace-wide rules narrow what gets reviewed automatically: Skip authors lists GitHub logins whose pull requests aren't reviewed, Skip branches lists patterns matched against the pull request's branch, and Review stacked pull requests also reviews pull requests based on another pull request's branch.

Under Repositories, each of the workspace's repositories has its own switch and tracked branches. A pull request is reviewed when it targets one of those branches, so turn a repository off if you don't want its PRs reviewed even while PR review is on for the workspace overall. A repository can also override the workspace's skip rules with its own.

Add custom instructions

Custom instructions lets you give the reviewer extra guidance that applies to every pull request in the workspace — for example, a convention you want enforced or a pattern you don't want flagged.

Configure checks

Checks are the rules your codebase must follow. Each step of a check runs on pull requests, workspace updates, or both, and its results appear in review reports, on the Checks page in the sidebar, and as a GitHub check run on the pull request. A check holds one or more steps: an AQL assertion over the code, an LLM agent answering a question about the change, or one of the built-in review steps that write the report itself.

Every workspace starts with the built-in System check turned on, so PR review works before you write a single rule. Ready-made checks for GDPR compliance, entrypoint security, test isolation, and more are one click away on the Checks page, and you can ask Astrid to draft a check from a plain language description.

See Checks for step types, severity, scope, and how to add your own.

Next steps

© Abstraction — documentation