Signed-off-by: Meredith Lancaster <malancas@users.noreply.github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com> Co-authored-by: Felicity Chapman <felicitymay@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: AlonaHlobina <54394529+AlonaHlobina@users.noreply.github.com> Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> Co-authored-by: Jules <19994093+jules-p@users.noreply.github.com> Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> Co-authored-by: Kelly Arwine <kellyarwine@github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> Co-authored-by: Jon Janego <jonjanego@github.com> Co-authored-by: Jules Porter <jules-p@users.noreply.github.com> Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: Laurenzo <lsto@github.com> Co-authored-by: Sam Browning <106113886+sabrowning1@users.noreply.github.com> Co-authored-by: Vanessa <vgrl@github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com> Co-authored-by: Claire W <78226508+crwaters16@users.noreply.github.com> Co-authored-by: Felix Guntrip <guntrip@github.com> Co-authored-by: James Fletcher <42464962+jf205@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com> Co-authored-by: Tim Rogers <timrogers@github.com> Co-authored-by: docs-bot <77750099+docs-bot@users.noreply.github.com> Co-authored-by: Guillaume Perrot <guperrot@github.com> Co-authored-by: Mark Tareshawty <tarebyte@github.com> Co-authored-by: Hirsch Singhal <1666363+hpsin@users.noreply.github.com> Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com> Co-authored-by: Sunbrye Ly <56200261+sunbrye@users.noreply.github.com> Co-authored-by: PJ Quirk <pjquirk@github.com> Co-authored-by: Steve Ward <steveward@github.com> Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: SiaraMist <siaramist@github.com> Co-authored-by: Tomoko Tanaka <28242405+tallzeebaa@users.noreply.github.com> Co-authored-by: a1exmozz <187176404+a1exmozz@users.noreply.github.com> Co-authored-by: Meredith Lancaster <malancas@users.noreply.github.com> Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> Co-authored-by: Andy Barnes <kurgol@github.com> Co-authored-by: Sheena Ganju <sheenyg@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sydney Wilson <86739163+swilson15@users.noreply.github.com> Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com> Co-authored-by: Vimala Moger <166641453+VimalaMoger@users.noreply.github.com> Co-authored-by: Sharra-writes <sharra-writes@github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jenni C <97056108+dihydroJenoxide@users.noreply.github.com> Co-authored-by: Greg Mondello <72952982+gmondello@users.noreply.github.com> Co-authored-by: Mia Arts <107727642+its-mia@users.noreply.github.com> Co-authored-by: sunbrye <sunbrye@github.com> Co-authored-by: Lorenz Vanthillo <lorenz.vanthillo@gmail.com> Co-authored-by: Eboni <32157169+EboniLM@users.noreply.github.com> Co-authored-by: Junko Suzuki <pnsk@github.com> Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com> Co-authored-by: heiskr <1221423+heiskr@users.noreply.github.com> Co-authored-by: Patrick Knight <patrick-knight@github.com> Co-authored-by: T. Greg Doucette <58960990+LawDevNull@users.noreply.github.com> Co-authored-by: Evan Bonsignori <ebonsignori@github.com> Co-authored-by: Robert Justin Monzingo <robertjmonzingo@gmail.com> Co-authored-by: John Coleman <thenewcoke@gmail.com> Co-authored-by: Brendan Scott-Smith <117171930+bss-mc@users.noreply.github.com> Co-authored-by: Chad Bentz <1760475+felickz@users.noreply.github.com> Co-authored-by: Justin Alex <1155821+jusuchin85@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: azenMatt <7584089+azenMatt@users.noreply.github.com> Co-authored-by: Felix Guntrip <stevecat@github.com> Co-authored-by: timrogers <116134+timrogers@users.noreply.github.com> Co-authored-by: John Clement <70238417+jclement136@users.noreply.github.com> Co-authored-by: vaindil <vaindil@github.com> Co-authored-by: Matthew Isabel <matthewisabel@github.com> Co-authored-by: Matthew Isabel <matthew.isabel@gmail.com>
81 lines
4.5 KiB
Markdown
81 lines
4.5 KiB
Markdown
---
|
|
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:
|
|
fpt: '*'
|
|
ghes: '*'
|
|
ghec: '*'
|
|
topics:
|
|
- Integration
|
|
|
|
---
|
|
|
|
## About the {% data variables.product.github %} integration for Slack
|
|
|
|
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 %}
|
|
|
|
## Prerequisites
|
|
|
|
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 %}
|
|
|
|
## Installing the {% data variables.product.github %} integration for Slack in a single workspace
|
|
|
|
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.
|
|
|
|
1. Go to the [{% data variables.product.github %} integration for Slack](https://slack.github.com/) page.
|
|
1. Click **Add to Slack**.
|
|
1. If you're not already signed in to Slack, you'll be prompted to do so.
|
|
1. Follow the prompts on screen to allow {% data variables.product.github %} access to your Slack workspace.
|
|
1. Once the integration is installed, you can invite the {% data variables.product.github %} app to specific channels by typing `/invite @github` in 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.
|
|
|
|
1. In your Slack Enterprise Grid settings, under "Integrations", click **Install apps**.
|
|
1. Search for the {% data variables.product.github %} app.
|
|
1. Click the ellipsis (**...**) to the right of the {% data variables.product.github %} app and select **Add to more workspaces**.
|
|
1. Follow the prompts on screen to complete the installation.
|
|
|
|
{% endif %}
|
|
|
|
{% ifversion ghes %}
|
|
|
|
## Installing the {% data variables.product.github %} integration for Slack
|
|
|
|
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.
|
|
|
|
1. Navigate to `YOUR-GHES-INSTANCE:8443` and locate the "Chat integration" section.
|
|
1. Select the "Enabling {% data variables.product.github %} Chat integration" checkbox.
|
|
1. Under "Select chat client", select "Slack".
|
|
1. In your browser, navigate to the [Slack API: Applications](https://api.slack.com/apps) page and click **Generate Token** and select the workspace where the app will be used.
|
|
1. Copy the generated token.
|
|
1. 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.
|
|
1. Click **Generate App**.
|
|
1. Once the app is generated, click **Save settings**.
|
|
1. Navigate to either `<instancename>/_slack/` or `slack.<instancename>` to install the app on your workspace.
|
|
1. 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 %}
|
|
|
|
## Further reading
|
|
|
|
* [AUTOTITLE](/integrations/how-tos/slack/use-github-in-slack) - Learn how to use the {% data variables.product.github %} integration for Slack.
|