From d12ba978a70fab41aac47c2e16a48d0d8f82a17e Mon Sep 17 00:00:00 2001 From: puni9869 <80308335+puni9869@users.noreply.github.com> Date: Thu, 20 Jul 2023 22:58:38 +0530 Subject: [PATCH] Adding remaining enum for migration repo model type. (#26021) --- modules/structs/repo.go | 2 +- templates/swagger/v1_json.tmpl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 94992de72eb..af439ad7309 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -327,7 +327,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 42eda985289..0dfbc9c6959 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -19731,7 +19731,11 @@ "git", "github", "gitea", - "gitlab" + "gitlab", + "gogs", + "onedev", + "gitbucket", + "codebase" ], "x-go-name": "Service" },