Skip to content

feat(alerts): add Slack/Discord webhook channels (#63)#210

Open
legend-esc wants to merge 1 commit into
Dgetsylver:mainfrom
legend-esc:feat/slack-discord-webhooks
Open

feat(alerts): add Slack/Discord webhook channels (#63)#210
legend-esc wants to merge 1 commit into
Dgetsylver:mainfrom
legend-esc:feat/slack-discord-webhooks

Conversation

@legend-esc
Copy link
Copy Markdown
Contributor

Summary

Generalizes the alert system so subscriptions can target Slack or Discord
incoming webhooks in addition to email.

Changes

  • alerts/src/notify.ts (new) — unified notify() with per-channel renderers:
    sendVerification() and notify() dispatch to email, Slack block kit, or Discord embed
  • alerts/src/index.ts — POST /subscribe accepts channel_type + webhook_url;
    webhook URLs validated against official base URLs; cron uses notify()
  • alerts/src/schema.sql — replaces email column with channel_type + destination;
    migration comments included for existing deployments

Acceptance criteria

  • Subscription type supports email, slack, discord
  • Unified notify() interface with per-channel renderer
  • Verification step per channel (email link, Slack echo, Discord test POST)

Closes #63

- Add notify.ts with unified notify() interface and per-channel renderers
- sendVerification() dispatches verify link via email, Slack, or Discord
- POST /subscribe accepts channel_type + webhook_url for slack/discord
- Webhook URLs validated against official Slack/Discord base URLs
- Cron uses notify() instead of sendApyAlert() directly
- schema.sql: replace email column with channel_type + destination
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@legend-esc Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E6: Slack / Discord webhook channels

1 participant