Skip to content

Commit 81f5d5b

Browse files
GiteaBotpuni9869
andauthored
Adding remaining enum for migration repo model type. (#26021) (#26033)
Backport #26021 by @puni9869 Fixes: #26010 Adding remaining enum for migration repo model type. Co-authored-by: puni9869 <[email protected]>
1 parent 2184a06 commit 81f5d5b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/structs/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ type MigrateRepoOptions struct {
311311
// required: true
312312
RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"`
313313

314-
// enum: git,github,gitea,gitlab
314+
// enum: git,github,gitea,gitlab,gogs,onedev,gitbucket,codebase
315315
Service string `json:"service"`
316316
AuthUsername string `json:"auth_username"`
317317
AuthPassword string `json:"auth_password"`

templates/swagger/v1_json.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17828,7 +17828,11 @@
1782817828
"git",
1782917829
"github",
1783017830
"gitea",
17831-
"gitlab"
17831+
"gitlab",
17832+
"gogs",
17833+
"onedev",
17834+
"gitbucket",
17835+
"codebase"
1783217836
],
1783317837
"x-go-name": "Service"
1783417838
},

0 commit comments

Comments
 (0)