Create pr
create_pr
Create-PR hook action.
Creates a GitHub pull request with conventional commit title and auto-merge.
CreatePRHook
dataclass
Create a GitHub PR with auto-merge squash.
Reads branch, commit_spec, and ticket_id from context.
Runs gh pr create followed by gh pr merge --auto --squash.
Skips gracefully when gh is not installed.
Source code in packages/axm-git/src/axm_git/hooks/create_pr.py
execute(context, **params)
Execute the hook action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
dict[str, Any]
|
Session context dictionary. |
required |
**params
|
Any
|
Optional |
{}
|
Returns:
| Type | Description |
|---|---|
HookResult
|
HookResult with |