是否可以继续Github上其他人打开的拉取请求?

Del*_*gan 7 git github pull-request

在不属于我的存储库中,第三个人打开了拉取请求.其中一位所有者在合并之前建议进行一些更改.但是,pull请求的作者还没有这样做,并且在没有实现修改的情况下,它仍然保持开放状态数月.

其实我指的情况下像这样的.

我会让myslef得到所要求的改进.

什么是最干净,最好的方法呢?我可以在下面添加我的提交,还是需要打开一个新的拉取请求?

mga*_*aia 10

更新 pull请求的唯一方法是推送到已经PRed的分支 - 所以即使原始repo的所有者也默认不能修改PR.它确实有意义 - 至少可追溯性.

所以,如果你想完成的工作,你能做的最好的事情是到餐桌原来回购,clone到本机,加公关的回购的remote,checkout在分行PR'ed,commit最重要的是,push这些变化给自己fork,并在注释中创建一个新的PR,它继续并修复其他PR,因此原来的PR将在你的'合并时关闭.

在这种情况下,像:

$ # Go to https://github.com/cheeriojs/cheerio/ and fork it
$ git clone https://github.com/Delgan/cheerio/ && cd cheerio # assuming that's your GH username :)
$ git remote add pr-base https://github.com/digihaven/cheerio/
$ git fetch pr-base
$ git checkout pr-base/master -b 641-appendTo_prependTo
$ # work work work
$ git add #...
$ git commit -m 'Fixed all the things! See #641, fixes #726'
$ git push origin 641-appendTo_prependTo
$ # Go to your repo and make the PR
$ # ...
$ # SUCESS! (??!)
Run Code Online (Sandbox Code Playgroud)