Skip to content

feat: add duplicate method#573

Merged
CarolinaMoraes merged 2 commits intopreview-templatesfrom
feature/product-402-add-duplicate-method
Aug 20, 2025
Merged

feat: add duplicate method#573
CarolinaMoraes merged 2 commits intopreview-templatesfrom
feature/product-402-add-duplicate-method

Conversation

@CarolinaMoraes
Copy link
Contributor

@CarolinaMoraes CarolinaMoraes commented Aug 20, 2025

Summary by cubic

Adds templates.duplicate(id) to clone a template via the API, returning the new template ID or an error. Implements Linear PRODUCT-402.

  • New Features
    • Added Templates.duplicate(identifier) -> POST /templates/{identifier}/duplicate with typed response (id, object: 'template').
    • Introduced DuplicateTemplateResponse types for success and error states.
    • Added tests for success (200) and not found (404) cases.

@CarolinaMoraes CarolinaMoraes requested a review from a team as a code owner August 20, 2025 16:04
@CarolinaMoraes CarolinaMoraes requested review from bukinoshita and removed request for a team August 20, 2025 16:04
@CarolinaMoraes CarolinaMoraes self-assigned this Aug 20, 2025
@CarolinaMoraes CarolinaMoraes force-pushed the feature/product-402-add-duplicate-method branch from 3b8a4ad to 318c803 Compare August 20, 2025 16:08
Copy link
Contributor

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

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

@CarolinaMoraes CarolinaMoraes merged commit d26f258 into preview-templates Aug 20, 2025
7 checks passed
@CarolinaMoraes CarolinaMoraes deleted the feature/product-402-add-duplicate-method branch August 20, 2025 16:18
CarolinaMoraes added a commit that referenced this pull request Aug 25, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
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