opral / lix-sdk

1 stars 0 forks source link

Validate if user is able to push #19

Open NiklasBuchfink opened 3 months ago

NiklasBuchfink commented 3 months ago

Context

Users can't push their changes if the inlang GitHub app is not installed and they can't install it themselves if they are not the repo's owner. They will also lose their translations as there is no export or caching yet.

Related:

Proposal

Lix should provide an API that detects if Lix can push to the repo

This way Fink (and other apps) can prompt to update the permissions (user is the owner), contact the repo's owner (user is a collaborator) or fork the project (if not disabled LIX-57 ).