Skip to content

[POC] Types on releases: keep and attach a prismic dev release - #434

Draft
jomifepe wants to merge 2 commits into
mainfrom
jp/types-on-releases-poc
Draft

jomifepe wants to merge 2 commits into
mainfrom
jp/types-on-releases-poc

Conversation

@jomifepe

@jomifepe jomifepe commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Part of the Types on releases end-to-end POC (Milestones 5 to 7). This is a demo branch, not for review.

What

  • prismic dev --keep creates the hidden release and keeps it after the session. prismic dev --release <id> attaches to an existing release and keeps it. Two flags because parseArgs can't take an optional value and -r is --repo.
  • The session file records keep; stopping and stale-session cleanup skip the release delete when it is set. Attaching skips the seed push and pulls release-only models.
  • The command prints Release: <id> and Page Builder: …/builder/upcoming/<id> after the Type Builder link.
  • PRISMIC_STAGE routes Custom Types calls to an obelix preview stage (https://api.internal.<host>/<stage>/…).
  • Dev tests pass --no-browser.

Testing

Typecheck, lint and tests pass.

Related PRs

🤖 Generated with Claude Code

jomifepe and others added 2 commits October 22, 2026 12:44
POC for Types on releases (Milestone 6):

- `--keep` keeps the session's hidden release when the session ends.
- `--release <id>` checks the release exists, then syncs with it without
  seeding, so release-only models are pulled instead of deleted. It keeps
  the release too.
- The session file records `keep`, and stale-session cleanup leaves kept
  releases alone.
- Prints `Release:` and `Page Builder:` lines after `Type Builder:`.
- `PRISMIC_STAGE` sends Custom Types requests to
  `https://api.internal.{host}/{stage}/custom-type/` for obelix PR previews.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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