Merge pull request #416 from lfnovo/fix/claude-workflow-fork-prs
fix: allow claude code review workflow to run on PRs from forks
This commit is contained in:
commit
dfc7235064
1 changed files with 4 additions and 0 deletions
4
.github/workflows/claude-code-review.yml
vendored
4
.github/workflows/claude-code-review.yml
vendored
|
|
@ -3,6 +3,8 @@ name: Claude Code Review
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, ready_for_review, reopened]
|
types: [opened, synchronize, ready_for_review, reopened]
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, synchronize, ready_for_review, reopened]
|
||||||
# Optional: Only run on specific file changes
|
# Optional: Only run on specific file changes
|
||||||
# paths:
|
# paths:
|
||||||
# - "src/**/*.ts"
|
# - "src/**/*.ts"
|
||||||
|
|
@ -29,7 +31,9 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Run Claude Code Review
|
- name: Run Claude Code Review
|
||||||
id: claude-review
|
id: claude-review
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue