Commit graph

3 commits

Author SHA1 Message Date
Peter Steinberger
c8234ded90 Improve Claude comment cleanup to use GitHub's minimizeComment mutation
- Replace manual comment editing with GitHub's native minimizeComment GraphQL mutation
- Provides cleaner UI with "This comment has been minimized" instead of custom details/summary
- Keep fallback to original approach if GraphQL mutation fails
- Maintains same categorization logic for reviews, errors, and status comments
2025-06-28 15:22:05 +02:00
Peter Steinberger
520c3ea443 Update Claude cleanup script to delete error comments
- Error comments are now deleted instead of collapsed
- Only successful reviews and status comments are collapsed
- This keeps the PR comments cleaner by removing failed attempts
2025-06-28 15:22:05 +02:00
Peter Steinberger
c24749458c Fix Claude bot creating multiple PR comments
- Add automatic cleanup of old Claude comments after each review
- Create reusable cleanup script that intelligently handles different comment types
- Keep only the most recent successful review visible
- Collapse (not delete) old reviews, errors, and status messages
- Add manual cleanup workflow that can be triggered or run on schedule
- Preserve comment history while keeping PRs readable

This solves the issue where Claude creates new comments instead of updating
existing ones, since the anthropics/claude-code-action@beta doesn't support
comment updates natively.
2025-06-28 15:22:05 +02:00