diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-05 13:41:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 14:41:06 +0300 |
commit | 5acba4609a8eb060d91faf42c771da1a62c0170b (patch) | |
tree | 71febdaaebad925165b24cb61633ade5355caedf /modules | |
parent | f761a37a0f024ea54c4eee9cbae22377616e84e0 (diff) | |
download | gitea-5acba4609a8eb060d91faf42c771da1a62c0170b.tar.gz gitea-5acba4609a8eb060d91faf42c771da1a62c0170b.zip |
Add internal-repo octicon for public repos of private org (#11529)
* Show multiple octicons on repo list
* fix mixed spaces/tabs
* Internal repo octicon
* show internal icon in dashboard repolist
* swagger
* fix icon for normal repo on repo page
* don't expose owner visibility directly; provide internal in repo api
* fix icons for forks and mirrors
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 832d330e74..2ff1a1ec26 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -88,6 +88,7 @@ type Repository struct { AllowRebaseMerge bool `json:"allow_rebase_explicit"` AllowSquash bool `json:"allow_squash_merge"` AvatarURL string `json:"avatar_url"` + Internal bool `json:"internal"` } // CreateRepoOption options when creating repository |