diff --git a/gitea/repo.go b/gitea/repo.go index 7d2d242..79aa52d 100644 --- a/gitea/repo.go +++ b/gitea/repo.go @@ -334,8 +334,8 @@ func (opt CreateRepoOption) Validate(c *Client) error { if len(opt.Name) > 100 { return fmt.Errorf("name has more than 100 chars") } - if len(opt.Description) > 255 { - return fmt.Errorf("description has more than 255 chars") + if len(opt.Description) > 2048 { + return fmt.Errorf("description has more than 2048 chars") } if len(opt.DefaultBranch) > 100 { return fmt.Errorf("default branch name has more than 100 chars") diff --git a/gitea/repo_migrate.go b/gitea/repo_migrate.go index 3ab690e..2de2153 100644 --- a/gitea/repo_migrate.go +++ b/gitea/repo_migrate.go @@ -62,7 +62,7 @@ func (opt *MigrateRepoOption) Validate(c *Client) error { } else if len(opt.RepoName) > 100 { return fmt.Errorf("RepoName to long") } - if len(opt.Description) > 255 { + if len(opt.Description) > 2048 { return fmt.Errorf("Description to long") } switch opt.Service {