Await merge
await_merge
GitAwaitMergeTool — poll a GitHub PR until it is merged or times out.
GitAwaitMergeTool
Bases: AXMTool
Poll a GitHub PR until it reaches the MERGED state.
Blocks, querying gh pr view --json state every interval seconds
until the PR is merged, is closed, or timeout elapses. Registered as
git_await_merge via axm.tools entry point.
Source code in packages/axm-git/src/axm_git/tools/await_merge.py
name
property
Tool name used for MCP registration.
execute(*, pr, timeout=_DEFAULT_TIMEOUT, interval=_DEFAULT_INTERVAL, path='.', **kwargs)
Poll PR pr until merged or timed out.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pr
|
str
|
PR number or URL (required). |
required |
timeout
|
int
|
Maximum seconds to wait (default 600). |
_DEFAULT_TIMEOUT
|
interval
|
int
|
Seconds between polls (default 30). |
_DEFAULT_INTERVAL
|
path
|
str
|
Repository path. |
'.'
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with |