Assuming the OP is just talking about voluntary github commits and stuff like that, no they wouldn't. There are standards that have to be met for something being defined as work, like requirements to show up at a particular time and being managed by someone etc. If you're doing stuff that could just as easily be done from elsewhere and which comes with no obligation, that's not work.
work without pay is deportable under immigration laws