diff options
author | Giteabot <teabot@gitea.io> | 2023-07-21 02:54:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 08:54:43 +0200 |
commit | 8b002b429d1b3c6762e321b5f0acadf66e3d5233 (patch) | |
tree | e81a6f8a9987e790dcdf58057fa98b77df494c49 | |
parent | dfd371a363228c9477e1666e8a425423b1e37190 (diff) | |
download | gitea-8b002b429d1b3c6762e321b5f0acadf66e3d5233.tar.gz gitea-8b002b429d1b3c6762e321b5f0acadf66e3d5233.zip |
Adding remaining enum for migration repo model type. (#26021) (#26034)
Backport #26021 by @puni9869
Fixes: https://github.com/go-gitea/gitea/issues/26010
Adding remaining enum for migration repo model type.
Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
-rw-r--r-- | modules/structs/repo.go | 2 | ||||
-rw-r--r-- | 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 3b43f74c79..159ba76cec 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 e7d1cc1fe5..dcf4e063a9 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -19558,7 +19558,11 @@ "git", "github", "gitea", - "gitlab" + "gitlab", + "gogs", + "onedev", + "gitbucket", + "codebase" ], "x-go-name": "Service" }, |