refactor(code-review): add checkpoint for empty git changes and exclude ignored files
Step-01 substeps 5: - If no git changes detected: halt and ask user "Continue anyway?" Allows AC audit on story File List even if no code changes in git - Exclude git-ignored files from discrepancy comparison Prevents false positives if story modified only ignored files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
71a1c325f7
commit
e479b4164c
|
|
@ -78,12 +78,21 @@ Compile `git_changed_files` = union of modified, staged, new, deleted, and renam
|
||||||
|
|
||||||
### 5. Cross-Reference Story vs Git
|
### 5. Cross-Reference Story vs Git
|
||||||
|
|
||||||
Compare {story_file_list} with {git_changed_files}:
|
**If {git_changed_files} is empty:**
|
||||||
|
|
||||||
|
Ask user: "No git changes detected. Continue anyway?"
|
||||||
|
|
||||||
|
- If **no**: HALT the workflow
|
||||||
|
- If **yes**: Continue to comparison
|
||||||
|
|
||||||
|
**Compare {story_file_list} with {git_changed_files}:**
|
||||||
|
|
||||||
|
Exclude git-ignored files from the comparison (run `git check-ignore` if needed).
|
||||||
|
|
||||||
Set `git_discrepancies` with categories:
|
Set `git_discrepancies` with categories:
|
||||||
|
|
||||||
- **files_in_git_not_story**: Files changed in git but not in story File List
|
- **files_in_git_not_story**: Files changed in git but not in story File List
|
||||||
- **files_in_story_not_git**: Files in story File List but no git changes
|
- **files_in_story_not_git**: Files in story File List but no git changes (excluding git-ignored)
|
||||||
- **uncommitted_undocumented**: Uncommitted changes not tracked in story
|
- **uncommitted_undocumented**: Uncommitted changes not tracked in story
|
||||||
|
|
||||||
### 6. Load Project Context
|
### 6. Load Project Context
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue