Skip to content

Commit de0a9ff

Browse files
ci: use local /review-pr skill for PR reviews (#331)
* ci: use local /review-pr skill for PR reviews Replace the external code-review plugin with the repo's own /review-pr skill, and upgrade pull-requests permission to write so the skill can post inline review comments via the GitHub API. Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> * ci: trigger review via @claude-review comment Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> * ci: use /claude-review as comment trigger Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> * ci: remove claude-code reviewer trigger, keep only /claude-review comment Co-Authored-By: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com> --------- Co-authored-by: Bohdan Ohorodnii <35969035+varex83@users.noreply.github.com>
1 parent a6dc4c1 commit de0a9ff

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
name: Claude Code Review
22

33
on:
4-
pull_request:
5-
types: [review_requested]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
4+
issue_comment:
5+
types: [created]
126

137
jobs:
148
claude-review:
15-
# Only run when a specific reviewer is requested (e.g., "claude-code" or specific team)
169
if: |
17-
contains(github.event.pull_request.requested_reviewers.*.login, 'claude-code') ||
18-
contains(github.event.pull_request.requested_teams.*.slug, 'claude-code')
10+
github.event.issue.pull_request != null &&
11+
contains(github.event.comment.body, '/claude-review')
1912
2013
runs-on: ubuntu-latest
2114
permissions:
2215
contents: read
23-
pull-requests: read
16+
pull-requests: write
2417
issues: read
2518
id-token: write
2619

@@ -50,8 +43,4 @@ jobs:
5043
with:
5144
anthropic_api_key: ${{ secrets.CLAUDE_CODE_API_KEY }}
5245
track_progress: true
53-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
54-
plugins: 'code-review@claude-code-plugins'
55-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
56-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
57-
# or https://code.claude.com/docs/en/cli-reference for available options
46+
prompt: '/review-pr ${{ github.event.pull_request.number || github.event.issue.number }}'

0 commit comments

Comments
 (0)