Is there any way to automatically generate change logs from commit messages to a file called CHANGELOG.md in a GitHub repo?
Might be possible using a service hook on a repo?
I have written something like this some months ago. It is based on Git's porcelain and uses a git hook in plain bash.
You can find it in my Github Repo.
Since the May 2013 File CRUD API with this API, it should be possible to script it by:
CHANGELOG.md
fileSee Update file:
PUT /repos/:owner/:repo/contents/:path
You actually can trigger that script from a GitHub post-receive hook, except that hook won't execute it directly, but POST a JSON message to a server of yours, which, on the reception of that specific message, will know how to update the GitHub CHANGELOG.md
file (through API call mentioned above).
I have created a GitHub app 'Changelogg.io' to automate changelog from merged pull requests.
It detects changes mentioned in the PRs and creates a release draft for it. After adding the release version, it automatically updates CHANGELOG.md and also has a web UI with filters for the generated changelog. Few other features: