Repository navigation
SP-3446: Add --staging option to t2tc package export - #442
Open
Buqeta (Buqeta) wants to merge 1 commit into
Open
Buqeta (Buqeta) wants to merge 1 commit into
Buqeta (Buqeta) wants to merge 1 commit into
Conversation
Export the staging state of the given package keys (including branch packages) through the staging batch export endpoint, and fetch staging variable values for packages exported from staging. Co-Authored-By: Claude <noreply@anthropic.com> Includes-AI-Code: true
|
Buqeta (Buqeta)
marked this pull request as ready for review
October 23, 2026 15:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Adds
--stagingtot2tc package export. With Set Live, a branch can still change after it was set to live, so Team-to-Team Copy needs to export the selected branch's staging state instead of a published version.--stagingcalls the new pacman endpointGET /package-manager/api/core/staging/packages/export/batchwith the given--packageKeysand--withDependencies. Branch keys (<projectKey>@<branchKey>) work.variables.json: packages exported from staging (versionstagingin the manifest) get their values from the existing staging variables endpoint (/pacman/api/core/staging/packages/variables/by-package-keys). Dependencies still use the versioned variables endpoint.--stagingtogether with--keysByVersionis rejected.docs/user-guide/t2tc-commands.md.Depends on celonis/pacman#2979 (new endpoint) and a policy-guard allow rule for it before it works through the gateway.
Relevant links
Checklist
module.spec.ts:--stagingis passed to the service;--stagingwith--keysByVersionis rejected.t2tc-package-export.spec.ts: branch package exported with dependencies calls the staging URL, sends only the dependency to the versioned variables endpoint and only the staging package to the staging variables endpoint, and writes both tovariables.json.tests/commands/t2tcpass;tscpasses. Not tested against a live tenant yet (needs the pacman PR deployed).Co-Authored-By: Claude noreply@anthropic.com
Includes-AI-Code: true