Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fork a Pull request, on Github

Tags:

github

What is the right workflow for effectively forking a Pull request?

To explain the use case: I've found a repository which contains a pull request that adds a feature I need. Unfortunately the pull request author has gone awol and the repo owner won't accept the pull request until tests are written. I'd like to "fork" the Pull request and write tests so that the repo owner will accept the new functionality.

like image 494
CambridgeMike Avatar asked Sep 03 '11 23:09

CambridgeMike


People also ask

Is fork necessary for pull request?

If you don't have access to create branches on that repository, there is no way to create a pull request without forking. Save this answer.

Can I fork from GitHub?

If you have access to a private repository and the owner permits forking, you can fork the repository to your personal account, or an organization on GitHub Team where you have repository creation permissions. You cannot fork a private repository to an organization using GitHub Free.

Is forking the same as branching?

Forking creates a full copy of your repository, whereas branching only adds a branch to your exiting tree. The file size of branch can vary depending on the branch that you are on. Under the hood git readily accesses the different files and commits depending on what branch you are using.


1 Answers

You can fork the original project, write the unit tests, then use the "Fork Queue" feature to selectively incorporate the changes by the third party into your own repository, and finally issue a pull request to your own repository, unit tests inclusive, to the original repository.

like image 65
Kerrek SB Avatar answered Oct 24 '22 09:10

Kerrek SB