diff --git a/modules/structs/repo.go b/modules/structs/repo.go index fb784bd8b3..5f74357adc 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -357,7 +357,7 @@ type MigrateRepoOptions struct { // required: true RepoName string `json:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` - // enum: git,github,gitea,gitlab,gogs,onedev,gitbucket,codebase + // enum: git,github,gitea,gitlab,gogs,onedev,gitbucket,codebase,codecommit Service string `json:"service"` AuthUsername string `json:"auth_username"` AuthPassword string `json:"auth_password"` diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index c14c46a54e..535982779d 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -24806,7 +24806,8 @@ "gogs", "onedev", "gitbucket", - "codebase" + "codebase", + "codecommit" ], "x-go-name": "Service" },