If you want that, you’ll get fewer contributors, but just make that explicitly clear in your pull request template.
Personally, I would never contribute to a project where the maintainer demanded I transfer copyright ownership of my contributions. I also wouldn’t use a project that did that, and would advise other people to not use that project either.