gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.5k stars 1.19k forks source link

Gitea support #80

Open thugcee opened 5 years ago

thugcee commented 5 years ago

Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.

More info at https://gitea.io

Gitea frequently pulls features from Gogs, so supporting Gitea will probably work for Gogs too.

ShalokShalom commented 4 years ago

How could something like this get implemented? Which steps in general and how can the Gitea community help?

MGlolenstine commented 4 years ago

How far is this support right now?

Any plans at all?

svenefftinge commented 4 years ago

It is not directly on the roadmap but wouldn't be too hard to add. We are prioritising such integrations based on demand.

lunny commented 3 years ago

Since the Gitea's API v1 is simliar as Github API v3, I think it will not be too hard.

indam23 commented 3 years ago

Would this be possible with self-hosted gitpod at the moment?

ShalokShalom commented 3 years ago

It is either supported for both hosted and self-hosted, or not at all.

The support has simply not been integrated yet.

ghuntley commented 3 years ago

It is either supported for both hosted and self-hosted, or not at all.

Correct!

The support has simply not been integrated yet.

Support for raw git URLs (https://github.com/gitpod-io/gitpod/issues/167) has been scheduled for the April 2021 milestone which would enable scenarios such as https://gitpod.io#https://try.gitea.io/cezar97/Gitea_Issue_Logout.git

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ghuntley commented 3 years ago

Bump

On Mon, 14 Jun 2021, 12:30 pm stale[bot], @.***> wrote:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/80#issuecomment-860325689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7C6P2BOSNHRDAV6CHS3LTSVSTRANCNFSM4FXJE3NQ .

malvim commented 2 years ago

So is this anywhere on the roadmap by now? This would be great to have...

svenefftinge commented 2 years ago

Integrating with OAuth2 provider mode (https://docs.gitea.io/en-us/oauth2-provider/) it looks like this would be relatively low hanging. @AlexTugarev WDYT? can you provide a rough estimation?

AlexTugarev commented 2 years ago

The overview looks good, but it the lack of scopes let me wonder how to integrate it nicely. The authorize URL from the example lacks the scope parameter, and I'm not sure if this is mandatory in the passportjs libs. The Git Integrations page (and the backend) does not support the "empty scopes" case.

That said, though it looks fairly easy to integrate on the protocol level (< 1d), I see some risk in getting it to a useable state – at least it could require adding special handling.

f97-2308 commented 2 years ago

Any update for this? I can't use gitpod with gitea private repos.

jldec commented 2 years ago

We are tracking requests for additional git providers. No updates a.t.m.

JonathanTreffler commented 2 years ago

We are prioritising such integrations based on demand.

I really need this :). Would be nice if Gitea could be integrated soon.

ghuntley commented 2 years ago

I really need this :). Would be nice if Gitea could be integrated soon.

Wanna send in a pull-request that adds support? We would accept it.

Come join https://www.gitpod.io/chat in the contributing channel.

The approach would be to add a new context parser (see https://github.com/gitpod-io/gitpod/pull/5367) and integrate it with https://docs.gitea.io/en-us/oauth2-provider/

techknowlogick commented 2 years ago

Would Gitpod be amenable to sponsoring a Gitea maintainer to submit a PR to Gitpod to support Gitea integration?

(I am one of the project leads of Gitea and am able to facilitate coordination with Gitea maintainers if the answer to above is yes)

timmypidashev commented 2 years ago

This would be awesome...

IDerr commented 2 years ago

Would love to see it too !

safwentrabelsi commented 2 years ago

Would be nice if Gitea could be integrated soon...

codygriffith commented 2 years ago

I'd love to be able see this happen

axute commented 2 years ago

is there a update? @svenefftinge @jldec

xiduis15 commented 2 years ago

it would be a great improvement !

anbraten commented 2 years ago

Looking at the code and places the integration of Bitbucket (probably a rather limited support compared to Github) was done with, it shouldn't be to hard to open a PR with basic Gitea support 😉

ghuntley commented 2 years ago

Looking at the code and places the integration of Bitbucket (probably a rather limited support compared to Github) was done with, it shouldn't be to hard to open a PR with basic Gitea support 😉

Gitpod would accept a pull request that adds support. :)

ghuntley commented 2 years ago

Would Gitpod be amenable to sponsoring a Gitea maintainer to submit a PR to Gitpod to support Gitea integration? (I am one of the project leads of Gitea and am able to facilitate coordination with Gitea maintainers if the answer to above is yes)

Happy to raise the amount of ongoing sponsorship to Gitea from Gitpod @techknowlogick once the integration is in place as part of our open-source sustainability fund as Gitea once integrated would officially be in Gitpod's bill of materials.

2022-02-09_12-38-55

Here's how Gitpod approaches supporting software that makes Gitpod possible...

https://www.gitpod.io/blog/gitpod-open-source-sustainability-fund

2022-02-09_12-41-49

In addition to this can upgrade the accounts of Gitea maintainers to complementary accounts 🚀

kaptinlin commented 2 years ago

any update?

leganck commented 1 year ago

any update?

anbraten commented 1 year ago

I did most of the unit test cases for the context. But thats a quite time consuming task to support all of those different kinds especially the edge cases. For example opening an PR by using the issue url with a PR id to open a PR with Gitpod. Testing the result is also pretty difficult as I need to spint up my own Gitpod cluster each time to test my changes with all other components, but the Gitpod team did an awesome job and recently released a single node version #9075 which is pretty fast in starting and may help me with developing the Gitea integration. I only need to find out how I can properly use it with a custom image. 🙈

PS: Posting you interest in this feature is pretty important I guess as it will convince the Gitpod team to accept my PR once its done 😉

ShalokShalom commented 1 year ago

I think your chances to get it accepted are pretty high anyway 😊

mielune commented 1 year ago

Any update about the integration of Gitea servers ?

Merith-TK commented 1 year ago

Curious as well!

epid commented 6 months ago

I just wanted to register my interest in this integration as well

ShalokShalom commented 6 months ago

@anbraten Did you upload the code somewhere, or can you do that?

anbraten commented 6 months ago

https://github.com/gitpod-io/gitpod/pull/8131

Its quite some time since I worked on it. Main issue I had the last time was the deployment / debugging it.