summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 14:34:31 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-11-19 23:59:54 +0800
commitb12456049e4e701b2436beacfc88c74922d7524f (patch)
tree24b08d19e9eb5457bd2de5e193ca52613cd1712c /lib/api
parente6a021f7b4d9b846cefae7e7a1cee8310cc859ed (diff)
downloadgitlab-ce-b12456049e4e701b2436beacfc88c74922d7524f.tar.gz
Change param name for consistency
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/groups.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 12227c886b2..b3d10721692 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -61,7 +61,7 @@ module API
def find_group_projects(params)
group = find_group!(params[:id])
options = {
- only_owned: !params[:include_shared],
+ only_owned: !params[:with_shared],
include_subgroups: params[:include_subgroups]
}
@@ -211,8 +211,8 @@ module API
optional :starred, type: Boolean, default: false, desc: 'Limit by starred status'
optional :with_issues_enabled, type: Boolean, default: false, desc: 'Limit by enabled issues feature'
optional :with_merge_requests_enabled, type: Boolean, default: false, desc: 'Limit by enabled merge requests feature'
+ optional :with_shared, type: Boolean, default: true, desc: 'Include projects shared to this group'
optional :include_subgroups, type: Boolean, default: false, desc: 'Includes projects in subgroups of this group'
- optional :include_shared, type: Boolean, default: true, desc: 'Include projects shared to this group'
use :pagination
use :with_custom_attributes