readme: split changelog into own file (#689)

split changelog into own file. closes #688.
This commit is contained in:
David López 2019-09-14 13:07:15 +02:00 committed by Isaev Denis
parent bf68434103
commit 064c0e3d67
3 changed files with 144 additions and 138 deletions

View file

@ -74,6 +74,10 @@ func buildTemplateContext() (map[string]interface{}, error) {
helpLines := bytes.Split(help, []byte("\n"))
shortHelp := bytes.Join(helpLines[2:], []byte("\n"))
changeLog, err := ioutil.ReadFile("CHANGELOG.md")
if err != nil {
return nil, err
}
return map[string]interface{}{
"GolangciYaml": strings.TrimSpace(string(golangciYaml)),
@ -84,6 +88,7 @@ func buildTemplateContext() (map[string]interface{}, error) {
"DisabledByDefaultLinters": getLintersListMarkdown(false),
"ThanksList": getThanksList(),
"RunHelpText": string(shortHelp),
"ChangeLog": string(changeLog),
}, nil
}