Commit a129dea
fix: address Copilot review on PR #376 (round 6)
- claude.yml workflow-file pre-flight: detect `gh pr diff` failure
explicitly and fail-CLOSED. The previous `gh pr diff ... | grep -c
... || true` silently turned a fetch / auth error into
`touches_workflows=0` because the empty pipeline output makes
`grep -c` return 0 — defeating the pre-flight guard exactly when
it's most needed (transient API issues are when the workflow PR
most likely needs a clean decline). Now we capture `gh pr diff`'s
exit status; on failure we emit a `::warning` and set
`touches_workflows=1` so the workflow declines with the same
guidance comment as on a real workflow-file PR. Cron will not
retry blindly because the guidance comment is a non-`@claude`
kotakanbe comment, and the `already_triggered` check predates it.
Verification: GOWORK=off go build/vet ./... — green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 943ce37 commit a129dea
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
| |||
0 commit comments