Repository navigation
feat(objects)!: Route typed GitHub references in messages through link cards - #3441
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
23 screenshot changes — 23 changed · 0 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots5 more changed screenshots in Frameshift. |
…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
Bot
force-pushed
the
feat/github-reference-cards-everywhere
branch
from
November 14, 2026 20:46
01d8920 to
99f9d27
Compare
BYK
approved these changes
Nov 14, 2026
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>
23 tasks done
This was referenced Nov 15, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
formatConversationEventTextran pluginformatMarkdownonly on Junior's replies and on provider Event summaries. User text showed as written, so a typedgetsentry/sentry#123stayed 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@U123Slack mention rewrite.formatMarkdownlinks everyowner/repo#Nto/issues/N, because it cannot tell an issue from a pull request without an API call. A link type could return only its one declaredobjectType, so for a pull request the issue link type gave up and the link showed the web page card. Link types now declareobjectTypes. 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.readToolthen namesgithub_getPullRequestfor that card.Breaking plugin API change.
PluginObjectLinkDefinition.objectTypeis nowobjectTypes, 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 withobjectLinksmust 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:via @BYK.
--
View Session [Sentry]