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

Version Path
gitlab-triage-1.41.0 bin/gitlab-triage
gitlab-triage-1.40.0 bin/gitlab-triage
gitlab-triage-1.30.0 bin/gitlab-triage
gitlab-triage-1.29.0 bin/gitlab-triage
payping-gitlab-triage-0.1.3 bin/gitlab-triage
payping-gitlab-triage-0.1.2 bin/gitlab-triage
payping-gitlab-triage-0.1.1 bin/gitlab-triage
gitlab-triage-1.28.0 bin/gitlab-triage
gitlab-triage-1.27.0 bin/gitlab-triage
gitlab-triage-1.26.0 bin/gitlab-triage
gitlab-triage-1.25.0 bin/gitlab-triage
gitlab-triage-1.24.0 bin/gitlab-triage
gitlab-triage-1.23.1 bin/gitlab-triage
gitlab-triage-1.23.0 bin/gitlab-triage
gitlab-triage-1.22.0 bin/gitlab-triage
gitlab-triage-1.21.0 bin/gitlab-triage
gitlab-triage-1.20.0 bin/gitlab-triage
gitlab-triage-1.19.0 bin/gitlab-triage
gitlab-triage-1.18.0 bin/gitlab-triage
gitlab-triage-1.17.0 bin/gitlab-triage