Commit Graph

8 Commits

Author SHA1 Message Date
Simon Prévost
e1b1b106c6
Add GitHub webhooks integration to sync a project (#85)
* Add GitHub webhooks integration to sync a project

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 :)

* Add tests for integration scope

* Rename hook sync to hook update since the hook sync and add translations

* Order mix.exs deps

* Run formatter

* Fix credo

* Fix tests

* Move GitHub producer with the same shared code as the other producer, simple queue without back pressure

* Remove unused function

* Update event producer from gen stage queue broadcaster

* Add tests
2019-04-26 12:41:51 -04:00
Simon Prévost
aed5793dab Add distillery and docker setup 2019-01-11 09:47:14 -05:00
Simon Prévost
53a0e5c8ac Refactor and adds credo env var check 2018-12-08 16:43:06 -05:00
Simon Prévost
a4a68b8862 Update sentry to 7.0 to remove peer Plug.Conn error 2018-12-08 15:21:42 -05:00
Simon Prévost
b360e50339 Update Ecto and Phoenix deps 2018-12-08 15:21:42 -05:00
Simon Prévost
d9711d5973 Add tests for hook consumers 2018-04-11 06:02:16 -04:00
Simon Prévost
0bb0b01171 Add email abilities restriction capabilities with RESTRICTED_DOMAIN env var 2018-04-11 06:01:00 -04:00
Simon Prévost
bca59c4caa Initial commit 💥 2018-04-05 16:47:36 -04:00