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 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 PHPDiffer ¶ added in v0.3.3
type PHPDiffer struct{}
PHPDiffer implements Differ by parsing composer.json / composer.lock changes.
type PRDiffReport ¶
type PRDiffReport struct {
Added []ModuleDiff
Removed []string
Updated []ModuleDiff
}
PRDiffReport summarises all dependency changes introduced by a PR.
Click to show internal directories.
Click to hide internal directories.