diff --git a/modules/structs/repo.go b/modules/structs/repo.go index b5a26a8155..d69eb3b5bd 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -311,7 +311,7 @@ type MigrateRepoOptions struct { // required: true RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` - // enum: git,github,gitea,gitlab + // enum: git,github,gitea,gitlab,gogs,onedev,gitbucket,codebase Service string `json:"service"` AuthUsername string `json:"auth_username"` AuthPassword string `json:"auth_password"` diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 50a969cd17..f6b325c1c3 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -17828,7 +17828,11 @@ "git", "github", "gitea", - "gitlab" + "gitlab", + "gogs", + "onedev", + "gitbucket", + "codebase" ], "x-go-name": "Service" },