diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 7e13ae6..7192c6e 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -12,11 +12,12 @@ on: jobs: claude-review: - # Only run for organization members, owners, and collaborators + # Run for: organization members OR claude/ prefix branches from same repo if: | github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || - github.event.pull_request.author_association == 'COLLABORATOR' + github.event.pull_request.author_association == 'COLLABORATOR' || + (startsWith(github.event.pull_request.head.ref, 'claude/') && github.event.pull_request.head.repo.full_name == github.repository) runs-on: ubuntu-latest permissions: