Versioce.Config.Git (Versioce v1.0.0) View Source

Configuration module for versioce git integration. see Versioce.Config for more details

Link to this section Summary

Functions

Get config value for commit_message_template

Get config value for dirty_add

Get config value for tag_message_template

Get config value for tag_template

Link to this section Functions

Link to this function

commit_message_template()

View Source

Get config value for commit_message_template

Template for the commit message. {version} will be replaced with the version you bumped to

You can configure it with:

config :versioce, :git,
  commit_message_template: "Bump version to {version}"

Value for this configuration should either be a literal value or a function of 0 arity, that will return the value, ex:

config :versioce, :git,
  commit_message_template: fn -> "Bump version to {version}" end

Get config value for dirty_add

Whether to add all the files in git add or only from Versioce.Config.files. By default only Versioce.Config.files

You can configure it with:

config :versioce, :git,
  dirty_add: false

Value for this configuration should either be a literal value or a function of 0 arity, that will return the value, ex:

config :versioce, :git,
  dirty_add: fn -> false end

Get config value for tag_message_template

Template for the tag message. {version} will be replaced with the version you bumped to

You can configure it with:

config :versioce, :git,
  tag_message_template: "Release version to {version}"

Value for this configuration should either be a literal value or a function of 0 arity, that will return the value, ex:

config :versioce, :git,
  tag_message_template: fn -> "Release version to {version}" end

Get config value for tag_template

Template for the tag annotation. {version} will be replaced with the version you bumped to

You can configure it with:

config :versioce, :git,
  tag_template: "{version}"

Value for this configuration should either be a literal value or a function of 0 arity, that will return the value, ex:

config :versioce, :git,
  tag_template: fn -> "{version}" end