Skip to content

Add Slack and Discord alert webhooks#141

Open
Sikkra wants to merge 1 commit into
Dgetsylver:mainfrom
Sikkra:bounty-63-webhook-channels
Open

Add Slack and Discord alert webhooks#141
Sikkra wants to merge 1 commit into
Dgetsylver:mainfrom
Sikkra:bounty-63-webhook-channels

Conversation

@Sikkra
Copy link
Copy Markdown

@Sikkra Sikkra commented May 19, 2026

Summary

  • add email/slack/discord alert channels with a unified notify() delivery path
  • store channel + destination on subscriptions, including runtime schema upgrade/backfill for existing email-only D1 tables
  • send webhook verification/test messages before saving Slack or Discord subscriptions, while preserving email verification links
  • make the alerts package typecheckable by adding workers types, allowing .ts imports, and removing a stale undefined XDR helper

Closes #63.

Verification

  • npm ci in alerts/
  • npx tsc --noEmit -p .\tsconfig.json in alerts/
  • mocked notify() smoke test for Slack verification, Discord verification, and Slack APY alert payloads
  • Python sqlite in-memory execution of alerts/src/schema.sql plus unique-constraint check
  • git diff --check

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