Skip to content

Commit fbaa8c6

Browse files
authored
Rename step to fetch PR head and update fetch command
1 parent 5190918 commit fbaa8c6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ jobs:
6868
with:
6969
fetch-depth: 0
7070

71-
- name: Fetch PR branch
71+
- name: Fetch PR head
7272
shell: bash
7373
env:
74-
PR_HEAD_REF: ${{ steps.mode.outputs.pr_head_ref }}
74+
PR_NUMBER: ${{ steps.mode.outputs.pr_number }}
7575
run: |
7676
set -euo pipefail
77-
git fetch origin "$PR_HEAD_REF"
77+
# Fetch the PR merge ref — works for both same-repo and fork PRs
78+
# (fork branches don't exist on origin, but pull/<n>/head always does)
79+
git fetch origin "pull/${PR_NUMBER}/head"
7880
7981
- name: Resolve review state
8082
id: state

0 commit comments

Comments
 (0)