Skip to content

Commit 05f3211

Browse files
GiteaBottobiasbp
andauthored
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 <[email protected]>
1 parent 5c79c2b commit 05f3211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/structs/org_team.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Team struct {
2424
// CreateTeamOption options for creating a team
2525
type CreateTeamOption struct {
2626
// required: true
27-
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(30)"`
27+
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(255)"`
2828
Description string `json:"description" binding:"MaxSize(255)"`
2929
IncludesAllRepositories bool `json:"includes_all_repositories"`
3030
// enum: read,write,admin
@@ -40,7 +40,7 @@ type CreateTeamOption struct {
4040
// EditTeamOption options for editing a team
4141
type EditTeamOption struct {
4242
// required: true
43-
Name string `json:"name" binding:"AlphaDashDot;MaxSize(30)"`
43+
Name string `json:"name" binding:"AlphaDashDot;MaxSize(255)"`
4444
Description *string `json:"description" binding:"MaxSize(255)"`
4545
IncludesAllRepositories *bool `json:"includes_all_repositories"`
4646
// enum: read,write,admin

0 commit comments

Comments
 (0)