Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
330b1ece
Commit
330b1ece
authored
Jul 18, 2019
by
Joseph Petersen
Committed by
Greg Messner
Jul 18, 2019
Browse files
Add include_subgroups to GroupProjectsFilter (#410)
parent
e17612db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/GroupProjectsFilter.java
View file @
330b1ece
...
@@ -20,6 +20,7 @@ public class GroupProjectsFilter {
...
@@ -20,6 +20,7 @@ public class GroupProjectsFilter {
private
Boolean
withCustomAttributes
;
private
Boolean
withCustomAttributes
;
private
Boolean
withIssuesEnabled
;
private
Boolean
withIssuesEnabled
;
private
Boolean
withMergeRequestsEnabled
;
private
Boolean
withMergeRequestsEnabled
;
private
Boolean
includeSubGroups
;
/**
/**
* Limit by archived status.
* Limit by archived status.
...
@@ -143,6 +144,17 @@ public class GroupProjectsFilter {
...
@@ -143,6 +144,17 @@ public class GroupProjectsFilter {
return
(
this
);
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.
* Get the query params specified by this filter.
*
*
...
@@ -161,6 +173,7 @@ public class GroupProjectsFilter {
...
@@ -161,6 +173,7 @@ public class GroupProjectsFilter {
.
withParam
(
"with_custom_attributes"
,
withCustomAttributes
)
.
withParam
(
"with_custom_attributes"
,
withCustomAttributes
)
.
withParam
(
"with_issues_enabled"
,
withIssuesEnabled
)
.
withParam
(
"with_issues_enabled"
,
withIssuesEnabled
)
.
withParam
(
"with_merge_requests_enabled "
,
withMergeRequestsEnabled
)
.
withParam
(
"with_merge_requests_enabled "
,
withMergeRequestsEnabled
)
.
withParam
(
"include_subgroups"
,
includeSubGroups
)
);
);
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment