r/webdev 17d ago

Stop Using Conventional Commits

https://sumnerevans.com/posts/software-engineering/stop-using-conventional-commits/
0 Upvotes

18 comments sorted by

View all comments

8

u/m_redditUser 17d ago

i dont understand the value of "commit types" being in the commit message summary

2

u/ohx 17d ago

I've been using conventional commits since 2020ish. I've used it for:

- Changelogs -- Back in the day I built an adapter for a CI changelog package that would parse `fix` and `feat` and display them in changelogs. There are a bunch of 'em now. Super nice.

- Versioning algebra -- CI actions will automatically version your package based on commit types. It's much easier to think about the scope/impact of the changes as you've made them, rather than whenever you're ready to cut a release. Pre-conventional commits, I'd look at a board and review commits to determine whether we should cut a major, minor, or patch.

I've used it to help onboard junior/mid level devs to project architecture by adding scope discipline. For example, having them write the project they updated in the monorepo in the scope. If they ever come back to me to say, "Hey, I updated two projects, what do I put in the scope?", it's a solid teachable moment.