Notifications
Configure real-time notifications to stay informed when flaky tests are detected or fixes are generated.
Overview
UnfoldCI supports notifications via:
- Slack — Team channels and direct messages
- Discord — Server channels
- Microsoft Teams — Channel connectors
Notifications are configured per installation, meaning all repositories under your GitHub App installation share the same notification settings.
Configuring Notifications
Access Settings
- Sign in to app.unfoldci.com
- Click Settings in the dashboard header
- Scroll to the Notifications section
Enable Notifications
Toggle the main switch to enable or disable all notifications. When disabled, no notifications are sent regardless of individual platform settings.
Slack Integration
Creating a Webhook
- Go to your Slack workspace settings
- Navigate to Apps → Manage → Custom Integrations
- Select Incoming Webhooks
- Click Add to Slack
- Choose a channel for notifications
- Click Add Incoming Webhooks Integration
- Copy the Webhook URL
Webhook URL Format
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Adding to UnfoldCI
- Paste the webhook URL in the Slack field
- Click Save
- Click the Send icon to test the connection
Slack Notification Example
🔍 Flaky Test Detected
Repository: your-org/your-repo
Test: should handle async operations correctly
File: src/tests/async.test.ts
Flake Score: 0.73
Root Cause: Race condition in async state update
View in Dashboard →
Discord Integration
Creating a Webhook
- Open Discord and navigate to your server
- Right-click the channel → Edit Channel
- Go to Integrations → Webhooks
- Click New Webhook
- Configure the webhook name and avatar (optional)
- Click Copy Webhook URL
Webhook URL Format
https://discord.com/api/webhooks/1234567890123456789/abcdefghijk...
Older webhooks may use discordapp.com. Both formats are supported.
Adding to UnfoldCI
- Paste the webhook URL in the Discord field
- Click Save
- Click the Send icon to test the connection
Discord Notification Example
Notifications appear as embedded messages with:
- Color-coded severity indicator
- Test name and repository
- Flake score and root cause
- Direct link to dashboard
Microsoft Teams Integration
Creating a Webhook
- Open Microsoft Teams
- Navigate to the target channel
- Click the ... menu → Connectors
- Search for Incoming Webhook
- Click Configure
- Provide a name and optional image
- Click Create
- Copy the webhook URL
Webhook URL Format
https://outlook.office.com/webhook/GUID@GUID/IncomingWebhook/...
Or newer format:
https://your-org.webhook.office.com/webhookb2/GUID@GUID/IncomingWebhook/...
Adding to UnfoldCI
- Paste the webhook URL in the Microsoft Teams field
- Click Save
- Click the Send icon to test the connection
Teams Notification Example
Notifications appear as Adaptive Cards with:
- Header with UnfoldCI branding
- Test details section
- Action button to view in dashboard
Notification Events
Configure which events trigger notifications:
| Event | Description |
|---|---|
| Flaky Test Detected | When a test is first identified as flaky |
| AI Analysis Complete | When AI finishes analyzing a flaky test |
| Fix PR Created | When an automated fix PR is created |
| Fix PR Merged | When a fix PR is successfully merged |
Configuring Events
- In the Notifications section, locate Notify me when
- Check the events you want to receive notifications for
- Changes save automatically
Recommended Configuration
For most teams, we recommend enabling:
- ✅ Flaky Test Detected — Be aware of new issues
- ✅ Fix PR Created — Know when action is needed
- ✅ Fix PR Merged — Track successful fixes
Optional:
- ⬜ AI Analysis Complete — Useful for debugging, can be noisy
Testing Notifications
After configuring a webhook:
- Click the Send (paper plane) icon next to the platform
- A test notification is sent to verify the connection
- Check your channel for the test message
If the test fails:
- Verify the webhook URL is correct
- Ensure the webhook is still active
- Check channel permissions
Troubleshooting
Notifications Not Appearing
- Verify webhook is active — Webhooks can be deleted from the platform
- Check channel permissions — Ensure the webhook has permission to post
- Test the connection — Use the test button in settings
- Verify events are enabled — Check the event checkboxes
Invalid Webhook URL Error
Common causes:
- Extra whitespace — Copy the URL without leading/trailing spaces
- Incomplete URL — Ensure the entire URL is copied
- Expired webhook — Recreate the webhook on the platform
Duplicate Notifications
This can occur if:
- Multiple installations have the same webhook configured
- The same event is triggered multiple times
Rate Limiting
UnfoldCI respects platform rate limits:
- Slack: 1 message per second per webhook
- Discord: 30 requests per minute per webhook
- Teams: 4 messages per second per connector
If rate limited, notifications are queued and sent when possible.
Security Considerations
Webhook Security
- Keep URLs private — Webhook URLs should be treated as secrets
- Rotate periodically — Regenerate webhooks if compromised
- Limit scope — Use dedicated channels for automated notifications
Data in Notifications
Notifications include:
- Repository name
- Test name and file path
- Flake score and root cause category
- Dashboard links
Notifications do not include:
- Source code content
- Error message details
- Personal information
Best Practices
Channel Organization
- Create a dedicated
#ci-alertsor#test-healthchannel - Keep automated notifications separate from discussion channels
- Use thread replies for follow-up discussions
Notification Hygiene
- Start with fewer events, add more as needed
- Disable noisy events if they reduce signal
- Review notification settings periodically
Team Workflow
- Assign ownership for triaging flaky test alerts
- Establish SLA for reviewing AI-generated PRs
- Use fix merge notifications to celebrate improvements
Next Steps
- API Reference — Notification API endpoints
- Dashboard — Understanding the settings interface
- Troubleshooting — Common issues and solutions