Changex.Formatter.Elixir (changex v0.3.0)
Format changelog to the terminal in markdown format that matches the format of the elixir-lang changelog
Link to this section Summary
Functions
Take a map of commits in the following format
Link to this section Functions
Link to this function
format(commits, options \\ [])
Take a map of commits in the following format:
%{
fix: %{
scope1: [commit1, commit2],
scope2: [commit5, commit6]
}
feat: %{
scope1: [commit3, commit4],
scope2: [commit7, commit8]
}
}
And return a string in the format:
## v0.0.1
* Enhancements
* [Scope 1] commit 1
* [Scope 1] commit 2
* [Scope 2] commit 5
* [Scope 2] commit 6
* Bug fixes
* [Scope 1] commit 3
* [Scope 1] commit 4
* [Scope 2] commit 7
* [Scope 2] commit 8