Chrome extension for hiding old bot comments in GitHub pull requests
MIT License
Minimize GitHub comment noise in your pull requests from bots using this Google Chrome extension.
Reduce the noise of repetitive bot comments in your GitHub pull requests by visually hiding outdated comments, keeping the focus of your pull request conversation on contributor comments. This extension will leave the latest comment from any of the defined bots, but hide any older comments.
By default, the bot prefixes used are the most common ones found in MicrosoftDocs repos:
You can change these to add new prefixes, remove existing ones, or replace the default list entirely.
[!NOTE] Prior versions of this extension would allow for hiding comments permanently via an official GitHub mechanism. This required elevated permissions, restricting the usefulness. As of version 0.4.0, this extension will only hide comments visually within your browser. Nothing is persisted and will require the browser extension for anyone else to experience the comment hiding.
Once installed, when viewing any GitHub pull request, all eligible bot comments will be hidden visually automatically when the page loads. Additionally, when expanding a large comment history, any newly shown eligible comments will be hidden. The eligibility of a comment is based on the prefix of the commenter's GitHub username. The extension will hide all but the newest comment from any given bot.
To re-show hidden comments, click the extension toolbar icon and click the Reshow hidden comments button. Any hidden comments will be restored visually again. Clicking the Hide outdated for session will hide those comments again.
To customize the bot name prefixes you want to hide, you'll have to edit the prefixes in the extension options once it's installed.
Find the GitHub comment minimizer extension button in the Chrome/Edge toolbar.
Right-click the button and select Options.
To add a new prefix, use the textbox at the bottom of the options page and click Add. To remove an existing prefix, click the Remove button next to it.
Your bot prefix choices will sync to any other computers where you log in with the same browser account and install the GitHub comment minimizer extension.
You can disable automatic hiding of eligible comments by toggling the auto-hide setting in the extension options.
Find the GitHub comment minimizer extension button in the Chrome/Edge toolbar.
Right-click the button and select Options.
To disable automatic hiding of outdated bot comments by unchecking the Auto-hide old bot comments option.
If you are using Google Chrome or the Chromium-based Microsoft Edge, you can install the GitHub comment minimizer extension to allow hiding old bot comments in your GitHub pull requests.
Installation on Google Chrome works as you would install any other Chrome extension found on the Chrome Web Store.
For Microsoft Edge, you'll first need to allow installing extensions from other stores. You can do this from the extension page on the Chrome Web Store above. Edge will put a header in place to guide you to allow Chrome Web Store extensions.
[!NOTE] You can also toggle this setting from the Extensions page. Expand the left-hand menu, if needed, and toggle the Allow extensions from other stores option.