frappe / press

Full service cloud hosting for the Frappe stack - powers Frappe Cloud
https://frappe.cloud
GNU Affero General Public License v3.0
275 stars 195 forks source link

Support for multiple code hosting platforms #458

Open shadrak98 opened 2 years ago

shadrak98 commented 2 years ago

Currently, only projects/apps hosted on GitHub can be fetched on Frappecloud. It would be great to have support for other popular hosting platforms such as Bitbucket and GitLab.

ankush commented 2 years ago

gitlab can be prioritized first, quite a lot of community apps are on gitlab 😬

ashishsaretia commented 2 years ago

Please consider Gitlab-CE (the self-hosted version where repo URLs might not have a traditional Gitlab SAAS prefix) in your workflow while implementing the same.

cogk commented 6 months ago

I have done an implementation of this feature, with one access token per app source (see below).

Is this feature still relevant and desired?

Should I add a table in Press Settings where there is a server to token mapping, or should the token be provided by the App authors when importing it? (Token for private repos is obtained by creating a bot user on all relevant servers, and adding it to all relevant projects with the Reporter role, and creating an access token with read_api + read_repository permissions if I remember correctly).