Skip to content

build: correct the deploy release note and tell 0.1.0 projects how to add a primary origin - #2399

Merged
fforootd merged 1 commit into
mainfrom
claude/deploy-release-note-0.1.0-upgrade
Oct 27, 2026
Merged

fforootd merged 1 commit into
mainfrom
claude/deploy-release-note-0.1.0-upgrade

Conversation

@fforootd

Copy link
Copy Markdown
Member

Summary

This fixes two problems in the 0.2.0 release notes. Both come from the replace-plan-apply-with-deploy changeset, which feeds the @zitadel/cli, @zitadel/server and @zitadel/api changelogs in the pending version PR (#2226). Both turned up in a local smoke test of the packed 0.2.0 CLI, run on a project set up with 0.1.0.

A stale paragraph. The last paragraph said the server handlers "are stubs", so the commands "do not yet work against a live server". It also named @zitadel/api-mock, which isn't published. Those handlers have since been implemented. In the smoke test against a real 0.2.0 server, deploy, deployment list, deployment get and deployment rollback all worked. This PR replaces the paragraph with one line, for API client users, on what @zitadel/api adds.

A missing upgrade note. 0.1.0's setup registered the app URL as a preview origin, while 0.2.0's setup registers it as primary. apply is gone, so a 0.1.0 project's first deploy fails with E_VALIDATION "The project has no primary origin to deploy to". The hint suggests origin add <url> --kind primary. Run on the app URL, that fails with E_CONFLICT "the pattern is already stored with a different kind". This PR adds a paragraph with the steps that work: origin list, origin rm <url>, then origin add <url> --kind primary, then deploy.

Validation

  • node scripts/check-changesets-status.mjs and --pending: ok.
  • corepack pnpm exec changeset status --since origin/main: the planned bumps are unchanged.
  • node scripts/check-pr-title.mjs --title "…": ok.
  • moon run workspace:check -- --only release: passed.
    • The first run failed in cli:test, because my earlier moon run release:pack had left the five platform server binaries under apps/server-*/bin/ (gitignored). With those moved aside, it passed. CI has no such files.
  • How the upgrade note was checked:
    • I packed 0.2.0 with moon run release:pack from the version PR's head (8f68965fe).
    • I set up a Next app with the published @zitadel/cli@0.1.0 against a 0.1.0 local server, then switched that folder to the packed 0.2.0 CLI.
    • start restarted the server as 0.2.0. deploy failed with the missing-origin error.
    • origin add http://localhost:3517 --kind primary failed with E_CONFLICT.
    • origin rm http://localhost:3517, then origin add http://localhost:3517 --kind primary, succeeded, and deploy then landed on http://localhost:3517.
  • Not run: the docs or website build, which this file does not feed directly.

Release notes / changeset

This edits the existing, still-unreleased .changeset/replace-plan-apply-with-deploy.md (@zitadel/cli, @zitadel/server and @zitadel/api, minor) and adds no new changeset. The version PR picks the new text up when it regenerates. Nothing else ships.

Notes

  • The error's suggestion is still incomplete: deploy suggests origin list and hints at origin add, and the plain add conflicts for upgraded projects. A doctor check or fix that makes the setup URL primary would remove the manual step. That's a follow-up and not part of this PR.
  • Other smoke-test results, not changed here:

🤖 Generated with Claude Code

… add a primary origin

The replace-plan-apply-with-deploy changeset still said the server
handlers are stubs and the commands do not work against a live server.
They do; drop that paragraph and keep the one user-facing line about the
@zitadel/api client operations.

A project set up with 0.1.0 holds its app URL as a preview origin only,
so its first deploy on 0.2.0 fails for want of a primary origin, and
re-adding the URL as primary conflicts. Say how to switch it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 17:47
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Oct 27, 2026 5:48pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-27T17:56:39.398661Z 4cb907f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: 4cb907f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@zitadel/cli Minor
@zitadel/server Minor
@zitadel/api Minor
@zitadel/docs Patch
@zitadel/testing Minor
@zitadel/components Minor
@zitadel/config Minor
@zitadel/sdk-angular Minor
@zitadel/sdk-core Minor
@zitadel/sdk-next Minor
@zitadel/sdk-nuxt Minor
@zitadel/sdk-qwik Minor
@zitadel/sdk-qwik-router Minor
@zitadel/sdk-react Minor
@zitadel/sdk-solid Minor
@zitadel/sdk-solid-start Minor
@zitadel/sdk-svelte Minor
@zitadel/sdk-sveltekit Minor
@zitadel/sdk-tanstack-start Minor
@zitadel/sdk-vue Minor
@zitadel/website Patch
@zitadel/server-linux-x64 Minor
@zitadel/server-linux-arm64 Minor
@zitadel/server-darwin-x64 Minor
@zitadel/server-darwin-arm64 Minor
@zitadel/server-win32-x64 Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

It is a text-only edit to an unreleased changeset whose command names, quoted error, and conflict behavior all match the current codebase, with no shipped code impact.

No open issues 🎉

What changed in this PR

This PR corrects release-note copy in the still-unreleased .changeset/replace-plan-apply-with-deploy.md, which feeds the @zitadel/cli, @zitadel/server, and @zitadel/api changelogs in the pending version PR (#2226). It removes a now-stale paragraph claiming the server handlers are stubs (and referencing the unpublished @zitadel/api-mock), and adds guidance for projects set up with 0.1.0 whose app URL was registered as a preview origin and therefore fail their first deploy.

Changes:

  • Replace the stale "handlers are stubs / commands do not yet work against a live server" paragraph with a single line describing what @zitadel/api adds.
  • Add an "Upgrading a project set up with 0.1.0" paragraph with the working origin list → origin rm → origin add --kind primary → deploy steps.
  • Drop the reference to the unpublished @zitadel/api-mock.
File Description
.changeset/​replace-plan-apply-with-deploy.md Corrects release-note text: removes the stale stubs/api-mock paragraph and adds a verified 0.1.0 upgrade note, keeping the copy customer-facing.

Review effort: Balanced

Merged via the queue into main with commit 472514a Oct 27, 2026
18 checks passed
@fforootd
fforootd deleted the claude/deploy-release-note-0.1.0-upgrade branch October 27, 2026 17:55
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Oct 27, 2026

This branch was successfully deployed

1 active deployment
Preview — 4cb907f6 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants