Skip to main content

Review GitHub pull requests with Gemini and post feedback automatically

Workflow preview

Workflow preview
100%
Review GitHub pull requests with Gemini and post feedback automatically preview
Open on n8n.io

1. Workflow Overview

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 bottle...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googlesheets, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oka Hironobu.

Original n8n.io source

1.1 Workflow description

Title
Review GitHub pull requests with Gemini and post feedback automatically
Workflow name
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 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

Requirements

  • GitHub repository with webhook access
  • Google Gemini API account
  • Google Sheets and Slack workspace
  • n8n cloud or self-hosted instance

How to customize

Modify the AI prompt in the "Code review" node to focus on your team's specific coding standards. Adjust the review criteria, change notification channels, or add email alerts. Configure different review templates for different repositories by checking the repo name in the webhook data.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - GitHub PR webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1

Block 2 - Parse PR data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Get PR diff

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 4 - Analyze diff

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Code review

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.4

Block 6 - Google Gemini AI

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 7 - Format review

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Post GitHub review

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 9 - Log to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.1

Block 10 - Notify team

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.1

Block 11 - Overview Sticky

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Webhook Setup Section

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Data Analysis Section

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - AI Review Section

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Results Section

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Review GitHub pull requests with Gemini and post feedback automatically
Complexity advanced
Nodes 15
Categories Engineering, AI Summarization
Author Oka Hironobu
Published 20 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13563/13563.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Review GitHub pull requests with Gemini and post feedback automatically do?

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 bottle...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.