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

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

module Types
  module AlertManagement
    class StatusEnum < BaseEnum
      graphql_name 'AlertManagementStatus'
      description 'Alert status values'

      ::AlertManagement::Alert::STATUSES.each do |name, value|
        value name.upcase, value: value, description: "#{name.to_s.titleize} status"
      end
    end
  end
end