Documentation
¶
Overview ¶
Package hook asks an external program which post-approval hunks are already reviewed (see "Hunk Filters" in the README).
Index ¶
Constants ¶
View Source
const RequestVersion = 1
RequestVersion is bumped when Request changes shape in a way a hook could misread.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
Reviewed []ReviewedFile `json:"reviewed"`
}
Anything not named in a Response stays in the diff.
type ReviewedFile ¶
ReviewedFile names hunks by index into the same file's head_hunks in the request.
Click to show internal directories.
Click to hide internal directories.