gitee_create_branch_protection_rule
Create branch protection rules using wildcard patterns to enforce push and merge restrictions on matching branches.
Instructions
Create branch protection rule (wildcard)
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": {
"owner": "<owner>",
"repo": "<repo>",
"wildcard": "<wildcard>"
},
"name": "gitee_create_branch_protection_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner (user/org/enterprise path) | |
| repo | Yes | Repository path name | |
| wildcard | Yes | Branch pattern (e.g. feature/*) | |
| new_wildcard | No | Rename wildcard | |
| pusher_restriction | No | Restrict push: 0=off,1=admin,2=team | |
| merger_restriction | No | Restrict merge: 0=off,1=admin,2=team |