Sha256: 8dcbd6990eae04320b49e1d7ea639538c86135882119aa218f5a5c1379886ef8
Contents?: true
Size: 467 Bytes
Versions: 10
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true module Milestoner module Commits module Enrichers # Enriches a commit format based on trailer information. class Format include Milestoner::Import[:input] def initialize(key: "Format", **) @key = key super(**) end def call(commit) = commit.trailer_value_for(key).value_or(input.commit_format) private attr_reader :key end end end end
Version data entries
10 entries across 10 versions & 1 rubygems