如何检查github上拉的请求中是否存在提交?

发布于 2025-01-28 06:37:21 字数 88 浏览 5 评论 0原文

因此,我有一份提交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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

各空 2025-02-04 06:37:21

这可以使用GitHub CLI版本2.7或更高版本来完成:

gh search prs 123ab45

这也由搜索 github.com上的功能

至少在“拉动请求搜索栏”中输入提交SHA的前七个字符,或直接导航到此URL:

https://github.com/your-repo/pulls?q=is%3Apr+123ab45+

This can be done with the GitHub CLI version 2.7 or above:

gh search prs 123ab45

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:

https://github.com/your-repo/pulls?q=is%3Apr+123ab45+
无声静候 2025-02-04 06:37:21

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 of git such as Github, Bitbucket, Gitlab, etc. There is no git 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文