# Reviews on GitHub

> What Abstraction posts on a pull request, when a review runs, and how to drive it from a comment.

## When a review runs

A review runs automatically when a pull request is opened against a tracked branch of one of your workspace's repositories. **Draft pull requests are skipped** — opening a PR as a draft doesn't trigger a review. Marking it **ready for review** does. Each pull request is reviewed automatically once: reopening one that was already reviewed doesn't start a new review.

Pushing new commits doesn't re-run the review either. The review is marked out of date, on the pull request and in the web app, until you re-run it.

You can also trigger a review manually from GitHub by commenting `@abstraction-dev` on the pull request, optionally followed by an instruction starting with `recheck`, `review`, `re-review`, or `re-run` — for example `@abstraction-dev recheck`. This re-runs the review even if nothing else about the PR has changed. Unlike the automatic trigger, an explicit manual comment also runs on draft pull requests.

Mentioning `@abstraction-dev` followed by anything else is treated as a question instead — Astrid answers it as a reply comment rather than re-running the review. See [ask Astrid from a pull request](https://docs.abstraction.dev/code-review/github.md#ask-astrid-from-a-pull-request).

## The review on the pull request

When a review completes, Astrid submits a GitHub review on the pull request.
Its body has two parts:

- **Review** — the verdict, followed by the issues found. An issue anchored to
  a changed line is posted as an inline comment on that line instead, so the
  body lists only what has no line to attach to. Minor issues are collapsed.
- **Change Summary** — what the pull request does, in plain language.

Every inline comment ends with action links: **Explain** opens the finding in
the Assistant with its context loaded, and **Fix in Claude Code**, **Fix in
Codex**, and **Fix in Cursor** hand a generated fix prompt to that coding
agent. A collapsed **Copy for agent** block holds the same prompt for any
other agent. The body closes with the reviewed commit, when
the review ran, and links to the full report and to re-run the review.

A re-run updates the summary in place rather than posting a new one, adds
inline comments for new findings, and resolves the threads of findings that
are gone, so the pull request timeline stays readable across re-runs.

## Check runs

Each review also reports through GitHub check runs, so its outcome shows in
the merge box and can be required by branch protection:

- **Abstraction Review · &lt;workspace&gt;** — the review itself. It is in
  progress while the review runs, succeeds when it completes, and fails if
  the review couldn't complete.
- **Abstraction · &lt;check name&gt; · &lt;workspace&gt;** — one run per
  [check](https://docs.abstraction.dev/code-review/checks.md). A check with no findings passes; a failing step with
  Warning severity leaves the run neutral, and one with Error severity fails
  it. A check whose scope didn't match the pull request is reported as
  skipped. The built-in System check has no run of its own; it is part of the
  review.

The review's run links to the report in the web app, and each check's run to
the report's Checks section.

## Ask Astrid from a pull request

Mention `@abstraction-dev` in a pull request comment followed by a question,
such as `@abstraction-dev does this change affect the billing retry path?`,
and Astrid answers in a reply comment, with the pull request's snapshot of the
code as context. A mention inside one of Astrid's inline comment threads is
answered in that thread. Only commenters whose GitHub account is linked to an
Abstraction user in the workspace get an answer. A mention followed by
`recheck`, `review`, or `re-run` re-runs the review instead.

## Next steps

- [Reviewing pull requests in the web app](https://docs.abstraction.dev/web/reviewing-pull-requests.md)
- [Checks](https://docs.abstraction.dev/code-review/checks.md)
- [Getting started](https://docs.abstraction.dev/code-review/getting-started.md)
