Skip to main content

Module pr_merge

Module pr_merge 

Source
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§

PrMergeRequest 🔒

Constants§

NO_GH_AGENT 🔒
What a machine without gh-agent tells a container that asks for a merge.

Functions§

handle_pr_merge 🔒
POST /api/v1/github/pr-merge