You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take note that your private key should be a multiline string without any whitespace before the start of a new line of the key.
130
+
131
+
## Link Unfurling
132
+
133
+
Link unfurling allows Sentry to display rich previews of Sentry links when they're shared in GitHub (such as in pull request descriptions, issue comments, or commit messages). This provides context about Sentry issues directly within GitHub without requiring users to click through.
134
+
135
+
### Overview
136
+
137
+
When a user shares a Sentry link in GitHub, the integration should:
138
+
139
+
1. Detect the shared Sentry link via GitHub webhooks
140
+
2. Parse the link to extract the issue/event ID
141
+
3. Fetch relevant data from Sentry's API
142
+
4. Return formatted preview data to GitHub
143
+
144
+
### Implementation Steps
145
+
146
+
#### 1. Configure Webhook Events
147
+
148
+
Ensure your GitHub App is subscribed to events that include link sharing. While GitHub doesn't have a direct "link_shared" event like Slack, you can detect links in:
149
+
150
+
- Pull request descriptions and comments
151
+
- Issue comments
152
+
- Commit messages
153
+
154
+
The relevant webhook events are already configured if you followed the setup above:
155
+
- `pull_request`- Captures links in PR descriptions
156
+
- `issue_comment`- Captures links in comments
157
+
- `push`- Captures links in commit messages
158
+
159
+
#### 2. Add Link Detection Logic
160
+
161
+
In your webhook handler, add logic to detect Sentry URLs in the incoming payload:
Copy file name to clipboardExpand all lines: docs/organization/integrations/source-code-mgmt/github/index.mdx
-13Lines changed: 0 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -353,19 +353,6 @@ Sentry will comment on the pull request with up to five issues per file that wer
353
353
354
354
This feature requires [code mappings](/product/issues/suspect-commits/#2-set-up-code-mappings) and is currently only supported for Python, JavaScript/TypeScript, PHP, and Ruby files. If you're using a different language, [let us know on this GitHub ticket](https://github.com/getsentry/sentry/issues/69824). For JavaScript/TypeScript, please ensure that you've unminified your code by [setting up source maps](/platforms/javascript/sourcemaps/).
355
355
356
-
### Link Unfurling
357
-
358
-
When you share Sentry issue links in GitHub (such as in pull request descriptions, issue comments, or commit messages), Sentry can automatically unfurl these links to display rich previews with key issue details. This makes it easier to understand the context of the issue without leaving GitHub.
359
-
360
-
The link preview includes:
361
-
362
-
- Issue title and description
363
-
- Issue status and priority
364
-
- Error count and user impact
365
-
- Link to view the full issue in Sentry
366
-
367
-
This feature is automatically enabled once your GitHub integration has been set up and Sentry detects links shared in your GitHub repositories.
368
-
369
356
### Missing Member Detection
370
357
371
358
If there are users committing to GitHub repositories linked to Sentry and they're not members of your organization, Sentry detects them as missing members. Once a month, Sentry sends organization owners and managers an email reminding them to invite those users to join their org. Sentry also shows a banner to invite missing members in the **Settings > Members** page.
0 commit comments