workflows.fit
Back to n8n workflows
n8n template$10By Oka Hironobu

Review GitHub pull requests with Gemini and post feedback automatically

Review GitHub pull requests with Gemini AI and post feedback automatically Who is this for Development teams and tech leads who want to maintain consistent code quality without manual review bottlenecks. Perfect for t...

Data & StorageProductivityDevelopmentCore NodesCommunicationHITLAILangchain
Open checkout
Loading interactive preview...

Template notes

Review GitHub pull requests with Gemini AI and post feedback automatically

Who is this for

Development teams and tech leads who want to maintain consistent code quality without manual review bottlenecks. Perfect for teams handling multiple PRs daily and wanting AI-powered insights on security, bugs, and best practices.

How it works

When a GitHub pull request is created or updated, the webhook triggers the workflow. The system fetches the PR diff via GitHub API and analyzes each file's changes. Google Gemini AI reviews the code for potential bugs, security vulnerabilities, performance issues, and style improvements.

The AI generates detailed feedback which gets posted as a GitHub review comment. Every review is logged to Google Sheets for tracking, and the team receives a Slack notification with the PR status and summary.

How to set up

1. GitHub webhook: Configure your repository's webhook to send PR events to the n8n webhook URL 2. GitHub API: Add a personal access token with repository permissions for API calls 3. Google credentials: Connect your Gemini AI API key and Google Sheets OAuth 4. Slack integration: Set up a Slack app with chat:write permissions for team notifications 5. Sheet setup: Create a Google Sheet and update the document ID in the workflow