Skip to content

Commit ad1e4f1

Browse files
timoknappchristophwitzko
authored andcommitted
feat: add 'prettified_output' flag in config
1 parent 79f1a36 commit ad1e4f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/generator/changelog_generator.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ func formatCommit(c *semrel.Commit) string {
2828
var CGVERSION = "dev"
2929

3030
type DefaultChangelogGenerator struct {
31-
prettifyOutput bool
31+
prettifiedOutput bool
3232
}
3333

3434
func (g *DefaultChangelogGenerator) Init(m map[string]string) error {
35-
prettifyOutput := false
35+
prettifiedOutput := false
3636

37-
prettifyConfig := m["prettify"]
37+
prettifyConfig := m["prettified_output"]
3838

3939
if prettifyConfig == "true" {
40-
prettifyOutput = true
40+
prettifiedOutput = true
4141
}
4242

43-
g.prettifyOutput = prettifyOutput
43+
g.prettifiedOutput = prettifiedOutput
4444

4545
return nil
4646
}
@@ -75,7 +75,7 @@ func (g *DefaultChangelogGenerator) Generate(changelogConfig *generator.Changelo
7575
continue
7676
}
7777
prettifyPrefix := ""
78-
if g.prettifyOutput {
78+
if g.prettifiedOutput {
7979
prettifyPrefix = ct.Emoji
8080
}
8181
ret += fmt.Sprintf("#### %s%s\n\n%s\n", prettifyPrefix, ct.Text, ct.Content)

0 commit comments

Comments
 (0)