Skip to content

Fix contributor reputation check comment deduping#2150

Merged
aaronpowell merged 2 commits into
mainfrom
aaronpowell-fix-reputation-comment-updates
Jun 29, 2026
Merged

Fix contributor reputation check comment deduping#2150
aaronpowell merged 2 commits into
mainfrom
aaronpowell-fix-reputation-comment-updates

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

The contributor reputation workflow was leaving repeated PR comments across runs, which made review threads noisy. This change makes the risk comment behavior idempotent so each PR keeps a single canonical AGT comment.

The workflow now collects all comments containing the AGT marker, updates the first match, and removes any duplicates. When risk is below MEDIUM, it deletes all matching marker comments so stale warnings do not remain.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes

N/A


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 29, 2026 00:11
@github-actions github-actions Bot added the workflow PR touches workflow automation label Jun 29, 2026
GitHub Advanced Security started work on behalf of aaronpowell June 29, 2026 00:11 View session
GitHub Advanced Security finished work on behalf of aaronpowell June 29, 2026 00:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the contributor reputation check workflow to make its “risk” PR/issue comment idempotent across runs, preventing repeated/duplicated AGT marker comments and reducing thread noise.

Changes:

  • Collect all existing comments that contain the AGT marker and choose the first as the canonical comment.
  • When risk is MEDIUM/HIGH, update the canonical comment and delete any duplicate marker comments.
  • When risk drops below MEDIUM, delete all marker comments to avoid leaving stale warnings behind.
Show a summary per file
File Description
.github/workflows/contributor-check.yml Adjusts the workflow’s comment sync logic to update one canonical AGT comment and remove duplicates (or delete all when risk is below MEDIUM).

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread .github/workflows/contributor-check.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 29, 2026 01:57
GitHub Advanced Security started work on behalf of aaronpowell June 29, 2026 01:57 View session
GitHub Advanced Security finished work on behalf of aaronpowell June 29, 2026 01:58
@aaronpowell aaronpowell merged commit 13a1dce into main Jun 29, 2026
16 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Low

@aaronpowell aaronpowell deleted the aaronpowell-fix-reputation-comment-updates branch June 29, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow PR touches workflow automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants