statamic / spock

Automatically perform git commits, pushes, and other cli actions when Statamic content changes
95 stars 16 forks source link

Spock does not commit changes to assets yaml file #23

Closed Alshie closed 5 years ago

Alshie commented 5 years ago

Adding a new post and uploading an asset with addition metadata causes Spock to commit the post but not the metadata changes in the asset container .yaml file.

Spoke with Jason on Discord and he confirmed "spock isn't listening for when assets are saved"

jasonvarga commented 5 years ago

Thanks!

jesseleite commented 5 years ago

Hmm, these events don't cover you in this situation? 🤔 https://github.com/statamic/spock/blob/master/addons/Spock/SpockListener.php#L18-L24

May I ask what version of Statamic and Spock you are running?

Alshie commented 5 years ago

Ok, this is embarrassing. I was on latest Statamic, but somehow Spock 0.1.

Apologies. I have update to latest Spock and Asset Containers work fine. I'm really sorry guys.

jesseleite commented 5 years ago

No worries, good to know!