Skip to content

Patching the comment with the check results over creating a new one#1637

Merged
aaronpowell merged 3 commits into
stagedfrom
patch-comment
May 7, 2026
Merged

Patching the comment with the check results over creating a new one#1637
aaronpowell merged 3 commits into
stagedfrom
patch-comment

Conversation

@aaronpowell
Copy link
Copy Markdown
Contributor

Avoids spamming multiple comments

Copilot AI review requested due to automatic review settings May 6, 2026 23:34
@github-actions github-actions Bot added the workflow PR touches workflow automation label May 6, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the contributor reputation check workflow to avoid creating multiple “risk” comments by reusing (patching) a single bot comment, helping keep PR/issue threads cleaner.

Changes:

  • Replace “comment on risk” behavior with a “sync risk comment” step that patches an existing marker comment or creates it once.
  • Replace “add risk label” behavior with a “sync risk label” step that removes stale risk labels and applies the current one.
  • Remove PR-vs-issue branching for comment/label operations by using the Issues API endpoints for both.
Show a summary per file
File Description
.github/workflows/contributor-check.yml Sync a single marker comment and corresponding needs-review label instead of creating new ones each run.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 3

Comment thread .github/workflows/contributor-check.yml
Comment thread .github/workflows/contributor-check.yml Outdated
Comment thread .github/workflows/contributor-check.yml Outdated
aaronpowell and others added 2 commits May 7, 2026 10:01
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@aaronpowell aaronpowell merged commit 9aa4f61 into staged May 7, 2026
4 checks passed
@aaronpowell aaronpowell deleted the patch-comment branch May 7, 2026 00:02
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