@driazati Thanks for pointing that RFC you posted. I totally missed it. Pretty good discussion in there. Yeah I’m aware about the merge button on GH being heavily guilty for a couple of issues associated with the bad commit messages, like title concatenation, etc.
Right, it’s tricky. So although GH can be blamed for many aspects of the bad commit messages currently in the tree, there is a human/behavioral aspect that I firmly believe that needs to be improved and, above all, can be improved I thought about this guideline as a first step for improving that aspect. That’s why I also said that I would at first “left the items regarding Github-specific issues out of this proposal”, because I wanted to focus on that tricky aspect in the end. In that sense I’m also happy that your RFC is addressing other GH and automation aspects more closely.
I see. Thanks for letting me know what we can achieve (possibly) by automation here, I’m aware you’re working hard on the front. That’s really good. I agree that enforcing these rules might be hard, so maybe we should put these 3 rules (only?) as recommendations?
Now, I do think that the reviewers/committers/maintainers must be aware of the code/commit guidelines and try to follow them at least when they are submitting code, and use the guidelines with parsimony when reviewing code submitted by other authors/new contributors. For instance, the code will need to get fixed anyways, so another CI test/review round is unavoidable, hence just let the user know that the title can be improved to match the guidelines on the next version to be pushed. That’s a quite simple ask that can help a lot a behavioral change. I think the onus should not be on the reviewers, and I think that an ask like that would avoid it: it’s a submitter’s duty to write a good commit message, just like a correct/good code.
Yeah I agree. When I replied to Tristan above I kind was saying that there would be no way to address that issue so went for a few suggestions, but then I was not aware of your RFC that will (hopefully!) address it. In that case, I would leave any recommendation about the additional commit out of this guideline @tkonolige
@driazati In that case are you considering that the submitter will be able to change the initial/original PR body, using a git push --force for instance, after an amend?