Skip to content

Commit 330b1ec

Browse files
jetersengmessner
authored andcommitted
Add include_subgroups to GroupProjectsFilter (#410)
1 parent e17612d commit 330b1ec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/org/gitlab4j/api/models/GroupProjectsFilter.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class GroupProjectsFilter {
2020
private Boolean withCustomAttributes;
2121
private Boolean withIssuesEnabled;
2222
private Boolean withMergeRequestsEnabled;
23+
private Boolean includeSubGroups;
2324

2425
/**
2526
* Limit by archived status.
@@ -143,6 +144,17 @@ public GroupProjectsFilter withMergeRequestsEnabled(Boolean withMergeRequestsEna
143144
return (this);
144145
}
145146

147+
/**
148+
* Includes projects that are located in sub groups
149+
*
150+
* @param includeSubGroups if true, projects from sub groups will be included
151+
* @return the reference to this ProjectFilter instance
152+
*/
153+
public GroupProjectsFilter withIncludeSubGroups(Boolean includeSubGroups) {
154+
this.includeSubGroups = includeSubGroups;
155+
return (this);
156+
}
157+
146158
/**
147159
* Get the query params specified by this filter.
148160
*
@@ -161,6 +173,7 @@ public GitLabApiForm getQueryParams() {
161173
.withParam("with_custom_attributes", withCustomAttributes)
162174
.withParam("with_issues_enabled", withIssuesEnabled)
163175
.withParam("with_merge_requests_enabled ", withMergeRequestsEnabled)
176+
.withParam("include_subgroups", includeSubGroups)
164177
);
165178
}
166179
}

0 commit comments

Comments
 (0)