Versions in this module Expand all Collapse all v0 v0.4.0 Nov 24, 2026 Changes in this version + const RebaseAuto + const RebaseNotify + const RebaseOff + var Modes = []Mode + func ShellQuote(s string) string + type Approver struct + Kind string + Name string + func ParseApprover(s string) (Approver, error) + type Decision struct + Approvers [][]string + Mode Mode + Paths []string + Policies []string + Require []string + func Combine(ds ...Decision) Decision + func (d Decision) LandCommand() string + func (d Decision) Missing(passed, failed []string) []MissingCheck + type MissingCheck struct + Command string + Failed bool + type Mode string + const ModeFast + const ModeGated + const ModeHuman + func (m Mode) Stricter(o Mode) bool + type Policy struct + Approvers []string + Line int + Mode Mode + Paths []string + Require []string + func (p Policy) Describe() string + func (p Policy) Matches(path string) bool type Rules + Policies []Policy + Rebase string + func (r Rules) Decide(paths []string) Decision + func (r Rules) RebaseMode() string v0.3.0 Nov 24, 2026 Changes in this version + const File + const WarningRule + func Check(ctx context.Context, s blob.Store, r Rules, base, tree hash.Hash) ([]engine.Warning, error) + func Files(ctx context.Context, s blob.Store, tree hash.Hash, g Glob) ([]string, error) + func KeyOf(key *regexp.Regexp, path string) (string, bool) + func MatchGlob(pattern, path string) bool + func MergeOptions(ctx context.Context, s blob.Store, trees ...hash.Hash) []engine.MergeOption + func MissingChecks(r Rules, ran []string) []string + func NotVerified(command string) string + type Error struct + Problems []Problem + func (e *Error) Error() string + type Generated struct + Command string + Glob string + type Glob struct + func CompileGlob(pattern string) (Glob, error) + func (g Glob) Dir() string + func (g Glob) Match(path string) bool + func (g Glob) String() string + type Problem struct + Line int + Msg string + func (p Problem) String() string + type Rules struct + Generated []Generated + RequiredChecks []string + Source string + Unique []Unique + func At(ctx context.Context, s blob.Store, tree hash.Hash) (Rules, error) + func Parse(data []byte) (Rules, error) + func (r Rules) GeneratedMatcher() func(path string) (command string, ok bool) + func (r Rules) IsEmpty() bool + func (r Rules) UniqueRule(name string) (Unique, bool) + type Unique struct + Glob string + Key string + Name string