changelog

package
v0.0.0-...-cb7e519 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, logger *log.Logger) *cobra.Command

Types

type ChangeLog

type ChangeLog struct {
	ChangeLogConfig
	Logger Printer
	// contains filtered or unexported fields
}

func GenerateReleaseNotes

func GenerateReleaseNotes(globalCtx context.Context, ghClient *gh.Client, logger Printer, cfg ChangeLogConfig) (*ChangeLog, error)

func (*ChangeLog) AllPRs

func (cl *ChangeLog) AllPRs() (map[int]struct{}, types.NodeIDs)

AllPRs returns all PRs that are part the changelog.

func (*ChangeLog) PrintReleaseNotes

func (cl *ChangeLog) PrintReleaseNotes()

func (*ChangeLog) PrintReleaseNotesForWriter

func (cl *ChangeLog) PrintReleaseNotesForWriter(w io.Writer)

type ChangeLogConfig

type ChangeLogConfig struct {
	types.CommonConfig

	Base                string
	Head                string
	LastStable          string
	StateFile           string
	LabelFilters        []string
	ReleaseLabels       []string
	ExcludePRReferences bool
	SkipHeader          bool
}

func (*ChangeLogConfig) Sanitize

func (cfg *ChangeLogConfig) Sanitize() error

type Printer

type Printer interface {
	Printf(format string, v ...any)
	Println(v ...any)
}

Jump to

Keyboard shortcuts

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