spock icon indicating copy to clipboard operation
spock copied to clipboard

Automatically perform git commits, pushes, and other cli actions when Statamic content changes

Results 12 spock issues
Sort by recently updated
recently updated
newest added

To avoid commits with no files added which is the case when `affectedPaths()` return an empty array. See #50.

Hey! I have collection in statamic which is sorted by date so they are prefixed with date string. When spock is checking the `affectedPaths()` while adding to git, it also...

There seems to be an issue with the git command exiting unsuccessfully, but the error returned suggests that there is no issues with the command. Here is an example: ```...

Statamic 2.11.16, PHP 7.4. ``` 4) Statamic\Addons\Spock\CommanderTest::only_runs_commands_for_whitelisted_environments ErrorException: Cannot use "parent" when current class scope has no parent /Users/erin/Sites/simple/statamic/vendor/mockery/mockery/library/Mockery/Loader/EvalLoader.php:16 /Users/erin/Sites/simple/statamic/vendor/mockery/mockery/library/Mockery/Loader/EvalLoader.php:16 /Users/erin/Sites/simple/statamic/vendor/mockery/mockery/library/Mockery/Container.php:219 /Users/erin/Sites/simple/statamic/vendor/mockery/mockery/library/Mockery.php:98 /Users/erin/Sites/simple/site/addons/Spock/tests/CommanderTest.php:16 ```

Have statamic set up in MAMP Pro localhost root folder, with git repo. Manual changes in control panel don't trigger any commits from spock, even though the git repo shows...

I'm trying to get Spock to work all day today, but no luck. It just doesn't really push most of the time and throws lots of errors in the log...

👋 Hello! I'm wondering if anyone has successfully gotten Spock working with GPG or knows of any workarounds besides disabling commit signing. Right now, commits don't work and I keep...

Re-ordering entries causes multiple commits (one per entry), in contrast to re-ordering pages which fires a single `PagesMoved` event (and therefore a single commit). This actually needs to be addressed...

bug

When creating or updating localized content, Spock doesn't run `Git Add`. (`Git status` does display the changes). Other content, fieldset-updates, etc. are added, committed and pushed as they should. Using...

Git distinguishes between author and committer. The configured committer details in `site/settings/addons/spock.yaml` are fine, but the Statamic user who is logged in should be credited with the authorship. The log...