gitpush

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 New

func New() *Pusher

New builds a Pusher.

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL