Howto move a repository with the api

hello,

is it possible to move a repository to a new user / organisation (i.e change the owner of the repository) using the API? this seems not to be possible with gitea 1.9.3, but I may do it wrong

according to the doc, PATCH[​/repos​/{owner}​/{repo}] can only change the name (ie. rename the repository) but not the owner

any idea? should I fill a feature request?

TIA, regards,
Jephté

That may not be implemented.

hello,

thank you for your response.
I suppose the feature doesn’t exist because there isn’t the need yet

well, I don’t know ‘go’, so I cannot contribute a PR. I’ll move the 50+ repos manually :frowning:

have a good day. best regards,
Jephté Clain

Can’t you just use migrate it to another user?
Maybe with https://try.gitea.io/api/swagger#/repository/repoMigrate?

hello,

thank you. that’s an idea. I’ll try next time I have to move around a bunch of repository

best regards, Jephté Clain

Le jeu. 10 oct. 2019 à 10:11, Andreas Wachter via Gitea gitea@discoursemail.com a écrit :

Hello

With API we can’t transfer a repository between two organization.
We can use a workaround as explained at https://github.com/go-gitea/gitea/issues/9858