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

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

Link to this section Summary

Functions

Get config value for additional_files

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

Get config value for additional_files

Additional files to add in git add. No effect if Versioce.Config.Git.dirty_add/0 is set to true

You can configure it with:

config :versioce, :git,
  additional_files: []

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,
  additional_files: fn -> [] end
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/0 and Versioce.Config.Git.additional_files/0. By default only Versioce.Config.files/0

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