Move migration functions to services layer (#29497)

This commit is contained in:
Lunny Xiao 2024-03-01 10:23:00 +08:00 committed by GitHub
parent 5e32cd6beb
commit 58ce1de994
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 267 additions and 248 deletions

View file

@ -120,7 +120,7 @@ func (g *GiteaLocalUploader) CreateRepo(repo *base.Repository, opts base.Migrate
r.DefaultBranch = repo.DefaultBranch
r.Description = repo.Description
r, err = repo_module.MigrateRepositoryGitData(g.ctx, owner, r, base.MigrateOptions{
r, err = repo_service.MigrateRepositoryGitData(g.ctx, owner, r, base.MigrateOptions{
RepoName: g.repoName,
Description: repo.Description,
OriginalURL: repo.OriginalURL,