Validate a git branch name
validate_branch_nameValidate git branch names against the Udacity convention (type/kebab-case). Returns compliance status with any violations and warnings, exempting base branches like main/master.
Instructions
Check a git branch name against the companion type/kebab-case convention (e.g. "feat/add-dark-mode"). Returns whether it is compliant plus any problems (violations) and warnings (hints). Base branches like main/master are exempt.
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": {
"name": "<name>"
},
"name": "validate_branch_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The branch name to check, e.g. "feat/add-dark-mode" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| problems | Yes | ||
| warnings | Yes |