From 2e0bf90397e049251c7f4b1dc0187a07480ae1b8 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sat, 7 Jun 2025 05:31:34 +0200 Subject: [PATCH] add codecommit to supported services in api docs (#34626) --- 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 fb784bd8b37f8..5f74357adcdf2 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 c14c46a54e4f8..535982779d761 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" },