Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Claude code review

on:
issue_comment:
types: [created]

permissions:
contents: read
id-token: write
pull-requests: write

cache-mode: none

jobs:
review:
# Trigger filter, not a security gate: the reusable workflow keeps all
# four gates and still enforces write access; the author_association
# check here is only a coarse pre-filter. The body match is exact on the
# two commands (plus a trailing-text form) so a near-miss comment like
# /reviews never claims the concurrency group and cancels a running
# review. Trade-off: a /review followed by a newline does not trigger.
if: >-
github.event.issue.pull_request &&
(github.event.comment.body == '/review' ||
startsWith(github.event.comment.body, '/review ') ||
github.event.comment.body == '/review-workflow' ||
startsWith(github.event.comment.body, '/review-workflow ')) &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
concurrency:
group: claude-review-${{ github.event.issue.number }}
cancel-in-progress: true
uses: yearn/yearn-gha/.github/workflows/claude-code-review.yml@17446bfb9e9c7911367379222fa5b7e3fff52fa3
Loading