Protecting branches

Define branch protection rules to control who can share or merge changes in important branches of your decision automation.

About this task

Role permissions control who has read and write access to a decision automation, but they do not restrict actions on specific branches. Branch protection rules help you go further by limiting who can share changes or merge into protected branch to users with the admin permission only. Users without admin permission can still work locally in protected branches.

You can protect branches by using the following pattern types:
Goal Pattern example
Protect a specific branch main
Protect any branch that matches a string *prod*
Protect all current and future branches *

Procedure

  1. Click the Settings Settings icon icon in the toolbar at the top of your decision automation page to open the Settings menu.
  2. Open the Branch protection rules tab.
  3. Click Add +.
  4. Under Pattern, type the branch name or pattern that you want to protect.
    Click the arrow next to the pattern name to see to the list of branches the pattern applies to.

Results

The protection rule is applied to all branches that match the pattern. Users without the admin permission can no longer share or merge changes into protected branches.

What to do next

To remove a branch protection rule, open the Branch protection rules tab, and click the Delete Delete icon icon next to the rule.