diff --git a/src/main/java/org/gitlab4j/api/Constants.java b/src/main/java/org/gitlab4j/api/Constants.java index f15510919..1cc6017c0 100644 --- a/src/main/java/org/gitlab4j/api/Constants.java +++ b/src/main/java/org/gitlab4j/api/Constants.java @@ -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 enumHelper = new JacksonJsonEnumHelper<>(GroupSearchScope.class); diff --git a/src/main/java/org/gitlab4j/api/SearchApi.java b/src/main/java/org/gitlab4j/api/SearchApi.java index ac92fd902..9d3d4fe2f 100644 --- a/src/main/java/org/gitlab4j/api/SearchApi.java +++ b/src/main/java/org/gitlab4j/api/SearchApi.java @@ -184,6 +184,19 @@ public Pager groupSearch(Object groupIdOrPath, GroupSearchScope scope, String return (new Pager(this, Milestone.class, itemsPerPage, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "search")); + case BLOBS: + case WIKI_BLOBS: + return (new Pager(this, SearchBlob.class, itemsPerPage, formData.asMap(), + "groups", getGroupIdOrPath(groupIdOrPath), "search")); + + case COMMITS: + return (new Pager(this, Commit.class, itemsPerPage, formData.asMap(), + "groups", getGroupIdOrPath(groupIdOrPath), "search")); + + case NOTES: + return (new Pager(this, Note.class, itemsPerPage, formData.asMap(), + "groups", getGroupIdOrPath(groupIdOrPath), "search")); + case USERS: return (new Pager(this, User.class, itemsPerPage, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "search"));