Connect your GitHub organization to Slack Code
By connecting GitHub to Slack Code, you can manage the full software development lifecycle – from prototype to production – right where you work. Install the Slack Code GitHub app and approve your GitHub organizations to start reviewing and approving pull requests (PRs) right in a code channel.
Install the Slack Code app in GitHub
In order to review PRs in a code channel, you need to have a GitHub organization with the Slack Code app installed. Only a GitHub organization owner can install the app.
Free, Pro, and Business+ plans
Enterprise plans
- From your desktop, click Admin in the sidebar.
- Click Workspace settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Select Install the App on GitHub.
- From the Slack Code app page, click Install. If you have multiple GitHub organizations, choose the one where you want to install Slack Code.
- From your desktop, click your organization name in the sidebar.
- Hover over Tools & settings from the menu, then click Organization settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Select Install the App on GitHub.
- From the Slack Code app page, click Install. If you have multiple GitHub organizations, choose the one where you want to install Slack Code.
Tip: If you're a GitHub organization owner but not a Workspace Owner/Admin or Org Owner/Admin in Slack, you can go straight to the Slack Code app page to install the Slack Code app.
Approve a GitHub organization in Slack
For workspaces on a Free, Pro, or Business+ plan, a Workspace Owner or Admin has to approve any GitHub organizations that they want to connect to Slack Code. In Enterprise orgs, an Org Owner or Admin needs to approve them.
Free, Pro, and Business+ plans
Enterprise plans
- From your desktop, click Admin in the sidebar.
- Click Workspace settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Under GitHub organization name, enter the name of your GitHub organization and click Add. If you’ve already created a PR in a code channel, you can approve or deny the GitHub organization listed instead of adding a new one.
- From your desktop, click your organization name in the sidebar.
- Hover over Tools & settings from the menu, then click Organization settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Select Install the App on GitHub.
- Under GitHub organization name, enter the name of your GitHub organization and click Add. If you’ve already created a PR in a code channel, you can approve or deny the GitHub organization listed instead of adding a new one.
Manage who can use GitHub in Slack Code
By default, everyone in your workspace or organization can use GitHub in Slack Code. Here's how you manage access:
Free, Pro, and Business+ plans
Enterprise plans
- From your desktop, click Admin in the sidebar.
- Click Workspace settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Under General, next to GitHub in Slack Code, click Edit.
- Choose who can use GitHub in Slack Code, No one or Everyone, and click Save.
- From your desktop, click your organization name in the sidebar.
- Hover over Tools & settings from the menu, then click Organization settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Under General, next to GitHub in Slack Code, click Edit.
- Choose who can use GitHub in Slack Code, No one or Everyone, and click Save.
PR visibility and security
Anyone can discover a public code channel, but you need to be invited to view a private code channel. Code channels connected to GitHub inherit any existing GitHub permissions, so you can only see and interact with PRs that you already have access to, even if you’re a member of the code channel.
Here are some additional details about PR visibility and security:
-
Who can see a PR
PR details, files, and comments in a code channel are visible to anyone in the channel who has access to that PR in GitHub. If someone joins the channel and doesn't have access to GitHub, they'll see the channel message updates about the PR, but they won't be able to see the PR name, description, code diff, or comments. -
Who can take action
Your GitHub permissions also apply in Slack. You can only comment on, approve, or merge PRs in repositories you have access to in GitHub, and your repository's rules, like branch protection and required reviews, still apply. -
How actions are attributed
Comments, reviews, and merges you make from Slack are made with your connected GitHub account and appear in GitHub under your name. -
Which agents can work on PRs
Agents that work in code channels must be installed from the Slack Marketplace and approved by an admin, and their responses are subject to Slack's Acceptable Use Policy.
Who can use this feature?
- Workspace Owners/Admins and Org Owners/Admins
- Available on all plans
