@@ -223,6 +223,9 @@ jobs:
223223 env :
224224 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
225225 run : |
226+ # Create review context directory
227+ mkdir -p .claude/review-context
228+
226229 BRANCH="${{ github.head_ref }}"
227230 echo "branch=$BRANCH" >> $GITHUB_OUTPUT
228231
@@ -233,11 +236,11 @@ jobs:
233236 echo "issue=$ISSUE" >> $GITHUB_OUTPUT
234237
235238 # Get changed files
236- gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files[].path' > /tmp /changed.txt
239+ gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files[].path' > .claude/review-context /changed.txt
237240
238241 # Get issue context
239242 if [ -n "$ISSUE" ]; then
240- gh issue view $ISSUE --json title,body > /tmp /issue.json 2>/dev/null || echo "{}" > /tmp /issue.json
243+ gh issue view $ISSUE --json title,body > .claude/review-context /issue.json 2>/dev/null || echo "{}" > .claude/review-context /issue.json
241244 fi
242245
243246 - name : Run review
@@ -250,8 +253,8 @@ jobs:
250253 prompt : |
251254 # Requirements Review
252255 Check if changes align with issue requirements.
253- - Changed files: /tmp /changed.txt
254- - Issue context: /tmp /issue.json
256+ - Changed files: .claude/review-context /changed.txt
257+ - Issue context: .claude/review-context /issue.json
255258 Output ```json {"passed": bool, "summary": "..."} ```
256259
257260 - name : Extract result
@@ -332,7 +335,9 @@ jobs:
332335 - name : Get changed files
333336 env :
334337 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
335- run : gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files[].path' > /tmp/changed.txt
338+ run : |
339+ mkdir -p .claude/review-context
340+ gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files[].path' > .claude/review-context/changed.txt
336341
337342 - name : Run review
338343 id : review
@@ -343,7 +348,7 @@ jobs:
343348 max_turns : 15
344349 prompt : |
345350 # Code Quality Review
346- Evaluate DRY, YAGNI, modularity for files in /tmp /changed.txt
351+ Evaluate DRY, YAGNI, modularity for files in .claude/review-context /changed.txt
347352 Output ```json {"passed": bool, "summary": "..."} ```
348353
349354 - name : Extract result
@@ -425,20 +430,23 @@ jobs:
425430 env :
426431 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
427432 run : |
428- gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files[].path' > /tmp/changed.txt
433+ # Create review context directory
434+ mkdir -p .claude/review-context
435+
436+ gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files[].path' > .claude/review-context/changed.txt
429437
430- > /tmp /claude_files.txt
438+ > .claude/review-context /claude_files.txt
431439 while IFS= read -r file; do
432440 dir=$(dirname "$file")
433441 while [ "$dir" != "." ]; do
434- [ -f "$dir/CLAUDE.md" ] && echo "$dir/CLAUDE.md" >> /tmp /claude_files.txt
442+ [ -f "$dir/CLAUDE.md" ] && echo "$dir/CLAUDE.md" >> .claude/review-context /claude_files.txt
435443 dir=$(dirname "$dir")
436444 done
437- [ -f "CLAUDE.md" ] && echo "CLAUDE.md" >> /tmp /claude_files.txt
438- done < /tmp /changed.txt
445+ [ -f "CLAUDE.md" ] && echo "CLAUDE.md" >> .claude/review-context /claude_files.txt
446+ done < .claude/review-context /changed.txt
439447
440- sort -u /tmp /claude_files.txt -o /tmp /claude_files.txt
441- COUNT=$(wc -l < /tmp /claude_files.txt | tr -d ' ')
448+ sort -u .claude/review-context /claude_files.txt -o .claude/review-context /claude_files.txt
449+ COUNT=$(wc -l < .claude/review-context /claude_files.txt | tr -d ' ')
442450 echo "count=$COUNT" >> $GITHUB_OUTPUT
443451
444452 - name : Run review
@@ -451,8 +459,8 @@ jobs:
451459 max_turns : 15
452460 prompt : |
453461 # Context Review
454- Check changes against CLAUDE.md files listed in /tmp /claude_files.txt
455- Changed files: /tmp /changed.txt
462+ Check changes against CLAUDE.md files listed in .claude/review-context /claude_files.txt
463+ Changed files: .claude/review-context /changed.txt
456464 Output ```json {"passed": bool, "summary": "..."} ```
457465
458466 - name : Extract result
0 commit comments