Skip to content

fix(events): Link the Event doer to their Slack mention - #2250

Merged
BYK merged 2 commits into
mainfrom
fix/event-done-by-identity
Oct 27, 2026
Merged

BYK merged 2 commits into
mainfrom
fix/event-done-by-identity

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

PR review notifications could mention someone in Slack and then name them again by GitHub login, as if they were two people ("@BYK BYK approved …"). The identity link existed, but the event path only resolved people. The reviewer was only a raw login in trustedSummary.

Events can now carry an optional doneBy person in @sentry/junior-plugin-api. The GitHub review, review-comment, and comment normalizers set it from the GitHub login. Core resolves it through the same linked-identity lookup as people (an exact single match, never a guess). Then the task input adds a Done by: line. That line tells the agent the mention and the login are the same person. When that person is also in People involved, it tells the agent to write to them as "you" and not use the login again.

The field is doneBy, not actor, because TERMINOLOGY.md already uses Actor for the runtime participant of a source invocation.

Fixes #2248

via BYK.

--

View Junior Session in Sentry

GitHub review and comment Events now name the reviewer or commenter as
doneBy. Core resolves that person through linked identities, like Event
people, and tells the agent that the mention and the GitHub login are the
same person. When that person is also in People involved, the agent
writes to them as "you" instead of naming them again by login.

Fixes #2248

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 27, 2026 6:55pm UTC

Request Review

Fold the doneBy lookup into the Event people query, so one Event makes
one identity read and the ingest path has no parallel lookups.
@BYK
BYK merged commit 848cb9a into main Oct 27, 2026
44 checks passed
@BYK
BYK deleted the fix/event-done-by-identity branch October 27, 2026 19:19

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 79b21f58 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR review notifications refer to the reviewer by GitHub login even when they are the mentioned Slack user

1 participant