refactor: overwrite release notes header at config merge
This commit is contained in:
parent
2ae35c91af
commit
253b77d061
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue