phrase / phrase-cli

CLI for the Phrase API
https://developers.phrase.com
MIT License
42 stars 6 forks source link

Upload and create Job #73

Closed GMetaxakis closed 2 years ago

GMetaxakis commented 3 years ago

Hello folks, we've been using your tool and here is a suggestion that would help us with our workflows.

In theory we can use the Phrase API to do those:

This as an idea it is very useful but I cannot find a proper way to do this with the phrase-cli to run in a CI, is this something that you believe you can do ?

Or maybe can we pre-tag the uploaded keys? with phrase push --tag xx

GMetaxakis commented 3 years ago

for the pre-tag I have created this https://github.com/phrase/phrase-cli/compare/master...GMetaxakis:master

GMetaxakis commented 3 years ago

if this gets approved then everyone in their CI can run something like this

phrase push --wait true --tag AN_AWESOME_TAG
phrase jobs create --project_id PROJECT_ID --data '{"tags":["AN_AWESOME_TAG"]}'
theSoenke commented 3 years ago

@GMetaxakis Being able to dynamically tag uploads looks like a quite useful feature. Also thanks for already providing an example implementation. The code in this repository is all generated from https://github.com/phrase/openapi I'll talk with the team about this change and hope that we can add this soon.

GMetaxakis commented 2 years ago

@theSoenke I have opened a PR in the openApi repo https://github.com/phrase/openapi/pull/143 :)

egze commented 2 years ago

Fixed in https://github.com/phrase/openapi/pull/143