theme.updatedAt does not sync with GitHub integration

We are using GitHub with certain customer’s setups and want to programmatically change code, commit it via GitHub and check that the theme updated properly. I have tried with a test preview theme connected to a GitHub branch. The updatedAt field of the theme does not change at all unless a change is made in the visual editor. The processing field also never changes after doing git push to the branch. Am I missing something here?

1 Like

Hey @Jason_Tan, have you checked if querying the specific files you’ve changed have a more recent updated at timestamp? https://shopify.dev/docs/api/admin-graphql/latest/queries/theme#returns-OnlineStoreTheme.fields.files.nodes.updatedAt

Alternatively, if that doesn’t work you could add a comment when you push files, and then query the theme files themselves to ensure your updates have gone through.

You were right - individual files did have the right timestamp. Would recommend updating the docs! It’s not super intuitive that a file change would not be updating the theme.

Thanks for clarifying that worked Jason. I will pass that feedback on regarding the docs :memo: