diff --git a/gogs.go b/gogs.go index 134d028..dba1328 100644 --- a/gogs.go +++ b/gogs.go @@ -14,7 +14,7 @@ import ( ) func Version() string { - return "0.7.1" + return "0.7.2" } // Client represents a Gogs API client. diff --git a/repo.go b/repo.go index aa6808f..7f703cb 100644 --- a/repo.go +++ b/repo.go @@ -38,7 +38,7 @@ func (c *Client) ListMyRepos() ([]*Repository, error) { } type CreateRepoOption struct { - Name string `json:"name" binding:"Required"` + Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"` Description string `json:"description" binding:"MaxSize(255)"` Private bool `json:"private"` AutoInit bool `json:"auto_init"`