Skip to main content

Slack App

The Slack app sends GitGazer alerts to Slack channels without any webhook URLs, and mentions the person behind a failed job when GitGazer knows who they are in Slack.

Install the App​

Requires admin role or higher.

  1. Open the integration and go to the Apps tab.
  2. On the Slack card, click Install.
  3. In Slack, pick the workspace and allow the app. You're redirected back to GitGazer.

An integration can use one Slack workspace. To switch to another workspace, remove the app first. The app can't be installed org-wide on Enterprise Grid; install it per workspace.

Several integrations can install the app into the same workspace. They share the installation and the links between people, so someone linked once is linked everywhere in that workspace.

Add Channels​

Rules send alerts to handles. For the Slack app, a handle is a channel.

  1. Open the Slack app on the Apps tab.
  2. Click Add channel, pick a channel from the list, and click Add channel again.
  3. The handle is named #channel-name. To change the name, rename the handle afterwards.

Public channels work right away. A private channel appears in the list only after someone runs /invite @GitGazer in it. An app holds up to 20 handles.

Rename or delete a handle from its actions menu. Rules that used a deleted handle show No destination and send nothing until you pick another one. In the rule editor, choose the Slack app, then the channel. See Destinations.

Adding, renaming, and deleting handles requires admin role or higher. Other members see the handles and their channels but can't change them.

Who Gets Mentioned​

Every alert sent through the Slack app mentions the person already named in its "by ..." line, the GitHub account that triggered the job, when that account is linked to a Slack user. Mentions don't change which alerts are sent. Alerts sent through the Webhook app never mention anyone.

GitGazer links people only by exact email match, never by name. A missed mention is acceptable; a wrong one is not. Deactivated users and bots never match. Links come from:

  • Sign-in. When someone signs in to GitGazer, their verified GitHub email addresses are looked up in the workspace.
  • Public profile email. When an alert names someone, GitGazer looks up the public email on their GitHub profile. This works for people who never use GitGazer, but only if the integration has a GitHub App installation.
  • Connect Slack. People can link themselves (see below).
No email addresses are stored

GitGazer looks emails up in Slack while it needs them and keeps only the resulting Slack user ID, or the fact that nobody was found. Members see whether someone is linked, never the Slack ID.

If a lookup fails, the alert is sent without a mention.

Connect Your Slack Account​

If your Slack email differs from your GitHub emails, link yourself:

  • Prompt. While you aren't linked, the integration page shows Connect your Slack account to get pinged on your failures. Click Connect Slack, or dismiss it (remembered in your browser).
  • Elsewhere. The same button is on your own row in the Members tab and in the Slack app's settings.

The button and the prompt are hidden while the Slack app is disconnected.

You sign in with Slack and pick the workspace the integration uses. Connecting to a different workspace is rejected. To undo it, click Disconnect Slack on your own row in the Members tab. A disconnect sticks: GitGazer won't link you again automatically until you connect again. The exception is removing the Slack app from the last integration that uses the workspace: that deletes the workspace's links, including your disconnect. If the app is reinstalled later, automatic matching may link you again until you disconnect again.

Only you can connect or disconnect your own account; admins can't link other people. The Slack app's settings show how many members are linked.

Move From Webhooks​

If the integration has Webhook handles for the same Slack workspace, both the Slack app's settings and the Webhook app's settings offer Move to Slack channels (also offered right after the install). The Webhook app only offers it while the integration has a connected Slack app.

  1. GitGazer lists the Webhook handles whose URL points to the installed workspace. Handles for other workspaces aren't offered.
  2. A webhook URL doesn't reveal its channel, so pick the target channel for each handle, or skip it.
  3. Confirm. For each handle, GitGazer creates (or reuses) the channel handle, points its rules to it, and deletes the Webhook handle. A handle that fails stays untouched and keeps sending through its webhook.
  4. GitGazer ends with a checklist of the old webhooks and a link to Slack's app management page.
Remove the old webhooks in Slack

GitGazer can't delete incoming webhooks in Slack. Until you remove them there, the old URLs still work, but GitGazer no longer uses them.

If no Webhook handles are left, you're offered to remove the Webhook app.

Requires admin role or higher.

Remove the App​

Click Remove Slack app in the Slack app's settings and confirm. Its channel handles are deleted, and their rules show No destination. If no other integration uses the workspace, GitGazer also revokes its Slack access and deletes the workspace's links, including everyone's Disconnect choice. If you reinstall the app later, automatic matching may link people again until they disconnect again.

Requires admin role or higher.

Disconnected State​

If the app is removed or revoked in Slack, GitGazer notices when an alert post fails because the token is no longer valid. Other failing calls, such as loading the channel list, just show an error and don't mark the workspace. The card then shows Disconnected — reinstall for every integration using that workspace, and each writes an event log entry. Alerts to its channels fail meanwhile. Reinstalling the app from any of them reconnects all, keeping handles and links. Private channels may need a new /invite @GitGazer.

What's Next​