diff --git a/models/repo.go b/models/repo.go index 4741bdd6b..808ef1a46 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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, diff --git a/vendor/github.com/gogits/go-gogs-client/gogs.go b/vendor/github.com/gogits/go-gogs-client/gogs.go index 2869e6c25..1c81d16f0 100644 --- a/vendor/github.com/gogits/go-gogs-client/gogs.go +++ b/vendor/github.com/gogits/go-gogs-client/gogs.go @@ -14,7 +14,7 @@ import ( ) func Version() string { - return "0.12.11" + return "0.12.12" } // Client represents a Gogs API client. diff --git a/vendor/github.com/gogits/go-gogs-client/repo.go b/vendor/github.com/gogits/go-gogs-client/repo.go index f3b393c97..f89aca54d 100644 --- a/vendor/github.com/gogits/go-gogs-client/repo.go +++ b/vendor/github.com/gogits/go-gogs-client/repo.go @@ -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"` diff --git a/vendor/vendor.json b/vendor/vendor.json index 0118a0170..abc5d0d30 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -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=",