action

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PRModeInput

type PRModeInput struct {
	ChangedPaths    []string
	RiskDelta       float64
	ComplianceDelta float64
	BlockThreshold  float64
}

type PRModeResult

type PRModeResult struct {
	ShouldComment bool     `json:"should_comment"`
	BlockMerge    bool     `json:"block_merge"`
	RelevantPaths []string `json:"relevant_paths"`
	Comment       string   `json:"comment"`
}

func RunPRMode

func RunPRMode(in PRModeInput) PRModeResult

RunPRMode emits deterministic PR comment payloads only for AI-config affecting file changes.

type ScheduledResult

type ScheduledResult struct {
	ScoreDeltaText      string  `json:"score_delta_text"`
	ComplianceDeltaText string  `json:"compliance_delta_text"`
	Summary             string  `json:"summary"`
	PostureScore        float64 `json:"posture_score"`
	CompliancePercent   float64 `json:"compliance_percent"`
	SummaryArtifactPath string  `json:"summary_artifact_path,omitempty"`
}

func RunScheduled

func RunScheduled(snapshot state.Snapshot) ScheduledResult

RunScheduled derives deterministic scheduled-mode summary text from a scan snapshot.

func RunScheduledWithSummary

func RunScheduledWithSummary(snapshot state.Snapshot, summaryArtifactPath string) ScheduledResult

RunScheduledWithSummary derives deterministic scheduled-mode summary text and includes a summary artifact path when available.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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