How decent should a patch be before it is merged in? If it comes from someone wh...

@pinskia@hachyderm.io

How decent should a patch be before it is merged in? If it comes from someone who has been working on the project a long time but only as a contributor? What a newbie?
If after it goes in who should do the changes to do the cleanup after the fact when a maintainer finds issues with it?