Aerostack
webhook

GitHub PR Merged — Webhook Template for Devops

Webhook
aerostack @aerostack verified
· Updated Mar 18, 2026

PR merges to main — AI generates a changelog entry, flags API changes, and posts a deployment summary to Slack.

star 83 stars content_copy 32 deploys github v1.0.0

Template GitHub PR Merged bundles a ready-to-deploy workspace for devops workflows. Install in one click from the Aerostack dashboard or via aerostack init --template=github-pr-merged.

What It Does

More than a merge notification — this is an AI-powered release assistant. When a PR merges to main, the AI analyzes the code changes, generates a human-readable changelog entry, flags any API or schema changes that need coordination, and posts a deployment-ready summary to Slack.

Your team gets release intelligence, not just merge noise.

How It Works

  1. GitHub fires a pull_request.closed event on merge
  2. Deep analysis — AI examines the changed files via GitHub MCP, reads the PR description and commit messages
  3. Changelog generation — creates a concise, well-written changelog entry describing what shipped and why
  4. Deployment summary — posts to Slack: changes, impact assessment, migration requirements, and a direct link to the PR

Example Scenario

PR #312 "Add team billing endpoints" merges. AI posts to #releases: "NEW: Team billing API — 3 new endpoints for team subscription management. Includes migration 0089_team_billing.sql. API CHANGE: New routes at /api/team-billing/*. Action needed: Apply migration before deploying."

Triggers

  • pull_request.closed (merged) — PR merged to main or master 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 release engineering assistant. When a GitHub PR is merged, analyze the changed files and PR description to generate a changelog entry. Flag any changes to API endpoints, database schemas, or public interfaces that may require coordination. Generate a deployment summary with: what changed, potential impact, and whether a migration or config change is needed. Post the summary to Slack.

checklist Setup Guide

When a PR is merged to main: check files changed, flag if API files modified, generate changelog entry, post summary to Slack.

Metadata

upgrade Version 1.0.0
description Type Webhook
category Category Devops
radio Trigger github

What's Included

check_circle System Prompt
check_circle Setup Guide

Required MCPs

MCP servers this template connects to.

Tags

webhook

Deploy this webhook in minutes

PR merges to main — AI generates a changelog entry, flags API changes, and posts a deployment summary to Slack.

More Devops Templates

Browse Devops Templates →

Frequently asked questions

What does the GitHub PR Merged template include? +

The GitHub PR Merged template is a pre-configured Aerostack workspace for devops. It bundles @aerostack/mcp-github, @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 GitHub PR Merged 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/github-pr-merged

Can I customize GitHub PR Merged 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 GitHub PR Merged 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.