This commit is contained in:
Unknwon 2016-01-06 13:18:57 +08:00
parent 7830cf2c51
commit 2f4342d6de
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ import (
) )
func Version() string { func Version() string {
return "0.7.1" return "0.7.2"
} }
// Client represents a Gogs API client. // Client represents a Gogs API client.

View file

@ -38,7 +38,7 @@ func (c *Client) ListMyRepos() ([]*Repository, error) {
} }
type CreateRepoOption struct { 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)"` Description string `json:"description" binding:"MaxSize(255)"`
Private bool `json:"private"` Private bool `json:"private"`
AutoInit bool `json:"auto_init"` AutoInit bool `json:"auto_init"`