gitflic_branch_protection_create
Create a branch-protection rule that controls push and merge permissions for matching branch patterns, with optional force-push, auto-merge, and code-owner approval settings.
Instructions
Create a branch-protection rule.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"branchTemplate": "<branchTemplate>",
"allowedToPush": "<allowedToPush>",
"allowedToMerge": "<allowedToMerge>"
},
"name": "gitflic_branch_protection_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the full, un-slimmed GitFlic response for THIS call (no token compression). Use when the default slim view dropped a field you need. | |
| project | Yes | ||
| autoMerge | No | ||
| allowedToPush | Yes | ||
| allowForcePush | No | ||
| allowedToMerge | Yes | ||
| branchTemplate | Yes | Branch pattern (e.g. master, release/*) | |
| codeOwnerApproval | No |