Skip to content

Commit bee5b4e

Browse files
committed
ci: update claude code review workflow for improved compatibility
- DependabotによるPRの場合はワークフローをスキップする条件を追加 - 実行環境をubuntu-24.04に変更 - pull-requestsパーミッションをwriteに変更 - fetch-depthを50に増加 - Claude CLIのモデル指定を--model opusに変更 - ドキュメントURLを最新に更新
1 parent 0d01890 commit bee5b4e

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,24 @@ on:
1313
jobs:
1414
claude-review:
1515
# Optional: Filter by PR author
16+
if: github.actor != 'dependabot[bot]' # Dependabotの場合は認証が通らないのでスキップ。
1617
# if: |
1718
# github.event.pull_request.user.login == 'external-contributor' ||
1819
# github.event.pull_request.user.login == 'new-developer' ||
1920
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
2021

21-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-24.04
2223
permissions:
2324
contents: read
24-
pull-requests: read
25+
pull-requests: write
2526
issues: read
2627
id-token: write
2728

2829
steps:
2930
- name: Checkout repository
3031
uses: actions/checkout@v6
3132
with:
32-
fetch-depth: 1
33+
fetch-depth: 50
3334

3435
- name: Run Claude Code Review
3536
id: claude-review
@@ -52,7 +53,7 @@ jobs:
5253
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
5354
5455
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
55-
# or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
56+
# or https://code.claude.com/docs/en/cli-reference for available options
5657
claude_args: |
58+
--model opus
5759
--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"
58-
--model claude-opus-4-1

0 commit comments

Comments
 (0)