Browse Source

api/repo: add Mirror field (#4392)

pull/3974/merge
Unknwon 8 years ago
parent
commit
65277e47c5
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 1
      models/repo.go
  2. 2
      vendor/github.com/gogits/go-gogs-client/gogs.go
  3. 1
      vendor/github.com/gogits/go-gogs-client/repo.go
  4. 6
      vendor/vendor.json

1
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,

2
vendor/github.com/gogits/go-gogs-client/gogs.go generated vendored

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

1
vendor/github.com/gogits/go-gogs-client/repo.go generated vendored

@ -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"`

6
vendor/vendor.json vendored

@ -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…
Cancel
Save