Migrating from < 1.0.0
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
endNote: All hooks should still pass on parameters they recieved in an
:oktuple. If one of the hooks fails and returns:errortuple, bumping stops andreasonwill be shown.
git_cli is no longer a mandatory dependency. If you don't use Versioce git hooks, you can drop it.