π 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