Skip to content

oleoleoleoleo/bitbucket-userscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Bitbucket Enhancer

A userscript that enhances Bitbucket server pull request pages with improved comment and commit management features.

Demo preview

Motivation

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 😍.

Features

1. Collapsible Comments and Commits

  • 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;

2. Done checkbox

  • 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;

3. New Replies Counter

  • Displays a red badge showing the number of new replies since you last viewed a comment;
  • Particularly useful for Done comments, which load collapsed;

4. Hoverability

  • Collapse/Expand buttons display a floating block of the hidden element, when hovered;

Compatibility

  • Install tampermonkey - https://www.tampermonkey.net/faq.php ;
  • Paste this script there;
  • Change the @include at line 7 for the url of your bitbucket server;
  • Designed for bitbucket server pull request pages;
  • Requires tampermonkey's GM_getValue and GM_setValue support for persistent storage;

Future Improvements

Comment Thread Labeling

  • Add the possibility of adding custom labels to comment threads;
  • List named threads somewhere, click to scroll to;

Reordering

  • Move undone comments to the top, after the ones with new comments;

Task Comments Sync

  • For task comments, which are a checkbox, sync their status with our own done status;

License

MIT License

Created by oleoleoleoleo - https://github.com/oleoleoleoleo

About

user script that enhances bitbucket-server user experience

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors