Welcome to mirror list, hosted at ThFree Co, Russian Federation.

report_type_enum.rb « security « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee67f68b27be431b17256c7eb7d53b4a2b8594f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Types
  module Security
    class ReportTypeEnum < BaseEnum
      graphql_name 'SecurityReportTypeEnum'

      ::Security::SecurityJobsFinder.allowed_job_types.each do |report_type|
        value report_type.upcase,
              value: report_type,
              description: "#{report_type.upcase.to_s.tr('_', ' ')} scan report"
      end
    end
  end
end