Skip to content

Conversation

whitelisab
Copy link
Contributor

Summary

Add the release.entry.createWithId method.

Description

Follow the pattern and format for other release.entry methods and other createWithId methods.

Also a few other changes in this PR:

  • Add ReleaseEntry methods to the MRInternal type in common-types.ts
  • Adjust the types for release entry parameters and adjust types where this is used
  • Refactor the unit tests to align with how we are approaching other REST endpoint tests

I was having some trouble implementing integration tests for this method as I kept getting an error when trying to clean up the created entry. I'll address this in a future PR.

Motivation and Context

Checklist (check all before merging)

  • Both unit and integration tests are passing
  • There are no breaking changes
  • Changes are reflected in the documentation

When adding a new method:

  • The new method is exported through the default and plain CMA client
  • All new public types are exported from ./lib/export-types.ts
  • Added a unit test for the new method
  • Added an integration test for the new method
  • The new method is added to the documentation

@whitelisab whitelisab requested a review from a team as a code owner August 27, 2025 22:56
Copy link
Contributor

@michaelphamcf michaelphamcf left a comment

Choose a reason for hiding this comment

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

lgtm

@whitelisab whitelisab merged commit de873be into canary Aug 28, 2025
6 checks passed
@whitelisab whitelisab deleted the feat/dx-61-release-entry-createwithid branch August 28, 2025 15:39
@contentful-automation
Copy link
Contributor

🎉 This PR is included in version 11.55.0-canary.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants