0

Using gh search reports that there is a test003 repo. Why does it report that the test003 repo does not exist in the second command?

PS C:\> gh search repos 'user:Liturgist'

Showing 2 of 2 repositories

NAME               DESCRIPTION  VISIBILITY  UPDATED
Liturgist/test001  a test 001   public      about 1 day ago
Liturgist/test003               public      about 21 hours ago

PS C:\> gh search repos 'user:Liturgist repo:test003'
no repositories matched your search
lit
  • 14,456
  • 10
  • 65
  • 119
  • Not sure, but this works: `gh search repos --owner=Liturgist --match=name test003` – jessehouwing Apr 06 '23 at 19:00
  • @jessehouwing, many thanks. I am looking at https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories. Can file `content` be searched using gh? – lit Apr 06 '23 at 20:25
  • only commits for now it seems. – jessehouwing Apr 06 '23 at 20:53
  • You may be able to use the `gh api` option and invoke the code search API: https://docs.github.com/en/search-github/searching-on-github/searching-code https://docs.github.com/en/rest/search?apiVersion=2022-11-28#search-code https://cli.github.com/manual/gh_api – jessehouwing Apr 07 '23 at 06:34

0 Answers0