retro

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 3 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 (
	EventError            = "error"
	EventTestFailure      = "test_failure"
	EventPermissionDenied = "permission_denied"
	EventCommandOutcome   = "command_outcome"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(redactor *secrets.Redactor) *Analyzer

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_ context.Context, input Input) Report

type Event

type Event struct {
	Kind    string
	Message string
	Command string
	Outcome string
}

Event is one piece of session evidence available to the retro analyzer.

type Finding

type Finding struct {
	Pattern        string
	Evidence       string
	LocalAction    string
	UpstreamAction string
}

Finding is a compact improvement observation.

type Input

type Input struct {
	SessionID  string
	WorkingDir string
	Events     []Event
}

Input is the bounded session context analyzed by the optional retro loop.

type Report

type Report struct {
	SessionID string
	Findings  []Finding
}

Report is the analyzer output.

type RoutedActions

type RoutedActions struct {
	LocalActions         []string
	UpstreamInstructions []string
}

RoutedActions separates locally actionable items from upstream PR instructions.

func RouteFindings

func RouteFindings(cfg config.RetroConfig, report Report) RoutedActions

Jump to

Keyboard shortcuts

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