Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search for a particular file in all the gitlab repositories

Tags:

github

gitlab

Simple and very much needed feature, just would like to know if it's possible to search for a particular file in GITLAB in all the repositories instead of a particular repository. There's a huge search icon on the right corner of the GITLAB which will search corresponding maching repository names BUT NOT the files.

I would like to search for a particular file through all the repositories which I have access to in GITLAB.

Please note that the GITLAB is hosted in the private domain of my organization. So googling filename:something.txt or something.txt in:path doesn't work (this was suggested by one of the user in some post for GITHUB).

like image 221
Stunner Avatar asked Sep 12 '25 14:09

Stunner


1 Answers

Yes it's possible using Advanced Search feature by enabling Elastic Search integration.

Once that is configured you can use Advanced Syntax Search with search filters to find what you need.

For example, you could search the .gitlab-ci.yml files of all projects for the text tags.yml inside of it typing this in global search bar:

tags.yml filename:gitlab-ci

Another example to search abc.txt file in all repositories (ensure Group and Project dropdown menu are set to Any) :

* filename:abc.txt
like image 168
Nicolas Pepinster Avatar answered Sep 15 '25 05:09

Nicolas Pepinster