Skip to content

Commit

Permalink
Fix: Allow org team names of length 255 in create team form (go-gitea…
Browse files Browse the repository at this point in the history
…#31564)

Gitea 1.22.1 was supposed to allow for team names of length 255 (up from
30) after the following PR was merged in:
go-gitea#31410. However, the length of
team names was still limited to 30 as described in this issue:
go-gitea#31554.

One more change to _gitea_ needs to be made to allow for the longer team
names, as there is a 30 character limit here:
https://github.com/go-gitea/gitea/blob/2c92c7c5226e29636a1d47a277130f477fa2037b/services/forms/org.go#L65

This PR changes that value to 255.
  • Loading branch information
tobiasbp authored Jul 10, 2024
1 parent af1f0df commit 4ea2a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/forms/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (f *UpdateOrgSettingForm) Validate(req *http.Request, errs binding.Errors)

// CreateTeamForm form for creating team
type CreateTeamForm struct {
TeamName string `binding:"Required;AlphaDashDot;MaxSize(30)"`
TeamName string `binding:"Required;AlphaDashDot;MaxSize(255)"`
Description string `binding:"MaxSize(255)"`
Permission string
RepoAccess string
Expand Down

0 comments on commit 4ea2a6d

Please sign in to comment.