You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable PR comment upsert and fix UTF-8 truncation (#411)
## Summary
CI review comments are always created as new comments. This adds an
opt-in `ci.upsert_comments` setting that finds the existing roborev
marker comment and patches it in-place instead.
- Add `ci.upsert_comments` config (global and per-repo, default false)
- Add `FindExistingComment`, `UpsertPRComment`, and `CreatePRComment` in
`internal/github`
- Fall back to creating a new comment when PATCH returns 403/404 (token
mismatch)
- Target the newest marker comment to reduce fallback churn
- Fix UTF-8 truncation: replace `utf8.ValidString` full-string scan with
boundary-only `TrimPartialRune`
- Propagate caller context through `postCIComment` for Ctrl+C
cancellation
### Config
```toml
# Global (~/.roborev/config.toml)
[ci]
upsert_comments = true
# Per-repo (.roborev.toml) — overrides global
[ci]
upsert_comments = false
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Wes McKinney <wesmckinn+git@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments