Add "mirror" field to repo API

tokarchuk/v1.17
Andrey Nering 8 years ago
parent d4a7040c7f
commit 946f3078d3
  1. 1
      models/repo.go

@ -281,6 +281,7 @@ func (repo *Repository) APIFormat(mode AccessMode) *api.Repository {
Description: repo.Description,
Private: repo.IsPrivate,
Fork: repo.IsFork,
Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(),
SSHURL: cloneLink.SSH,
CloneURL: cloneLink.HTTPS,

Loading…
Cancel
Save