versioning

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_VAR_PREFIX = "SPEAKEASY_VERSION_REPORT_LOCATION"

Variables

This section is empty.

Functions

func AddVersionReport

func AddVersionReport(ctx context.Context, report VersionReport) error

func MustGenerate added in v0.2.0

func MustGenerate(ctx context.Context) bool

Types

type BumpType added in v0.3.0

type BumpType string
const (
	BumpMajor      BumpType = "major"
	BumpMinor      BumpType = "minor"
	BumpPatch      BumpType = "patch"
	BumpGraduate   BumpType = "graduate"
	BumpPrerelease BumpType = "prerelease"
	BumpCustom     BumpType = "custom"
	BumpNone       BumpType = "none"
)

type MergedVersionReport

type MergedVersionReport struct {
	Reports []VersionReport
}

func WithVersionReportCapture

func WithVersionReportCapture[T any](ctx context.Context, f func(ctx context.Context) (T, error)) (*MergedVersionReport, T, error)

func (*MergedVersionReport) GetMarkdownSection added in v0.4.0

func (m *MergedVersionReport) GetMarkdownSection() string

func (*MergedVersionReport) MustGenerate

func (m *MergedVersionReport) MustGenerate() bool

type VersionReport

type VersionReport struct {
	Key          string   `json:"key"`
	Priority     int      `json:"priority"`
	BumpType     BumpType `json:"bump_type"`
	NewVersion   string   `json:"new_version"`
	MustGenerate bool     `json:"must_generate"`
	PRReport     string   `json:"pr_report"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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