Skip to content

feat(python-cli-parity): post and update GitHub scan comments - #1769

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
jdalton/surf-2236-github-pr-comments
Open

John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
jdalton/surf-2236-github-pr-comments

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

Add separate, stable-marker GitHub PR comments for dependency overviews and security findings. Existing comments update on reruns, and each comment type has an independent suppression control.

@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Introduces live GitHub Issues API writes on PRs; behavior is narrow (comment upsert only) and covered by tests, but failed or partial API calls could affect CI feedback on pull requests.

Overview
Adds marker-based GitHub PR comment upserts so CI can post two stable comments—a dependency overview and a security findings list—that update in place on reruns instead of spamming new threads.

A new upsertPullRequestComment helper in github.mts paginates existing PR comments, matches by an HTML comment marker in the body, and either updates or creates the comment. publishPullRequestComments wires this for overview and security bodies with independent disableOverview / disableSecurity flags and skips posting when the body is empty. Render helpers turn a ScanReport into markdown for each comment type. Unit tests cover dual publish, per-type suppression, and the empty-body no-op case.

Reviewed by Cursor Bugbot for commit e01bb4f. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit e01bb4f. Configure here.

Comment thread src/commands/ci/publish-pr-comments.mts Resolved
Comment thread src/commands/ci/publish-pr-comments.mts Resolved
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2236-github-pr-comments branch from e01bb4f to 7054009 Compare November 25, 2026 19:02
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2236-github-pr-comments branch from 7054009 to 7cad8f1 Compare November 25, 2026 19:06
@jdalton John-David Dalton (jdalton) changed the title feat(python-cli-parity): upsert GitHub PR comments feat(python-cli-parity): post and update GitHub scan comments Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant