The webhook generates events that reads the repo’s config file (the same
config file used by accent-cli) and build "sync" and "add translations"
events in Accent.
It supports a default ref: you can specify to only
trigger the "sync" on the "release/production" branch. It also supports
automatic version sync. If you have a version in Accent that matches
your git tag, "sync" events will be generated for those versions,
without touching your current translations. This can be useful if you
use versions to freeze translations on your releases.
This commit only adds the API side of the feature. So while it’s not
user facing, if you want to test the feature, you can add a matching
"integrations" row in the database and setup your webhook in GitHub :)
The webhook generates events that reads the repo’s config file (the same config file used by accent-cli) and build "sync" and "add translations" events in Accent.
It supports a default ref: you can specify to only trigger the "sync" on the "release/production" branch. It also supports automatic version sync. If you have a version in Accent that matches your git tag, "sync" events will be generated for those versions, without touching your current translations. This can be useful if you use versions to freeze translations on your releases.
This commit only adds the API side of the feature. So while it’s not user facing, if you want to test the feature, you can add a matching "integrations" row in the database and setup your webhook in GitHub :)