Connect your GitHub organisation to Slack Code
By connecting GitHub to Slack Code, you can manage the full software development life cycle – from prototype to production – directly where you work. Install the Slack Code GitHub app and approve your GitHub organisations to start reviewing and approving pull requests (PRs) directly 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 organisation with the Slack Code app installed. Only a GitHub organisation owner can install the app.
Free, Pro and Business+ subscriptions
Enterprise subscriptions
- 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 organisations, choose the one where you want to install Slack Code.
- From your desktop, click your organisation name in the sidebar.
- Hover over Tools & settings from the menu, then click Organisation 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 organisations, choose the one where you want to install Slack Code.
Tip: If you’re a GitHub organisation 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 organisation in Slack
For workspaces on a Free, Pro or Business+ subscription, a workspace owner or admin has to approve any GitHub organisations that they want to connect to Slack Code. In Enterprise orgs, an org owner or admin needs to approve them.
Free, Pro and Business+ subscriptions
Enterprise subscriptions
- 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 organisation name, enter the name of your GitHub organisation and click Add. If you’ve already created a PR in a code channel, you can approve or deny the GitHub organisation listed instead of adding a new one.
- From your desktop, click your organisation name in the sidebar.
- Hover over Tools & settings from the menu, then click Organisation settings.
- From the left sidebar, click Roles & permissions, then select Feature access.
- Click Slack Code.
- Select Install the app on GitHub.
- Under GitHub organisation name, enter the name of your GitHub organisation and click Add. If you’ve already created a PR in a code channel, you can approve or deny the GitHub organisation listed instead of adding a new one.
Manage who can use GitHub in Slack Code
By default, everyone in your workspace or organisation can use GitHub in Slack Code. Here’s how you manage access:
Free, Pro and Business+ subscriptions
Enterprise subscriptions
- 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 organisation name in the sidebar.
- Hover over Tools & settings from the menu, then click Organisation 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 that you have access to in GitHub, and your repository’s rules, such as branch protection and required reviews, still apply. -
How actions are attributed
Comments, reviews and merges that 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 subscriptions
