AutomationFlowsAI & RAG › Review Github Pull Requests with Gemini and Post Feedback Automatically

Review Github Pull Requests with Gemini and Post Feedback Automatically

ByOka Hironobu @okp29 on n8n.io

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.

Webhook trigger★★★★☆ complexityAI-powered15 nodesHTTP RequestChain LlmGoogle Gemini ChatGoogle SheetsSlack
AI & RAG Trigger: Webhook Nodes: 15 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #13563 — we link there as the canonical source.

This workflow follows the Chainllm → Google Sheets recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "HIUvWLKMlu3ViZ4KSjn1u",
  "name": "Review GitHub pull requests with Gemini AI and post feedback automatically",
  "tags": [],
  "nodes": [
    {
      "id": "be776153-13cd-4ece-8e2b-32d3e45d7671",
      "name": "GitHub PR webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -96,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fcf3d77c-97fc-4a38-870c-a445a621a5e3",
      "name": "Parse PR data",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        64
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9fcdfed0-4475-4a37-a71f-c46c54acacf0",
      "name": "Get PR diff",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        64
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "4891d361-a30d-410f-a0ce-493ce3283f70",
      "name": "Analyze diff",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        64
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6391e2d1-e52a-4c86-8f28-8ed20acbacd6",
      "name": "Code review",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        672,
        64
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "9600490e-13b0-4859-af31-1c2e155ce793",
      "name": "Google Gemini AI",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        672,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "97feb106-fb0a-4a1d-8a2f-7e642652329d",
      "name": "Format review",
      "type": "n8n-nodes-base.code",
      "position": [
        944,
        64
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5888b39d-17ff-40e3-bc0b-262f8af40aa4",
      "name": "Post GitHub review",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1136,
        64
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "2a5e717f-01e0-46dd-bb35-be92880c5b92",
      "name": "Log to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1296,
        64
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "42d011aa-ce69-4662-a4b3-abd3cec1f953",
      "name": "Notify team",
      "type": "n8n-nodes-base.slack",
      "position": [
        1440,
        64
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "018f1cfd-bd13-4174-b29c-255f84ed4244",
      "name": "Overview Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6051a632-9356-4ef2-be70-79bf2b82aba5",
      "name": "Webhook Setup Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6802776e-ba62-4816-953f-e1626a748ed4",
      "name": "Data Analysis Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b5c2900a-1f2c-49fd-8836-7402f8fa5474",
      "name": "AI Review Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "46f68c83-1037-4ce3-ba07-a666b10a74fe",
      "name": "Results Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1088,
        -144
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "binaryMode": "separate",
    "availableInMCP": false,
    "executionOrder": "v1"
  },
  "versionId": "19a17d5e-d694-4966-a265-0cfd6b86854f",
  "connections": {
    "Code review": {
      "main": [
        [
          {
            "node": "Format review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get PR diff": {
      "main": [
        [
          {
            "node": "Analyze diff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze diff": {
      "main": [
        [
          {
            "node": "Code review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format review": {
      "main": [
        [
          {
            "node": "Post GitHub review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Sheets": {
      "main": [
        [
          {
            "node": "Notify team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse PR data": {
      "main": [
        [
          {
            "node": "Get PR diff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini AI": {
      "ai_languageModel": [
        [
          {
            "node": "Code review",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "GitHub PR webhook": {
      "main": [
        [
          {
            "node": "Parse PR data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post GitHub review": {
      "main": [
        [
          {
            "node": "Log to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

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.

Source: https://n8n.io/workflows/13563/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Who is this for? Event strategists, conference organizers, and marketing teams planning content/networking who want to interview realistic audience personas based on their participantants behavioural

HTTP Request, Google Sheets, Chain Llm +2
AI & RAG

This workflow is designed for sales professionals, account managers, and small business owners in Japan who frequently exchange business cards. Instead of manually entering contact details, you can in

HTTP Request, Google Sheets, Slack +3
AI & RAG

ANIS_HUB 1. Uses gmail, googleDrive, googleSheets, httpRequest. Webhook trigger; 89 nodes.

Gmail, Google Drive, Google Sheets +3
AI & RAG

This n8n workflow orchestrates a powerful suite of AI Agents and automations to manage and optimize various aspects of an e-commerce operation, particularly for platforms like Shopify. It leverages La

Google Sheets, HTTP Request, Slack +10
AI & RAG

Resume Screening & Behavioral Interviews with Gemini, Elevenlabs, & Notion ATS copy. Uses outputParserStructured, chainLlm, googleDrive, stickyNote. Webhook trigger; 67 nodes.

Output Parser Structured, Chain Llm, Google Drive +9