Will this branch name pass the repo's hooks?
rrt_validate_branchCheck a branch name against the repo's configured type allow-list before creating it to avoid pre-commit hook rejections. Honors extra branch types from config.
Instructions
Check a branch name against this repo's configured type allow-list before you create it.
Cheaper than creating it and having the pre-commit hook reject it. Honors extra_branch_types from config, which a hardcoded regex would miss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| branch | Yes | ||
| reason | No |