Skip to content

Commit

Permalink
Adding remaining enum for migration repo model type. (go-gitea#26021)
Browse files Browse the repository at this point in the history
  • Loading branch information
puni9869 authored and GiteaBot committed Jul 21, 2023
1 parent 2184a06 commit c4d6972
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/structs/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
6 changes: 5 additions & 1 deletion templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17828,7 +17828,11 @@
"git",
"github",
"gitea",
"gitlab"
"gitlab",
"gogs",
"onedev",
"gitbucket",
"codebase"
],
"x-go-name": "Service"
},
Expand Down

0 comments on commit c4d6972

Please sign in to comment.