Note: Approvability is currently in beta. If you would like to use this feature, please contact us at [email protected].

How It Works
When a PR is opened or updated, Macroscope runs a new “Approvability” check. Approvability requires the changes in the PR to clear three hurdles: ownership, eligibility, and correctness. If all three hurdles are cleared, Macroscope will approve the PR automatically.
Macroscope - Approvability Check in two places on your PR:
- Checks Tab: Click the “Checks” tab at the top of your PR to see the full check run with detailed results for each of the three checks
- PR Conversation: Macroscope will post a comment in the PR conversation with the results of the Approvability check.

The Three Checks
1. Ownership ✅
Verifies the PR author is a code owner for all modified files. This ensures only authorized contributors can auto-approve changes to sensitive areas.- Uses your repository’s
CODEOWNERSfile - Supports direct username, team, and email-based ownership
2. Eligibility ✅
Uses AI to evaluate whether a PR is a good candidate for auto-approval.- Macroscope applies eligibility guidelines by default.
- You can optionally add a
macroscope_approvability.mdfile in your repo root to define custom eligibility rules. When present, custom eligibility rules are treated as the highest priority and applied on top of the default guidelines.
Default Eligibility Guidelines
Below are some of the eligibility guidelines that Macroscope uses by default when assessing a PR’s eligibility for auto-approval.Example Custom Eligibility Rules
If you want to add custom eligibility rules on top of the default eligibility guidelines, you can do so by creating amacroscope_approvability.md file and defining your own rules. Below are examples of some of the custom eligibility rules that we have defined for our own use in our macroscope_approvability.md file.
3. Correctness ✅
Confirms the PR passed Macroscope’s code review Correctness check with zero issues.- Waits for the Correctness check run to complete.
- If any issues were flagged, this check fails.
Setting Up Approvability
- Ensure you have a
CODEOWNERSfile in your repository - (Optional) Create a
macroscope_approvability.mdfile in your repo root defining your eligibility criteria. If no file is provided, Macroscope’s analysis will rely on its own standard judgment for determining eligibility.
Notes
- Macroscope cannot approve its own PRs (self-approval prevention).
- All three checks must pass: a single failed check (for whatever reason) blocks auto-approval.
- If a PR passes eligibility and correctness checks but the author isn’t a code owner of all the changed files, Macroscope will post a review comment indicating approval without formally approving the PR. This makes it clear to reviewers that Macroscope recommends approval.
- Check results include detailed reasoning so authors understand any failures.