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
5931 537 1241

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.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


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

Answers powered by coffee Buy Paul 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.