Update protected branch
update_protected_branchUpdate branch protection policies after reading current policy, requiring explicit acknowledgement and an unprotect rule to prevent accidental changes.
Instructions
Update protected-branch policy only after reading the current policy. An explicit acknowledgement and unprotect rule are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| allowed_to_push | No | ||
| allow_force_push | No | ||
| allowed_to_merge | No | ||
| allowed_to_unprotect | Yes | ||
| code_owner_approval_required | No | ||
| acknowledge_protection_change | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |