mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 08:47:42 -05:00
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 8b002b429d
)
This commit is contained in:
parent
7cc4d211b1
commit
8e4f521381
2 changed files with 6 additions and 2 deletions
|
@ -327,7 +327,7 @@ type MigrateRepoOptions struct {
|
||||||
// required: true
|
// required: true
|
||||||
RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
|
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"`
|
Service string `json:"service"`
|
||||||
AuthUsername string `json:"auth_username"`
|
AuthUsername string `json:"auth_username"`
|
||||||
AuthPassword string `json:"auth_password"`
|
AuthPassword string `json:"auth_password"`
|
||||||
|
|
6
templates/swagger/v1_json.tmpl
generated
6
templates/swagger/v1_json.tmpl
generated
|
@ -19778,7 +19778,11 @@
|
||||||
"git",
|
"git",
|
||||||
"github",
|
"github",
|
||||||
"gitea",
|
"gitea",
|
||||||
"gitlab"
|
"gitlab",
|
||||||
|
"gogs",
|
||||||
|
"onedev",
|
||||||
|
"gitbucket",
|
||||||
|
"codebase"
|
||||||
],
|
],
|
||||||
"x-go-name": "Service"
|
"x-go-name": "Service"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue