theme publish / themePublish goes through while a Rollout is attached to the live theme and deletes its theme edits — Help Center says it should be refused

Đang mở
#9,138 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
graphql, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start by tracing the theme publish command and the themePublish(id:) GraphQL mutation it sends, then check the publish flow for attached rollouts. Reproduce with an open Launch rollout that has a theme customization and confirm whether publishing is refused while preserving the rollout edits. The issue does not name relevant files or tests, so locate the publish implementation and its tests before deciding on a change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The Help Center (Managing rollouts) says a theme published from Shopify CLI or the GraphQL Admin API isn't published while rollouts are attached to the live theme, and that those rollouts must be ended or archived first. On 2026-10-22 we saw exactly that: shopify theme publish (CLI 4.9.4) failed with "Theme cannot be published when the published theme has attached rollouts. Unlink … before trying again."

On 2026-11-16, on a Plus development store, we created a draft Launch rollout and changed one setting of the live theme inside it in the theme editor. The Rollouts list showed 6 markets and a customization. We then ran shopify theme publish --theme <id> --force from GitHub Actions with a Theme Access password:

  • CLI 5.0.1: published (twice)
  • CLI 4.9.4: published

Each time the new theme went live and the rollout lost its customization; it no longer showed markets or a customization. Both CLI versions send the same themePublish(id:) mutation.

Expected: the publish is refused, as documented, and the rollout keeps its theme edits.
Questions: Is this an intended change? If so, could the Help Center be updated? Is there a supported way to stop a CLI or CI publish from removing open rollouts' theme edits?

Ngôn ngữ chính
TypeScript
Star
778
Fork
306
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
108

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Shopify/cli

Tất cả issue của Shopify/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.