Create branch
create_branch
Create-branch hook action.
Creates a session branch in the working directory. Branch name is resolved
with priority: branch param > ticket params > {prefix}/{session_id}.
CreateBranchHook
dataclass
Create a session branch.
Branch name priority:
branchparam (direct override)ticket_id+ticket_titleparams →branch_name_from_ticket(){prefix}/{session_id}(legacy fallback)
Skips gracefully when the working directory is not a git repository.
Source code in packages/axm-git/src/axm_git/hooks/create_branch.py
execute(context, **params)
Execute the hook action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
dict[str, object]
|
Session context dictionary (must contain |
required |
**params
|
object
|
Optional |
{}
|
Returns:
| Type | Description |
|---|---|
HookResult
|
HookResult with |