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.

Done with Claude Code· Intermediate· Oct 2026

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.

Read the original on dev.to ↗

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.