mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
readme: split changelog into own file (#689)
split changelog into own file. closes #688.
This commit is contained in:
parent
bf68434103
commit
064c0e3d67
3 changed files with 144 additions and 138 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue