Parse markdown-esque changelogs (like our example in History.markdown), parse out versions, sections, changes & references. Motivation: automate update of changelogs
Bundled with a command, changelogger
.
Supports several header formats such as SemVer and KeepAChangelog.
$ go get github.com/parkr/changelog/changelogger
$ $GOPATH/bin/changelogger
$ $GOPATH/bin/changelogger -h
$ go get github.com/parkr/changelog
// Parse changelog at a given filename
changes, err := changelog.NewChangelogFromFile("CHANGELOG.md")
// Discover the filename of your changelog
filename := changelog.HistoryFilename()
// Parse changelog from some io.Reader
changes, err := changelog.NewChangeLogFromReader(req.Body)
MIT License, Copyright 2015 Parker Moore. See LICENSE for details.