diff --git a/pkg/generator/changelog_generator.go b/pkg/generator/changelog_generator.go index 0a3b1fe3be2dddbea96497c7906fb2de2dde18da..5b45422d7113bd92f9235263598d9dd5640ac01b 100644 --- a/pkg/generator/changelog_generator.go +++ b/pkg/generator/changelog_generator.go @@ -28,19 +28,19 @@ func formatCommit(c *semrel.Commit) string { var CGVERSION = "dev" type DefaultChangelogGenerator struct { - prettifyOutput bool + prettifiedOutput bool } func (g *DefaultChangelogGenerator) Init(m map[string]string) error { - prettifyOutput := false + prettifiedOutput := false - prettifyConfig := m["prettify"] + prettifyConfig := m["prettified_output"] if prettifyConfig == "true" { - prettifyOutput = true + prettifiedOutput = true } - g.prettifyOutput = prettifyOutput + g.prettifiedOutput = prettifiedOutput return nil } @@ -75,7 +75,7 @@ func (g *DefaultChangelogGenerator) Generate(changelogConfig *generator.Changelo continue } prettifyPrefix := "" - if g.prettifyOutput { + if g.prettifiedOutput { prettifyPrefix = ct.Emoji } ret += fmt.Sprintf("#### %s%s\n\n%s\n", prettifyPrefix, ct.Text, ct.Content)