From 05f32114d18f1e51782a567dc698de8dce4f2044 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 20 Jun 2024 09:27:13 +0800 Subject: [PATCH] Increase max length of org team names from 30 to 255 characters (#31410) (#31421) Backport #31410 by tobiasbp This PR modifies the structs for editing and creating org teams to allow team names to be up to 255 characters. The previous maximum length was 30 characters. Co-authored-by: Tobias Balle-Petersen --- modules/structs/org_team.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go index 78dc4abaefd..f8899b236bf 100644 --- a/modules/structs/org_team.go +++ b/modules/structs/org_team.go @@ -24,7 +24,7 @@ type Team struct { // CreateTeamOption options for creating a team type CreateTeamOption struct { // required: true - Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"` + Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(255)"` Description string `json:"description" binding:"MaxSize(255)"` IncludesAllRepositories bool `json:"includes_all_repositories"` // enum: read,write,admin @@ -40,7 +40,7 @@ type CreateTeamOption struct { // EditTeamOption options for editing a team type EditTeamOption struct { // required: true - Name string `json:"name" binding:"AlphaDashDot;MaxSize(30)"` + Name string `json:"name" binding:"AlphaDashDot;MaxSize(255)"` Description *string `json:"description" binding:"MaxSize(255)"` IncludesAllRepositories *bool `json:"includes_all_repositories"` // enum: read,write,admin