如何检查github上拉的请求中是否存在提交?
因此,我有一份提交SHA的列表要检查。在给定的sha中,假设123ab45,我想看看该提交是否链接到分支机构中的PR。
我可以提出任何命令来检查吗?
So I have a list of commits SHAs to check. In a given commit SHA let's say 123ab45, I want to see if the commit is linked to a PR in the branch.
Is there any command that I can put to check that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可以使用GitHub CLI版本2.7或更高版本来完成:
这也由搜索
github.com上的功能
。至少在“拉动请求搜索栏”中输入提交SHA的前七个字符,或直接导航到此URL:
This can be done with the GitHub CLI version 2.7 or above:
This is also supported by the search functionality on
github.com
.Enter at least the first seven characters of the commit SHA into the Pull Request search bar, or navigate directly to this URL:
git
没有“拉请求”的概念。这是由在git
之上构建的服务添加的功能,例如github,bitbucket,gitlab等。没有git
命令可以执行您的要求。为此,您需要使用他们的工具和API。这里的确切解决方案取决于您使用的这些服务。git
has no concept of "pull request". This is a feature that is added by services built on top ofgit
such as Github, Bitbucket, Gitlab, etc. There is nogit
command to do what you ask. To do this you will need to use their tools and APIs. The exact solution here depends on which of these services you use.