Automate PR review, failures, and changelogs in GitHub Actions
They used Claude Code in GitHub Actions to review pull requests, diagnose broken tests, write changelogs, and turn labeled issues into starter code.
- What they did
- The author built several GitHub Actions flows around Claude Code, each launched by a different repo event and each with its own prompt. A new pull request makes it leave a review note; a failed test run sends it off to trace the likely cause and report back on the PR. When a release tag appears, it prepares a CHANGELOG.md update and pushes the change, and an issue tagged ai-scaffold leads to stub files plus a draft pull request. Access rights were narrowed separately for each job.
- How it went
- They report that review feedback now lands on every non-draft pull request in under 2 minutes. The setup took about 4 hours, and they say it saves 3-4 hours each week. They also estimate monthly spend at $15-25 for 3-5 developers handling 10-15 pull requests a week, excluding draft PRs and bot-made commits to keep costs lower.
- Tips
- Split the automation into small workflows so each one only has the permissions it needs. Before anything that would change the repo automatically, pause and ask for approval.
Try it yourself with Claude Code
In [repo name], create separate GitHub Actions workflows that use Claude Code for four tasks: comment on each new pull request with a brief review of bugs or risks; investigate failed CI and post the most likely cause on the pull request; draft a CHANGELOG.md update when a [version tag pattern] is published, then show me the proposed commit for approval; and, when an issue has the [label name] label, generate implementation stub files and open a draft pull request. Keep permissions limited to each workflow, and do not commit, push, submit, or create the draft pull request until I approve.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Automate a second check on Claude Code replies
They built Sage to forward Claude Code’s answers to Codex so they could review another model’s take without manual copy-pasting.
Set up Claude Code with project rules and logging
A developer paired with Claude Code on a Rust app, using a rules file and precise logs to guide planning, coding, testing, and debugging.
Investigate why a service is getting killed
Run a read-only SSH check to find the cause of a process death and rank fixes by risk.
Test single-agent and multi-agent builds side by side
A developer compared one Claude Code agent against a four-subagent setup on the same web app and found similar quality, but the single agent was cheaper and faster.
Move Claude Code skills into Codex
Charlie Hills used Claude Code and Codex to migrate 201 skills in an afternoon, then checked which parts worked in both tools and which still needed fixes.
Automate a self-hosted stack on your own hardware
Jordan Fulghum let Claude Code configure and run several home services on a Beelink mini PC.