GitLab for Slack app (FREE SAAS)
NOTE: The GitLab for Slack app is only configurable for GitLab.com. It does not work for on-premises installations where you can configure Slack slash commands instead. See Slack application integration for self-managed instances for our plans to make the app configurable for all GitLab installations.
Slack provides a native application that you can enable with your project's integrations on GitLab.com.
Slack App Directory
To enable the GitLab for Slack app for your workspace, install the GitLab application from the Slack App Directory.
On the GitLab for Slack app landing page, you can select a GitLab project to link with your Slack workspace.
Alternatively, you can configure the GitLab for Slack app with your project's integration settings.
You must have the appropriate permissions for your Slack workspace to be able to install a new application. See Add apps to your Slack workspace.
To enable the GitLab integration for your Slack workspace:
- Go to your project's Settings > Integration > GitLab for Slack app (only visible on GitLab.com).
- Select Install GitLab for Slack app.
- Select Allow on Slack's confirmation screen.
You can also select Reinstall GitLab for Slack app to update the app in your Slack workspace to the latest version. See Version history for details.
Create a project alias for Slack
To create a project alias on GitLab.com for Slack integration:
- Go to your project's home page.
- Go to Settings > Integrations (only visible on GitLab.com).
- On the Integrations page, select GitLab for Slack app.
- The current Project Alias, if any, is displayed. To edit this value, select Edit.
- Enter your desired alias, and select Save changes.
Some Slack commands require a project alias and fail with the following error if the project alias is incorrect or missing from the command:
GitLab error: project or alias not found
After installing the app, everyone in your Slack workspace can use the slash commands. When you perform your first slash command, you are asked to authorize your Slack user on GitLab.com.
The only difference with the manually configurable Slack slash commands
is that you must prefix all commands with the
/gitlab keyword. For example,
to show the issue number
1001 under the
project, you must run the following command:
/gitlab gitlab-org/gitlab issue show 1001
In GitLab 15.0 and later, the GitLab for Slack app is updated to Slack's new granular permissions model. While there is no change in functionality, you should reinstall the app.
When you work with the GitLab for Slack app, the App Home might not display properly. As a workaround, ensure your app is up to date.
To update an existing Slack integration:
- Go to your chat settings.
- Next to your project, select GitLab for Slack app.
- Select Reinstall GitLab for Slack app.
Alternatively, you can configure a new Slack integration.