Feature Request: @codebot review-again Command #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Feature Request: @codebot review-again Command
Summary
Add a
@codebot review-againcommand that re-runs the AI code review on a pull request without requiring new commits, enabling faster iteration cycles and re-evaluation after comment-only changes.What problem does this solve?
Current Problem:
The AI review workflow only triggers automatically when:
pull_request.opened)pull_request.synchronize)Scenarios where developers need manual re-review:
.ai-review.ymland want to see new resultsCurrent Workaround (Painful):
User Pain:
User story / Use case
As a developer working on a pull request,
I want to manually trigger an AI re-review without creating new commits,
so that I can get updated feedback after addressing comments, fixing false positives, or updating configuration.
Example scenario 1: False Positive
API_URL = "https://api.example.com"@codebot review-againExample scenario 2: Configuration Change
.ai-review.ymlto adjust security rules@codebot review-againExample scenario 3: Comment-Only Response
@codebot review-againProposed solution
Implementation
Add a
@codebot review-againcommand that:.ai-review.yml)Example Output
Files to Modify
1.
tools/ai-review/config.ymlAdd command to allowed list:
2.
tools/ai-review/agents/pr_agent.pyAdd review-again functionality:
3.
.gitea/workflows/ai-comment-reply.ymlUpdate workflow to handle PR comments:
Alternatives considered
Alternative 1: Automatic Re-review on Comment
Alternative 2: Time-based Re-review
Example: Re-review PRs every 24 hours
Alternative 3: Webhook-based Trigger
External service triggers review via API
Alternative 4: GitHub Actions Manual Dispatch
Use
workflow_dispatcheventAlternative 5: Always Create New Comment
Instead of updating existing review
Acceptance criteria
@codebot review-againcommand triggers on PR commentsai-approved,ai-changes-required).ai-review.ymlconfiguration@codebot helpBackwards compatibility:
Impact
Complexity: LOW-MEDIUM
pr_agent.py,config.yml, workflow filesUser Impact: HIGH
Technical Impact:
Cost Impact:
Mockups / examples
Example 1: Standard Re-review
Example 2: After Config Change
Example 3: New Issues Found
Example 4: No Previous Review
Example 5: No Changes
Implementation Plan
Phase 1: Core Implementation (1 hour)
Add Command Handler (30 min)
review-againin PR commentsPRAgent.execute()routing_handle_review_again()Review Comparison Logic (30 min)
_parse_review_comment()- Extract previous findings_compare_reviews()- Diff old vs new_finding_key()- Create unique identifiersPhase 2: Formatting & Labels (30 min)
Format Review Update (15 min)
_format_review_update()- Template with diffLabel Management (15 min)
_update_pr_labels()- Remove old, add newPhase 3: Testing & Documentation (30 min)
Testing (20 min)
Documentation (10 min)
@codebot helpDependencies
Required:
Optional:
Related Issues/PRs
Success Metrics
Week 1 after deployment:
Month 1 after deployment:
Long-term:
Future Enhancements
v2.0 Features:
@codebot review-again --full- Re-review entire codebase context@codebot review-again --security-only- Only re-run security scanChecklist
Priority: ⭐ MEDIUM-HIGH - Quick win for developer experience
Milestone: Milestone 2 - UX & Discoverability
Estimated Effort: 1-2 hours
Value: HIGH
Complexity: LOW-MEDIUM
Risk: LOW
Key Features:
devto feature/review-again-command