← 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 analyse each error against that repository’s code and add the possible causes to the GitHub issue.

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 pull requests or review findings.

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.

You can start from either side.

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 and events.
  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. Open MergeSafe in Sentry’s integration directory, or go to sentry.io/sentry-apps/mergesafe/external-install/. Pick your Sentry organization and approve read-only access to issues and events.
  2. Sentry sends you to MergeSafe. Sign in with GitHub if you aren’t already.
  3. Choose the MergeSafe organization to connect and click Connect Sentry. You must be an Admin of that organization. Finish within 15 minutes, or install again.

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 errors go by default, pick Follow GitHub Issues (the default: issues open while your organization’s GitHub Issues switch is on; the page says which, and links to it), Show in MergeSafe only or Off.
  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.

Self-hosted Sentry: connect an internal integration

If you can’t install from sentry.io, connect a Sentry Internal Integration instead (the app shows these steps under “Self-hosted Sentry?”):

  1. In Sentry, create an Internal Integration.
  2. Paste in the webhook URL that MergeSafe shows.
  3. Set Issue & Event to Read, 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: Data retention and encryption →