changelog

package
v0.0.0-...-fb68555 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changelog

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

func FromCommits

func FromCommits(sess *happy.Session, commits []Commit) (*Changelog, error)

func ParseGitLog

func ParseGitLog(sess *happy.Session, log string) (*Changelog, error)

func (*Changelog) Add

func (c *Changelog) Add(shortHash, longHash, author, subject string, typ EntryType)

func (*Changelog) AddBreakingChange

func (c *Changelog) AddBreakingChange(shortHash, longHash, author, subject string)

func (*Changelog) Breaking

func (c *Changelog) Breaking() []Entry

func (*Changelog) Empty

func (c *Changelog) Empty() bool

func (*Changelog) Entries

func (c *Changelog) Entries() []Entry

func (*Changelog) HasMajorUpdate

func (c *Changelog) HasMajorUpdate() bool

func (*Changelog) HasMinorUpdate

func (c *Changelog) HasMinorUpdate() bool

func (*Changelog) HasPatchUpdate

func (c *Changelog) HasPatchUpdate() bool

type Commit

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

type Entry

type Entry struct {
	ShortHash string
	LongHash  string
	Author    string
	Subject   string
	Typ       EntryType
}

type EntryKind

type EntryKind int
const (
	EntryKindPatch EntryKind = iota
	EntryKindMinor
	EntryKindMajor
)

type EntryType

type EntryType struct {
	Typ   string
	Scope string
	Kind  EntryKind
}

func ParseEntryType

func ParseEntryType(typ, scope string) (EntryType, error)

Jump to

Keyboard shortcuts

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