Sha256: 9397f470985ded742540a384f951832e152d1788aaeafc53a29aa64e5d400637
Contents?: true
Size: 595 Bytes
Versions: 31
Compression:
Stored size: 595 Bytes
Contents
require_relative 'action/summarize' require_relative 'action/comment' module Gitlab module Triage module Action def self.process(policy:, **args) { Summarize => policy.summarize?, Comment => policy.comment? }.compact.each do |action, active| act(action: action, policy: policy, **args) if active end end def self.act(action:, dry:, **args) klass = if dry action.const_get(:Dry) else action end klass.new(**args).act end end end end
Version data entries
31 entries across 31 versions & 1 rubygems