changelog_generator

package
v0.0.0-...-cf76350 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 5 Imported by: 0

README

📝 changelog-generator-default

CI Go Report Card PkgGoDev

The default changelog generator for go-semantic-release.

Output of the changelog

The changelog generator will order the types of commits in the changelog in the following order:

  • Breaking Changes
  • Feature
  • Bug Fixes
  • Reverts
  • Performance Improvements
  • Documentation
  • Tests
  • Code Refactoring
  • Styles
  • Chores
  • Build
  • CI

Emoji changelogs

In order to use emoji changelogs including a prefixed emoji, you need to provide the following config when calling semantic-relase: --changelog-generator-opt "emojis=true". Or add the config within your .semrelrc file.

Example Change Log

Licence

The MIT License (MIT)

Copyright © 2020 Christoph Witzko

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CGVERSION = "dev"

Functions

This section is empty.

Types

type ChangelogType

type ChangelogType struct {
	Type    string
	Text    string
	Content string
	Emoji   string
}

type ChangelogTypes

type ChangelogTypes []ChangelogType

func NewChangelogTypes

func NewChangelogTypes() ChangelogTypes

func (*ChangelogTypes) AppendContent

func (ct *ChangelogTypes) AppendContent(cType, content string)

type DefaultChangelogGenerator

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

func (*DefaultChangelogGenerator) Generate

func (g *DefaultChangelogGenerator) Generate(commits []*semrel.Commit, latestRelease *semrel.Release, newVersion string) string

func (*DefaultChangelogGenerator) Init

func (*DefaultChangelogGenerator) Name

func (*DefaultChangelogGenerator) Version

func (g *DefaultChangelogGenerator) Version() string

Jump to

Keyboard shortcuts

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