Single comprehensive-review workflow on @claude review trigger#226
Conversation
|
@claude review |
|
Claude finished @dakra's task in 1m 17s —— View job PR Review
The motivation is sound — switching away from Bug:
|
3d55b93 to
b596e9e
Compare
Drop the broken pull_request_target review workflow and the freeform @claude mention handler. Replace with a single issue_comment trigger that runs a comprehensive code review when a maintainer comments '@claude review' (or any comment containing both '@claude' and 'review'). The pull_request_target trigger fails the OIDC token exchange against the Anthropic backend (see anthropics/claude-code-action#713). The issue_comment event is allowlisted and works for both same-repo and fork PRs. Pin model to claude-opus-4-7. Use track_progress and the inline-comment tool allowlist from the action's pr-review-comprehensive example.
b596e9e to
3a64a1f
Compare
Summary
pull_request_targetreview workflow — the Anthropic OIDC backend rejects tokens frompull_request_targetevents (action#713), which is why the label-triggered review on PR Wrap shell-integration OSCs in tmux DCS-passthrough #197 failed.@claudemention handler — not needed; the only desired use case is comprehensive PR reviews.issue_comment-triggered workflow that runs the comprehensive review when a maintainer comments anything containing both@claudeandreview(catches@claude review,@claude please review,Hey @claude can you review this PR?, etc.).How it works
@claudeandreview.author_associationmust beOWNER/MEMBER/COLLABORATOR. Outside contributors can't invoke it.claude[bot]via OAuth token, not the user's account.claude-opus-4-7.pr-review-comprehensive.ymlexample).Test plan
main, then comment@claude reviewon a follow-up PR and verify the workflow fires.claude[bot].@claude reviewis filtered out (no workflow run).