Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTidying commit messages #16009
Tidying commit messages #16009
Comments
|
One cool thing that projects under the JQuery foundation have is to include a word or a small phrase in the beginning of the commit message which states what part of the repo is being affected by the commit. This can be followed by a short, one line description. For example:
|
|
I think it’s good to have guidelines for commit messages. I think it’s good to have tidy check for code in the repository, since that code can stay for a long time. I don’t think gating pull requests (or worse, try builds) on details of commit message formatting or punctuation is that useful, it sounds very annoying for little benefit. It’s better to live with improper punctuation in commit message than to force a PR to go through another cycle of review and CI. |
|
That's one other thing I wanted to ask, whether we should do this in homu, or whether we can keep it to Travis and Appveyor builds? (by having a tidy argument) |
|
This is exactly what GitCop is for. It would run before the commit even gets to bors (though bors should probably check that GitCop has successfully passed before putting the PR onto the queue). |
|
Discussion about GitCop in #16138 and the dev-servo mailing list. Closing this in favor of that. |
I got to see this post today. It reminded me that most often, we don't really worry about the commit messages (we just stamp
r+and go). Given our rules for clean code, I think we could have some basic rules for commit messages as well. As of now, this is all I can think of:Shall we make tidy check all this?