Version 3.0.0
introduced breaking changes:
mix.exs
is no longer part of defaultfiles
For the same behavior as before addmix.exs
tofiles
in config
config :versioce,
files: ["mix.exs", "README.md"]
- Default message for
tag_message_template
configuration changed. For the same behavior as before
config :versioce, :git,
tag_message_template: "Release version to {version}"
Version 2.0.0
added a breaking change to changelog generation behaviors.
Should implement get_versions/1
instead of get_data/1
.
Should implement get_version/1
that will grab data for one specific version.
For implementation details check out Versioce.Changelog.DataGrabber.Git
Should implement version_to_str/1
which will format single Versioce.Changelog.DataGrabber.Version.t()
to string.
For implementation details check out Versioce.Changelog.Formatter.Keepachangelog
Version 1.0.0
added a breaking change in terms of hook running.
Hooks changed their signature. Now they should follow the general {:ok, params} | {:error, reason}
tuples pattern.
Ex.:
defmodule MyProj.PreHook do
use Versioce.PreHook
def run(params) do
{:ok, params}
end
end
Note: All hooks should still pass on parameters they recieved in an
:ok
tuple. If one of the hooks fails and returns:error
tuple, bumping stops andreason
will be shown.
git_cli
is no longer a mandatory dependency. If you don't use Versioce git hooks, you can drop it.