Suppress duplicate review comments across successive reviews on the same PR #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Reviews 709, 710, 711 each restated the same observations on the same files. On a long-running PR with frequent force-pushes, the same advice multiplies on every push.
Desired behaviour: before posting a new line-attached comment, list the bot's prior comments on the PR. For each prospective comment matching
(path, position, body-similarity)of a prior one:Forgejo exposes resolution state on review comments via the
resolverfield on each comment object — non-null = resolved.Implementation: a pre-post filter in the orchestrator that fetches
/repos/{o}/{r}/pulls/{n}/reviews/*/commentsonce per dispatch, builds a fingerprint set keyed by(path, position, normalized_body), and drops collisions whose prior is unresolved.Risks: body-similarity is fuzzy; a strict equality check is safer initially even if it lets through near-duplicates with reworded prose. We can tighten later.