Commit 6cfa074
committed
feat(alerts): include deployment integration metadata in alerts
Add resolution and propagation of deployment integration metadata (git
links and Vercel deployment URL) to alert delivery flow so emails,
Slack messages and webhooks can include richer context for deployment
alerts.
- Resolve Git metadata and Vercel integration info via
BranchesPresenter and Vercel integration schema in a new
#resolveDeploymentMetadata flow; represent result as
DeploymentIntegrationMetadata.
- Thread DeploymentIntegrationMetadata through DeliverAlertService and
pass it into #sendEmail, #sendSlack and #sendWebhook calls.
- Populate email payload with git details (branch, short SHA, commit
message and PR info) and vercelDeploymentUrl when present.
- Use neverthrow.fromPromise to safely handle metadata resolution and
fall back to empty metadata on errors.
Motivation: provide recipients immediate links and SCM context for
deployment success/failure alerts to speed debugging and navigation.1 parent f4b70b0 commit 6cfa074
File tree
4 files changed
+432
-52
lines changed- apps/webapp/app/v3/services/alerts
- internal-packages/emails/emails
- packages/core/src/v3/schemas
4 files changed
+432
-52
lines changed
0 commit comments