GitHub 搜索 - 如何从搜索结果中排除(逻辑非)公司或用户

GitHub search - how to exclude (logical NOT) company or user from search results

在此搜索查询 (test it live ↗) 中,我正在搜索:

我如何搜索 除了 (逻辑非)vaadin 公司的所有拉取请求?


我尝试了这两个选项都没有成功:

在任何搜索限定符前加上 - 会排除与该限定符匹配的所有结果。

例如,您可能有兴趣查找所有 "cats" 星数超过 10 且未写在 JavaScript 中的存储库:

cats stars:>10 -language:javascript

您可能还想查找所有未在 GitHub 组织的存储库中提及 @defunkt 的问题:

mentions:defunkt -user:github

您问题的答案是:

is:pr author:limonte -user:vaadin


有关更多信息,请参阅 GitHub Search Syntax

看来你现在只能使用“NOT”这个词了:

hello NOT world matches repositories that have the word "hello" but not the word "world."

https://help.github.com/en/articles/understanding-the-search-syntax

我厌倦了在搜索中进行单元测试,所以我这样搜索:

NOT test in:path AND "search-term" in:file