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/helpers/ci/runners_helper.rb')
-rw-r--r--app/helpers/ci/runners_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/ci/runners_helper.rb b/app/helpers/ci/runners_helper.rb
index 8cdb28b2874..552acf61f47 100644
--- a/app/helpers/ci/runners_helper.rb
+++ b/app/helpers/ci/runners_helper.rb
@@ -39,6 +39,14 @@ module Ci
runner.contacted_at
end
end
+
+ def group_shared_runners_settings_data(group)
+ {
+ update_path: api_v4_groups_path(id: group.id),
+ shared_runners_availability: group.shared_runners_setting,
+ parent_shared_runners_availability: group.parent&.shared_runners_setting
+ }
+ end
end
end