From 253b77d061f82d3b6b1f5c27ea3f0921c27e9c40 Mon Sep 17 00:00:00 2001 From: Beatriz Vieira Date: Mon, 15 Feb 2021 01:03:57 -0300 Subject: [PATCH] refactor: overwrite release notes header at config merge --- cmd/git-sv/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/git-sv/main.go b/cmd/git-sv/main.go index c7c7c10..a41c78c 100644 --- a/cmd/git-sv/main.go +++ b/cmd/git-sv/main.go @@ -42,6 +42,9 @@ func main() { if merr := mergo.Merge(&cfg, repoCfg, mergo.WithOverride); merr != nil { log.Fatal(merr) } + if len(repoCfg.ReleaseNotes.Headers) > 0 { // mergo is merging maps, headers will be overwritten + cfg.ReleaseNotes.Headers = repoCfg.ReleaseNotes.Headers + } } messageProcessor := sv.NewMessageProcessor(cfg.CommitMessage, cfg.Branches)