Repository navigation
release: v1.6.0 — automated product update email - #293
Merged
Merged
Conversation
…-v1.5.18 Sync main into develop after v1.5.18
Add a GitHub Actions workflow that broadcasts release emails when vX.Y.Z tags are pushed, skipping patch-only bumps. Semver helpers and script flags support the same policy for manual override and backfill. Co-authored-by: Cursor <[email protected]>
Drop prod migrate deploy, resolve previous tag from merged history, and skip duplicate sends via Actions cache on re-run. Co-authored-by: Cursor <[email protected]>
Exit non-zero when fewer than all subscribers are delivered so the Actions cache marker is not written and the workflow can be re-run. Co-authored-by: Cursor <[email protected]>
Avoid interpolating git-derived tag values into run scripts; bind them through env and quote argv. Restrict previous-tag lookup to semver tags. Co-authored-by: Cursor <[email protected]>
Record successful deliveries in MarketingReleaseEmailSend, skip already-sent recipients on re-run, and rotate unsubscribe tokens only after Resend confirms delivery. Co-authored-by: Cursor <[email protected]>
TransactionClient does not expose $transaction; the release email script always passes the root prisma client. Co-authored-by: Cursor <[email protected]>
Exit non-zero on live send with an empty list so the workflow skips the Actions cache marker and can retry after subscribers are added. Co-authored-by: Cursor <[email protected]>
Run prisma migrate deploy in the release-email workflow so the send script can write delivery records, and reorder RELEASE.md so manual migrations happen before tagging on MINOR/MAJOR releases. Co-authored-by: Cursor <[email protected]>
…automation feat(api): auto-send product update email on minor/major tags
Co-authored-by: Cursor <[email protected]>
Stage the token hash in the database before calling Resend so delivered messages always match the stored hash; revert on send failure and record delivery separately. Co-authored-by: Cursor <[email protected]>
Use upsert with retries after Resend accepts delivery so retries do not resend, and require forward semver before triggering automated release emails. Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 340b4e2. Configure here.
Remove Actions cache so workflow retries can deliver to subscribers who joined after the first broadcast while skipping already-sent recipients. Co-authored-by: Cursor <[email protected]>
This was referenced Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
MarketingReleaseEmailSenddelivery ledger and release-email GitHub Actions workflowDatabase
20260708140000_marketing_release_email_send(already applied on production)Test plan
pnpm lint && pnpm test && pnpm buildv1.6.0→ verify Release product email workflow (MINOR bump from v1.5.18)DATABASE_URL,RESEND_API_KEY,TELEMETRY_EMAIL_FROM,TELEMETRY_DASHBOARD_ORIGINMade with Cursor