| ▲ | IshKebab 11 hours ago | |||||||||||||||||||||||||
I agree, I hate conventional commits. Why the hell do I care if changes are chores or features? I want to know what the change was. | ||||||||||||||||||||||||||
| ▲ | imiric 10 hours ago | parent [-] | |||||||||||||||||||||||||
I'm surprised to read that someone not only finds no value in conventional commits, but actively hates it. Wow. A few reasons to care about CCs: - The first few characters of a commit message tell you immediately the type of change you should expect. This tells you part of the "what" at a glance. If you're looking for a bug fix, for example, you can safely ignore any other type of commit. - Thinking about the type of change you're committing helps you create atomic commits. Anything that is not strictly related should go in a separate commit. Hopefully you already know why you should care about this. - A conventional commit message also often includes the change scope. This is a handy way to indicate the subsystem that was changed, which is also useful for filtering, searching, aggregating, etc. - They help with writing change logs. I'm a strong proponent of the idea that change logs shouldn't be just autogenerated dumps of commit messages, but carefully redacted for the intended audience, and CCs can help with grouping changes by type or scope. These days LLMs do a decent job at generating this type of changelog (even though it should still be manually reviewed and tweaked), and the additional metadata provided by CCs helps them make it more accurate. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||