fix gogits/gogs#2329
This commit is contained in:
parent
7830cf2c51
commit
2f4342d6de
2 changed files with 2 additions and 2 deletions
2
gogs.go
2
gogs.go
|
@ -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.
|
||||||
|
|
2
repo.go
2
repo.go
|
@ -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"`
|
||||||
|
|
Loading…
Reference in a new issue