Documentation
¶
Overview ¶
Package apply executes the reviewer's verdicts against the git working tree: approved items are left alone, rejected items are reverted (via `git checkout <base_ref> -- <path>` for tracked files, or `os.Remove` for untracked-added files). Returns the verdict JSON the agent consumes from stdout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileVerdict ¶
type FileVerdict struct {
Path string `json:"path"`
Status string `json:"status"` // "approved" | "rejected"
Comment string `json:"comment,omitempty"`
}
FileVerdict is the per-file outcome reported to the agent.
type Result ¶
type Result struct {
Verdicts []FileVerdict `json:"verdicts"`
}
Result is the top-level JSON shape emitted on stdout by `snapdiff await`.
Click to show internal directories.
Click to hide internal directories.