changelog

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Changelog

type Changelog struct {
	// Internal for data grouping
	SemverGroups map[changelog_types.ChangelogSectionType]*changelogSemverGroup

	// For template
	Header              templates.Header
	OrderedSemverGroups []*changelogSemverGroup
}

func NewChangelog

func NewChangelog(
	g *semanticgit.SemanticGit,
	semver_options semvertype.OptionsSemVer,
	config settings.ConfigScheme,
	FromTag types.TagName,
) Changelog

type ChangelogBBCode

type ChangelogBBCode struct {
	Changelog
}

func (ChangelogBBCode) GetSemverGroups

func (changelog ChangelogBBCode) GetSemverGroups() map[changelog_types.ChangelogSectionType]*changelogSemverGroup

func (ChangelogBBCode) Render

func (changelog ChangelogBBCode) Render() string

func (ChangelogBBCode) RenderHeader

func (changelog ChangelogBBCode) RenderHeader() string

type ChangelogFormat

type ChangelogFormat string
const (
	FormatMarkdown ChangelogFormat = "markdown"
	FormatBBCode   ChangelogFormat = "bbcode"
)

type ChangelogMarkdown

type ChangelogMarkdown struct {
	Changelog
}

func (ChangelogMarkdown) GetSemverGroups

func (changelog ChangelogMarkdown) GetSemverGroups() map[changelog_types.ChangelogSectionType]*changelogSemverGroup

func (ChangelogMarkdown) Render

func (changelog ChangelogMarkdown) Render() string

func (ChangelogMarkdown) RenderHeader

func (changelog ChangelogMarkdown) RenderHeader() string

type IChangelog

type IChangelog interface {
	Render() string
	GetSemverGroups() map[changelog_types.ChangelogSectionType]*changelogSemverGroup
}

func NewChangelogBBCode

func NewChangelogBBCode(
	g *semanticgit.SemanticGit,
	semver_options semvertype.OptionsSemVer,
	config settings.ConfigScheme,
	FromTag types.TagName,
) IChangelog

func NewChangelogMarkdown

func NewChangelogMarkdown(
	g *semanticgit.SemanticGit,
	semver_options semvertype.OptionsSemVer,
	config settings.ConfigScheme,
	FromTag types.TagName,
) IChangelog

type NotFound

type NotFound struct {
}

func (NotFound) Error

func (n NotFound) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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