Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 2f4342d

Browse files
committed
1 parent 7830cf2 commit 2f4342d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func Version() string {
17-
return "0.7.1"
17+
return "0.7.2"
1818
}
1919

2020
// Client represents a Gogs API client.

repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *Client) ListMyRepos() ([]*Repository, error) {
3838
}
3939

4040
type CreateRepoOption struct {
41-
Name string `json:"name" binding:"Required"`
41+
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"`
4242
Description string `json:"description" binding:"MaxSize(255)"`
4343
Private bool `json:"private"`
4444
AutoInit bool `json:"auto_init"`

0 commit comments

Comments
 (0)