Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFile = ".herdos.yml"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Version int `yaml:"version"`
Platform Platform `yaml:"platform"`
Agent Agent `yaml:"agent"`
Workers Workers `yaml:"workers"`
Integrator Integrator `yaml:"integrator"`
Monitor Monitor `yaml:"monitor"`
PullRequests PullRequests `yaml:"pull_requests"`
}
type Integrator ¶
type Integrator struct {
Strategy string `yaml:"strategy"`
OnConflict string `yaml:"on_conflict"`
MaxConflictResolutionAttempts int `yaml:"max_conflict_resolution_attempts"`
RequireCI bool `yaml:"require_ci"`
Review bool `yaml:"review"`
ReviewMaxFixCycles int `yaml:"review_max_fix_cycles"`
ReviewStrictness string `yaml:"review_strictness"` // "standard", "strict", "lenient"
ReviewFixSeverity string `yaml:"review_fix_severity"` // minimum severity to fix: "high", "medium", "low" (default: "medium")
CIMaxFixCycles int `yaml:"ci_max_fix_cycles"`
}
type Monitor ¶
type Monitor struct {
PatrolIntervalMinutes int `yaml:"patrol_interval_minutes"`
StaleThresholdMinutes int `yaml:"stale_threshold_minutes"`
MaxPRHAgeHours int `yaml:"max_pr_age_hours"`
AutoRedispatch bool `yaml:"auto_redispatch"`
MaxRedispatchAttempts int `yaml:"max_redispatch_attempts"`
NotifyOnFailure bool `yaml:"notify_on_failure"`
NotifyUsers []string `yaml:"notify_users"`
}
type PullRequests ¶
type ValidationError ¶
ValidationError holds one or more validation errors.
func Validate ¶
func Validate(cfg *Config) *ValidationError
Validate checks the config for invalid values. Returns a *ValidationError if there are errors (warnings alone don't cause an error).
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.