Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangedFile ¶
type ChangedFile struct {
Filename string `json:"filename"`
Status string `json:"status"`
Patch string `json:"patch"`
}
ChangedFile is one file of a pull request's diff, with the patch GitHub returns for it.
type MechanicalVerdict ¶
type MechanicalVerdict struct {
Mechanical bool
// Reasons name each file that made the change non-mechanical, and why.
Reasons []string
// NonManifest is the subset of Reasons that is just "this is code".
NonManifest []string
}
MechanicalVerdict explains a classification well enough to argue with.
func ClassifyMechanical ¶
func ClassifyMechanical(files []ChangedFile) MechanicalVerdict
ClassifyMechanical decides from the diff whether a change is a mechanical dependency bump.
func (MechanicalVerdict) Summary ¶
func (verdict MechanicalVerdict) Summary() string
Summary renders the verdict for a refusal.
Click to show internal directories.
Click to hide internal directories.