In short
AI pull request review checks code before it reaches main. Each new or updated pull request gets the VibeDoctor Quality Gate check on GitHub and a review comment, so problems get fixed in the pull request, not after the merge.
The quality gate
Each pull request gets a check on GitHub called VibeDoctor Quality Gate. It fails when:
- A changed file contains a leaked secret.
- The PR adds a vulnerable dependency. Only new ones count, not old ones already in the repo.
- The PR adds a security issue on the lines it changes.
- The PR adds a dependency that doesn't exist or is known to be malicious.
- Duplication in new code is above your limit.
- A changed function's cognitive complexity is above your limit.
The first four are on from the start. Turn on the duplication and complexity limits when you want them; they measure JavaScript, TypeScript, Python, C#, PHP, Java, Kotlin and Go. Or pick a preset: Relaxed, Recommended or Strict.
Report only, or block the merge
By default the gate reports: a failed gate shows on the pull request, and it can still merge.
To stop a failing pull request, turn on Block merge on GitHub, then require the VibeDoctor Quality Gate check in the repo's branch rules. You also choose what happens if VibeDoctor can't check a pull request: let it merge, or block it.
Review comments
Next to the check, VibeDoctor posts one review comment: AI notes on the changed code, each with its file and line, and a table of the gate's rules. Secrets are masked in everything we post.
How to set it up
- Add a project at app.vibedoctor.io and connect its GitHub repository.
- Open Quality Governance, then Settings, and pick a preset or set your own rules.
- Open or update a pull request. The check and the review appear on it.
Pick which pull requests to review: only those into certain branches, and drafts too if you want them.
FAQ
Which plans include it?
Every plan. Free and Watch review 1 pull request a day; Guard and Shield review every one. Once a Free Week ends, the check shows the result and counts only, with no review comment.
Can a failed gate block the merge?
Yes. Turn on Block merge on GitHub and require the VibeDoctor Quality Gate check in your branch rules.
Are draft pull requests reviewed?
Not by default. Turn on Also review draft pull requests, or mark the draft ready for review.
Can I run the check again?
Yes. Use Re-run on the check in GitHub.
Does it work with GitLab or Bitbucket?
No. It works with pull requests on GitHub.