We use statamic's git automation feature to sync changes via the CMS. We've noticed however that changes to the redirects etc don't trigger git commits as expected.
We think it is because the setAll method it the Helpers Data Class doesn't emit an event that can be handled by the addon which would then trigger the git automation:
https://github.com/statamic/cms/blob/3e9f43a81ebf676f7aaf45001a7d3a732585cd84/tests/Git/GitEventTest.php#L123
// src/Helpers/Data.php
use Vendor\YourAddon\Events\YamlFileSaved;
...
setAll () {
...
event(new YamlFileSaved(...);
}
// src/ServiceProvider.php
public function bootAddon() {
....
Git::listen(YamlFileSaved::class);
}