From dfbc7ee2c61ae93f1504775b58fb0b8e22fb3d06 Mon Sep 17 00:00:00 2001 From: Brad Harris Date: Mon, 2 Oct 2023 21:16:42 +0000 Subject: [PATCH] remove gitlab searchRepos - not working will do in a followup --- .../src/gitlab/gitlab-repository-provider.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/components/server/src/gitlab/gitlab-repository-provider.ts b/components/server/src/gitlab/gitlab-repository-provider.ts index 89f9dff6ff658a..e8bfccfead6092 100644 --- a/components/server/src/gitlab/gitlab-repository-provider.ts +++ b/components/server/src/gitlab/gitlab-repository-provider.ts @@ -142,23 +142,6 @@ export class GitlabRepositoryProvider implements RepositoryProvider { // TODO: implement repo search public async searchRepos(user: User, searchString: string): Promise { - const projects = await this.gitlab.run(user, async (g) => { - return g.Projects.search(searchString, { - orderBy: "last_activity_at", - sort: "desc", - }); - }); - if (GitLab.ApiError.is(projects)) { - throw projects; - } - - const repos: RepositoryInfo[] = projects.map((project) => { - return { - name: project.name, - url: project.http_url_to_repo, - }; - }); - - return repos; + return []; } }