Skip to content

Commit

Permalink
remove gitlab searchRepos - not working will do in a followup
Browse files Browse the repository at this point in the history
  • Loading branch information
selfcontained committed Oct 2, 2023
1 parent b4d2806 commit dfbc7ee
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions components/server/src/gitlab/gitlab-repository-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,6 @@ export class GitlabRepositoryProvider implements RepositoryProvider {

// TODO: implement repo search
public async searchRepos(user: User, searchString: string): Promise<RepositoryInfo[]> {
const projects = await this.gitlab.run<GitLab.Project[]>(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 [];
}
}

0 comments on commit dfbc7ee

Please sign in to comment.