PR Review Bot
AI-powered GitHub App that automatically reviews pull requests using Gemini and posts structured feedback as sticky comments.
What it is
PR Review Bot is a GitHub App backend that receives pull request webhooks from GitHub, processes them through a Django backend, and uses Gemini to generate structured code reviews. The bot creates or updates a single sticky comment on each PR to avoid spamming the conversation, and prevents stale reviews from overwriting newer ones. It includes Inngest for durable workflow orchestration and PostgreSQL for event persistence.
Why I built it
I built this to learn how to build professional PR review automation systems. I wanted to understand webhook handling, GitHub App integrations, durable workflow orchestration, and how to provide AI-assisted feedback at scale—the same systems used by larger companies for automated code review.
What it does
- 01GitHub App integration with webhook signature verification and deduplication
- 02Django backend for event persistence and review run lifecycle management
- 03Inngest-powered durable workflows for review orchestration
- 04Gemini-powered structured review generation with severity levels
- 05Sticky comment updates to prevent comment spam
- 06Freshness checks to prevent stale runs from overwriting newer reviews