Changelog.jl is a Julia package for managing changelogs.
Install using Julias package manager:
pkg> add Changelog
The core idea of this package is to make it convenient to write changelog entries with references to pull requests/issues and let Changelog.jl generate the full URLs.
The typical workflow is as follows:
- Write a changelog entry in the changelog file (e.g.
CHANGELOG.md
):- Description of new feature with reference to pull request ([#123]).
- Run the command
This scans the input for link tokens, generates the full URLs, and inserts a link list at the bottom. A tip is to add the command above as a Makefile target. The output would be
Changelog.generate( Changelog.CommonMark(), # output type "CHANGELOG.md"; # input and output file repo = "JuliaDocs/Changelog.jl", # default repository for links )
- Description of new feature with reference to pull request ([#123]). <!-- Links generated by Changelog.jl --> [#123]: https://github.com/JuliaDocs/Changelog.jl/issues/123
- Commit the result.
- Run the following command to integrate the changelog into documentation built with
Documenter:
The output in would be
# In docs/make.jl, before makedocs(...) Changelog.generate( Changelog.Documenter(), # output type joinpath(@__DIR__, "../CHANGELOG.md"), # input file joinpath(@__DIR__, "src/CHANGELOG.md"); # output file repo = "JuliaDocs/Changelog.jl", # default repository for links )
- Description of new feature with reference to pull request ([#123](https://github.com/JuliaDocs/Changelog.jl/issues/123)).