[PR #1763] [MERGED] Allow to set organization visibility (public, internal, private) #16040

Closed
opened 2025-11-02 12:00:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1763
Author: @DblK
Created: 5/19/2017
Status: Merged
Merged: 2/18/2019
Merged by: @lafriks

Base: masterHead: feature_AllowPrivateOrganization


📝 Commits (10+)

  • c2a75b3 Add UI visibility in organization settings
  • 4df763c Set Visibility Public by default when creating new organization
  • 9d73ff4 Implement visibility in explore/organizations
  • 7bdc6e8 Implement visibility in explore/repos
  • fb0c45a Implement global configuration for new organizations
  • 90ec030 Add in admin/repos and admin/org gold lock icons for private organization
  • 8eaddfc Handle display of repositories from explore/repo and when viewing an organization
  • 20e63bb Add lock icon for private org on explore/repo
  • 15d9e00 User profile display organization based on Membership Visibility and Organization Visibility
  • 49e4008 Resolve Conflict for merging

📊 Changes

27 files changed (+388 additions, -28 deletions)

View changed files

📝 custom/conf/app.ini.sample (+5 -0)
📝 docs/content/doc/advanced/config-cheat-sheet.en-us.md (+5 -4)
📝 models/migrations/migrations.go (+1 -0)
📝 models/org.go (+36 -0)
📝 models/org_test.go (+71 -0)
📝 models/repo_list.go (+35 -0)
📝 models/user.go (+51 -13)
📝 modules/auth/org.go (+5 -1)
📝 modules/setting/service.go (+9 -1)
modules/structs/org_type.go (+49 -0)
📝 options/locale/locale_en-US.ini (+6 -0)
📝 routers/api/v1/org/org.go (+4 -0)
📝 routers/api/v1/repo/repo.go (+5 -0)
📝 routers/home.go (+9 -0)
📝 routers/org/org.go (+6 -3)
📝 routers/org/setting.go (+4 -0)
📝 routers/repo/view.go (+5 -0)
📝 routers/user/home.go (+6 -0)
📝 routers/user/profile.go (+2 -0)
📝 templates/admin/config.tmpl (+3 -0)

...and 7 more files

📄 Description

This will implement a way to have a visibility on organization (Public, Limited & Private).
It will implement #714 .

The UI modification is in settings:
image

The rules for displaying organization and repositories within organization are described in #714


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1763 **Author:** [@DblK](https://github.com/DblK) **Created:** 5/19/2017 **Status:** ✅ Merged **Merged:** 2/18/2019 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `feature_AllowPrivateOrganization` --- ### 📝 Commits (10+) - [`c2a75b3`](https://github.com/go-gitea/gitea/commit/c2a75b3762fbaf949cd8f12a6aa7c0989d274e24) Add UI visibility in organization settings - [`4df763c`](https://github.com/go-gitea/gitea/commit/4df763c3b11c77a1c5ed034e321d8d3ef358762f) Set Visibility Public by default when creating new organization - [`9d73ff4`](https://github.com/go-gitea/gitea/commit/9d73ff4b3e8c71e040adf1ca27703230d529bff8) Implement visibility in explore/organizations - [`7bdc6e8`](https://github.com/go-gitea/gitea/commit/7bdc6e8bbc2825b8cd9acc25b2dfa0d19853656a) Implement visibility in explore/repos - [`fb0c45a`](https://github.com/go-gitea/gitea/commit/fb0c45abb13dd6e225a60ca4666dea618a391a62) Implement global configuration for new organizations - [`90ec030`](https://github.com/go-gitea/gitea/commit/90ec0302a3aae204c5d65cba9005ba5ac759f312) Add in admin/repos and admin/org gold lock icons for private organization - [`8eaddfc`](https://github.com/go-gitea/gitea/commit/8eaddfc86b349fda1f379d1acd551b7f9fa2f3a2) Handle display of repositories from explore/repo and when viewing an organization - [`20e63bb`](https://github.com/go-gitea/gitea/commit/20e63bb47952c3d0ed56c9ccd60360621f2438ae) Add lock icon for private org on explore/repo - [`15d9e00`](https://github.com/go-gitea/gitea/commit/15d9e00533adc6a6e4a052a0eed7b78ec40d3f31) User profile display organization based on Membership Visibility and Organization Visibility - [`49e4008`](https://github.com/go-gitea/gitea/commit/49e4008a40d3a8fa830489e6dfac86203ac8b43f) Resolve Conflict for merging ### 📊 Changes **27 files changed** (+388 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `custom/conf/app.ini.sample` (+5 -0) 📝 `docs/content/doc/advanced/config-cheat-sheet.en-us.md` (+5 -4) 📝 `models/migrations/migrations.go` (+1 -0) 📝 `models/org.go` (+36 -0) 📝 `models/org_test.go` (+71 -0) 📝 `models/repo_list.go` (+35 -0) 📝 `models/user.go` (+51 -13) 📝 `modules/auth/org.go` (+5 -1) 📝 `modules/setting/service.go` (+9 -1) ➕ `modules/structs/org_type.go` (+49 -0) 📝 `options/locale/locale_en-US.ini` (+6 -0) 📝 `routers/api/v1/org/org.go` (+4 -0) 📝 `routers/api/v1/repo/repo.go` (+5 -0) 📝 `routers/home.go` (+9 -0) 📝 `routers/org/org.go` (+6 -3) 📝 `routers/org/setting.go` (+4 -0) 📝 `routers/repo/view.go` (+5 -0) 📝 `routers/user/home.go` (+6 -0) 📝 `routers/user/profile.go` (+2 -0) 📝 `templates/admin/config.tmpl` (+3 -0) _...and 7 more files_ </details> ### 📄 Description This will implement a way to have a visibility on organization (Public, Limited & Private). It will implement #714 . The UI modification is in settings: ![image](https://cloud.githubusercontent.com/assets/832617/26253976/5f5cd9c6-3cb5-11e7-9b83-4d72d1bd2d54.png) The rules for displaying organization and repositories within organization are described in #714 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:00:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16040