将Bitbucket拉取请求作为一个补丁来应用

问题描述 投票:12回答:1

我在Bitbucket上有一个只有我有写权限的repo。

有人对这个 repo 进行了分叉,做了修改,并从分叉中向我的 repo 发出了一个 pull 请求。

我怎样才能把这个拉取请求作为一个 git 补丁,暂时应用到我的 repo 上进行测试?

分叉后的 repo 是私有的,所以我不能把它拉下来,而且我也不想这么做。

在GitHub上,你可以简单地去拉请求,并在url的结尾添加一个.patch来下载补丁。这在Bitbucket上是行不通的。

git bitbucket pull-request git-patch
1个回答
21
投票

Pull Request 补丁可以通过 bitbucket API 获得(尽管没有直接从 Pull Request 页面下载的按钮)。

访问Pull请求补丁: https:/bitbucket.orgapi2.0repositoriesGROUPPROJECTpullrequestsIDdiff。

出处:/jira.atlassian.combrowseBCLOUD-8323?focusedCommentId=2226612&page=com.atlassian.jira.plugment系统。https:/jira.atlassian.combrowseBCLOUD-8323?focusedCommentId=2226612&page=com.atlassian.jira.plugment.system.issuetabpanels%3Acomment-tabpanel#comment-2226612。

© www.soinside.com 2019 - 2024. All rights reserved.