Commit 16de67db authored by Jeremie Bresson's avatar Jeremie Bresson
Browse files

Merge remote-tracking branch 'origin/main' into 6.x

parents 5746822e 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);
......
......@@ -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"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment