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.
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 |