DEV Community

Discussion on: Write Git Commit Messages That Your Colleagues Will Love

Collapse
 
martinhaeusler profile image
Martin Häusler

In a monorepo context, it turned out to be a great idea to prefix the headline with the projects affected by the commit. For example:

[Admin UI] Added option to mass edit users.

Collapse
 
simeg profile image
Simon Egersand 🎈

I considered including this in the post. I agree, especially for monorepos it makes sense. Just gotta find that good balance so the prefixes don't take up too many characters!

Collapse
 
pictor13 profile image
Igor Pellegrini • Edited

Probably codifying the project name or the topic to 3-5 letters should work.
Same as many prefix with bug, fix, feat, ui, etc.

There are also several repos providing a model for emojii commits (a decent one, for example)
I really liked the ideas a lot (as long as a legend is provided somewhere in the repo) and started to use them happily (you can even filter commits by emoji/category)....
... until our sysadmin complained when the (draconian) issue-tracking-system crashed because of poor unicode support and told me to stop.... 😒