PR Merged Notifier — Webhook Template for Automation
WebhookPR merges to main — AI checks if critical files changed and notifies your engineering team on Slack.
Template PR Merged Notifier bundles a ready-to-deploy workspace for automation workflows.
Install in one click from the Aerostack dashboard or via aerostack init --template=pr-merged-notifier.
What It Does
Stay on top of what ships to production. When a pull request merges to main, this webhook uses AI to analyze the changed files, flag modifications to critical paths (routes, auth, migrations, infrastructure), and post a summary to your engineering Slack channel.
Your team knows what just shipped — before it hits production.
How It Works
- GitHub fires a
pull_request.closedevent when a PR is merged to main - AI analyzes the file list — identifies which files are in critical paths (src/routes/, src/lib/, migrations/, config)
- Impact assessment — generates a human-readable summary: what changed, who authored it, and why it matters
- Slack notification — posts to #engineering with the PR title, author, critical file list, and direct link
Example Scenario
A developer merges a PR that modifies src/lib/auth.ts and adds a new migration file. Within seconds, #engineering gets: "Auth module updated + new migration by @sarah — PR #247: Add MFA support. Critical files: auth.ts, 0052_mfa_tokens.sql. Review deployment carefully."
Triggers
pull_request.closed(wheremerged = true) — PR merged to default branch
psychology System Prompt
The instructions that define how this webhook behaves. It ships pre-configured — edit it anytime in your workspace.
You are a pull request analysis assistant. When a GitHub pull_request.closed event arrives with merged=true, analyze the list of changed files. Flag any modifications to critical paths: routes, auth modules, database migrations, configuration files, and infrastructure code. Generate a concise summary of what changed and its potential impact. Post notifications only for merges to the main or master branch.
checklist Setup Guide
When a PR is merged to main, analyze files changed. If critical paths modified, notify engineering on Slack.
Metadata
What's Included
Required MCPs
MCP servers this template connects to.
Tags
Deploy this webhook in minutes
PR merges to main — AI checks if critical files changed and notifies your engineering team on Slack.
More Automation Templates
Browse Automation Templates →Social Publisher
by @aerostack
Auto-publish from Notion to social media. Poll approved posts, adapt per platform, and schedule via Ocoya.
Payment Failed Handler
by @aerostack
Stripe payment fails — AI alerts your billing team on Slack and creates a support ticket automatically.
New Order Processor
by @aerostack
New Shopify order arrives — AI checks inventory levels and alerts your ops team when stock runs low.
Shopify New Order
by @aerostack
New Shopify order — AI checks inventory, flags VIP orders over $500, and logs everything to your database.
Scheduled Data Sync
by @aerostack
Sync data between any two systems on a schedule. CRM to Sheets, API to database, Notion to Linear.
Blog Auto-Share
by @aerostack
New blog post published? AI crafts platform-specific social posts and shares them automatically.
Frequently asked questions
What does the PR Merged Notifier template include? +
The PR Merged Notifier template is a pre-configured Aerostack workspace for automation. It bundles @aerostack/mcp-slack and any required workflows and edge functions. Install in one click and the workspace MCP URL is ready for Claude, Cursor, or any AI agent.
How do I install the PR Merged Notifier template? +
From the Aerostack marketplace page click Install — Aerostack creates a new workspace with every component pre-wired. You can also install via CLI: aerostack install template aerostack/pr-merged-notifier
Can I customize PR Merged Notifier after installing? +
Yes. Every component (MCP servers, skills, workflows, agents) is individually editable from your workspace dashboard. Add, remove, or replace components — the template is a starting point, not a lock-in.
Is the PR Merged Notifier template free to use? +
Templates are free to install. Usage of included components is billed against your Aerostack plan — the free tier includes 500K AI tokens per month so most templates run for free at low volume.