Skip to content

Commit ff037bd

Browse files
authored
Add additional scopes to Group Search (#1022)
1 parent a6fb4a7 commit ff037bd

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/main/java/org/gitlab4j/api/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ public String toString() {
758758
*/
759759
public enum GroupSearchScope {
760760

761-
PROJECTS, ISSUES, MERGE_REQUESTS, MILESTONES, USERS;
761+
PROJECTS, ISSUES, MERGE_REQUESTS, MILESTONES, WIKI_BLOBS, COMMITS, BLOBS, NOTES, USERS;
762762

763763
private static JacksonJsonEnumHelper<GroupSearchScope> enumHelper = new JacksonJsonEnumHelper<>(GroupSearchScope.class);
764764

src/main/java/org/gitlab4j/api/SearchApi.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,19 @@ public Pager<?> groupSearch(Object groupIdOrPath, GroupSearchScope scope, String
184184
return (new Pager<Milestone>(this, Milestone.class, itemsPerPage, formData.asMap(),
185185
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
186186

187+
case BLOBS:
188+
case WIKI_BLOBS:
189+
return (new Pager<SearchBlob>(this, SearchBlob.class, itemsPerPage, formData.asMap(),
190+
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
191+
192+
case COMMITS:
193+
return (new Pager<Commit>(this, Commit.class, itemsPerPage, formData.asMap(),
194+
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
195+
196+
case NOTES:
197+
return (new Pager<Note>(this, Note.class, itemsPerPage, formData.asMap(),
198+
"groups", getGroupIdOrPath(groupIdOrPath), "search"));
199+
187200
case USERS:
188201
return (new Pager<User>(this, User.class, itemsPerPage, formData.asMap(),
189202
"groups", getGroupIdOrPath(groupIdOrPath), "search"));

0 commit comments

Comments
 (0)