Skip to content

Commit c4d6972

Browse files
puni9869GiteaBot
authored andcommitted
Adding remaining enum for migration repo model type. (go-gitea#26021)
1 parent 2184a06 commit c4d6972

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/structs/repo.go

+1-1
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

+5-1
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)