Templates / Convert GitHub commits into review-ready pull requests with Google Gemini

Convert GitHub commits into review-ready pull requests with Google Gemini

Ready for 3.0

by Ahmed Salama ✓ · 91 views · created 2026-01-30 · DevOps, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs when an MCP client calls one of its tools (plus 1 other trigger). Along the way it connects Google Gemini Chat Model and GitHub.

How it runs

Trigger: When an MCP client calls one of its tools (plus 1 other trigger).

  1. Extract Repo & Branch Context (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  2. Repo or Branch Validation (HTTP Request): calls an HTTP API
  3. Check for Repository error (If): checks a condition and branches into true / false
  4. Prepare PR Payload (Edit Fields (Set)): sets 5 fields: owner, repo, branch_name…
  5. Build Error Response (Edit Fields (Set)): sets 1 field: result
  6. Aggregate Commit Messages (Summarize): summarizes / groups the items
  7. Generate PR Title & Description (Basic LLM Chain): sends a prompt to an LLM, with model: LLM PR Writer Model
  8. Create Pull Request (HTTP Request): calls an HTTP API (POST)

Services it uses

Google Gemini Chat ModelGitHub

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (12)

From the author

Description Categories Developer Automation, AI Agents, GitHub Automation, DevOps Productivity --- Build an AI-Driven GitHub Pull Request Automation with n8n + MCP This workflow creates an AI-powered GitHub automation that turns raw commit history into a…

Excerpt from Ahmed Salama's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.