-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add commit message lints #3545
Comments
I'm probably one of the offenders here, but disagree that this is a priority, IMO just get your editor / terminal / git to wrap the lines for you if you want them wrapped. That said, I'm fine with CI jobs or something to fix this, but I believe there is great value in not telling contributors to rebase, and squashing instead. |
You can do that yourself if you want to, I can't be bothered to deal with these commit messages anymore. I told about that numerous times during the year(I think), so no it's a priority, since mostly all commit messages expept for the ones from @notgull and me are formatted like garbage. |
I agree that this is not a priority. It would also be good to agree on something and write it down somewhere. Personally I couldn't care less about wrapping commit messages (to a degree ofc), but if we agree on something and write it down somewhere I'm happy to oblige. I don't like squashing either, fast-forward-merging anybody? |
All I see is an issue with your terminal window being too wide / Or do you have other complaints with the commit messages? |
Ofc, just read yours and then e.g. John's or mine. Or read the alacritty's messages. It's feels like you throw garbage which no-one cares about and then dance around the tree because your thing got merged. And no, it's not an issue with my system in particular, you should just follow what git uses by default and at least put a bit of effort into writing about the work you've done. |
I don't believe this language is appropriate. Please remain on topic.
I'm not aware of git imposing any rules by default? What are you referring to here? |
I was polite about this during the year. Mostly all my suggestions were ignored and they don't want to improve on purpose resulting in lower code quality in the project, because git commit messages are part of that. Given that I can't stand it anymore I take it personally and treat as a threat it as power abuse since 99% of the time I rewrite their commit messages for them,
50 and 72 wrapping is de-facto wrapping in git. I don't force 50, you can still write a bit more in title, by like 10 chars, but general aim is 50. |
I've disabled squash and forced explicit review on each PR. |
I've set up a Git |
For yourself or what do you mean by that? |
Yeah, for myself |
I'll try to set up a CI job that checks this, so that we can re-enable squash merging |
The issue is that CI won't be able to prevent squash merging, because you write commit messages on github, thus CI won't run for it. The only way CI for commits can work is for rebase itself. The squash will be re-enabled eventually. |
I think we should agree on some rules in #3549 first. |
I think the point is to lint on width at least. The lints for commit messages are present in e.g. systemd, etc, iirc. |
Unfortunatelly, it's impossible for everyone to at least wrap their commit messages. After numerous warnings folks can't still do such things.
Thus, the squash merge will be disabled, and the only option will be rebase with the commit lint enabled for each commit in the series.
The text was updated successfully, but these errors were encountered: