The moment it happens
Post merged GitHub pull requests to Slack
Each merged pull request is posted to a Slack channel with title, author, lines changed and link.
- Runs
- The moment it happens
- Apps
- GitHub, Slack
- AI
- Not needed
- Access
- Pull requests: read (webhook); chat:write
Send this to your assistant
Create a ClickRuntime automation: when a pull request is merged in acme/app, post the title, author, who merged it, lines added and removed and the link to #shipped.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Teams like a channel where shipped work shows up, but GitHub's own Slack integration posts every comment, review and push unless you tune it carefully. Often what people actually want is one line per merged change.
This automation listens for closed pull requests and posts only the ones that were merged into the branches you choose. Each message has the title, the author, who merged it, the size of the change and the link.
Product managers use the channel to follow what went in, support teams use it to know when a fix is live, and engineering leads use it as a running log of the week.
What you get out of it
Merges only
Pull requests closed without merging, review comments and pushes are not posted.
Size at a glance
Lines added and removed show whether a merge was a one-line fix or a large change.
Branch filter
Only merges into main, or the release branches you list, reach the channel.
Credit for the author
The author and the person who merged are both named, which makes the channel useful for shout-outs.
Signed requests
Each webhook is checked against your secret before anything is posted.
How it works
What happens, step by step
GitHub sends a webhook to the automation when a pull request is closed.
The automation keeps only pull requests that were merged, and ignores ones closed without merging.
It builds a short message with title, author, who merged it, target branch, lines added and removed, and the link.
The message is posted to the Slack channel you chose.
Before it runs live
- Connect GitHub
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Google Sheets
- Combine it with other GitHub and Slack steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, verify, notify
CHANNEL = "#shipped"
BRANCHES = {"main"}
@on_event
def handle(event):
if not verify.github(event.body, event.header("X-Hub-Signature-256"), credentials.secret("GITHUB_WEBHOOK_SECRET")):
return {"ignored": "bad signature"}
body = event.json
if event.header("X-GitHub-Event") != "pull_request" or body.get("action") != "closed":
return {"ignored": True}
pr = body["pull_request"]
if not pr.get("merged") or pr["base"]["ref"] not in BRANCHES:
return {"ignored": "not merged into a watched branch"}
notify.slack(
f"Merged into {pr['base']['ref']}: *{pr['title']}* (#{pr['number']})\n"
f"by {pr['user']['login']} · merged by {pr['merged_by']['login']} · "
f"+{pr['additions']} / -{pr['deletions']} in {pr['changed_files']} files\n{pr['html_url']}",
channel=CHANNEL)
return {"pr": pr["number"]}FAQ
Common questions
Can I leave out bot pull requests like Dependabot?
Does it work for several repositories?
Why only main?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post new GitHub stars to a Slack channel
When someone stars your GitHub repo, a Slack message shows who it was, their company and follower count and the new star total.
See how it worksTurn new errors into GitHub issues with a Slack alert
Each new kind of error opens a GitHub issue with a likely cause, and the team is told in Slack. Repeats of a known error are not filed again.
See how it worksGet an AI first review on every pull request
Each new pull request gets a review comment pointing out likely bugs and risks, and Slack shows a one-line verdict with the link.
See how it worksKeep exploring
Set up “Post merged GitHub pull requests to Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.