Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/gitlab4j/api/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ public String toString() {
*/
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);

Expand Down
13 changes: 13 additions & 0 deletions src/main/java/org/gitlab4j/api/SearchApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,19 @@ public Pager<?> groupSearch(Object groupIdOrPath, GroupSearchScope scope, String
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"));
Expand Down