Skip to content

Commit 0d19325

Browse files
ymc9Copilot
andauthored
chore: update Claude code review wf (#2444)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
1 parent 87a9f7f commit 0d19325

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212

1313
jobs:
1414
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
15+
if: ${{ github.event.pull_request.head.repo.fork == false }}
2116
runs-on: ubuntu-latest
2217
permissions:
2318
contents: read
@@ -33,6 +28,7 @@ jobs:
3328

3429
- name: Run Claude Code Review
3530
id: claude-review
31+
if: ${{ !contains(github.event.pull_request.title, '[WIP]') }}
3632
uses: anthropics/claude-code-action@beta
3733
with:
3834
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
@@ -71,7 +67,3 @@ jobs:
7167
# Optional: Add specific tools for running tests or linting
7268
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
7369

74-
# Optional: Skip review for certain conditions
75-
# if: |
76-
# !contains(github.event.pull_request.title, '[skip-review]') &&
77-
# !contains(github.event.pull_request.title, '[WIP]')

0 commit comments

Comments
 (0)