lib/milestoner/commits/enrichers/format.rb in milestoner-17.11.0 vs lib/milestoner/commits/enrichers/format.rb in milestoner-18.0.0

- old
+ new

@@ -3,17 +3,17 @@ module Milestoner module Commits module Enrichers # Enriches a commit format based on trailer information. class Format - include Milestoner::Import[:input] + include Milestoner::Import[:settings] def initialize(key: "Format", **) @key = key super(**) end - def call(commit) = commit.trailer_value_for(key).value_or(input.commit_format) + def call(commit) = commit.trailer_value_for(key).value_or(settings.commit_format) private attr_reader :key end