Help us shape the future of Go! Take the 2026 Go Developer Survey

text

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHistory

func BuildHistory(messages []Commit) string

BuildHistory takes commit messages and builds a complete list

func LinkToCommit

func LinkToCommit(projectURL string, commitID string) string

LinkToCommit to commit provides a formatted link to a commit

func SplitSections

func SplitSections(categorisedCommits []Commit) map[string][]Commit

SplitSections accepts categorised commits and further organises them into separate sections for release notes

func TrimMessage

func TrimMessage(message string) string

TrimMessage returns only the first line of commit message

Types

type Commit

type Commit struct {
	Category string
	Heading  string
	Body     string
	Scope    string
	Hash     Hash
}

Commit is a parsed commit that contains information about category, scope and heading

func ParseCommitMessage

func ParseCommitMessage(commitMessage string) Commit

ParseCommitMessage creates a slice of Commits that contain information about category and scope parsed from commit message

type Hash added in v0.2.0

type Hash [20]byte

Hash describes a commit hash

func (Hash) String added in v0.2.0

func (h Hash) String() string

type ReleaseNotes

type ReleaseNotes struct {
	Simple bool
}

ReleaseNotes holds the required settings for generating ReleaseNotes

func (*ReleaseNotes) Generate added in v0.4.0

func (r *ReleaseNotes) Generate(sections map[string][]Commit) string

Generate generates the output mentioned in the expected-output.md

Jump to

Keyboard shortcuts

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