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

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.

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.

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.