Commit 8eccbd9
Fix git diff to use reliable commit references
The previous approach used GitHub event SHAs that may not be available
in the repository. Updated to use:
- origin/main..HEAD for PRs (more reliable)
- Fallback to HEAD~1 for pushes when event.before is not available
- Added git cat-file check to verify commit existence before using it
This should fix the "Could not access" git errors and properly detect
changed directories for test execution.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 7431db7 commit 8eccbd9
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| |||
0 commit comments