Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 2.69 KB

File metadata and controls

43 lines (34 loc) · 2.69 KB

Setting up Slack notifications

Beta This feature is currently in beta and may change in the future.

We're very much looking for input and feedback on this feature. You can either contact us directly, file an issue, or tweet at us.

Slack notifications are supported via webhooks. Webhooks are special URLs that Sourcegraph's Code Monitoring can call in order to send a message to a Slack channel when there are new search results for a query. In order to use Slack notifications, you must first create a Slack application in your organization's Slack workspace, add a webhook for a Slack channel within that application, and then configure a code monitor in Sourcegraph to use that webhook's URL.

Prerequisites

  • You must not have have the setting experimentalFeatures.codeMonitoringWebHooks disabled in your user, org, or global settings.
  • You must have permission to create apps inside of your organization's Slack workspace

Creating a Slack webhook

  1. Navigate to https://api.slack.com/apps and sign in to your Slack account if necessary.
  2. Click on the "Create an app" button.
  3. Create your app "From scratch".
  4. Give your app a name and select the workplace you want notifications sent to.