review

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Marker = "<!-- zero-auto-review -->"

Variables

This section is empty.

Functions

func BuildMarkdown

func BuildMarkdown(input SummaryInput) string

func FormatOutcome

func FormatOutcome(outcome Outcome) string

func HasBlockingChecks

func HasBlockingChecks(checks []Check) bool

func IsBlocking

func IsBlocking(outcome Outcome) bool

func ParseChangedFiles

func ParseChangedFiles(value string) []string

Types

type Check

type Check struct {
	Label   string  `json:"label"`
	Command string  `json:"command"`
	Outcome Outcome `json:"outcome"`
}

func BuildChecksFromEnv

func BuildChecksFromEnv(env map[string]string) []Check

type Outcome

type Outcome string
const (
	OutcomeSuccess        Outcome = "success"
	OutcomeFailure        Outcome = "failure"
	OutcomeCancelled      Outcome = "cancelled"
	OutcomeSkipped        Outcome = "skipped"
	OutcomeTimedOut       Outcome = "timed_out"
	OutcomeActionRequired Outcome = "action_required"
	OutcomeNeutral        Outcome = "neutral"
	OutcomeUnknown        Outcome = "unknown"
)

func NormalizeOutcome

func NormalizeOutcome(value string) Outcome

type SummaryInput

type SummaryInput struct {
	Number       int
	HeadSHA      string
	Checks       []Check
	ChangedFiles []string
}

func BuildSummaryInputFromEnv

func BuildSummaryInputFromEnv(env map[string]string) SummaryInput

Jump to

Keyboard shortcuts

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