Openstatus www.openstatus.dev
at 4c0f4c00a38753a5d0dfd7e7b7b7706dec6f1503 42 lines 1.3 kB view raw
1name: Claude Code Review 2 3on: 4 pull_request: 5 types: [opened, synchronize, ready_for_review, reopened] 6 # Optional: Only run on specific file changes 7 # paths: 8 # - "src/**/*.ts" 9 # - "src/**/*.tsx" 10 # - "src/**/*.js" 11 # - "src/**/*.jsx" 12 13jobs: 14 claude-review: 15 # Optional: Filter by PR author 16 if: | 17 github.event.pull_request.author_association == 'MEMBER' || 18 github.event.pull_request.author_association == 'OWNER' 19 20 runs-on: ubuntu-latest 21 permissions: 22 contents: read 23 pull-requests: write 24 issues: read 25 id-token: write 26 27 steps: 28 - name: Checkout repository 29 uses: actions/checkout@v4 30 with: 31 fetch-depth: 0 32 33 - name: Run Claude Code Review 34 id: claude-review 35 uses: anthropics/claude-code-action@v1 36 with: 37 claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} 38 plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' 39 plugins: 'code-review@claude-code-plugins' 40 prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' 41 # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md 42 # or https://code.claude.com/docs/en/cli-reference for available options