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
ff037bd3
Unverified
Commit
ff037bd3
authored
Sep 06, 2023
by
Jen
Committed by
GitHub
Sep 06, 2023
Browse files
Add additional scopes to Group Search (#1022)
parent
a6fb4a7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/Constants.java
View file @
ff037bd3
...
...
@@ -758,7 +758,7 @@ public interface Constants {
*/
public
enum
GroupSearchScope
{
PROJECTS
,
ISSUES
,
MERGE_REQUESTS
,
MILESTONES
,
USERS
;
PROJECTS
,
ISSUES
,
MERGE_REQUESTS
,
MILESTONES
,
WIKI_BLOBS
,
COMMITS
,
BLOBS
,
NOTES
,
USERS
;
private
static
JacksonJsonEnumHelper
<
GroupSearchScope
>
enumHelper
=
new
JacksonJsonEnumHelper
<>(
GroupSearchScope
.
class
);
...
...
src/main/java/org/gitlab4j/api/SearchApi.java
View file @
ff037bd3
...
...
@@ -184,6 +184,19 @@ public class SearchApi extends AbstractApi {
return
(
new
Pager
<
Milestone
>(
this
,
Milestone
.
class
,
itemsPerPage
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"search"
));
case
BLOBS:
case
WIKI_BLOBS:
return
(
new
Pager
<
SearchBlob
>(
this
,
SearchBlob
.
class
,
itemsPerPage
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"search"
));
case
COMMITS:
return
(
new
Pager
<
Commit
>(
this
,
Commit
.
class
,
itemsPerPage
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"search"
));
case
NOTES:
return
(
new
Pager
<
Note
>(
this
,
Note
.
class
,
itemsPerPage
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"search"
));
case
USERS:
return
(
new
Pager
<
User
>(
this
,
User
.
class
,
itemsPerPage
,
formData
.
asMap
(),
"groups"
,
getGroupIdOrPath
(
groupIdOrPath
),
"search"
));
...
...
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