An API for generating a changelog with the excellent GitHub Changelog Generator. I use it for CI/CD.
Changelogs can take a while to create, this starts a job.
curl -X POST github-changelog-api.herokuapp.com/:user/:repo
After creating a job (above), you can poll for results.
curl github-changelog-api.herokuapp.com/:user/:repo
Continue polling until you receive a complete or error response.
Status | Payload | Headers |
---|---|---|
302 | In progress... |
{ Retry-After: 5 } |
Save the payload data
as your changelog.
Status | Payload |
---|---|
200 | The changelog |
Something went wrong, consult the payload error
.
Status | Payload |
---|---|
400 | An error message |
Generate a token here and pass it as a query param.
curl -X POST github-changelog-api.herokuapp.com/:user/:repo?token=123
Add a GitHub personal access token for access to private repos and a higher rate limit.
Limit the number of issues fetched. Useful for avoiding rate limits and lengthy changelog generation times.
npm install
npm start
npm start
to start the server- Hack on
/server
to change the API - Hack on
/app
to change the demo app