Disable Public Repository Setting At The Project Level
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
This article goes over setting repository privacy at the project level to prevent a repository from being set to public.
Solution
Workspace and project admins can set all existing projects to private so that users cannot change the repository privacy (public/private).
- Navigate to your workspace (https://bitbucket.org/yourWorkspaceID/workspace/overview/)
- Click Projects
- Choose a project and Navigate to the Project Settings.
- Enable the option Private project* and click Save Project.
By making the project private, the repository privacy for new and existing repositories cannot be changed at the repository level. This can help safeguard a repository from accidentally being set to public.
*Please note that all repositories in the project must be independently set to private before the project can be set to private.