File tree Expand file tree Collapse file tree 2 files changed +0
-52
lines changed Expand file tree Collapse file tree 2 files changed +0
-52
lines changed Original file line number Diff line number Diff line change 4242 ref : ${{ github.event_name == 'issue_comment' && steps.pr-details.outputs.pr_head_sha || github.ref }}
4343 fetch-depth : 0
4444
45- - name : Validate checkout (verification step)
46- run : |
47- echo "=== Workflow Checkout Validation ==="
48- echo "Event type: ${{ github.event_name }}"
49- if [ "${{ github.event_name }}" = "issue_comment" ]; then
50- echo "PR number: ${{ steps.pr-details.outputs.pr_number }}"
51- echo "Expected PR head SHA: ${{ steps.pr-details.outputs.pr_head_sha }}"
52- fi
53- echo "Checked out commit: $(git rev-parse HEAD)"
54- echo "Current branch/ref: $(git symbolic-ref HEAD 2>/dev/null || echo 'detached HEAD')"
55- echo "=== Validation Complete ==="
56-
57- # Verify we checked out the correct commit for PR comments
58- if [ "${{ github.event_name }}" = "issue_comment" ]; then
59- CURRENT_SHA=$(git rev-parse HEAD)
60- EXPECTED_SHA="${{ steps.pr-details.outputs.pr_head_sha }}"
61- if [ "$CURRENT_SHA" = "$EXPECTED_SHA" ]; then
62- echo "✅ SUCCESS: Checked out correct PR head commit"
63- else
64- echo "❌ ERROR: Checked out $CURRENT_SHA but expected $EXPECTED_SHA"
65- exit 1
66- fi
67- else
68- echo "✅ SUCCESS: Workflow dispatch - using default ref"
69- fi
70-
7145 - name : Run Claude Code Review
7246 id : claude-review
7347 uses : anthropics/claude-code-action@beta
Original file line number Diff line number Diff line change 4141 ref : ${{ github.event_name == 'issue_comment' && steps.pr-details.outputs.pr_head_sha || github.ref }}
4242 fetch-depth : 0
4343
44- - name : Validate checkout (verification step)
45- run : |
46- echo "=== Workflow Checkout Validation ==="
47- echo "Event type: ${{ github.event_name }}"
48- if [ "${{ github.event_name }}" = "issue_comment" ]; then
49- echo "PR number: ${{ steps.pr-details.outputs.pr_number }}"
50- echo "Expected PR head SHA: ${{ steps.pr-details.outputs.pr_head_sha }}"
51- fi
52- echo "Checked out commit: $(git rev-parse HEAD)"
53- echo "Current branch/ref: $(git symbolic-ref HEAD 2>/dev/null || echo 'detached HEAD')"
54- echo "=== Validation Complete ==="
55-
56- # Verify we checked out the correct commit for PR comments
57- if [ "${{ github.event_name }}" = "issue_comment" ]; then
58- CURRENT_SHA=$(git rev-parse HEAD)
59- EXPECTED_SHA="${{ steps.pr-details.outputs.pr_head_sha }}"
60- if [ "$CURRENT_SHA" = "$EXPECTED_SHA" ]; then
61- echo "✅ SUCCESS: Checked out correct PR head commit"
62- else
63- echo "❌ ERROR: Checked out $CURRENT_SHA but expected $EXPECTED_SHA"
64- exit 1
65- fi
66- else
67- echo "✅ SUCCESS: Workflow dispatch - using default ref"
68- fi
69-
7044 - name : Run Claude Code
7145 id : claude
7246 uses : anthropics/claude-code-action@beta
You can’t perform that action at this time.
0 commit comments