Migrate gitea from/to other git providers with projects API support #14710

Open
opened 2025-11-02 11:20:49 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @printfdebugging on GitHub (Jul 6, 2025).

Feature Description

i created a private repository with a project, and that project organized all the issues quite nicely. let's say gitea.com announces end of life sometime in future, then i have to manually recreate the project(s) as the migration tool doesn't include the projects in the repository.

it would be really nice if we also migrate the projects.

Screenshots

No response

Originally created by @printfdebugging on GitHub (Jul 6, 2025). ### Feature Description i created a private repository with a project, and that project organized all the issues quite nicely. let's say gitea.com announces end of life sometime in future, then i have to manually recreate the project(s) as the migration tool doesn't include the projects in the repository. it would be really nice if we also migrate the projects. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 11:20:49 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 6, 2025):

Gitea has full featured API and I think it is the "receiver" side's task to read any data they are interested in.

let's say gitea.com announces end of life sometime in future, ...

IIRC the goal of "gitea.com" isn't to be a large & general purpose public git service, it is still recommended to use GitHub or a self-hosted Gitea instance.

@wxiaoguang commented on GitHub (Jul 6, 2025): Gitea has full featured API and I think it is the "receiver" side's task to read any data they are interested in. > let's say gitea.com announces end of life sometime in future, ... IIRC the goal of "gitea.com" isn't to be a large & general purpose public git service, it is still recommended to use GitHub or a self-hosted Gitea instance.
Author
Owner

@printfdebugging commented on GitHub (Jul 6, 2025):

thanks for the quick reply :)

@printfdebugging commented on GitHub (Jul 6, 2025): thanks for the quick reply :)
Author
Owner

@printfdebugging commented on GitHub (Jul 6, 2025):

@wxiaoguang i have gitea running locally as a service and when i migrated from gitea.com to the local gitea instance, still the project wasn't cloned. as you taked about the "receiver side", doesn't gitea copy the projects when on receiver side?

@printfdebugging commented on GitHub (Jul 6, 2025): @wxiaoguang i have gitea running locally as a service and when i migrated from gitea.com to the local gitea instance, still the project wasn't cloned. as you taked about the "receiver side", doesn't gitea copy the projects when on receiver side?
Author
Owner

@printfdebugging commented on GitHub (Jul 6, 2025):

looking at the api, i don't see any projects flag, you said the api is fully featured, am i missing anything?

@printfdebugging commented on GitHub (Jul 6, 2025): looking at the [api](https://gitea.com/api/swagger#/repository/repoMigrate), i don't see any projects flag, you said the api is fully featured, am i missing anything?
Author
Owner

@wxiaoguang commented on GitHub (Jul 6, 2025):

Hmm, just found that the "Projects API" is on the way ([FEATURE] API for projects #14299, feat: api endpoints for projects #28111 ), if there would be progresses, maybe we can have them in 1.25


So this feature request depends on the projects API

@wxiaoguang commented on GitHub (Jul 6, 2025): Hmm, just found that the "Projects API" is on the way ([FEATURE] API for projects #14299, feat: api endpoints for projects #28111 ), if there would be progresses, maybe we can have them in 1.25 ---- So this feature request depends on the projects API
Author
Owner

@buzzy commented on GitHub (Jul 31, 2025):

Gitea has full featured API and I think it is the "receiver" side's task to read any data they are interested in.

let's say gitea.com announces end of life sometime in future, ...

IIRC the goal of "gitea.com" isn't to be a large & general purpose public git service, it is still recommended to use GitHub or a self-hosted Gitea instance.

"full featured"? Ok, then please let me know how I can list user-projects through the API. I am unable to find it in the swagger definition. Also, how do I add a user-project through the API? Thanks!

@buzzy commented on GitHub (Jul 31, 2025): > Gitea has full featured API and I think it is the "receiver" side's task to read any data they are interested in. > > > let's say gitea.com announces end of life sometime in future, ... > > IIRC the goal of "gitea.com" isn't to be a large & general purpose public git service, it is still recommended to use GitHub or a self-hosted Gitea instance. "full featured"? Ok, then please let me know how I can list user-projects through the API. I am unable to find it in the swagger definition. Also, how do I add a user-project through the API? Thanks!
Author
Owner

@wxiaoguang commented on GitHub (Jul 31, 2025):

Gitea has full featured API and I think it is the "receiver" side's task to read any data they are interested in.

let's say gitea.com announces end of life sometime in future, ...

IIRC the goal of "gitea.com" isn't to be a large & general purpose public git service, it is still recommended to use GitHub or a self-hosted Gitea instance.

"full featured"? Ok, then please let me know how I can list user-projects through the API. I am unable to find it in the swagger definition. Also, how do I add a user-project through the API? Thanks!

See the comment above: https://github.com/go-gitea/gitea/issues/34969#issuecomment-3041211325

And the code is always there, so you can also write new code or change existing code to satisfy your requirements.

@wxiaoguang commented on GitHub (Jul 31, 2025): > > Gitea has full featured API and I think it is the "receiver" side's task to read any data they are interested in. > > > let's say gitea.com announces end of life sometime in future, ... > > > > > > IIRC the goal of "gitea.com" isn't to be a large & general purpose public git service, it is still recommended to use GitHub or a self-hosted Gitea instance. > > "full featured"? Ok, then please let me know how I can list user-projects through the API. I am unable to find it in the swagger definition. Also, how do I add a user-project through the API? Thanks! See the comment above: https://github.com/go-gitea/gitea/issues/34969#issuecomment-3041211325 And the code is always there, so you can also write new code or change existing code to satisfy your requirements.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14710