Skip to content

feat(automations): duplicate endpoint - #145

Merged
gabrielmfern merged 1 commit into
mainfrom
feature/dev-1709-go-sdk-internal-squad-devtools
Aug 18, 2026
Merged

feat(automations): duplicate endpoint#145
gabrielmfern merged 1 commit into
mainfrom
feature/dev-1709-go-sdk-internal-squad-devtools

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Aug 14, 2026

Copy link
Copy Markdown
Member

Adds Automations.Duplicate(automationId) and Automations.DuplicateWithContext(ctx, automationId) for POST /automations/{id}/duplicate.

Resolves DEV-1709. Mirrors the existing Stop pattern and resend-node resend/resend-node#1071.

🤖 Generated with Claude Code


Summary by cubic

Adds Automation duplicate support to the Go SDK so clients can duplicate an automation by ID. Previously unsupported; now Automations.Duplicate(...) and Automations.DuplicateWithContext(...) wrap POST /automations/{id}/duplicate to satisfy DEV-1709 and maintain parity with resend-node.

Changes and review notes

  • Add DuplicateAutomationResponse and POST path automations/{id}/duplicate.
  • Extend AutomationsSvc and AutomationsSvcImpl with Duplicate/DuplicateWithContext.
  • Add ErrFailedToCreateAutomationDuplicateRequest.
  • Add TestDuplicateAutomation.
  • Minor struct field alignment; no behavior change.

Migration

  • If you implement AutomationsSvc (e.g., custom mocks), add Duplicate and DuplicateWithContext to your implementation.

Written for commit 969cb34. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds a new Duplicate endpoint mirroring the existing Stop pattern, with a focused test and no changes to existing behavior or contracts.

Re-trigger cubic

Approval not submitted

This repository is configured to approve as @klotty, but that approval identity is unavailable.
The refresh token passed is incorrect or expired.

cubic left this as a normal review comment instead of falling back to a Cubic App approval.

@gabrielmfern
gabrielmfern marked this pull request as ready for review August 14, 2026 15:30
@gabrielmfern
gabrielmfern requested a review from drish August 14, 2026 15:30
@gabrielmfern
gabrielmfern merged commit 9d701b5 into main Aug 18, 2026
12 checks passed
@gabrielmfern
gabrielmfern deleted the feature/dev-1709-go-sdk-internal-squad-devtools branch August 18, 2026 17:57
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.

2 participants