mechanicalchange

package
v0.184.5 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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