dispatch

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeHumanGated = "human-gated"
	ModeAutonomous = "autonomous"

	DispatchPlan      = "dispatch/plan"
	DispatchImplement = "dispatch/implement"

	ReactionSuccess = "+1"
	ReactionFailure = "confused"
)

Variables

This section is empty.

Functions

func NeedsDependencyGate

func NeedsDependencyGate(issue Issue, cfg Config, now time.Time) bool

func ParseSlashCommand

func ParseSlashCommand(body string, configured []string) (string, bool)

Types

type Action

type Action struct {
	NoOp               bool
	TriggerLabels      []string
	AssignTo           string
	ReactionCommentID  int64
	ReactionContent    string
	FailureCommentBody string
}

func Decide

func Decide(issue Issue, cfg Config, now time.Time, graph *depgraph.DependencyGraph) Action

type Comment

type Comment struct {
	ID                int64
	Author            string
	AuthorAssociation string
	HasWriteAccess    bool
	Body              string
	CreatedAt         time.Time
}

type Config

type Config struct {
	Mode                 string
	TriagedLabel         string
	HoldLabel            string
	AutonomousDelay      time.Duration
	AllowedUsers         []string
	SlashCommands        []string
	AssignTo             string
	PlannerTriggerLabels []string
	WorkerTriggerLabels  []string
}

type Issue

type Issue struct {
	Number    int64
	Labels    []string
	Comments  []Comment
	TriagedAt time.Time
}

Jump to

Keyboard shortcuts

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