🚀 An automated AI Code Reviewer built using n8n, Google Gemini, and MongoDB, designed to analyze GitHub repositories and send structured review reports via email.
👉 Live Input Page: gh-ai-reviewer.netlify.app
- ✨ End-to-End Automation – From user input to AI review report
- ✨ AI-Powered Reviews – Uses Google Gemini for professional code review
- ✨ GitHub Integration – Fetches repository details & source files automatically
- ✨ Smart Filtering – Skips unnecessary files (like binaries, media, oversized configs)
- ✨ Custom Prompts – Users can provide custom review prompts
- ✨ MongoDB Memory – Maintains chat memory for better context
- ✨ Email Reports – Sends a structured JSON report as an attachment
The system is powered by an n8n workflow (see final-ver-code-reviewer.json).
- 🌐 User Input Form → GitHub Repo URL + Email + Optional Prompt
- 🔗 Webhook (n8n) → Captures input and parses repo info
- 📂 GitHub API → Fetches repository details & branch
- 🗂️ File Filtering → Keeps only relevant code/config files
- 📜 File Fetching → Downloads raw code files
- 🧠 AI Agent (Gemini + MongoDB) → Reviews code, outputs JSON
- ⚙️ Structuring → Formats JSON into clean structure
- 📦 Aggregation → Combines all file reviews
- 📧 Email Delivery → Sends report + JSON file to user
- ⚡ n8n – Workflow automation
- 🤖 Google Gemini (PaLM API) – Code analysis & AI review
- 🐳 MongoDB – Chat memory & context storage
- 🐙 GitHub API – Repository and file fetching
- 📧 Gmail API – Sending review reports to users
- 🌐 Netlify – Hosting input form frontend
{
"repo": "my_animated_portfolio",
"branch": "main",
"reviewed_at": "2025-09-09T21:27:09.128Z",
"file": "utils.js",
"issues": [
"No input validation for parameters",
"Missing JSDoc comments"
],
"suggestions": [
"Add parameter type checking",
"Include JSDoc comments for maintainability"
],
"summary": "Simple utility file, minor improvements recommended"
}-
Built by Abdul Hannan
-
Powered by n8n, Google Gemini, and MongoDB
