Expand description
POST /api/v1/github/pr-merge: a container agent’s gh pr merge, done by srv.
A container’s GitHub token cannot write contents, and a merge writes contents. So the container’s gh pr merge
(agentmux-bashwrap github-pr-merge) asks here instead: srv runs the host’s gh-agent pr merge with arguments it
builds itself from a repository, a number and three options, never from the container’s text. The token stays on
the host. There is no way to ask for --admin: GitHub’s own rules (a review, the checks, a merge queue) decide, and
the answer says what GitHub said.
Who is asking is the agent its X-Agent-Token was minted for.
Structs§
Constants§
- NO_
GH_ 🔒AGENT - What a machine without
gh-agenttells a container that asks for a merge.
Functions§
- handle_
pr_ 🔒merge POST /api/v1/github/pr-merge