Convert GitHub commits into review-ready pull requests with Google Gemini
    100%
    Data Processing
    0(0 reviews)
    1 downloads

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

    NM

    Curated by n8n Markets team

    Last updated: June 13, 2026

    ## 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 - Triggered via MCP server or another n8n workflow - Accepts natural language or structured input ### Repository Information Extraction - AI extracts: - Repository owner - Repository name - Source branch - Base branch ### Commit Retrieval (GitHub API) - Fetches all commits for the source branch - Collects commit messages as context ### Commit Summarization (AI) - AI analyzes commit history - Generates: - A concise PR title - A clear bullet-point description ### Pull Request Creation - Creates a GitHub pull request automatically - Uses correct base and head branches - Inserts AI-generated title and description --- ## Required Setup ### GitHub - Repository access - OAuth or personal access token - Permission to read commits and create pull requests ### AI Model - Google Gemini or compatible LLM - Connected via n8n AI nodes ### n8n - Self-hosted or cloud - HTTP access to GitHub APIs - MCP Trigger enabled for AI tool access --- ## Business Use Cases ### Engineering Teams - Standardize PR quality across developers - Reduce cognitive load on contributors ### DevOps & Platform Teams - Enforce PR hygiene automatically - Improve velocity without extra process ### Founders & Tech Leads - Maintain clean repositories without micromanagement ### Agencies & Consultants - Deliver AI-assisted GitHub automation to clients --- ## Difficulty Level Intermediate --- ## Estimated Build Time 45–75 minutes --- ## Monthly Operating Cost - GitHub: Existing plan - AI Model: Free tier or usage-based - n8n: Self-hosted or cloud Typical range: $0–20/month --- ## Why This Workflow Works - Commits are the most reliable source of change intent - AI summarizes meaning, not noise - MCP enables direct AI-to-automation execution - GitHub remains the single source of truth --- ## Possible Extensions - Auto-assign reviewers based on files changed - Add PR labels using AI classification - Generate changelog entries automatically - Post PR summary to Slack or Teams - Enforce branch naming or commit standards --- ## Details Nodes used in workflow - MCP Trigger - AI Agent (Repository Extraction) - Structured Output Parser - GitHub API (Commits) - Summarize - AI LLM Chain - GitHub API (Create Pull Request) - If - Edit Fields (Set) - Sticky Note

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    Apps in this n8n workflow

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 5-15 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Jun 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought