Skip to content

Commit fe4210a

Browse files
authored
Session work\n\nAuto-commit at session end to preserve work in progress.\n\nSession-ID: b314e448-72e8-4e98-96f8-d61b76c836d1\nSession-Timestamp: 2026-01-04T16:48:33.504Z\nBranch: claude-proud-gopher-gpxsn7f5\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> (#15)
1 parent e6437e2 commit fe4210a

2 files changed

Lines changed: 24 additions & 15 deletions

File tree

.github/workflows/ci-pipeline.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ yarn-error.log*
4444
.claude/logs/
4545
.claude/settings.local.json
4646
.claude/*.local.*
47+
.claude/review-context/
4748

4849
# Lock files (keep bun.lock, ignore others)
4950
package-lock.json

0 commit comments

Comments
 (0)