worker

package
v0.8.34 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 17 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

Index

Constants

View Source
const NoOpVerdictMarker = "**Worker #"

NoOpVerdictMarker is the prefix every worker no-op verdict comment posted to the batch PR begins with. The integrator uses this prefix to identify worker verdicts when collecting prior-cycle context.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecParams

type ExecParams struct {
	IssueNumber int
	RepoRoot    string
	HTTPClient  *http.Client // nil means skip image downloading
	// Mode selects the execution flow: "batch" (default) or "standalone".
	Mode string
}

ExecParams holds the parameters for executing a worker task.

type ExecResult

type ExecResult struct {
	WorkerBranch string
	NoOp         bool // true if no changes were needed
}

ExecResult holds the result of a worker execution.

func Exec

func Exec(ctx context.Context, p platform.Platform, ag agent.Agent, cfg *config.Config, params ExecParams) (result *ExecResult, err error)

Exec runs the full worker lifecycle: reads the issue, creates a worker branch, invokes the agent, pushes the branch, and updates labels.

Jump to

Keyboard shortcuts

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