- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.2k
          Add DEFAULT_MIRROR_REPO_UNITS and DEFAULT_TEMPLATE_REPO_UNITS options
          #32416
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    Add DEFAULT_MIRROR_REPO_UNITS and DEFAULT_TEMPLATE_REPO_UNITS options
  
  #32416
              Conversation
| If a template is a fork of another template repository, which default should it follow? Forked or template? | 
| Maybe this can be done one by one. | 
| 
 It should use  | 
| 
 Since this PR is to add some new features rather than fix bugs, I think we can do this in one PR. | 
| Please resolve the conflict | 
| 
 Done | 
* giteaofficial/main: Calculate `PublicOnly` for org membership only once (go-gitea#32234) Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (go-gitea#32416) Add a doctor check to disable the "Actions" unit for mirrors (go-gitea#32424) Refactor sidebar assignee&milestone&project selectors (go-gitea#32465)
Resolve #30350
The action unit of mirrors and templates should be disabled by default. This PR adds
DEFAULT_MIRROR_REPO_UNITSandDEFAULT_TEMPLATE_REPO_UNITSoptions to allow users to specify default units for mirrors and templates.Thanks to @lng2020 for the idea