ci: add Claude Code reviewer + @claude responder#5
Merged
Conversation
- claude-code-review.yml: auto-reviews PRs (anthropics/claude-code-action@v1) with a Laravel/Pest-focused prompt, including a guard for the server-authoritative play API (clients must never influence payout). Reads prior review comments on re-reviews so it builds on past feedback instead of repeating itself, and reads referenced issues for context. - claude.yml: responds to @claude mentions (restricted to repo owner/member/collaborator). Requires the CLAUDE_CODE_OAUTH_TOKEN repo secret. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Claude Code GitHub workflows (mirrored from our other projects) so PRs get an automated review and
@claudementions get a response.claude-code-review.yml— runsanthropics/claude-code-action@v1on PR open/sync with a Laravel/Pest-focused prompt. Includes a guard for the server-authoritative play API (any change letting a client influence its own payout / bypassPatternDetectoris flagged), plus Eloquent/N+1, Form Requests, Blade XSS, and Pest coverage checks.claude.yml— responds to@claudementions on issues/PRs.Notable behavior (from the Broomfitters/house tweak)
On a re-review (new commits pushed), the reviewer first reads its own prior comments via
gh pr view --json commentsand builds on them — it won't re-flag resolved points or restate things the author pushed back on. It also reads anyCloses #Nissues for context.Guards
@clauderesponder is restricted to repo owner/member/collaborator.Add the OAuth token secret to this repo:
(Generate the token with
claude setup-token.)🤖 Generated with Claude Code