DEV Community

Cover image for Generate an API Changelog with Git and Optic
Aidan Cunniffe
Aidan Cunniffe

Posted on

Generate an API Changelog with Git and Optic

One of the most important parts of a public API's documentation is the Changelog. During the initial discovery + integration phase, new consumers will spend most of their time reading your docs. After your consumers are integrated it becomes really important to keep them up-to-date on changes to the API.

Stripe has a great changelog that many API companies wish to emulate. It's unfortunately very difficult to keep track of, and manually document, every historical API change.

Image description

That's where Optic (the open source API version control tool) can help. Its new history command will use Git history to write a date-based changelog in markdown.

optic history openapi.yml > changelog.md
Enter fullscreen mode Exit fullscreen mode

Image description

That's it! Now you have a Stripe-style changelog!

Top comments (0)