Is there a pull request template that does this?
Edit: I was worried about possibly needing to change license. For now I will just use a permissive license. The situation is made seemingly complicated by the possible need to use copylefted images, combined with the possible need for using server code (which shouldn’t use creative commons) in addition to the static html. I would rather deal with including parts with different licenses (probably not as complicated as I initially thought) instead of contributor license agreements.
Edit 2: Also, license enforcement is not very important for my project.
Edit 3: Now I’m using creative commons zero and making the repo comply with https://reuse.software/
I’d really advise against forcing all code contributions to be copyrighted to you. It doesn’t send a great message to contributors. It also gets murky if any libraries are used.
Methinks somebody missed the memo what open source means.
Copyright and license agreements are not at all the same thing. And just because something is “open source” doesn’t mean that it is free of copyright.
Not saying I’m a fan but you I think you are looking for a CLA or contributor license agreement
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.