refactor: Comment on Claude review failures in PR workflow#410
Merged
ainsleyclark merged 1 commit intomainfrom Feb 7, 2026
Merged
refactor: Comment on Claude review failures in PR workflow#410ainsleyclark merged 1 commit intomainfrom
ainsleyclark merged 1 commit intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #410 +/- ##
==========================================
+ Coverage 64.59% 69.94% +5.35%
==========================================
Files 154 185 +31
Lines 6064 7394 +1330
==========================================
+ Hits 3917 5172 +1255
+ Misses 2064 2025 -39
- Partials 83 197 +114 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
<details>accordion so the PR timeline stays concise while exposing useful debugging info when needed.Description
Prepare Claude review failure commentstep to.github/workflows/pr.yamlthat builds acomment_bodyoutput containing an HTML marker and a<details>accordion with the best-available error text, conditional onsteps.claude-review.outcome == 'failure'andgithub.event_name == 'pull_request'.Comment on PRstep that uses the repository action./.github/actions/pr-commentto post or update the failure comment on the PR, passing the preparedcomment_bodyand the PR number.internal/templates/.github/workflows/pr.yaml.tmplusing{{ ghExpr }}and{{ ghSecret }}helpers so generated projects receive identical behaviour.<!-- claude-review-failure -->to enable idempotent updates/minimisation of previous failure comments.Testing
pnpm build, which failed due to Corepack being unable to downloadpnpmbecause of a proxy/403 error (network restriction).go run ../../main.go update, which failed because the Go 1.25.3 toolchain download was forbidden by the network proxy.go fmt ./..., which failed for the same Go toolchain download restriction.go test ./..., which failed for the same Go toolchain download restriction.Codex Task