iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
💌

How Adding Labels to Code Reviews Increased Our Team's Psychological Safety

に公開
2026/08/16
3件

In this article, we introduce a method that the Hakobera development team adopted to improve psychological safety by labeling pull request (merge request) comments.

  • Note: The content of this article reflects information at the time of writing. Please be aware that it may not reflect the latest developments.

Background

When reviewing pull requests, have you ever felt nervous as a reviewer about sounding condescending and hurting the other person, or found that a comment you intended as a minor check was interpreted as a required correction?

Ideally, peer reviews should be between equals, but often the reviewer ends up in a higher position, making both parties feel awkward. This can lead to approving without stirring the waters, thinking things like "It seems suspicious, but I'm scared to say so in case I'm wrong," or "This implementation might cause problems later, but it's not worth pointing out." This discourages active review.

These small issues can accumulate and significantly degrade product quality after release or years down the line.

Setting Rules for Adding Labels

To address this, our Scrum team established a Working Agreement (team rule) that, in principle, all review comments should include a label. We decided to use the following labels:

Label Meaning Intent
Q Question A question that requires a response from the other party.
FYI For your information Shared for informational purposes; no action needed (e.g., to note a confirmed point).
NITS Nitpick A pedantic suggestion; can be ignored.
NR No rush A suggestion that isn't needed now but should be addressed in the future; consider tasking or fixing it.
IMO In my opinion A personal opinion or minor suggestion; consider tasking or fixing it.
MUST Must Cannot approve without this being fixed; consider the fix.

Adding labels offers the following benefits:

  • Since not all comments require fixes, it fosters a more equal relationship.
  • The required action is clearly communicated, preventing misunderstandings.
  • Comments are weighted, making priorities clearer.
  • Future tasks are less likely to be forgotten and can be taskified.
  • Lowering the barrier for commenting encourages more active discussion.

As a result, the number of code review comments on pull requests has increased compared to before, and discussions have become more active. This has improved the team's psychological safety and development efficiency.

GitHub screenshot showing author Oishi (@bicstone) leaving a review comment: "nits: You're casting the type here, but you could also write it like this using forwardRef generics."

Usage Examples

For Reviewers

  • q: Did we agree this was fine here? I couldn't fully follow...
  • FYI: I quickly checked with the PO verbally, and they said this is fine as is.
  • NITS: The condition here is tricky, isn't it? I thought writing it this way might make it simpler!
  • NR: There's a test missing here. Let's create a task for it for now. (link to task)
  • IMO: It's a rare case, but making this pattern an error would make it more robust.
  • MUST: The arguments are reversed, so please fix that.

For Reviewees

Reviewees can also make it easier for reviewers by adding preemptive comments on the code. Here's how:

  • q: I'm a bit unsure about this implementation; is it correct...?
  • FYI: It differs from the design, but the PO has confirmed it (link to Slack).
  • NITS: This was from the previous code, but since it was confusing, I fixed it while I was at it.
  • NR: I can't handle this rare case here, so I'll create a task and implement it separately.

Leveraging GitHub Saved Replies

GitHub offers a feature called Saved replies, where you can set up comment templates and call them via keyboard shortcuts or the toolbar.

Especially when you first start this practice, it's easy to forget what each comment label means, so it's recommended that everyone set up their own Saved replies.

https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/creating-a-saved-reply

GitHub screenshot showing the "Select a reply" option in the toolbar with a popover expanded, displaying the six labels mentioned above that can be selected and inserted.

Future Outlook

While writing this article, we researched similar practices and discovered a convention called Conventional Comments.

https://conventionalcomments.org/

We are particularly interested in the Decorations aspect.

By clearly distinguishing between Blocking and Non-Blocking, we believe it may be possible to separate questions from their impact on work, thereby conveying intent more clearly.

We will continue discussions with team members and keep making improvements to enhance development efficiency.

Summary

We introduced a method of adding labels to code reviews as one of the initiatives by Hakobera to improve team psychological safety and development efficiency.

Once you establish the rules, this technique requires no tools, is easy to implement, and is highly effective, so we encourage you to try it.

Discussion

PlacelessPlaceless

チームで開発している OSS repo で採用しようかと思います.参考になりました.ありがとうございます.

1
おおいし (bicstone)おおいし (bicstone)

OSSだとコンテキストが伝わりにくいので相性良さそうですね!
コメントありがとうございます!!

1