updater

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChangelogHeader = "# Changelog"
	ChangelogFile   = "CHANGELOG.md"
)

Variables

View Source
var (
	ChangelogUpdaterHeaderRegex = regexp.MustCompile(`^# Changelog\n`)
)
View Source
var GenericUpdaterSemVerRegex = regexp.MustCompile(`\d+\.\d+\.\d+(-[\w.]+)?(.*x-releaser-pleaser-version)`)

Functions

This section is empty.

Types

type NewUpdater

type NewUpdater func(ReleaseInfo) Updater

type ReleaseInfo

type ReleaseInfo struct {
	Version        string
	ChangelogEntry string
}

type Updater

type Updater func(string) (string, error)

func Changelog

func Changelog(info ReleaseInfo) Updater

func Generic

func Generic(info ReleaseInfo) Updater

func WithInfo

func WithInfo(info ReleaseInfo, constructors ...NewUpdater) []Updater

Jump to

Keyboard shortcuts

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