Documentation
¶
Overview ¶
Package gitpush applies an agent's changeset to GitHub. The agent works in a network-isolated pod and hands its commits back as a git bundle; the controller unpacks that bundle in a scratch directory and pushes the branch with a short-lived, single-repository write token — the only place a push credential exists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pusher ¶
type Pusher struct{}
Pusher pushes agent changesets.
func (*Pusher) Push ¶
func (p *Pusher) Push(ctx context.Context, repo ghclient.Repo, cloneURL, token, branch string, bundle []byte) error
Push unpacks the bundle into a scratch repository and pushes branch to the remote. The token is passed to git through an http.extraHeader on the command line's -c flags, never written to disk and never persisted in the scratch repository's config (it is discarded with the directory).