Notifications
Set up Slack and webhook notifications for deployment events
Get notified when deployments start, succeed, fail, or when preview environments are created. Rock8Cloud supports Slack and custom webhooks.
Accessing Notification Settings
- Navigate to your project
- Click the Settings tab
- Scroll to the Notifications section
Supported Events
| Event | Description |
|---|---|
| Deployment Started | When a deployment begins building |
| Deployment Success | When a deployment completes successfully |
| Deployment Failed | When a deployment fails |
| Deployment Rollback | When a deployment is rolled back |
| Preview Created | When a PR preview environment is ready |
| Preview Cleanup | When a PR preview is removed |
| Code Review Completed | When an AI code review finishes successfully |
| Code Review Failed | When an AI code review encounters an error |
Setting Up Slack
Each project can have one Slack notification channel. You can have unlimited webhook channels.
Slack notifications are connected at the organization level via OAuth. Once connected, you can select channels from a dropdown when configuring notifications.
Step 1: Connect Slack Workspace
- Go to Settings (gear icon in sidebar)
- Open the Slack tab
- Click Connect Slack Workspace
- Authorize the app in the Slack OAuth popup
- You should see a green "Connected" status
Step 2: Add the Bot to Channels
Before a channel appears in the channel picker, the Slack bot must be a member of that channel.
In Slack, open each channel where you want to receive notifications and run:
/invite @StratosOnly channels where the bot has been invited will appear in the channel dropdown. If you don't see a channel, make sure the bot is added to it first.
Step 3: Add a Notification Channel
- Navigate to your project's Settings tab
- Scroll to the Notifications section
- Click Add Channel
- Select Slack as the type
- Enter a name (e.g., "Deploys channel")
- Select a channel from the dropdown
- Select which events you want to receive
- Click Create
Threaded Messages and Reactions
Rock8Cloud automatically groups deployment notifications into Slack threads for a cleaner channel experience.
How it works:
- When a deployment starts, Rock8Cloud sends a "Deployment Started" message to your channel
- When the deployment completes, the success or failure message is posted as a reply in the same thread
- An emoji reaction is added to the original "Deployment Started" message:
- :white_check_mark: for successful deployments
- :x: for failed deployments
This keeps your channel organized and makes it easy to see deployment status at a glance.
Preview environments: PR preview notifications also use threading. All messages related to a single pull request (preview created, deployments, cleanup) are grouped in one thread.
Multiple channels: If you have multiple Slack channels configured for the same project, each channel maintains its own independent threads.
Setting Up Webhooks
Webhooks send JSON payloads to any HTTP endpoint when events occur.
Adding a Webhook
- In your project's notification settings, click Add Channel
- Select Webhook as the type
- Enter a name (e.g., "Custom integration")
- Enter your Webhook URL
- Select which events you want to receive
- Click Create
Webhook Payload Format
Webhooks receive a JSON payload:
{
"event": "deployment:success",
"timestamp": "2024-01-15T10:30:00.000Z",
"data": {
"serviceName": "api",
"serviceId": "uuid",
"projectId": "uuid",
"deploymentId": "uuid",
"environmentId": "uuid",
"environmentType": "stable",
"branch": "main",
"commitSha": "abc1234def5678",
"commitMessage": "feat: add new endpoint",
"url": "https://api.example.com",
"appUrl": "https://rock8cloud.example.com/projects/.../deployments/..."
}
}Event-Specific Fields
deployment:started:
branch,commitSha,commitMessage,deploymentId,environmentId,environmentType
deployment:success / deployment:rollback:
branch,commitSha,commitMessage,deploymentId,environmentId,environmentType,url
deployment:failed:
branch,commitSha,deploymentId,environmentId,environmentType,error
preview:created:
branch,commitSha,deploymentId,environmentId,previewUrl,pr
preview:cleanup:
branch,environmentId,pr
code-review:completed:
branch,commitSha,pr,findings
code-review:failed:
branch,commitSha,pr,error
Managing Channels
Enable/Disable
Toggle the switch next to any channel to enable or disable it without deleting the configuration.
Edit
Click on a channel to expand it, then click Edit to modify:
- Channel name
- Configuration (token/URL)
- Subscribed events
Delete
Click the trash icon to permanently remove a channel.
Troubleshooting
Slack: No channels in dropdown
The bot hasn't been invited to any channels. Run /invite @Stratos in each Slack channel where you want notifications. Then click the refresh button next to the dropdown.
Slack: "not_in_channel" error
The bot was removed from the channel after the notification was configured. Run /invite @Stratos in the channel again.
Slack: Notifications stopped working
The Slack workspace connection may have expired. Go to Settings > Slack and reconnect the workspace.
Webhook: No notifications received
- Check that the webhook URL is accessible from the internet
- Verify the channel is enabled
- Confirm the event types you want are selected
- Check your webhook endpoint logs for incoming requests