summaryrefslogtreecommitdiff
path: root/app/graphql/types/namespace/shared_runners_setting_enum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/namespace/shared_runners_setting_enum.rb')
-rw-r--r--app/graphql/types/namespace/shared_runners_setting_enum.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/graphql/types/namespace/shared_runners_setting_enum.rb b/app/graphql/types/namespace/shared_runners_setting_enum.rb
new file mode 100644
index 00000000000..4773e414aeb
--- /dev/null
+++ b/app/graphql/types/namespace/shared_runners_setting_enum.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Types
+ class Namespace::SharedRunnersSettingEnum < BaseEnum
+ graphql_name 'SharedRunnersSetting'
+
+ ::Namespace::SHARED_RUNNERS_SETTINGS.each do |type|
+ value type.upcase,
+ description: "Sharing of runners is #{type.tr('_', ' ')}.",
+ value: type
+ end
+ end
+end