Browse Source

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

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>
tags/v1.20.1
Giteabot 10 months ago
parent
commit
8b002b429d
No account linked to committer's email address
2 changed files with 6 additions and 2 deletions
  1. 1
    1
      modules/structs/repo.go
  2. 5
    1
      templates/swagger/v1_json.tmpl

+ 1
- 1
modules/structs/repo.go View File

@@ -327,7 +327,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"`

+ 5
- 1
templates/swagger/v1_json.tmpl View File

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

Loading…
Cancel
Save