如何过滤特定目标分支的所有GitHub拉取请求 [英] How can I filter all GitHub pull requests for a specific target branch
本文介绍了如何过滤特定目标分支的所有GitHub拉取请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个有很多分支和请求请求的GitHub存储库.
I'm working on a GitHub repo with lots of branches and pull requests.
例如,假设我有以下请求请求:
Let's say, for example, that I have the following pull requests:
-
a
分支X
-
b
分支X
-
c
分支Y
-
d
分支X
-
e
分支到Y
.
a
to branchX
b
to branchX
c
to branchY
d
to branchX
e
to branchY
.
是否可以找到针对分支 X
(即 a-> X
, b-> X
, d-> X
)?
Is there a way to find all the pull requests that are targeted for branch X
(i.e. a -> X
, b -> X
, d -> X
)?
推荐答案
是的,您可以做到.
在Github的术语中,分支"是指是基础"因此搜索短语为: is:open is:pr base:X
In Github's terminology the "to branch" is "base"
So the search phrase is: is:open is:pr base:X
正式说明:(可选)您还可以添加 is:merged
或 is:unmerged
过滤器.
Optionally you can add is:merged
or is:unmerged
filters as well.
这篇关于如何过滤特定目标分支的所有GitHub拉取请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文