在其他人的包上测试拉取请求
Testing pull-request on other person's package
我开了一个issue in a package that I need for my job, and now the author is asking me to test a pull request。问题是......我真的不知道这样做的首选方法是什么。
我现在看到的唯一方法是我 fork 存储库,下载并应用 pull request 作为补丁,然后从该项目导入功能......肯定有更好的方法吗?我在 Ubuntu.
上使用 PyCharm
GitHub 拉取请求命名来源:
mvantellingen wants to merge 12 commits into master
from multiple-msg-parts
multiple-msg-parts
只是同一存储库中的另一个分支。只需克隆该存储库并查看 that specific branch.
其他拉取请求可能是从不同存储库中的分支创建的;然后源存储库将具有 <username>:<branch>
形式,此时您将从该特定用户克隆项目以获取该分支。例如,this pull request is sourced from andrewserong:check-node-get-children
, so you'd clone andrewserong/python-zeep
并切换到 check-node-get-children
分支。
PyCharm让你clone directly from GitHub;克隆后使用 VCS 菜单项切换分支。
The only way I see now is that I fork the repository, download and apply the pull request as a patch [...]
As :克隆存储库并检查提到的分支。您可以做到这一点,而无需在 GitHub 上进行分叉,也无需手动应用拉取请求:
git clone git@github.com:mvantellingen/python-zeep.git
git checkout multiple-msg-parts
甚至在一个命令中:
git clone git@github.com:mvantellingen/python-zeep.git --branch multiple-msg-parts
[...] and then import the function from that project
我想如果您想测试拉取请求的更改,您将无法绕过该部分。
不过,作者并没有要求您测试 拉取请求(即使他们可能有意这样做);他们问你是否你可以测试它:
I'm working on a fix in #205. It required some refactoring, are you able to give it a try for me?
"No, because I don't know how." 是可以接受的答案。 ;-)
我开了一个issue in a package that I need for my job, and now the author is asking me to test a pull request。问题是......我真的不知道这样做的首选方法是什么。
我现在看到的唯一方法是我 fork 存储库,下载并应用 pull request 作为补丁,然后从该项目导入功能......肯定有更好的方法吗?我在 Ubuntu.
上使用 PyCharmGitHub 拉取请求命名来源:
mvantellingen wants to merge 12 commits into
master
frommultiple-msg-parts
multiple-msg-parts
只是同一存储库中的另一个分支。只需克隆该存储库并查看 that specific branch.
其他拉取请求可能是从不同存储库中的分支创建的;然后源存储库将具有 <username>:<branch>
形式,此时您将从该特定用户克隆项目以获取该分支。例如,this pull request is sourced from andrewserong:check-node-get-children
, so you'd clone andrewserong/python-zeep
并切换到 check-node-get-children
分支。
PyCharm让你clone directly from GitHub;克隆后使用 VCS 菜单项切换分支。
The only way I see now is that I fork the repository, download and apply the pull request as a patch [...]
As
git clone git@github.com:mvantellingen/python-zeep.git
git checkout multiple-msg-parts
甚至在一个命令中:
git clone git@github.com:mvantellingen/python-zeep.git --branch multiple-msg-parts
[...] and then import the function from that project
我想如果您想测试拉取请求的更改,您将无法绕过该部分。
不过,作者并没有要求您测试 拉取请求(即使他们可能有意这样做);他们问你是否你可以测试它:
I'm working on a fix in #205. It required some refactoring, are you able to give it a try for me?
"No, because I don't know how." 是可以接受的答案。 ;-)