Commit Graph

18 Commits

Author SHA1 Message Date
Simon Prévost
436bc1359e Use factori in tests 2024-03-21 21:36:48 -04:00
Simon Prévost
88789980fc Refactor hook to unify in movement persister module 2024-03-03 15:12:37 -05:00
Simon Prévost
390bf62e35 Remove inbound GitHub hook in favor of using GitHub Actions to sync/commit 2024-02-04 14:34:08 -05:00
Simon Prévost
7726ff7ec2 Update deps 2023-08-25 10:10:46 -04:00
Simon Prévost
772a596794 Add @adobe/styler to format all Elixir code 2023-08-24 22:09:31 -04:00
Simon Prévost
bfc502e5fa Fix export/format ordering, fix uniform border-radius, allow listing deleted documents, fix conflicts template hook 2023-08-24 21:51:03 -04:00
Simon Prévost
ffea12613d Fix lint on all versions instead of current one 2023-05-24 10:05:18 -04:00
Simon Prévost
c0cb687fe6 Fix invalid unicode file parsing 2023-02-27 13:09:02 -05:00
Simon Prévost
ad018c0af5
Add document format on CLI (#308)
A new /format endpoint is available that simply returns the given file
as formatted by Accent. This can be useful locally to format or re-order
before committing the changes and not modify anything in your Accent
projet.
2022-09-01 08:45:19 -04:00
Simon Prévost
3c5b5d2c6c Refactor select and update deps 2020-08-29 18:06:27 -04:00
Simon Prévost
e0c0709c61 Update deps 2020-06-10 21:38:14 -04:00
Simon Prévost
3a2bb5dd45
Replace custom gen stage event handling with oban to execute async tasks (#187) 2020-06-10 13:02:35 -04:00
Simon Prévost
c2b02d2aca Test 2019-12-12 12:36:49 -05:00
Simon Prévost
4236ca2cee Add translation lint and spell check 2019-12-12 12:36:49 -05:00
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
9a9b50e0d8 Add more tests and refactor scripts and endpoint 2019-01-06 22:41:53 -05:00
Simon Prévost
dbbadab99e Add Credo.Check.Readability.AliasOrder to credo config 2018-12-08 19:57:20 -05:00
Simon Prévost
bca59c4caa Initial commit 💥 2018-04-05 16:47:36 -04:00