@@ -20,6 +20,7 @@ public class GroupProjectsFilter {
2020 private Boolean withCustomAttributes ;
2121 private Boolean withIssuesEnabled ;
2222 private Boolean withMergeRequestsEnabled ;
23+ private Boolean withShared ;
2324 private Boolean includeSubGroups ;
2425
2526 /**
@@ -145,16 +146,27 @@ public GroupProjectsFilter withMergeRequestsEnabled(Boolean withMergeRequestsEna
145146 }
146147
147148 /**
148- * Includes projects that are located in sub groups
149+ * Include projects that are located in subgroups
149150 *
150- * @param includeSubGroups if true, projects from sub groups will be included
151+ * @param includeSubGroups if true, projects from subgroups will be included
151152 * @return the reference to this ProjectFilter instance
152153 */
153154 public GroupProjectsFilter withIncludeSubGroups (Boolean includeSubGroups ) {
154155 this .includeSubGroups = includeSubGroups ;
155156 return (this );
156157 }
157158
159+ /**
160+ * Include projects that are shared with this group
161+ *
162+ * @param withShared if true, projects that are shared with this group will be included
163+ * @return the reference to this ProjectFilter instance
164+ */
165+ public GroupProjectsFilter withShared (Boolean withShared ) {
166+ this .withShared = withShared ;
167+ return (this );
168+ }
169+
158170 /**
159171 * Get the query params specified by this filter.
160172 *
@@ -173,6 +185,7 @@ public GitLabApiForm getQueryParams() {
173185 .withParam ("with_custom_attributes" , withCustomAttributes )
174186 .withParam ("with_issues_enabled" , withIssuesEnabled )
175187 .withParam ("with_merge_requests_enabled " , withMergeRequestsEnabled )
188+ .withParam ("with_shared" , withShared )
176189 .withParam ("include_subgroups" , includeSubGroups )
177190 );
178191 }
0 commit comments