Skip to content

Stop posting a first status comment on untracked closed pull requests - #223

Merged
trask merged 1 commit into
open-telemetry:mainfrom
trask:trask-fix-status-comment-on-untracked-closed-p
Aug 4, 2026
Merged

Stop posting a first status comment on untracked closed pull requests#223
trask merged 1 commit into
open-telemetry:mainfrom
trask:trask-fix-status-comment-on-untracked-closed-p

Conversation

@trask

@trask trask commented Aug 4, 2026

Copy link
Copy Markdown
Member

The dashboard posted its first status comment on open-telemetry/semantic-conventions#3889 on 2026-08-04, announcing Merged on a pull request that had merged on 2026-07-17. A review comment arrived on the already-merged pull request, and that was enough to make the dashboard introduce itself on a thread it had never been part of.

After this change, a pull request that the dashboard was not already commenting on stays quiet once it is closed or merged. Pull requests it was tracking still get their existing comment moved to Merged or Closed as before.

A `pull_request_review` webhook for a pull request that merged weeks ago
still dispatches a targeted refresh. `build_pr_result` returns `None` for
a closed pull request, and `merge_dashboard_update_with_latest_state`
then reported a state change even when the pull request had never been
in the dashboard cache, so there was nothing to drop. That queued a
status comment, and `upsert_status_comment` created one, announcing
"Merged" on a pull request the dashboard had never commented on.

Report no change when nothing was cached for the pull request, and never
create a status comment for a terminal state. A terminal status only
exists to move an already published comment to its final state.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ca21dec5-33e3-4724-b588-a70626f5435d
@trask
trask requested a balanced review from Copilot August 4, 2026 14:05

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

Prevents first-time dashboard status comments from being posted on already-closed, untracked pull requests while preserving final updates for tracked PRs.

Changes:

  • Treats removal of an uncached PR as an unchanged dashboard state.
  • Adds an option to update status comments without creating them.
  • Prevents terminal PR states from creating new comments and adds regression tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
dashboard.py Avoids reporting changes when a closed PR was never cached.
pr_status_comment.py Updates existing terminal comments without creating new ones.
test_dashboard.py Tests tracked and untracked closed-PR merge behavior.
test_pr_status_comment.py Tests creation suppression and terminal/open publishing behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 4, 2026

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-08-04 18:28 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@trask
trask marked this pull request as ready for review August 4, 2026 14:09
@trask
trask requested a review from a team as a code owner August 4, 2026 14:09
@trask
trask requested a review from maryliag August 4, 2026 14:09
@trask
trask merged commit 9442580 into open-telemetry:main Aug 4, 2026
6 checks passed
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.

3 participants