A userscript that enhances Bitbucket server pull request pages with improved comment and commit management features.
More often than I'd like, I find myself working on a very large PR, with long discussions within the comments. At some point I got annoyed by the amount of scrolling I needed to do to be able to reach some particular topic, that's when I decided to start tampering with the page.
This script was then incrementally improved (over the course of a year, maybe?) when I had some down time and felt motivated to do so, it now has a couple of useful features that would certainly hinder my ability to navigate big PRs if not there.
It is still a hot warm mess of a js file, but I love it as my own child 😍.
- Adds Collapse/Expand buttons to commits and file/PR comments, allowing you to collapse/expand the blocks below;
- Commits start collapsed, comments start visible unless done;
- File and PR comments get a Done checkbox, to mark it as reviewed/addressed;
- Done state is stored persistently using tampermonkey's storage, so on next page load, Done comments will load collapsed;
- Displays a red badge showing the number of new replies since you last viewed a comment;
- Particularly useful for Done comments, which load collapsed;
- Collapse/Expand buttons display a floating block of the hidden element, when hovered;
- Install tampermonkey - https://www.tampermonkey.net/faq.php ;
- Paste this script there;
- Change the
@includeat line 7 for the url of your bitbucket server; - Designed for bitbucket server pull request pages;
- Requires tampermonkey's
GM_getValueandGM_setValuesupport for persistent storage;
- Add the possibility of adding custom labels to comment threads;
- List named threads somewhere, click to scroll to;
- Move undone comments to the top, after the ones with new comments;
- For task comments, which are a checkbox, sync their status with our own done status;
MIT License
Created by oleoleoleoleo - https://github.com/oleoleoleoleo
