4

I am working on this code : https://github.com/samvermette/SVPullToRefresh

This have many pull request pending. But due to some reason Author is not able to accept.

So I decide to Fork project and accept some of the request which can improve code.

But when I fork project I don't get all that Pull request in Forked copy.

Is there any way to get that all pull request in my forked copy?

I Get this question which is very similar : Fork a Pull request, on Github

But I am not able to know how to do it. I am not able to find how to write "unit tests".

I get some answer which require to get local copy on my computer and than work with some git commands. But I think there should some way to do it on web interface only. Tell me if I am getting wrong.

Community
  • 1
  • 1
CRDave
  • 9,279
  • 5
  • 41
  • 59

1 Answers1

4

You won't be to see the PR from the original "upstream" repo in your fork, but you still can import them in your local clone:

git remote add upstream /url/of/original/repo
git config remote.origin.fetch "+refs/pull/*/head:refs/remotes/upstream/pr/*"

(The pull/ID branch naming convention is mentioned in the GitHub help page "Modifying an inactive pull request locally")

That way, you can merge any upstream/pr/<ID> branch you want in your local repo.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • It means I have to clone repository on my Machine. Am I right? – CRDave Jan 05 '15 at 07:33
  • @CRDave yes, in order to import the PR branches of the original repo. A fully remote GUI management of the PR isn't directly possible on the GitHub web site for your fork. A local clone is needed. – VonC Jan 05 '15 at 07:35
  • OK I will try and come to you. – CRDave Jan 05 '15 at 09:14