Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Creating a pull requests instead of instant changes when changing theme on code editor or theme edit

Creating a pull requests instead of instant changes when changing theme on code editor or theme edit

longviddd
Visitor
1 0 0

Hi, I'm currently try to develop themes on Github. Whenever I make changes live on Shopify, it instantly pushes those changes to the corresponding branch. However, I want it to create a pull request first then I decide whether or not if i want to merge. Is that possible? Thanks in advance.

Replies 2 (2)

PaulNewton
Shopify Partner
8031 688 1649

AFAIK you'd use github actions to generate a pull request.

Possibly in tandem with using a separate repo as a staging repo , or a staging branch ala the git-flow approach.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Kahvia
Visitor
2 0 1

One way to do this is to use a webhook to trigger a GitHub Actions workflow that creates a pull request. The workflow can be configured to automatically create a pull request and merge it when certain conditions are met, or to create a pull request for manual review and approval before merging.