prdiff

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Differ

type Differ interface {
	Diff(baseRef, headRef string) (PRDiffReport, error)
}

Differ compares dependency changes between two git refs.

type GoDiffer

type GoDiffer struct{}

GoDiffer implements Differ by parsing go.mod changes.

func (GoDiffer) Diff

func (GoDiffer) Diff(baseRef, headRef string) (PRDiffReport, error)

type ModuleDiff

type ModuleDiff struct {
	Module       string
	OldVersion   string
	NewVersion   string
	Caps         capability.CapabilitySet
	CapEscalated bool
}

ModuleDiff describes a single dependency change in a PR.

type NodeDiffer

type NodeDiffer struct{}

NodeDiffer implements Differ by parsing package.json / lockfile changes.

func (NodeDiffer) Diff

func (NodeDiffer) Diff(baseRef, headRef string) (PRDiffReport, error)

type PRDiffReport

type PRDiffReport struct {
	Added   []ModuleDiff
	Removed []string
	Updated []ModuleDiff
}

PRDiffReport summarises all dependency changes introduced by a PR.

Jump to

Keyboard shortcuts

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