Documentation
¶
Overview ¶
Package verdict reads a judge's verdict file, the shape steps/judge.md fixes: a header of `key: value` lines up to the first `## ` heading, then prose the parser ignores except for counting the `## Changes` items.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoVerdict is a header without a `verdict:` line. ErrNoVerdict = errors.New("verdict: no verdict line") // ErrBadVerdict is a `verdict:` value outside Verdicts. ErrBadVerdict = errors.New("verdict: unknown verdict") )
View Source
var Verdicts = []string{"proceed", "proceed with changes", "rethink", "stop"}
Verdicts are the four values a `verdict:` line may hold.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Task string // empty for an idea
Subject string // kind and reference: `task FT-76`, `idea <one line>`, ...
Verdict string
Reason string
Run string // standalone, ship before pr, ship after pr
Blind bool
Decision string // ship runs only
Changes int // numbered items under `## Changes`
}
File is one verdict file's header.
Click to show internal directories.
Click to hide internal directories.