About this use case
Author runs Claude Code autonomously in GitHub Actions in production to review PRs, analyze test failures, generate changelogs and turn issue specs into implementation stubs.
What they did
The author uses the official Claude Code GitHub Action with a prompt in each workflow, triggered by events. PR opens trigger a review comment. A failed test run triggers root-cause analysis posted on the PR. Version tags trigger a CHANGELOG.md update that Claude commits and pushes. An 'ai-scaffold' issue label triggers stub files and a draft PR. Permissions are scoped per workflow.
Prompt
Set up a GitHub Actions workflow in my repo [repo name] that runs Claude Code on every new pull request to review the diff and post a summary comment with any bugs or risks it finds. Also add a step that drafts a changelog entry from merged PRs under [changelog file path]. Show me the workflow file and wait for my approval before committing it or adding any secrets.
Reported outcome
The author says every non-draft PR gets a review comment within 2 minutes, setup took about 4 hours, and savings are 3-4 hours a week. These are self-reported figures with no independent check.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.