Repository navigation
feat(api): auto-send product update email on minor/major tags - #291
Merged
Merged
Conversation
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]>
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 8c6ecf2. Configure here.
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]>
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
vX.Y.Ztag push; sends subscriber broadcast for minor/major bumps and skips patch-only releases.release-email-semver.ts), bump check script, and--previous-version/--forceflags onsend-release-email.tsfor CI and manual override.MARKETING-EMAIL.mdandRELEASE.mdwith automation details and required repository secrets.Bugbot follow-ups (addressed)
prisma migrate deployfrom the workflow (production migrations stay manual per release runbook).--merged HEADso older-line patch tags are not compared against a newer major.Test plan
pnpm lint && pnpm test && pnpm buildrelease-email-semver.test.ts(patch skip, minor/major send)DATABASE_URL,RESEND_API_KEY,TELEMETRY_EMAIL_FROM,TELEMETRY_DASHBOARD_ORIGIN--forcesend (see MARKETING-EMAIL.md)Made with Cursor