From 05dbb8c1ca636d23f4d15b8c33a19101d6a28776 Mon Sep 17 00:00:00 2001 From: Crayon Date: Sat, 22 May 2021 14:46:35 -0400 Subject: [PATCH] Set description max size to 512 Set description max size to 512 when creating a repository --- repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo.go b/repo.go index b31cd09..ab53a8a 100644 --- a/repo.go +++ b/repo.go @@ -64,7 +64,7 @@ func (c *Client) ListOrgRepos(org string) ([]*Repository, error) { type CreateRepoOption struct { Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"` - Description string `json:"description" binding:"MaxSize(255)"` + Description string `json:"description" binding:"MaxSize(512)"` Private bool `json:"private"` Unlisted bool `json:"unlisted"` AutoInit bool `json:"auto_init"`