Repository navigation
feat(broadcasts): add duplicate command - #390
Merged
Merged
Conversation
Adds `resend broadcasts duplicate <id>` on top of resend.broadcasts.duplicate from resend@6.28.0. The copy is a draft named "<name> (copy)" with the same segment, topic, from, subject, reply-to, preview text, and content. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
resend@6.28.0 (the version needed for duplicate-broadcast) has now been published to npm; regenerate the lockfile to match package.json.
dielduarte
marked this pull request as ready for review
September 14, 2026 17:48
Contributor
There was a problem hiding this comment.
No issues found across 7 files
Requires human review: Adds a broadcasts duplicate CLI command with tests and docs, but bumps the resend dependency to 6.28.0 which is not yet published on npm — the author says merging before that publication breaks install for contributors and CI.
Re-trigger cubic
dielduarte
approved these changes
Sep 14, 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.
This adds
resend broadcasts duplicate <id>on top ofresend.broadcasts.duplicate(POST/broadcasts/{id}/duplicate, spec in resend/resend-openapi#115). The copy is a draft named<name> (copy)with the same segment, topic, from, subject, reply-to, preview text, and content; any broadcast can be duplicated, including sent ones. It picks from every broadcast likegetdoes and followstemplates duplicate(runCreate,create_error). The CLI releases as 2.21.0.It depends on resend@6.28.0, which is not on npm yet; the method lands in resend/resend-node#1094. The
resendpin is already 6.28.0 but the lockfile follows the Node release, sopnpm install --frozen-lockfilestays red and this PR stays draft until 6.28.0 is published and the lockfile commit lands here; merging before that breaks install for every contributor and CI. Locally, checks and the live calls ran against a pack of that branch.Live calls against staging through the built CLI. First a draft source, then a sent one; each copy is inspected and deleted:
🤖 Generated with Claude Code