debian-mirror-gitlab/app/graphql/types/event_action_enum.rb
2021-03-11 19:13:27 +05:30

13 lines
305 B
Ruby

# 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