Skip to content

feat(objects)!: Route typed GitHub references in messages through link cards - #3441

Merged
BYK merged 2 commits into
mainfrom
feat/github-reference-cards-everywhere
Nov 14, 2026
Merged

BYK merged 2 commits into
mainfrom
feat/github-reference-cards-everywhere

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3429. GitHub references already became links in replies, and the dashboard resolved those links through the GitHub link types. Two paths still left that system:

  • References in a person's message. formatConversationEventText ran plugin formatMarkdown only on Junior's replies and on provider Event summaries. User text showed as written, so a typed getsentry/sentry#123 stayed plain text with no card, while a pasted URL in the same message got one. Now a person's message gets the same formatting as a reply. Raw Event text still shows as written, and only replies get the bare @U123 Slack mention rewrite.
  • Pull requests at issue URLs. formatMarkdown links every owner/repo#N to /issues/N, because it cannot tell an issue from a pull request without an API call. A link type could return only its one declared objectType, so for a pull request the issue link type gave up and the link showed the web page card. Link types now declare objectTypes. The GitHub issue link type declares ["task", "code_change"]. When the issues API says the number is a pull request, it reads the pulls API and returns the pull request card, with its draft and merge state. readTool then names github_getPullRequest for that card.

Breaking plugin API change. PluginObjectLinkDefinition.objectType is now objectTypes, a non-empty list. Core rejects a card whose type is not in the list. The Google, Notion, Sentry, and GitHub link types and the plugin docs are updated. A third-party plugin with objectLinks must rename the field.

This also fixes a strict TypeScript index access (params.number) in the GitHub link card test from #3429.

A person's message that types getsentry/junior#3429, which is a pull request, shows the pull request card on hover. The screenshot is from dashboard mock mode, with a local mock message and card that are not in this PR:

Typed PR reference in a user message with its pull request card

via @BYK.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 14, 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 Nov 14, 2026 8:46pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

23 screenshot changes — 23 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Show 12 more changed screenshots
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Event Log Virtual · Desktop
Conversation Event Log Virtual · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Memory List Jump · Desktop
Conversation Memory List Jump · Desktop
Changed
Conversation Memory List Jump · Mobile
Conversation Memory List Jump · Mobile
Changed
Conversation Object Links · Desktop
Conversation Object Links · Desktop
Changed
Conversation Object Links Light · Desktop
Conversation Object Links Light · Desktop
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed
Conversation Task Line · Desktop
Conversation Task Line · Desktop
Changed
Conversations Pinned · Desktop
Conversations Pinned · Desktop
Changed

5 more changed screenshots in Frameshift.

sentry-junior Bot and others added 2 commits November 14, 2026 20:41
…k cards

A person's message in the dashboard now gets the same plugin Markdown
formatting as a reply, so a typed `owner/repo#12` becomes a link that the
GitHub link types resolve to a card, like a pasted URL.

Link types now declare `objectTypes` instead of `objectType`. The GitHub
issue link type can return a pull request card, so a pull request at its
issue URL, such as a linked `owner/repo#12`, shows the pull request card
instead of the web page card.

BREAKING CHANGE: `PluginObjectLinkDefinition.objectType` is now
`objectTypes`, a non-empty list.

Also fixes the strict TypeScript index access in the GitHub link card test.

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot force-pushed the feat/github-reference-cards-everywhere branch from 01d8920 to 99f9d27 Compare November 14, 2026 20:46
@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 14, 2026 20:54
@sentry-junior
sentry-junior Bot requested a review from BYK November 14, 2026 20:54
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 14, 2026
@BYK
BYK merged commit 9b04877 into main Nov 14, 2026
48 checks passed
@BYK
BYK deleted the feat/github-reference-cards-everywhere branch November 14, 2026 22:26
BYK pushed a commit that referenced this pull request Nov 14, 2026
#3441 renamed a link type's `objectType` to an
`objectTypes` list. `readLinkObjectType`, added in
#3445, still reads `objectType`. The two merged close
together, so `main` no longer builds, the Inbox count finds no pull
requests, and review item subjects lose their `objectType`.

`readLinkObjectType` now names a type only when the link type that
claims the URL has exactly one. A `/pull/` URL is still a `code_change`.
A GitHub issue URL can open an issue or a pull request (`["task",
"code_change"]`), so it names no type from the URL alone.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A8541f171a3af567a3e793732efc8684f -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A8541f171a3af567a3e793732efc8684f)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8541f171a3af567a3e793732efc8684f/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant