Commit message checks #1029
Replies: 4 comments 1 reply
-
I find this check pretty annoying and am fine with any other solution. |
Beta Was this translation helpful? Give feedback.
-
I am not a big fan of the current pre-commit hook since it is not enforced (in CI). I think whatever rules we go for, we should also enforce them. As you said, @davidrudlstorfer, currently you can just skip this hook (I am also guilty of doing that from time to time). Note the possible relation of conventional commits to #69 |
Beta Was this translation helpful? Give feedback.
-
The current commit message check follows this guideline: https://cbea.ms/git-commit/ (the same rules can be found at many other places on the web.) As far as I know, the original source is this one: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html |
Beta Was this translation helpful? Give feedback.
-
I don't mind to start the first line with a capital letter. In fact, this is very normal to me, since every sentence in a regular text starts with a capital letter. However, I'd be annoyed if having to type certain keywords at the beginning of the first line -- especially since they can become quite complex, if one wants to use them correctly, cf. all the different "types" and specialized additions outlined at https://www.conventionalcommits.org/en/v1.0.0/#examples The website of conventional commits advertises there use in combination with semantic versioning. We do not do semantic versioning, so this benefit is probably less pronounced for us than for other projects. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we have this https://github.com/4C-multiphysics/4C/blob/main/utilities/code_checks/commit-msg script which checks our commit messages.
At least for me it is pretty annoying, for example, that we can not use lower case style for commit messages. This "rule" is more or less arbitrary and also contradicts pretty wide-ranged standards (https://www.conventionalcommits.org/en/v1.0.0/)
Also already discussed with @sebproell: we never check the commit message in our repo, so if one decides to just disable the check locally he can just push any commit message.
Therefore, the following questions arise:
Maybe it bugs more people and I am not the only one
Beta Was this translation helpful? Give feedback.
All reactions