mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
1.6 KiB
1.6 KiB
Setting up Slack Notifications for CI
Prerequisites
- A Slack workspace where you want to receive CI notifications
- Admin permissions to create webhooks in your Slack workspace
Setup Steps
-
Create a Slack Webhook:
- Go to https://api.slack.com/apps
- Click "Create New App" > "From scratch"
- Name it "VibeTunnel CI" and select your workspace
- Click "Incoming Webhooks" in the left sidebar
- Toggle "Activate Incoming Webhooks" to ON
- Click "Add New Webhook to Workspace"
- Select the channel where you want CI notifications
- Copy the webhook URL (starts with
https://hooks.slack.com/services/...)
-
Add the Webhook to GitHub:
- Go to your repository settings on GitHub
- Navigate to Settings > Secrets and variables > Actions
- Click "New repository secret"
- Name:
SLACK_WEBHOOK_URL - Value: Paste the webhook URL from step 1
- Click "Add secret"
What Gets Notified
The Slack integration will send notifications for:
- ✅ All CI runs on the
mainbranch (both success and failure) - 🔄 All CI runs on pull requests
- ❌ Failed jobs with direct links to the failing job logs
Notification Format
Each notification includes:
- CI status (success/failure)
- Branch or PR number
- Commit SHA and author
- Number of passed/failed jobs
- Direct links to failed jobs (if any)
- Link to the full workflow run
Testing
To test the integration:
- Make a small change and push to main
- Check your Slack channel for the notification
- The notification should appear within a few seconds of CI completion