| title | Integrating GitHub with Slack | ||||||
|---|---|---|---|---|---|---|---|
| shortTitle | Integrate GitHub with Slack | ||||||
| intro | Learn how to integrate GitHub with Slack to improve collaboration and streamline workflows. | ||||||
| versions |
|
||||||
| topics |
|
||||||
| category |
|
The {% data variables.product.github %} integration for Slack gives you and your teams full visibility into your {% data variables.product.github %} projects directly in Slack channels. You can generate ideas, triage issues and collaborate with other teams to move projects forward, all without leaving Slack.
With the {% data variables.product.github %} integration for Slack, you can:
- Get {% data variables.product.github %} notifications in Slack channels.
- Use slash commands to take actions on {% data variables.product.github %}.
- Give your team context when sharing links to {% data variables.product.github %} activities and properties.
- Initiate a {% data variables.copilot.copilot_coding_agent %} session from Slack, using the context of a Slack thread.
{% data reusables.integrations.github-slack-permissions %}
To use the {% data variables.product.github %} integration for Slack, you need:
- A {% data variables.product.github %} account.
- A Slack workspace where you have permission to install apps.
{% ifversion not ghes %}
The {% data variables.product.github %} integration for Slack only needs to be installed once per workspace, and can be installed by anyone with admin permissions in the Slack workspace.
- Go to the {% data variables.product.github %} integration for Slack page.
- Click Add to Slack.
- If you're not already signed in to Slack, you'll be prompted to do so.
- Follow the prompts on screen to allow {% data variables.product.github %} access to your Slack workspace.
- Once the integration is installed, you can invite the {% data variables.product.github %} app to specific channels by typing
/invite @githubin the desired channel.
Installing the {% data variables.product.github %} integration for Slack on the Slack Enterprise Grid
If you are an admin or owner of a Slack Enterprise Grid organization, you can install the {% data variables.product.github %} integration for Slack across multiple workspaces in your organization.
- In your Slack Enterprise Grid settings, under "Integrations", click Install apps.
- Search for the {% data variables.product.github %} app.
- Click the ellipsis (...) to the right of the {% data variables.product.github %} app and select Add to more workspaces.
- Follow the prompts on screen to complete the installation.
{% endif %}
{% ifversion ghes %}
The {% data variables.product.github %} app in the Slack Marketplace cannot be used with {% data variables.product.prodname_ghe_server %}. Instead, you need to configure a private Slack app to connect your {% data variables.product.prodname_ghe_server %} instance to your Slack workspace.
-
Navigate to
YOUR-GHES-INSTANCE:8443and locate the "Chat integration" section. -
Select the "Enabling {% data variables.product.github %} Chat integration" checkbox.
-
Under "Select chat client", select "Slack".
-
In your browser, navigate to the Slack API: Applications page and click Generate Token and select the workspace where the app will be used.
-
Copy the generated token.
-
Go back to the "Chat integration" section in your {% data variables.product.prodname_ghe_server %} instance and paste the token into the "App configuration token" field.
-
Click Generate App.
-
Once the app is generated, click Save settings.
-
Navigate to either
<instancename>/_slack/orslack.<instancename>to install the app on your workspace. -
If the app needs to be installed across multiple workspaces, navigate to your app by clicking the "Slack app ID" link in the "Chat integration" section in your {% data variables.product.prodname_ghe_server %} instance.
- Navigate to the "Manage Distribution" section in your app settings.
- Select the "Remove hard coded information" checkbox, then click Activate Public Distribution
{% endif %}
- AUTOTITLE - Learn how to use the {% data variables.product.github %} integration for Slack.