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

23 views · ⚙️ DevOps & CI/CD

Description

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 clean, professional pull request automatically.

When triggered via MCP or another workflow, it extracts repository details, fetches all commits from a target branch, uses AI to understand the intent behind the changes, and creates a well-structured pull request with a clear title and description.

The result is a reliable, no-manual-work system that standardizes pull requests and reduces review friction across teams.


Benefits

Consistent Pull Requests

Every PR follows a clean, readable structure regardless of who triggered it.

Zero Manual Formatting

No copy-pasting commit messages or writing descriptions by hand.

Faster Review Cycles

Reviewers get clear context upfront, reducing back-and-forth.

AI-Assisted Context Awareness

Commit history is summarized intelligently, not blindly concatenated.

MCP-Ready Automation

Can be called directly by AI tools like Cursor through MCP.


How It Works

MCP or Workflow Trigger

Repository Information Extraction

Commit Retrieval (GitHub API)

Commit Summarization (AI)

Pull Request Creation


Required Setup

GitHub

AI Model

n8n


Business Use Cases

Engineering Teams

DevOps & Platform Teams

Founders & Tech Leads

Agencies & Consultants


Difficulty Level

Intermediate


Estimated Build Time

45–75 minutes


Monthly Operating Cost

Typical range: $0–20/month


Why This Workflow Works


Possible Extensions


Details

Nodes used in workflow

🔗 Nodes Used

HTTP Request, Execute Workflow Trigger, AI Agent, Basic LLM Chain, Structured Output Parser, Call n8n Workflow Tool

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup