If you want to hire me but want to see some real-world work first, give me an 8 hour contract and a fair wage.
If you want to hire me but want to see some real-world work first, give me an 8 hour contract and a fair wage.
The issue is that you're working for a prospective company while not being compensated for it.
If only there was a website where one could upload and source code one had written for fun. Perhaps even with repo history. Like a hub of git activity or something.
Then employers could simply browse this website rather than demanding these annoying project interviews.
Additionally the legality of OSS commits is technically still kind of grey for a lot of people with generic "your code belongs to the company" in their contract with their employer.
See also filters like college degrees and past experience, both of which also provide evidence you know what you are doing and put you miles ahead of people without them. Should we also not look at past experience and education?
I do not disagree on the value of looking at OSS, I just feel that requiring it is going to cause you to pre-emptively filter your candidate list.
Now if that is what you want there is nothing wrong with that, it just may not be obvious that is what you are doing.
Note that I am assuming you are looking for complex work, github is great for seeing if they can at least program, but I would trust a quick whiteboard problem more for that level of technical aptitude.