AgentConnect
Sessions

Merge the session’s pull request

Merges this session’s pull request (squash) — the same identity the GET resolves, from the owning run or the session branch — using an installation token clamped to the owning agent’s repository tier (the write requires pull_requests: write, so a read- or comment-tier agent is refused 403). Idempotent: an already-merged pull request succeeds without a mutation. 404 mirrors the GET; 409 relays GitHub declining the merge (not mergeable, checks failing); 429 is GitHub rate limiting; 502 is GitHub unreachable.

POST
/v1/orgs/{orgId}/sessions/{id}/pull-request/merge

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string

响应主体

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/sessions/string/pull-request/merge"
{  "merged": true}