Skip to content

Commit 1c26127

Browse files
authored
Increase max length of org team names from 30 to 255 characters (#31410)
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.
1 parent 7adf8d7 commit 1c26127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/structs/org_team.go

+2-2
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)