Skip to content
Snippets Groups Projects

Add shared_runners_minutes_limit to groups and users API

Merged username-removed-423915 requested to merge add-api-shared_runners_minutes_limit into master
All threads resolved!
2 files
+ 2
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -104,7 +104,7 @@ def present_groups(groups, options = {})
@@ -104,7 +104,7 @@ def present_groups(groups, options = {})
)
)
end
end
present group, with: Entities::Group, current_user: current_user
present group, with: Entities::GroupDetail, current_user: current_user
else
else
render_api_error!("Failed to save group #{group.errors.messages}", 400)
render_api_error!("Failed to save group #{group.errors.messages}", 400)
end
end
@@ -122,7+122,7 @@
@@ -122,7+122,7 @@
optional :name, type: String, desc: 'The name of the group'
optional :name, type: String, desc: 'The name of the group'
optional :path, type: String, desc: 'The path of the group'
optional :path, type: String, desc: 'The path of the group'
use :optional_params
use :optional_params
end
end
put ':id' do
put ':id' do
group = find_group!(params[:id])
group = find_group!(params[:id])
authorize! :admin_group, group
authorize! :admin_group, group
Loading