We're excited to announce the launch of project-level branch restrictions. This feature is part of our efforts to help teams manage code at scale.
What are branch restrictions and merge settings?Branch restrictions are an essential tool for maintaining the integrity of your codebase. They help you control access to specific branches so only authorized team members can push or merge.
Merge settings are used to maintain code quality. They are a list of conditions, such as approval requirements, successful build status and resolved tasks, that must be met before a pull request can be merged. Branch restrictions ensure that your team follows best practices and maintains code quality when merging changes.
The power of configuring branch restrictions within a projectPreviously, branch restrictions have to be configured individually for each repository. While this provided flexibility, it also meant that maintaining consistency across repositories could become time-consuming and prone to errors. With the introduction of project-level branch permissions and merge settings, you can now apply a standard set of rules and checks to all repositories within a project, making it easier to manage permissions and maintain a consistent workflow.
Here are some key advantages of configuring branch restrictions within a project:
Getting started with project-level branch restrictionsTo start using project-level branch restrictions in Bitbucket, follow these simple steps:
Once configured, the project-level settings will automatically apply to all existing and future repositories within the project. Keep in mind that repository-level settings will override project-level settings, so you can still have unique configurations for specific repositories, if necessary.
The post Maintain code quality at scale with project-level branch restrictions appeared first on Bitbucket.