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

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

module Types
  class EventActionEnum < BaseEnum
    graphql_name 'EventAction'
    description 'Event action'

    ::Event.actions.keys.each do |target_type|
      value target_type.upcase, value: target_type, description: "#{target_type.titleize} action"
    end
  end
end