DEV Community

Cover image for Built a CLI tool to help manage code review feedback - thoughts?
Naoya
Naoya

Posted on

Built a CLI tool to help manage code review feedback - thoughts?

Hi everyone! πŸ‘‹

I'm a software engineer from Japan, and I'd like to share a CLI tool I built to help junior developers (and everyone!) better manage and learn from code reviews.

The Problem

As a developer, I found that valuable code reviews from senior engineers were scattered across multiple PRs and easy to forget. GitHub's current interface requires checking each PR individually to see review comments, which makes it hard to consolidate and learn from all that feedback.

What is get-gh-reviews?

https://www.npmjs.com/package/get-gh-reviews
It's a CLI tool that exports all the reviews you've received on your PRs into organized markdown files. The tool generates both a summary list and detailed review comments, including the actual code snippets that were reviewed.

Key Features

  • πŸ“‹ Exports all reviews received on your PRs in a repository
  • πŸ“ Generates clean markdown files (perfect for copying to Notion!)
  • πŸ”— Includes clickable links to original PR discussions
  • πŸ’Ύ Shows the actual code that was reviewed alongside comments
  • πŸ“Š Organizes reviews by PR with summary and details

Example Usage

npm install -g get-gh-reviews
get-gh-reviews reviews -u your-username --markdown my-reviews.md
Enter fullscreen mode Exit fullscreen mode

This creates a comprehensive markdown file with all your received reviews, organized and ready for study.

Why I built this

Code reviews from senior developers are pure gold for learning, especially for junior engineers. But human memory is limited - we tend to forget valuable feedback over time. This tool helps create your own personal learning resource from all the reviews you've received.

The tool got 2000+ downloads in the first day, which tells me this is a real pain point for many developers!

GitHub: https://github.com/Kroro1208/gh-get-reviews

npm: https://www.npmjs.com/package/get-gh-reviews

I've also submitted a feature request to GitHub to add this natively: https://github.com/orgs/community/discussions/172240#discussioncomment-14303297

Would love your thoughts and feedback! Do you struggle with managing and learning from code reviews too?

Thanks for checking it out! πŸ™

Top comments (0)