Auto-Fix PR Bugs Before Merge
Devin reviews every PR for bugs and pushes fixes to the branch automatically.Enroll repos and users for auto-review
Devin Review can automatically review every PR on your repositories — no manual triggering needed. Start by enrolling the repos and users you want covered.
- Go to Settings > Review in the Devin webapp
- Under Repositories, search for and add the repos you want Devin to auto-review (e.g.,
acme/frontend,acme/api-server) - Under Users, add GitHub usernames whose PRs should always be reviewed — or any user can self-enroll by clicking “Add myself (@username)”
Enable Auto-Fix so Devin pushes fixes, not just comments
By default, Devin Review posts bug findings as inline comments. Auto-Fix goes further — Devin proposes code changes and can push fix commits directly to the PR branch.To enable it, go to Settings > Customization > Pull request settings > Autofix settings - bot comments and choose one of:
- Respond to specific bots only — add
devin-ai-integration[bot]to the allowlist (recommended) - Respond to all bot comments — Devin acts on all bot comments, not just its own
See what Devin catches and fixes
When a PR is opened on an enrolled repo, Devin Review runs automatically and produces:You can review each finding in the diff view, mark bugs as resolved, or ask follow-up questions using the built-in codebase-aware chat — Devin has context from the entire repo, not just the diff.
- Bug findings in the Analysis sidebar, labeled by severity (Severe or Non-severe) and confidence
- Flags for patterns worth investigating but not necessarily wrong
- Fix commits pushed directly to the PR branch for issues Devin can resolve (when Auto-Fix is on)
Teach Devin Review your team's standards
Devin Review reads Commit this file to your repo and Devin Review will follow these guidelines on every PR. Update it as your team discovers new patterns — for example, after a production bug, add the pattern that would have caught it so Devin flags similar issues in future reviews.You can also use the Review chat on any PR to ask Devin to check for specific patterns across the diff — for instance, “Are there any API calls in this PR that don’t handle the error case?”
AGENTS.md and REVIEW.md files in your repository to learn your team’s conventions. Use these files to define review preferences, common bug patterns to watch for, and coding standards you want enforced: