Skip to main content
All CollectionsIntegrating Git and CI/CDGit ProvidersBitBucket
Configuring Branch and Merge Protection Rules in BitBucket
Configuring Branch and Merge Protection Rules in BitBucket
Support avatar
Written by Support
Updated over a week ago

BitBucket combines Branch and Merge protection rules into a single function. Navigate to the repository used by Salto, click on Repository Settings on the left

Then click on Branch restrictions on the left and Add a branch restriction

For the branch name or pattern, type in salto/before/env/<targetEnvId>/deployment/*.

(To apply the rules to all environments you can add salto/before/*).

Under Branch permissions, allow everyone with access to the repository to perform both actions to ensure Salto can work properly on the protected branch.

For Merge settings, select the items that conform to your organization's policies.

* Required merge checks are part of BitBucket's Premium tier or higher.

Did this answer your question?