PR Reviews

What happens when the Scrubby GitHub App reviews a pull request.

How it works

When a pull request is opened or updated on a repository with the Scrubby GitHub App installed:

  1. Scrubby creates a check run on the PR showing that a review is in progress.
  2. It fetches the changed files and their diffs.
  3. It analyzes the changeset as a whole, across all changed files.
  4. It analyzes each changed file individually against its segment's conventions.
  5. It posts findings as PR comments and inline suggestions.
  6. It updates the check run with a summary.

What gets checked

Co-change gaps

Files that historically change together but are missing from this pull request. For example, a model changed without its migration, or an API endpoint changed without its client. See Domain Connections.

Domain crossings

When a PR touches files in more than one domain, Scrubby highlights the crossing. Changes that span domain boundaries often need more careful review.

Convention violations

Each changed file is checked against the conventions learned for its segment. Violations are posted as inline suggestions you can commit directly from the PR.

Review output

Reviews on a pinned repository

If a repository has an index cutoff date set, every PR review against it uses pre-cutoff context only. Conventions, connection weights, and file history all come from the pinned snapshot. The PR's own diff is always read fresh; only the context informing the review is windowed.

The repository must be indexed first. If a pull request opens on a repository that hasn't been indexed, Scrubby will not post a review. See Your First Index.