← Docs

Sentry integration

Last updated .

What does the MergeSafe Sentry integration do?

It receives your Sentry projects’ new and regressed issues and, for each project, opens a GitHub issue in a repository you choose, lists the errors in the MergeSafe app, or ignores them. MergeSafe can also analyze each error against that repository’s code and add the possible causes to the GitHub issue, and, if you turn it on, try to fix it in a pull request.

It is being opened to organizations gradually. If the Integrations page in the app shows Sentry as coming soon, it isn’t on for your organization yet.

What it does

While GitHub Issues is off, or the Sentry page is set to MergeSafe only, no GitHub issue is opened for any project, including one you pinned to a repository in the projects table: its errors are listed in the app. The pin is kept and applies again once GitHub Issues is on.

Each Sentry project is matched to a repository from the error itself (its in-app stack frame paths and any repository Sentry names). You can pin a project to a repository, list it in the app or ignore it; a default repository for GitHub issues covers projects MergeSafe hasn’t matched to a repository yet (their errors aren’t analyzed automatically until you link the project). A project whose errors name a repository MergeSafe isn’t connected to is listed in the app instead, until you pick a repository for it.

It doesn’t link errors to existing pull requests or review findings.

How does a Sentry fix work?

What it costs

How do I install it?

You need a MergeSafe organization with the GitHub App installed, and you must be an Admin of it. In Sentry you need permission to install integrations.

From MergeSafe:

  1. In app.mergesafe.ai, open your organization’s Integrations page and click Install on Sentry on the Sentry card.
  2. Sentry opens its install page for MergeSafe. Pick your Sentry organization and approve read-only access to issues, events and your organization’s projects.
  3. Sentry sends you back to the app, which shows Installed from Sentry with your Sentry organization. Nothing to copy or paste.

From Sentry:

  1. Install MergeSafe from Sentry’s integration directory and approve the same read-only access.
  2. Sentry sends you to MergeSafe. Sign in with GitHub and pick the MergeSafe organization to connect. You must be its Admin, and you have 10 minutes.

MergeSafe checks with Sentry that the install is for the Sentry organization it showed you, and only the browser that came back from Sentry can finish it.

One Sentry install links to one MergeSafe organization; an install already linked to another organization is refused.

What permissions does it request, and why?

How do I set it up in the app?

After installing, on the Sentry card in app.mergesafe.ai:

  1. Under Where new errors go, pick GitHub Issues (the default: issues open while your organization’s GitHub Issues switch is on; the page says which, and links to it), Your Sentry issue tracker (Jira / Linear), MergeSafe only or Off. Your Sentry issue tracker works like GitHub Issues, except that an error Sentry already linked to a Jira or Linear ticket is listed in MergeSafe with its ticket instead of opening a GitHub issue. It needs Sentry’s own Jira or Linear integration installed, so Sentry links the tickets.
  2. Optionally pick a Default repository for GitHub issues, used only for a project MergeSafe can’t match to a repository yet. Errors from such a project open issues there but aren’t analyzed automatically until you link the project to its repository; Analyze now on an error’s row still runs one by hand.
  3. In the projects table, change any project’s choice: a repository, the app, or ignore. Projects appear there as their first error arrives.
  4. Leave Analyze each new error on, or turn it off.
  5. Click Save, then trigger a test error in a Sentry project. It shows under Recent errors within a minute.

Only organization Admins can change these settings.

Custom integration: connect an internal integration

Until the MergeSafe app for Sentry is approved, or if you use self-hosted Sentry, connect a Sentry Internal Integration instead (the app shows these steps under “Option 2: Custom integration”, with a button that copies them for your AI agent):

  1. In Sentry, create an Internal Integration.
  2. Paste in the webhook URL that MergeSafe shows.
  3. Set Issue & Event to Read and Organization to Read, leave everything else at No Access, tick the issue webhook, and leave Alert Action off.
  4. Paste the integration’s Client Secret into MergeSafe.
  5. Trigger a test error. It should appear under Recent errors.

What data does it read, and how long is it kept?

Related: Security and data retention, Subprocessors.

How do I uninstall it?

Support

Questions or problems with the Sentry integration: support@mergesafe.ai. For data and privacy requests: privacy@mergesafe.ai.

Changelog

Next: Slack integration →