mirror of
1
Fork 0

Adding remaining enum for migration repo model type. (#26021) (#26033)

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>
(cherry picked from commit 81f5d5b722)
This commit is contained in:
Giteabot 2023-07-21 05:25:23 -04:00 committed by Earl Warren
parent e188775591
commit 459d708d27
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
2 changed files with 6 additions and 2 deletions

View File

@ -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"`

View File

@ -17829,7 +17829,11 @@
"git",
"github",
"gitea",
"gitlab"
"gitlab",
"gogs",
"onedev",
"gitbucket",
"codebase"
],
"x-go-name": "Service"
},