autoapproval

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(stepSignalFn func(*app.WorkflowStep) signal.Signal, setDirective func(workflow.Context, string, directive.Step) error) directive.ApprovalCreateCheck

Types

type Check

type Check struct {
	// StepSignalFn returns the inner signal from a step for interface assertions.
	StepSignalFn func(step *app.WorkflowStep) signal.Signal

	// SetResultDirective writes the directive to the step's ResultDirective column.
	SetResultDirective func(ctx workflow.Context, stepID string, d directive.Step) error
}

Check implements directive.ApprovalCreateCheck for auto-approval. Skipped in plan-only mode so planonly.Check owns the approval semantics.

func (*Check) Name

func (c *Check) Name() string

func (*Check) Run

func (*Check) ShouldRun

func (c *Check) ShouldRun(step *app.WorkflowStep, flw *app.Workflow) bool

Jump to

Keyboard shortcuts

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