cli icon indicating copy to clipboard operation
cli copied to clipboard

[Feature]: Add flag to make `theme push` idempotent

Open jeffreyguenther opened this issue 2 years ago • 15 comments

What area(s) will this request affect?

Theme

What type of change do you want to see?

New feature

Overview

Would it be possible to add a flag that makes theme push idempotent?

Given a theme name, it would only create a single theme with that name.

Right now, if the --unpublished flag is passed, it will create multiple themes with the same name. Without --unpublished, it will error if the theme isn't created.

What I'd like is the ability to run theme push --theme jeff/feature-branch multiple times and only have a single theme created.

Motivation

To support PR reopening in a GitHub, we need the ability to push to a theme named after a branch multiple times and have only a single theme created.

In the pre-1.0 release of Shopkeeper I had to add a create command in order to make this possible.

I walk through how someone can use GitHub Actions to write workflows to provide a CI/CD experience for Shopify like you might have with other tools like Heroku or Vercel's branch previews.

jeffreyguenther avatar Aug 24 '23 00:08 jeffreyguenther

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Sep 15 '23 03:09 github-actions[bot]

Not sure how to keep this open... The problem is a bit of a tricky one in terms of the existing command and flags. @isaacroldan do you have a sense of whether we should pursue a fix for this in the CLI or if I should continue to handle it with my plugin?

I'm happy to contribute a change, but would need guidance to align it with Shopify's vision.

jeffreyguenther avatar Sep 15 '23 15:09 jeffreyguenther

Hi @jeffreyguenther, thanks for the proposal. @karreiro or @mgmanzella would be better to answer you this question :)

isaacroldan avatar Sep 19 '23 07:09 isaacroldan

+1 This would be a great thing!

knjshimi avatar Sep 19 '23 09:09 knjshimi

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Oct 11 '23 03:10 github-actions[bot]

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Nov 02 '23 03:11 github-actions[bot]

Still relevant

knjshimi avatar Nov 03 '23 12:11 knjshimi

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Dec 18 '23 03:12 github-actions[bot]

Still relevant

knjshimi avatar Dec 18 '23 07:12 knjshimi

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Jan 30 '24 03:01 github-actions[bot]

Still useful.

charlespwd avatar Feb 08 '24 15:02 charlespwd

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Mar 22 '24 03:03 github-actions[bot]

This issue ist still relevant and always should have been the default behavior.

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar May 05 '24 03:05 github-actions[bot]

Still useful.

charlespwd avatar May 06 '24 12:05 charlespwd

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

github-actions[bot] avatar Jul 20 '24 03:07 github-actions[bot]