Paul Serikov
Paul Serikov

Reputation: 3111

How to search Github repositories which have file with particular filename?

E.g.: I want to find all CRMs which have Dockerfile inside their repository.

I checked github help, but haven't found any suitable search qualifier. There is just filename: and in:file:, but it's not as desired, I need something like has_file: or in:filename

Any workaround?

Upvotes: 8

Views: 5857

Answers (2)

Keval Bhogayata
Keval Bhogayata

Reputation: 41

The best workaround for this purpose is ..

search using in:path Dockerfile

This will also include directories consisting the word 'Dockerfile', but such results are quite unlikely.

Upvotes: 4

Dinko Pehar
Dinko Pehar

Reputation: 6061

Reading through GitHub search reference, it clearly states:

You can find a repository by searching for content in its README file, using the in:readme qualifier. Besides using in:readme, it's not possible to find repositories by searching for specific content within the repository. To search for a specific file or content within a repository, you can use the file finder or code-specific search qualifiers.

File finder is not what you are looking for, so the only valid option is to search for a code.

Upvotes: 0

Related Questions