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
- Click the Settings
icon in the toolbar at the top of your decision automation page to open the Settings menu.
- Open the Branch protection rules tab.
- Click Add +.
- 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.