Skip to main content
aswin.cg
Back to Projects
Operational

PR Review Bot

AI-powered GitHub App that automatically reviews pull requests using Gemini and posts structured feedback as sticky comments.

Overview

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.

The Motivation

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.

Key Features

GitHub App integration with webhook signature verification and deduplication
Django backend for event persistence and review run lifecycle management
Inngest-powered durable workflows for review orchestration
Gemini-powered structured review generation with severity levels
Sticky comment updates to prevent comment spam
Freshness checks to prevent stale runs from overwriting newer reviews

Technologies

Python
Python
Django
Django
PostgreSQL
PostgreSQL
Docker
Docker

Tags

GitHub AppAI Code ReviewDjangoPython

Type

Personal Project

PR Review Bot screenshot 1