mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
feat: implement migration of website field from gogs/gitea/github (#6474)
* cleanup: remove not used properties * feat: implement migration of website field from gogs * feat: implement dumping and restoring website field * feat: implement migration of website field from gitea * feat: implement migration of homepage/website field from github * feat: implement website properties for repository migration Gogs migration is untested for now. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6474 Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: ThomasBoom89 <thomasboom89@noreply.codeberg.org> Co-committed-by: ThomasBoom89 <thomasboom89@noreply.codeberg.org>
This commit is contained in:
parent
243fdb60d0
commit
5be7c6cbd8
25 changed files with 32 additions and 23 deletions
|
@ -45,6 +45,7 @@ type CreateRepoOptions struct {
|
|||
TrustModel repo_model.TrustModelType
|
||||
MirrorInterval string
|
||||
ObjectFormatName string
|
||||
Website string
|
||||
}
|
||||
|
||||
func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir, repoPath string, opts CreateRepoOptions) error {
|
||||
|
@ -238,6 +239,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, u *user_model.User, opt
|
|||
DefaultBranch: opts.DefaultBranch,
|
||||
WikiBranch: setting.Repository.DefaultBranch,
|
||||
ObjectFormatName: opts.ObjectFormatName,
|
||||
Website: opts.Website,
|
||||
}
|
||||
|
||||
var rollbackRepo *repo_model.Repository
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue