review

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 4 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 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 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