Sha256: c486083227a155bd5871950da3075f6a3e371d06b47b18e485db2460aef42b7e

Contents?: true

Size: 574 Bytes

Versions: 14

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_policy'
require_relative '../entity_builders/issue_builder'

module Gitlab
  module Triage
    module Policies
      class RulePolicy < BasePolicy
        # Build an issue from a single rule policy
        def build_issue
          action = actions.fetch(:summarize, {})

          EntityBuilders::IssueBuilder.new(
            type: type,
            policy_spec: policy_spec,
            action: action,
            resources: resources.resources,
            network: network)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gitlab-triage-1.9.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.8.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.7.1 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.7.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.6.1 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.6.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.5.1 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.5.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.4.2 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.4.1 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.4.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.3.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.2.0 lib/gitlab/triage/policies/rule_policy.rb
gitlab-triage-1.1.1 lib/gitlab/triage/policies/rule_policy.rb