docs: fix branch name in chglog configuration

Fix the main branch name in the template CHANGELOG  file for the git
chglog tool.
This commit is contained in:
Hector 2021-03-28 17:09:53 +01:00
parent 7b1ff91ede
commit 1682dac4af

View File

@ -31,7 +31,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
[git-chglog]: https://github.com/git-chglog/git-chglog
{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...develop
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...main
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}