Short description of issue
When using shopify theme push with a theme connected to GitHub, newly added files are missing from the commit created by the GitHub integration. Only changes to files that were already tracked appear to be committed.
Reproduction steps
-
Connect a Shopify theme to a GitHub repository/branch using the Shopify GitHub integration.
-
Make changes locally to the theme:
- Modify an existing tracked file.
- Add a new file, for example:
snippets/new-snippet.liquid
-
Push the theme using:
shopify theme push -
Wait for the Shopify GitHub integration to create/sync the corresponding commit.
-
Inspect the commit created by the GitHub integration.
-
The modification to the existing file is included, but the newly created file is missing.
Additional info
Expected behavior:
All files uploaded by shopify theme push, including newly created files, should be included in the commit produced by the GitHub integration.
Actual behavior:
The GitHub integration appears to only commit modifications to files that were already tracked. Newly created files uploaded as part of the same shopify theme push are ignored.
Example:
If I modify sections/product.liquid and create a new file called snippets/new-snippet.liquid, both files are pushed to the Shopify theme.
However, the commit generated by the GitHub integration contains the modification to sections/product.liquid but does not contain snippets/new-snippet.liquid.
Impact:
This can result in broken or incomplete themes when the generated commit is later merged into another branch. Existing files may reference newly added snippets/assets/templates that are absent from Git, even though they were part of the original theme push.
What type of topic is this
Bug report