Skip to content

ci: add Claude Code reviewer + @claude responder#5

Merged
than merged 1 commit into
mainfrom
ci/claude-reviewer
May 28, 2026
Merged

ci: add Claude Code reviewer + @claude responder#5
than merged 1 commit into
mainfrom
ci/claude-reviewer

Conversation

@than

@than than commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the Claude Code GitHub workflows (mirrored from our other projects) so PRs get an automated review and @claude mentions get a response.

  • claude-code-review.yml — runs anthropics/claude-code-action@v1 on 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 / bypass PatternDetector is flagged), plus Eloquent/N+1, Form Requests, Blade XSS, and Pest coverage checks.
  • claude.yml — responds to @claude mentions 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 comments and builds on them — it won't re-flag resolved points or restate things the author pushed back on. It also reads any Closes #N issues for context.

Guards

  • Review only runs on same-repo PRs (not forks) and skips dependabot.
  • @claude responder is restricted to repo owner/member/collaborator.

⚠️ Required before this works

Add the OAuth token secret to this repo:

gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo than/gitslotmachine.com

(Generate the token with claude setup-token.)

🤖 Generated with Claude Code

- 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>
@than than merged commit b98bb83 into main May 28, 2026
1 check failed
@than than deleted the ci/claude-reviewer branch May 28, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant