Paratii-Video / paratii-portal

Component-based web-interface for uploading, browsing and organising content of Paratii's P2P network.
GNU General Public License v3.0
12 stars 5 forks source link

Build and deploy very simple webapp allowing us to trigger translation pushes to github #742

Closed bent0b0x closed 6 years ago

bent0b0x commented 6 years ago

POEditor allows us to push translations to a github branch via a webhook. Members of the Paratii organization can also do this via the POEditor UI, but it would be great for translators to be able to push their translations to dev when they are complete.

To do this, we need to hit this webhook:

https://poeditor.com/api/webhooks/github?api_token=TOKEN&id_project=192597&language=pt-br&operation=export_terms_and_translations

My plan is to deploy a very very simple webapp on heroku free that basically just contains a button that can be clicked to trigger this request. It needs to be deployed because we cannot pass around the api token; we need to obfuscate it by proxying the request to a simple BE server.

bent0b0x commented 6 years ago

Here it is: https://paratii-translations-ui.herokuapp.com/

bent0b0x commented 6 years ago

Basics are working; I've shut the app down for now so that I can make the following changes:

OR

bent0b0x commented 6 years ago

https://developer.github.com/v3/git/refs/#create-a-reference

https://developer.github.com/v3/repos/merging/

https://developer.github.com/v3/pulls/#create-a-pull-request

felipegaucho commented 6 years ago

@bent0b0x how much work would it be to make the above flow work? I didn't get to see the app functioning.

bent0b0x commented 6 years ago

Too much work, IMO 😄, and not worth the reward