Commit 330b1ece authored by Joseph Petersen's avatar Joseph Petersen Committed by Greg Messner
Browse files

Add include_subgroups to GroupProjectsFilter (#410)

parent e17612db
......@@ -20,6 +20,7 @@ public class GroupProjectsFilter {
private Boolean withCustomAttributes;
private Boolean withIssuesEnabled;
private Boolean withMergeRequestsEnabled;
private Boolean includeSubGroups;
/**
* Limit by archived status.
......@@ -143,6 +144,17 @@ public class GroupProjectsFilter {
return (this);
}
/**
* Includes projects that are located in sub groups
*
* @param includeSubGroups if true, projects from sub groups will be included
* @return the reference to this ProjectFilter instance
*/
public GroupProjectsFilter withIncludeSubGroups(Boolean includeSubGroups) {
this.includeSubGroups = includeSubGroups;
return (this);
}
/**
* Get the query params specified by this filter.
*
......@@ -161,6 +173,7 @@ public class GroupProjectsFilter {
.withParam("with_custom_attributes", withCustomAttributes)
.withParam("with_issues_enabled", withIssuesEnabled)
.withParam("with_merge_requests_enabled ", withMergeRequestsEnabled)
.withParam("include_subgroups", includeSubGroups)
);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment