lib/milestoner/commits/enrichers/note.rb in milestoner-17.11.0 vs lib/milestoner/commits/enrichers/note.rb in milestoner-18.0.0
- old
+ new
@@ -3,20 +3,20 @@
module Milestoner
module Commits
module Enrichers
# Enriches commit notes by rendering as HTML based on trailer information.
class Note
- include Milestoner::Import[:input]
+ include Milestoner::Import[:settings]
def initialize(key: "Format", renderer: Renderers::Universal.new, **)
@key = key
@renderer = renderer
super(**)
end
def call commit
commit.trailer_value_for(key)
- .value_or(input.commit_format)
+ .value_or(settings.commit_format)
.then { |format| renderer.call commit.notes, for: format.to_sym }
end
private