Commit 9c4c065
[.github] Fix claude-review fork fetch — point origin to fork repo
claude-code-action@v1 unconditionally runs `git fetch origin <branch>`
even when the branch is already checked out locally. For fork PRs, the
branch doesn't exist on the base repo's origin.
Fix: after checking out the PR code, repoint origin to the fork's repo
URL so the action's internal fetch finds the branch. For same-repo PRs
this is a no-op. Existing refs (origin/main etc.) are preserved from
the initial checkout.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b9ff3b6 commit 9c4c065
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
0 commit comments