github - 在 GitHub 中查找我作为作者、审阅者或受让人的 PR

标签 github pull-request

在 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/

相关文章:

git - 如何将我的存储库同步到 GitHub 和我的内部 Git 服务器?

git - 奇怪的 git 行为在 pull 上游 merge 后恢复本地分支中所做的更改

Git 克隆导致 : "Cannot get remote repository information."

github - 如何在Github Action中使用Github发行版本号

powershell - 生成失败时如何在Azure DevOps PR中创建注释?

git - 如何为每个单独的提交发送一个 pull 请求?

没有旧提交的 Github pull 请求

jenkins - PR 合并意味着什么?

javascript - 如何使用 GitHub api 查找存储库的 'm' 最旧的分支

git - pull 请求是 Git 的一部分,还是 GitHub、Gerrit 和 Atlassian Stash 等工具的一项功能?