在 GitHub.com 上,我希望查看我作为作者、审阅者或受让人的所有公开 PR,无论是作为个人还是作为团队成员。
来自github.com/pulls ,我可以使用 is:open is:prauthor:@me
之类的内容进行过滤,但实际上我想使用 OR 或 UNION 这样的过滤器。理想情况下,我希望我可以做类似以下的事情,其中“|”是 OR 运算符 - 但遗憾的是这不起作用: is:open is:pr 作者:@me|reviewed-by:@me|review-requested:@me|mentions:@me
.
知道我该怎么做吗? This answer was helpful but doesn't go far enough .
最佳答案
我想我终于找到答案了。我想查看所有提到或请求我的 PR。 involves
过滤器完成这项工作。尽管 Github 搜索仍然不支持 OR,但 involves
过滤器正在幕后执行 OR 操作。
is:open is:pr involves:@me archived:false
所以尝试这个链接,它应该可以工作:
https://github.com/pulls?q=is%3Aopen+is%3Apr+involves%3A%40me+archived%3Afalse+
involves filter 的描述:
You can use the involves qualifier to find issues that in some way involve a certain user. The involves qualifier is a logical OR between the author, assignee, mentions, and commenter qualifiers for a single user. In other words, this qualifier finds issues and pull requests that were either created by a certain user, assigned to that user, mention that user, or were commented on by that user.
关于github - 在 GitHub 中查找我作为作者、审阅者或受让人的 PR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76093811/