generator

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RFC3339Date = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(opts Opts) (*Generator, error)

func (*Generator) Generate

func (g *Generator) Generate() error

type MRScopeObjectAdapter

type MRScopeObjectAdapter struct {
	// contains filtered or unexported fields
}

func NewMRScopeObjectAdapter

func NewMRScopeObjectAdapter(mr gitlab.MergeRequest) *MRScopeObjectAdapter

func (*MRScopeObjectAdapter) Entry

func (a *MRScopeObjectAdapter) Entry() string

func (*MRScopeObjectAdapter) IncludeAuthor

func (a *MRScopeObjectAdapter) IncludeAuthor()

func (*MRScopeObjectAdapter) Labels

func (a *MRScopeObjectAdapter) Labels() []string

type Opts

type Opts struct {
	ProjectID string
	Release   string

	StartingPoint        string
	StartingPointMatcher string

	ChangelogFile    string
	ConfigFile       string
	WorkingDirectory string
	OverwriteRelease bool

	// MrIIDs is used to provide a list of MrIIDs in case the IIDs are known but not the MRs themselves are not
	MrIIDs []int64
	// MRs is used to provide a list of MRs to be added to the changelog. No API requests will be made. MRs takes precedence over MrIIDs
	MRs               []gitlab.MergeRequest
	AdditionalEntries []OptsAdditionalEntry
}

type OptsAdditionalEntry added in v0.7.0

type OptsAdditionalEntry struct {
	Scope config.Scope
	Entry string
}

Jump to

Keyboard shortcuts

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