Add typed JSON output to theme publish - #8652
Open
gonzaloriestra wants to merge 1 commit into
Open
gonzaloriestra wants to merge 1 commit into
gonzaloriestra wants to merge 1 commit into
Conversation
gonzaloriestra
added this pull request to stack #8654
September 24, 2026 09:47
gonzaloriestra
force-pushed
the
gonzalo/json-theme-publish
branch
from
September 24, 2026 10:04
d3213d0 to
789a14a
Compare
gonzaloriestra
removed this pull request from stack #8654
September 24, 2026 10:04
gonzaloriestra
added this pull request to stack #8655
September 24, 2026 10:05
gonzaloriestra
force-pushed
the
gonzalo/json-theme-publish
branch
from
September 24, 2026 10:13
789a14a to
bcdcb7d
Compare
gonzaloriestra
force-pushed
the
gonzalo/json-theme-publish
branch
from
September 24, 2026 10:25
bcdcb7d to
56a75f3
Compare
gonzaloriestra
force-pushed
the
gonzalo/json-theme-publish
branch
from
September 24, 2026 11:56
56a75f3 to
15a4930
Compare
gonzaloriestra
force-pushed
the
gonzalo/json-theme-publish
branch
2 times, most recently
from
September 24, 2026 14:21
0adfd99 to
5ba599e
Compare
gonzaloriestra
marked this pull request as ready for review
September 24, 2026 14:34
gonzaloriestra
force-pushed
the
gonzalo/json-theme-publish
branch
from
September 24, 2026 14:36
5ba599e to
51ec362
Compare
This branch has not been deployed
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.
WHY are these changes introduced?
theme publishhas no JSON result contract, so automation must parse terminal output.Part of shop/issues-develop#23692.
WHAT is this pull request doing?
Return the published API theme as typed data and move final output into a presenter. Reuse the environment collector from the preceding PR, retaining prompts and the original terminal wording. Add
--json, expose the domain-owned schema, and refresh the manifest, README, and generated docs.Normal output includes:
Matching JSON:
{ "theme": { "id": 1, "name": "Original", "role": "live", "processing": false, "createdAtRuntime": false, "shop": "example.myshopify.com" } }The optional
srcfield is retained when present. Multiple environments return{"environments":[{"environment":"staging","result":...}]}in configured order. Failed or invalid environments are omitted and reported on stderr; total failure returns an empty array. Existing exit behavior and single-environment presentation are preserved.How to manually test your changes?
Checklist