1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

refactor: turned changelog generation into a pipe

I turned myself into a pipe morty!

PipeRick!!!

refs #284
This commit is contained in:
Carlos Alexandro Becker
2017-10-15 20:21:35 -02:00
committed by Carlos Alexandro Becker
parent b585ac8b0e
commit 87d269dc45
8 changed files with 163 additions and 123 deletions

View File

@@ -22,3 +22,8 @@ func Run(args ...string) (output string, err error) {
}
return string(bts), err
}
// Clean the output
func Clean(output string, err error) (string, error) {
return strings.Replace(strings.Split(output, "\n")[0], "'", "", -1), err
}