mirror of https://github.com/gogs/gogs.git
api/repo: add Mirror field (#4392)
parent
9e3c83372f
commit
65277e47c5
|
@ -293,6 +293,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository {
|
|||
Description: repo.Description,
|
||||
Private: repo.IsPrivate,
|
||||
Fork: repo.IsFork,
|
||||
Mirror: repo.IsMirror,
|
||||
HTMLURL: repo.HTMLURL(),
|
||||
SSHURL: cloneLink.SSH,
|
||||
CloneURL: cloneLink.HTTPS,
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
)
|
||||
|
||||
func Version() string {
|
||||
return "0.12.11"
|
||||
return "0.12.12"
|
||||
}
|
||||
|
||||
// Client represents a Gogs API client.
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -183,10 +183,10 @@
|
|||
"revisionTime": "2017-04-07T00:57:10Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "D2kVXl0QpIw6t3891Sl7IM9wL+w=",
|
||||
"checksumSHA1": "mMYDXzTNUWg8ZTRhqXEF+7KaSpU=",
|
||||
"path": "github.com/gogits/go-gogs-client",
|
||||
"revision": "6422399bb531fae9500b29b5d8bfe23aa0ce6beb",
|
||||
"revisionTime": "2017-03-16T21:31:09Z"
|
||||
"revision": "9447dded395900409c1d3ad641a2d72502b46282",
|
||||
"revisionTime": "2017-04-07T22:14:43Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "p4yoFWgDiTfpu1JYgh26t6+VDTk=",
|
||||
|
|
Loading…
Reference in New Issue