mechanicalchange

package
v0.182.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL