From ad1e4f1915f6f1234f91cb8997ddad7aa0cb3630 Mon Sep 17 00:00:00 2001
From: timoknapp <mail@timoknapp.com>
Date: Tue, 8 Dec 2020 23:17:21 +0100
Subject: [PATCH] feat: add 'prettified_output' flag in config

---
 pkg/generator/changelog_generator.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pkg/generator/changelog_generator.go b/pkg/generator/changelog_generator.go
index 0a3b1fe..5b45422 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)
-- 
GitLab