Sha256: 526222560f6e97b63cb9f32cb4a3e855e82051f366556adbacdccad9d06ab5fe
Contents?: true
Size: 567 Bytes
Versions: 24
Compression:
Stored size: 567 Bytes
Contents
class CommitTokensHelper def initialize(core, commit_labels, trunk_only: false) @core = core @trunk_only = trunk_only @commit_labels = commit_labels end def between(from, to) to_labels(@core.activity.commit_tokens(after: from_label(from), up_to: from_label(to), trunk_only: @trunk_only)) end private def to_label(sha1) @commit_labels.invert[sha1.to_s] end def to_labels(sha1s) sha1s.map { |sha1| to_label(sha1) } end def from_label(label) @commit_labels[label] end end
Version data entries
24 entries across 24 versions & 1 rubygems