DEV Community

Jesse Phillips
Jesse Phillips

Posted on • Edited on

1 3

Selecting the Right Emotion for Your Commit

This idea that your emotions can tell a story is new to me, but it could be that emoji encompasses much more than emotions now.

I've been utilizing gitmoji for some time now. And many on the team are liking what it is doing to their commits, even if I push on some things which seem too hard to break up.

I wanted to explain a couple of these icons though.

✨ - New features
♻️ - Refactoring
💥 - Breaking changes
🏗️ - Architecture changes

One of the rules is that you can't commit with more than one. And since the commit is reviewed to identify that is the only thing you're doing.

What had me stumble for a bit was how I decided between an architecture or breaking changes and here is what I came up with:

🏗️ - ♻️ 💥
💥 - ✨ 💥

They are both breaking changes. One is when your refacing went too far and changed an important api and the other is when it happens while adding a new feature.

This makes me think that a good migration plan would entail


♻️
And
🔥 - Remove code

The idea being a new api is provided before the old one is removed.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (3)

Collapse
 
jessekphillips profile image
Jesse Phillips

Even having just written this. I could see using 🏗 for commits that remove depreciation. But that is mainly because in my case I have code removal which is a breaking change.

Collapse
 
nabbisen profile image
nabbisen

Nice and interesting approach :)
It's new to me ✨
It helps me a lot 💥

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay