Love the idea but the thing is, if it's just one file then it's probably easy enough to work that contribution out of the repository.
It is quite fun to try and think of ways that this could work though. Perhaps a bot that code-paraphrases (paracodes?) every accepted PR. Or maybe there's some crypto magic you could do to make the only option a clean room rewrite.