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