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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/permission_types/ci/pipeline_schedules.rb')
-rw-r--r--app/graphql/types/permission_types/ci/pipeline_schedules.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/graphql/types/permission_types/ci/pipeline_schedules.rb b/app/graphql/types/permission_types/ci/pipeline_schedules.rb
new file mode 100644
index 00000000000..268ac6096d0
--- /dev/null
+++ b/app/graphql/types/permission_types/ci/pipeline_schedules.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module Types
+ module PermissionTypes
+ module Ci
+ class PipelineSchedules < BasePermissionType
+ graphql_name 'PipelineSchedulePermissions'
+
+ abilities :take_ownership_pipeline_schedule,
+ :update_pipeline_schedule,
+ :admin_pipeline_schedule
+
+ ability_field :play_pipeline_schedule, calls_gitaly: true
+ end
+ end
+ end
+end