Skip to content

release: v1.6.0 — automated product update email - #293

Merged
unjica merged 14 commits into
mainfrom
release/v1.6.0-changelog
Jul 8, 2026
Merged

unjica merged 14 commits into
mainfrom
release/v1.6.0-changelog

Conversation

@unjica

@unjica unjica commented Jul 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Promote v1.6.0 (MINOR): automated product update email on MINOR/MAJOR tag push (#291)
  • MarketingReleaseEmailSend delivery ledger and release-email GitHub Actions workflow
  • Updated marketing and release runbooks

Database

  • 20260708140000_marketing_release_email_send (already applied on production)

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Merge → tag v1.6.0 → verify Release product email workflow (MINOR bump from v1.5.18)
  • Confirm GitHub repo secrets: DATABASE_URL, RESEND_API_KEY, TELEMETRY_EMAIL_FROM, TELEMETRY_DASHBOARD_ORIGIN

Made with Cursor

unjica and others added 11 commits July 8, 2026 20:52
…-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
Comment thread apps/api/scripts/send-release-email.ts Resolved
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]>
Comment thread apps/api/scripts/send-release-email.ts Resolved
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]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread .github/workflows/release-email.yml Resolved
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]>
@unjica
unjica merged commit 03c67a7 into main Jul 8, 2026
3 checks passed
@unjica
unjica deleted the release/v1.6.0-changelog branch July 8, 2026 20:19
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.

1 participant