ReviewPilot.
Docs Portal

GitHub App integration & setup guide

Step-by-step guide to configure the ReviewPilot GitHub App with webhook verification and inline review permissions.

01

Create a GitHub App

Navigate to GitHub ➔ Settings ➔ Developer settings ➔ GitHub Apps ➔ New GitHub App (or your Organization Settings ➔ Developer settings ➔ GitHub Apps).

GitHub App name: ReviewPilot Bot (or custom name)
Homepage URL: https://your-domain.com
Callback URL: https://your-domain.com/api/auth/callback/github
Webhook URL: https://your-domain.com/api/webhooks/github
Webhook Secret: (Generate a strong random secret and save to GITHUB_WEBHOOK_SECRET)
02

Configure repository permissions

Under Repository permissions, select the following accesses:

Pull Requests

Read & Write (to fetch unified diffs and publish inline review comments)

Contents

Read-only (to clone repository source for Tree-sitter AST indexing)

Metadata

Read-only (automatically selected by GitHub for basic repository telemetry)

Commit statuses

Read & Write (to update pending/success status checks on PRs)

03

Subscribe to webhook events

Under Subscribe to events, check the following event boxes:

✓ Pull request (opened, synchronize, reopened)
✓ Pull request review comment (created, edited)
✓ Issue comment (created)
04

Generate private key & configure environment

Scroll to Private keys and click Generate a private key. Save the downloaded .pem file. Add the values to your server environment:

GITHUB_APP_ID=123456
GITHUB_APP_CLIENT_ID=Iv1.xxxxxxxxxxxx
GITHUB_APP_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GITHUB_WEBHOOK_SECRET=your_configured_secret_token
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIE..."
05

Install the App on your repositories

Click Install App on the left sidebar of your GitHub App settings, and select either All repositories or Only select repositories. ReviewPilot will immediately synchronize and begin automated AST analysis.