Documentation
¶
Overview ¶
Package workbench prepares isolated repository workspaces for reviews.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareReviewerRequest ¶
func PrepareReviewerRequest(ctx context.Context, deps Deps, adapter llm.Adapter, artifacts runartifact.Paths, headSHA string, agentID string, allowedFiles []string, model, effort, prompt, logPath string) (llm.Request, func() error, error)
PrepareReviewerRequest creates a disposable reviewer workspace and LLM request.
Types ¶
type Deps ¶
type Deps struct {
GitCommand func(context.Context, string, ...string) ([]byte, error)
ResolveRepoRoot func(context.Context) (string, error)
}
Deps contains the injected repository operations used to prepare workspaces.
type Request ¶
type Request struct {
PRRef gitprovider.PRRef
ReviewPR gitprovider.PR
ChangedFiles []string
Artifacts runartifact.Paths
}
Request identifies the review checkout and artifact paths to prepare.
Click to show internal directories.
Click to hide internal directories.