Git Create Branch
git_create_branchCreate or switch to a Git branch following the pattern type/<ticket_id>-. Auto-derives the slug from the Leantime ticket headline when not provided.
Instructions
Create (or switch to) a branch named type/<ticket_id>-<slug> (the aibranch workflow).
If slug is omitted, the ticket headline is fetched from Leantime and slugified (Vietnamese diacritics handled).
Args:
ticket_id (string|number): Leantime ticket id
type (string, optional): branch type prefix (default "feat")
slug (string, optional): explicit slug; auto-derived from the ticket headline if omitted
repo_path (string, optional): repository path (default: server cwd)
Returns JSON: { branch, created }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes | Leantime ticket id | |
| type | No | Branch type prefix, e.g. feat/fix/chore (default feat) | |
| slug | No | Explicit slug; auto-derived from ticket headline if omitted | |
| repo_path | No | Path to the git repository. Defaults to the server's working directory. |