Skip to content

Add email notifications via Resend for incidents - #23

Merged
jasoncrawford merged 5 commits into
mainfrom
email-notifications
Feb 18, 2026
Merged

jasoncrawford merged 5 commits into
mainfrom
email-notifications

Conversation

@jasoncrawford

Copy link
Copy Markdown
Collaborator

Summary

  • Added resend package for email delivery
  • Created src/lib/notifications.ts with sendIncidentAlert() function
  • Integrated into check runner: when a new incident opens, fetches contacts and sends alert emails
  • Email contains site name, URL, error details, and link to incident page
  • Email failures are caught and logged (do not block the monitoring loop)
  • Updated check-runner tests + 4 new notification tests

Closes #11

Test plan

  • sendIncidentAlert sends emails to all contacts with correct content
  • No email sent when contacts list is empty
  • Email send failures handled gracefully (logged, not thrown)
  • Email sent only for new incidents, not duplicate failures
  • All 48 tests pass, build succeeds

When the check runner opens a new incident, it fetches all contacts
and sends alert emails via Resend with site name, error, and incident link.
Email failures are caught and logged without blocking the monitoring loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jasoncrawford
jasoncrawford merged commit 344849c into main Feb 18, 2026
1 check passed
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.

Implement email notifications via Resend

1 participant