Goal
Configuring Slack notifications with Acquia Code Studio
Prerequisites
- Access to Code Studio Maintainer role (More on Gitlab Roles)
- Slack administrative access to create incoming webhooks
Overview
Today’s DEVops workflow can consist of a number of different tools from code review to visual regression testing. Having an internal communication strategy has become an important part of the process, especially when it comes to notification. Knowing who to inform for what tasks can be a challenge. Acquia Code Studio has notification tools for integrating everything from Jira, Drone, Datadog to Slack, sending notifications and syncing your data to help bridge the gap between some of these tools.
As Slack has become a major player in the team communication space it is positioning itself to be a tool for teams to build their communication strategy around it. Code Studio has a simple integration into Slack that allows your team to customize the push notifications for sending information about the actions in the table below. Each action can be pushed to a separate slack channel or notify individual people. You also can control the branches for which notifications are to be sent and the labels or behaviors to be notified.
Triggers for Slack notifications
The following triggers are available for Slack notifications:
| Trigger name | Trigger event |
| Push | A push to the repository. |
| Issue | An issue is created, updated, or closed. |
| Confidential issue | A confidential issue is created, updated, or closed. |
| Merge request | A merge request is created, updated, or merged. |
| Note | A comment is added. |
Below we will show you how to enable some simple notifications from Code Studio to Slack in 3 easy steps.
-
Add Slack notifications integration
-
Configure Slack Webhooks
-
Complete Code Studio Notification Settings
-
Test your new notifications
-
Add Slack notifications integration
-
On the top bar, select Menu > Projects and find your project.
-
On the left sidebar, select
Settings > Integrations
.
-
There are a number of integrations you can add, but let's focus on Slack notifications to send notifications about project events to Slack.
-
-
Configure Slack Webhooks
-
Next, open a new browser tab and sign in to your Slack team and start a new Incoming WebHooks configuration.
-
Identify the Slack channel where notifications should be sent to by default. Select Add Incoming WebHooks integration to add the configuration.
-
Copy the Webhook URL to use later when you configure GitLab.
-