Sha256: 2dbe77fd0d447b7b3175f20db195b3940ecc31278f2435097c25d56297eb6ff1
Contents?: true
Size: 643 Bytes
Versions: 20
Compression:
Stored size: 643 Bytes
Contents
#!/usr/bin/env ruby require 'yaml' require_relative '../lib/gitlab/triage/option_parser' require_relative '../lib/gitlab/triage/engine' require_relative '../lib/gitlab/triage/ui' options = Gitlab::Triage::OptionParser.parse(ARGV) options.policies_files << '.triage-policies.yml' if options.policies_files.empty? options.policies_files.each do |policies_file| policies = HashWithIndifferentAccess.new(YAML.load_file(policies_file)) policy_engine = Gitlab::Triage::Engine .new(policies: policies, options: options) puts Gitlab::Triage::UI.header("Executing policies from #{policies_file}.", char: '*') policy_engine.perform end
Version data entries
20 entries across 20 versions & 2 rubygems