From 29dc9c784e828f1956a8a4461aff24f4c15861e0 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sat, 7 Jun 2025 17:19:53 +0800 Subject: [PATCH] add codecommit to supported services in api docs (#34626) (#34633) Backport #34626 by TheFox0x7 Co-authored-by: TheFox0x7 --- modules/structs/repo.go | 2 +- templates/swagger/v1_json.tmpl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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" },