Pull requests have nothing to do with any of this. Also algorithms can’t be copyrighted nor patterned in the first place so it would not matter.
You could implant an algorithm in a proprietary code base and some gal could reverse engineer it and publish it as GPL or MIT or whatever and all would be a-ok.