Await merge
await_merge
Await-merge hook action.
Polls a GitHub PR until it reaches the MERGED state.
AwaitMergeHook
dataclass
Poll a PR until merged or timeout.
Reads pr_number (or pr_url) from context and polls
gh pr view --json state every 30 seconds. Times out after
10 minutes by default.
Source code in packages/axm-git/src/axm_git/hooks/await_merge.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 |
Source code in packages/axm-git/src/axm_git/hooks/await_merge.py
resolve_pr_ref(params, context)
Resolve a PR reference from params or context.
Checks pr_number then pr_url in params first,
falling back to context. Returns None when no
reference is found.