jclain
October 8, 2019, 7:33pm
1
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é
lunny
October 9, 2019, 3:37pm
2
That may not be implemented.
jclain
October 9, 2019, 4:52pm
3
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
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 ?
jclain
October 12, 2019, 6:17am
5
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