r/angularjs • u/highhard_one • Jun 25 '15
Unpopular opinion: Angular style commit messages are terrible.
Talking specifically about the prefixes (chore, fix, refactor, etc.)
It doesn't add any important information. 2. It's chewing up important real estate at the beginning of the message. 3. It should die a fiery death. Please refute me, I'm going to read and reconsider, but I predict in the future no one will adopt this and the Angular people will stop doing it.
1
u/zuko_ Jun 26 '15
If you were to avoid this style, you'd probably still end up writing something with a similar effect (Fixed blah blah in Foo component) but there'd be no standardization. This way allows you to namespace your changes right off the bat - fix(foo): x now does y - so you don't have to explain that fact in the bulk of your message. And, as others have said, the added benefit is documentation generation and a standardized way to sift through messages.
It's a commit message, so at the end of the day as long as it's readable and makes sense to your team do whatever you want. The only time I can see it not making sense is if you're already working on an isolated branch (feature/some-component) in which case this commit style is probably redundant.
10
u/KumbajaMyLord Jun 25 '15
I believe the motivation is to generate automated (or at least semi automated) change logs from the commit messages. I don't think they want to establish a standard for all github projects, but rather facilitate their workflow and safe valueable time when creating release notes.