Github api 使用github api在特定存储库中按文件名搜索

Github api 使用github api在特定存储库中按文件名搜索,github-api,Github Api,我正在开发一个类似于 我不明白为什么此查询返回1个结果(存储库中存在名为headless.ts的文件): 当此查询返回0个结果时: curl https://api.github.com/search/code/?q=in:path+filename:headles+repo:rookout/explorook 请注意,我只从“headless”中删除了一个's' 如果不指定文件的全名,我不能搜索该文件吗 curl https://api.github.com/search/code/?q=i

我正在开发一个类似于
我不明白为什么此查询返回1个结果(存储库中存在名为
headless.ts
的文件):

当此查询返回0个结果时:

curl https://api.github.com/search/code/?q=in:path+filename:headles+repo:rookout/explorook
请注意,我只从“headless”中删除了一个's' 如果不指定文件的全名,我不能搜索该文件吗

curl https://api.github.com/search/code/?q=in:path+filename:headles+repo:rookout/explorook