How to search for code in all projects simultaneously?
Asked Answered
S

2

14

I'm dealing with a GitLab Community Edition 13.10.1.
At the moment there are about a hundred small projects on this.

By selecting a project it is possible to search for specific code within all its files, but if instead I go to the GitLab search and select "Any" project, the "Code" tab is no longer visible.

enter image description here

Is there a way to do a code search, but within all the existing existing projects?

Sirotek answered 6/10, 2021 at 13:14 Comment(0)
R
10

You can use GitLab Advanced Search to search for code if you are subscribed to the premium tier.

Another option would be to use the opensource gitlab-search tool if you are using the community edition.

Revel answered 11/10, 2021 at 9:48 Comment(0)
R
0

Due to the Gitlab API rate limit, gitlab-search will not work properly, as an open-source alternative you can try gitlab-finder instead. it introduces sleep time between calls as a workaround.

note that like @danielnelz said, advanced gitlab search is a premium feature on gitlab, so if you already have a license just use the existing functionality.

Reporter answered 7/3 at 15:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.