diff options
Diffstat (limited to 'app/helpers/ci')
-rw-r--r-- | app/helpers/ci/runners_helper.rb | 8 |
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 |