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
This is the correct answer.
I’m sure there is a way to make signing the CLA part of the pull request process on Github. I’ve been asked to do it. Not sure how Github works nowadays, maybe it was part of Github or an external bot.
And I don’t agree with the other people here. I think having complete copyright makes some things easier. And if you do an open project, maintain it for years, do 99% of the work… You’re allowed being paid with the contributions.
Mind there are other licenses than just the GPL. You could just pick a MIT license / Apache / BSD instead and maybe you don’t need the contributors to sign over their copyright anymore, because these licenses cover pretty much everything and transfer it to everyone, including you.
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.
What is the need for this?
Some GPL projects do it. If you find someone infringing, it’s easier to sue them if you have one copywrite holder instead of 100.