validate_branch_name
Validate branch naming conventions to ensure branch names follow defined patterns. Returns pass/fail status with per-check results.
Instructions
Validate branch naming conventions with commit-check. Read-only validation. Returns a structured result with overall status ('pass'/'fail') and per-check results (check name, status, value, error, suggest).
Use this when you need to verify a branch name follows configured convention rules (e.g., feature/, bugfix/). For combined message+branch+author validation, use validate_commit_context.
Parameters:
branch (optional): The branch name to validate. If omitted, detected from the current repo.
config (optional): Inline JSON config overrides.
repo_path (optional): Path to the git repository.
config_path (optional): Path to a custom commit-check TOML config file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| config | No | ||
| repo_path | No | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||