fix(reviewer): suggest @bot retry in the failure comment #66
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
brooktrails/pr-reviewer!66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/retry-suggestion-on-failure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The whole point of adding the retry command was so users could
recover from transient failures without re-assigning the bot as
reviewer, but the failure comment never told them the command
existed. Add the suggestion right next to the tracking id.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Automated review by pr-reviewer v0.29.0 | Safety Check | Mistral Small | tracking id
r-1a89f4-6148c6This is an AI-generated review and may contain mistakes.
Status: ❌ Failed
Review failed. Tracking id
r-1a89f4-6148c6— see logs for details.Automated review by pr-reviewer v0.29.0 | Full Review | Mistral Small | tracking id
r-1aceb9-890b1aThis is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: Approve — The change is minimal, correct, and aligns with project goals, addressing a clear user experience gap.
Code Review: PR #66 - fix(reviewer): suggest @bot retry in the failure comment
Overview
This PR adds a single line to the failure comment template in
internal/runner/runner.goto suggest users retry a failed review using the@bot retrycommand. The change directly addresses the PR description's goal of making the retry command discoverable to users.Strengths
Concerns
updateFailedCommentfunction. However, this is consistent with the broader codebase, where therunnerpackage lacks comprehensive test coverage. This could be addressed in a follow-up PR.@bot retrycommand, it might be helpful to document it in project guidance files (e.g.,CLAUDE.md). However, this is not a requirement for merging this PR.Detailed Observations
Bugs or Logic Errors
Security Vulnerabilities
Breaking Changes
Error Handling and Edge Cases
Performance Concerns
Architecture and Design
@bot retrycommand mechanism.Test Coverage Gaps
updateFailedCommentfunction is not tested, and the broaderrunnerpackage lacks comprehensive test coverage. However, this is a pre-existing issue and not introduced by this PR.Readability and Maintainability
r.BotUsername, which is consistent with other user-facing strings.Recommendation
Approve — This is a well-executed, minimal change that addresses a clear user experience gap. No blocking issues were found. The PR is ready to merge as-is.
Optional Follow-ups
updateFailedCommentin a future PR.@bot retrycommand in project guidance files (e.g.,CLAUDE.md).📚 Context used in this review
Project guidance files:
CLAUDE.mdRepository fragments:
internal/runner/format.go(extract failed; whole-file fallback) — extracted in answer to: "the definitions of HeaderFailed, HeaderPending, HeaderSkipped, and TrackingIDMD, including how they construct their messages and when they include DashboardBaseURL links"