Stack layer 1 of 3: add the asynchronous stack merge API (closes #112)
merged#117 proposes OpenAgentsInc/openagents.com:stack-merge-async into OpenAgentsInc/openagents.com:main.
Adds an asynchronous merge submission API for stacked pull requests.
- `PUT /api/v3/repos/:owner/:repo/pulls/:pull_number/merge-async` accepts a merge for the layer's stack, returns `202` with a durable operation ID, and replays on a repeated `Idempotency-Key`.
- `GET .../merge-async/:operation_id` reports `pending`, `merged`, or `failed` with the operation state and error.
- A conflicting active operation returns `409` with the existing operation ID so a client can poll it instead of guessing.
- The merge keeps the contiguous-prefix contract and restacks the remaining upper layers automatically after a partial merge.
Closes #112
Stack #1 · layer 1 of 5
merged- Stack layer 5 of 5: Open Graph cards for pull requests and docs pages
- Stack layer 4 of 4: document pull requests and stacks in /docs
- Stack layer 3 of 3: add stack actions to the pull request page (closes #114)
- Stack layer 2 of 3: add the unstack and dissolve APIs (closes #113)
- Stack layer 1 of 3: add the asynchronous stack merge API (closes #112)
- main
This pull request merged into main as part of the stack.