Add Claude Code automatic PR reviews - #842
Conversation
Adds automatic Claude code reviews on pull requests into dev, plus an interactive workflow that responds to @claude mentions in issues and PR comments (also the way to request reviews on fork PRs, which cannot see repo secrets). Both authenticate with the CLAUDE_CODE_OAUTH_TOKEN secret. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
8bcef1f to
22cf0c5
Compare
|
Claude finished @erikdarlingdata's task in 1m 39s —— View job Reviewing PR #842
SummaryThis PR only adds two GitHub Actions workflow files — no T-SQL is touched, so the repo's SQL-focused style/correctness rules (CLAUDE.md, version gating, self-containment, The workflows themselves are well constructed:
One minor, non-blocking suggestion posted as an inline comment:
No blocking issues found. |
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| jobs: |
There was a problem hiding this comment.
Minor/optional: unlike claude-code-review.yml, this workflow has no concurrency group. If a user posts several @claude comments in quick succession on the same PR/issue, multiple runs could execute concurrently and push conflicting commits to the same branch. Not a blocker, but worth considering something like:
concurrency:
group: claude-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: false(cancel-in-progress: false since you likely don't want to cancel a change already in progress, just serialize new triggers.)
Summary
@claudecomment on issues and PRs; this is also the way to get reviews on fork PRs, since GitHub does not expose repo secrets to fork-triggered workflow runsCloses #841
Changes
.github/workflows/claude-code-review.yml: automatic review on pull_request into dev (opened, synchronize, ready_for_review, reopened); skips drafts and fork PRs; cancels superseded runs per PR.github/workflows/claude.yml: responds to@claudementions in issue/PR comments and reviews; only users with write access to the repo can trigger itTest Plan
🤖 Generated with Claude Code