increased description limits to 2048 (#645)
I noticed that the description limits on gitea were changed to 2048 characters last year, but it was still 255 in the SDK.
Here the corresponding commit on gitea:
8351172b6e
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/645
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Andreas Wachter <andreas.wachter@buddyspencer.monster>
Co-committed-by: Andreas Wachter <andreas.wachter@buddyspencer.monster>
This commit is contained in:
parent
bde56fb9bb
commit
8f4d3d8916
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue