Skip to content

Asset Changes not detected by Spock #34

@PhilJ

Description

@PhilJ

I can confirm the issue reported by Waze:

Spock is not getting notified about asset changes and is therefore not able to commit them. We also added an manual workaround similary to @wanze.

However, sSince this is throwing errors on every failed commit it would be great if this could be fixed. We are using Statamic 2.11.5and Spock 2.1.0.

Originally posted by @wanze in #24 (comment) :

I am also running into this issue using the following setup:

  • Statamic 2.11.3
  • Spock 2.1.0

Ignored events:

  - Statamic\Events\Data\AssetUploaded
  - Statamic\Events\Data\AssetMoved
  - Statamic\Events\Data\AssetDeleted
  - Statamic\Events\Data\FileUploaded

My current solution is to use a custom after command:

- if (( $(git status -s | wc -l) > 0 )); then git add --all && git commit -m "[skip-ci] Additional changes after running Spock" && git push; fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions