Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

how to create a PR from private forked repo to upstream public repo ?

Solved! Go to Solution.
abc.1 (upstream repo)
abc.2 (imported abc.1 as abc.2 private repo)(by default it is creating public repo but not private repo)
made changes in abc.2
create PR to upstream public repo

ps: i want to create using web interface (github.com) not cli.
2 Replies
Solution
Pilot Lvl 3
Message 2 of 3

Re: how to create a PR from private forked repo to upstream public repo ?

Hi @leela52452 

 

You say "imported abc.1 as abc.2", does that mean you didn't hit the "Fork" button to create this repo? If so, it's not actually a fork and you cannot file PR's from abc.2 into abc.1 I'm afraid.

Pilot Lvl 1
Message 3 of 3

Re: how to create a PR from private forked repo to upstream public repo ?

Ya I don't see how this will be possible with the web interface. While its true you can't directly submit a PR, with a bit of extra effort I think it should actually be possible. Since the guts of a PR is really little more than a patch file (which is basically a git diff) you could then fork the upstream repo, apply your patch to the fork, and then submit your PR upstream. The integration effort depends on how much deviation there is from the private fork (were changes integrated back in for example) Depending on the project the maintainers may be willing to take a patch file directly via an email or on an issue and apply it for you.