# How to set up AI pull request reviews on GitHub

Last updated: 2026-11-10 · Plans: Paid plans · Who can do this: Workspace owners and admins (plus a GitHub org admin to install the app) · Source: https://planfluence.site/docs/set-up-ai-pr-reviews

> 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

1. Click **Settings** in the left sidebar and open the **Integrations** tab.
2. On the **GitHub** card, click **Connect**. The **GitHub Integration** dialog opens.
3. Click **Install GitHub App** (or **Use an existing installation** if your organization already installed it).
4. 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.").
5. Under **Connected repositories**, tick the repositories for the current project. Use **Filter repositories** to find them.
6. 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.
7. 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.

## FAQ

### 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.
