Documentation
¶
Overview ¶
Package prs readies a checkout for a pull request: it writes the title, body and commit message from the changes the box holds, branches off the default branch if needed, commits and pushes. Console opens the pull request.
Index ¶
Constants ¶
View Source
const ( WriterAIProxy = "ai_proxy" WriterTemplate = "template" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Checkouts lists the checkouts, thread worktrees included.
Checkouts func(ctx context.Context) []*devboxv1.Checkout
// Env is the environment git and the agent CLIs run with (git identity and credentials, CA trust).
Env func() []string
Endpoints func() *devboxv1.HarnessEndpoints
// Client reaches the AI proxy through egress.
Client *http.Client
Harness *harness.Config
RecentPrompts func(threadID string) []string
Log *slog.Logger
}
Options wire the preparer to the daemon.
type Preparer ¶
type Preparer struct {
// contains filtered or unexported fields
}
Preparer serves PreparePullRequest, one at a time per checkout.
func (*Preparer) Prepare ¶
func (p *Preparer) Prepare(ctx context.Context, req *devboxv1.PreparePullRequestRequest) (*devboxv1.PreparePullRequestResponse, error)
Click to show internal directories.
Click to hide internal directories.