How to set up AI pull request reviews on GitHub
Short answer
Go to Settings → Integrations, click Connect on the GitHub card, click Install GitHub App and choose repositories on GitHub. Back in Planfluence, tick this project's repositories under Connected repositories and keep Automated AI Code Reviews and Auto-Comment on Pull Request on. @planfluence[bot] then reviews every PR that's opened, reopened, marked ready for review or updated.
Before you start
- A paid Planfluence plan (Automated AI Code Reviews shows a Pro badge otherwise).
- Permission to install GitHub Apps on the GitHub account or organization.
Steps
- Click Settings in the left sidebar and open the Integrations tab.
- On the GitHub card, click Connect. The GitHub Integration dialog opens.
- Click Install GitHub App (or Use an existing installation if your organization already installed it).
- On GitHub, choose the account or organization, select All repositories or only the ones to review, and click Install. You're returned to Planfluence ("Now choose which repositories this project uses.").
- Under Connected repositories, tick the repositories for the current project. Use Filter repositories to find them.
- Set the review options:
- Automated AI Code Reviews: on, to review every PR automatically.
- Auto-Comment on Pull Request: post the review summary and findings as a PR comment.
- Review Draft Pull Requests: run the review even while a PR is a draft.
- Slack PR Notifications: post PR opened, closed and merged events and review results to your Slack channel.
- Close the dialog.
What happens next
Open or update a pull request. @planfluence[bot] posts a comment with a 0–100 quality score and findings, and the review appears in Planfluence (left sidebar → GitHub → Review Analyzing Workflow). Pushing new commits updates the review.
How the score is calculated
The overall score is a weighted average of five dimension scores: Security 30%, Modularity 25%, DRY 20%, Performance 15%, Naming 10%. Critical security issues cap the security score, so a PR can't score high while one is open.
Frequently Asked Questions
Clear answers to common questions about this topic and implementation details.
What permissions does the GitHub App ask for?
Pull requests (read & write) to read diffs and post reviews, Issues (read & write), and Contents (read-only). It uses short-lived (1-hour) installation tokens and never pushes code.
Which events trigger a review?
A pull request being opened, reopened, marked ready for review, or receiving new commits. Draft PRs are skipped unless Review Draft Pull Requests is on.
Can I limit reviews to certain branches?
The review engine supports include/exclude rules for target branches, but they aren't in the settings screen yet. Contact support to set them.
Related
- How to run an AI review on a specific pull requestRun an on-demand AI code review on any pull request from the GitHub page, and read the score and findings.
- How to turn a GitHub issue into a Planfluence ticketConvert GitHub issues from a connected repository into Planfluence tickets with one click.
- Pull requests wait too long for reviewGive every GitHub pull request an immediate first review: the Planfluence GitHub App posts a 0–100 quality score with DRY, naming, modularity, security and performance findings when a PR is opened or updated.
- Planfluence + GitHubHow Planfluence works with GitHub: a GitHub App that reviews pull requests with AI and posts a 0–100 quality score, on-demand reviews, Slack PR notifications, and GitHub issues to tickets.
Something here doesn’t match what you see in Planfluence? Tell us · View as Markdown