-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Proposal: Merge Git & SDK repos into main repo #5954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think in general this would be a good idea however, we will need to ensure that we somehow keep the external API stable for the SDK. So perhaps we could keep a testing suite outside of the current repo? I would in particular be very keen to move them in because I think both git and the sdk are not getting updated properly (and I know I'm guilty of this) |
I totally wanted to proposal that before. |
I just noticed that there is no test units for the API server (and go-sdk). I experience few bugs in the go-sdk and I wanted to add tests for the api routers, which will be super easy to do when go-sdk is merged into main repo. Because I just need to implement tests for go-sdk and it will test both server and client. Will wait until then to do that |
Most of the api is tested in the integrations/ tests. |
ah thanks, I was looking into go-sdk for |
This would also be more logic because currently the api response are defined in go-sdk. This would help the swagger part to be more maintained and maybe provide a stable generated client in various coding language directly from the swagger api specs. |
Is move SDK to gitea main repo is a good idea? Maybe we could move all the structs on gitea main repo and sdk repository could dependent that sub package. |
@lunny We can even move struct to main and generate the various sdk client from swagger. |
I think it is good for sdk to be in the main repo because we can use sub packages to keep things split up like they are, but still keep PRs manageable. As currently we have to ensure that we merge in sdk PRs before PRs in main repo, it'd be nice if we could just have one PR. Edit: Just structs are fine too. |
@techknowlogick yeah, just structs then most time, we don't have to send two PRs to two repo. And SDK could follow some reversion of the structs sub package in go mod to keep compatible. |
merge git & sdk into this repo. We can still keep same import path (code.gitea.io/git & code.gitea.io/sdk)
I recommend we use folders: modules/git & modules/sdk
Having the two extra repos creates a barrier for new contributions and multiple redundant PRs. Easier if all other two repos were in this one.
Thoughts?
The text was updated successfully, but these errors were encountered: