Other contributors submitting their code to a proprietary codebase are giving up their license to the code in favour of the repo's license. The repo owner can do whatever with the code at that point, including choosing to open it as AGPLv3 if they want to.