update_mr_approval_rule
Modify an existing merge request approval rule for a GitLab project. Use to change required approvers, name, or branches with a dry-run preview to confirm changes.
Instructions
Update an existing project-level MR approval rule. dry_run=true by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| rule_id | Yes | Approval rule ID (from list_mr_approval_rules) | |
| name | No | New rule name | |
| approvals_required | No | New approval count | |
| user_ids | No | Replace eligible user IDs | |
| group_ids | No | Replace eligible group IDs | |
| protected_branch_ids | No | Replace protected branch IDs | |
| applies_to_all_protected_branches | No | Apply to every protected branch | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |