dependabot

package
v0.0.0-...-9e45a68 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotInGitRoot = errors.New("Must be executed in root of git repo")

Functions

This section is empty.

Types

type Config

type Config struct {
	Version int
	Updates []Dependency
}

func Render

func Render(matchedPaths MatchedPaths) Config

type Dependabot

type Dependabot interface {
	Resolve() (Config, error)
}

func New

func New(walker Walker, filter Filter, render Renderer) Dependabot

type Dependency

type Dependency struct {
	PackageEcosystem string `yaml:"package-ecosystem"`
	Directory        string
	Schedule         Schedule
}

type Filter

type Filter interface {
	Filter(paths []string) MatchedPaths
}

func NewFilter

func NewFilter(skipEcosystems []string) Filter

type MatchedPaths

type MatchedPaths map[string]string

type Renderer

type Renderer func(paths MatchedPaths) Config

type Schedule

type Schedule struct {
	Interval string
}

type Walker

type Walker interface {
	Walk() ([]string, error)
}

func NewWalker

func NewWalker(fs afero.Afero, depth int, skipFolders []string) Walker

Jump to

Keyboard shortcuts

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