Skip to content

feat(native): dedupe automated PR review comments (closes #94)#119

Merged
leo-aa88 merged 1 commit into
mainfrom
feat/issue-94-dedupe-pr-review-comments
May 29, 2026
Merged

feat(native): dedupe automated PR review comments (closes #94)#119
leo-aa88 merged 1 commit into
mainfrom
feat/issue-94-dedupe-pr-review-comments

Conversation

@leo-aa88
Copy link
Copy Markdown
Member

Summary

  • Extends tool.github.pull_request.post_comment with comment_strategy (replace default, append optional), upsert: true alias, and optional comment_id for direct PATCH.
  • replace lists issue comments on the PR, updates the comment containing <!-- agentic-review -->, or creates one comment with the marker — avoiding unbounded comment spam on synchronize.
  • Example workflows (pr-review-github-actions, pr-review-github) set comment_strategy: replace; docs updated in docs/GITHUB_ACTIONS.md.

Test plan

  • go test ./internal/tools/native/... -race (append, replace create/update, comment_id, invalid strategy, upsert alias)
  • make check (full repo vet + race tests)
  • Integration: TestCLI_PrReviewGithubApprovedLiveComment stub handles list + POST

Closes #94

Made with Cursor

Issue comments from pull_request.post_comment now default to comment_strategy
replace: list issue comments, PATCH the body containing <!-- agentic-review -->,
or POST once with the marker embedded. Supports append, upsert alias, and
comment_id for direct updates. Example workflows and GITHUB_ACTIONS docs updated.

Closes #94

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions
Copy link
Copy Markdown

ReviewGate [PASS] PASS

Stats

  • Files changed: 11
  • Raw LOC changed: 623
  • LOC after §10.4 exclusions (human_loc_changed): 623
  • PR author class: human (human collaborator account) — login leo-aa88 (§10.4.2).

Warnings (1)

  • medium many_config_files -- This PR touches 2 config files, at or above the warning threshold of 1 (config_files_changed).

Suggested labels: reviewability-pass, config-change

File categories: 11 files (0 risky)

@github-actions
Copy link
Copy Markdown

Automated review

Summary

The pull request introduces a mechanism to deduplicate automated PR review comments, enhancing maintainability.

Findings

  • No issues found.

@leo-aa88 leo-aa88 merged commit 4141e1d into main May 29, 2026
7 checks passed
@leo-aa88 leo-aa88 deleted the feat/issue-94-dedupe-pr-review-comments branch May 29, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deduplicate / update automated PR review comments (Actions + post_comment)

1 participant