From e65f24f32e9cea8fc0d382a0793b0721fb74dfd3 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Fri, 6 Jun 2025 20:11:45 +0200 Subject: [PATCH] add codecommit to supported services in api docs --- 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 c48e71bc4e563..6fb23d93573b8 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -359,7 +359,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 71600e950c7a8..4830976d008dc 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -24863,7 +24863,8 @@ "gogs", "onedev", "gitbucket", - "codebase" + "codebase", + "codecommit" ], "x-go-name": "Service" },