Skip empty commits on export
Translation export to Git produces empty commit (with empty change set) when no translations were changed.
I would like the empty commits to be skipped or to have an option to configure it, especially for webhooks.
In my case I run export webhook from my CI/CD, via Azure DevOps integration. I ended up with bunch of empty commits added each time the webhook is triggered.
Thank you for you suggestion.
The reason we don't ignore empty commits is because we want to keep the export process as fast as possible.
Unfortunately, there's no setting with the Azure DevOps API that would prevent empty commits, so we'd have to make all the processing on our end to compare the exported file to linked file, and for bigger files that could really slow things down.
To avoid making empty commits, you could use the API to check for updates in any of your languages (the List Languages method has an "updated" timestamp, which is the timestamp of the latest updated translation: https://poeditor.com/docs/api#languages_list).
If any updates are found, trigger the export webhook. We also have callbacks for some events, based on which you could trigger the export: https://poeditor.com/kb/how-to-use-poeditor-callbacks