api/repo: add Mirror field (#4392)

This commit is contained in:
Unknwon
2017-04-07 18:15:23 -04:00
parent 9e3c83372f
commit 65277e47c5
4 changed files with 6 additions and 4 deletions

View File

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

View File

@@ -27,6 +27,7 @@ type Repository struct {
Description string `json:"description"`
Private bool `json:"private"`
Fork bool `json:"fork"`
Mirror bool `json:"mirror"`
HTMLURL string `json:"html_url"`
SSHURL string `json:"ssh_url"`
CloneURL string `json:"clone_url"`