We are always trying to find new or better ways to improve our development processes. Sometimes, even minor changes can result in a more streamlined approach to help our team collaborate better while avoiding miscommunications.
One simple change we've implemented is our own standardized set of prefix review terms to use in comments when leaving feedback during code reviews. We - did - not - invent - this. However, we have implemented this idea in our own way and found that it works for us.
We use the following comment prefixes. Consider what prefixes would work for your team and modify their implementation as necessary.
Consider this scenario: You've been working to implement a new feature, and it's almost ready for primetime. You finally submit a pull request… and get a lot more feedback than you expected. You're not sure where to start or what to prioritize. Some comments are real problems you need to address, some are just more ideas to consider, and for a few comments, it's unclear what action you need to take. This is where strategically prefixing review comments comes into play.
Starting each comment with a prefix of an acceptable outcome makes it clear what needs to happen. It takes fewer words and enables the reader to see the intention of the comment at a glance. This helps all parties communicate better and implement the changes as needed in the right ways. It's simple, and it works.
If you liked this post, you should read our full blog on How We Do Source Control at Doppler.
You should experiment with these review terms and determine what works for your team. Make sure to share what's working for you with others. Feel free to email chandler.mayo@doppler.com about how you use comment prefixes for code review or why you don't. We'd love to hear from you.
Trusted by the world’s best DevOps and security teams. Doppler is the secrets manager developers love.