Merge squash
merge_squash
Merge-squash hook action.
Merges a session branch back to the target branch with --squash.
MergeSquashHook
dataclass
Merge session branch back to main with squash.
Branch name priority: branch param > context["branch"]
{prefix}/{session_id}fallback.
Commit message priority: message param >
[AXM] {protocol_name}: {session_id} fallback.
Source code in packages/axm-git/src/axm_git/hooks/merge_squash.py
execute(context, **params)
Execute the hook action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
dict[str, Any]
|
Session context dictionary (must contain
|
required |
**params
|
Any
|
Optional |
{}
|
Returns:
| Type | Description |
|---|---|
HookResult
|
HookResult with |