A collection of userscripts to improve the Azure DevOps UI.
- Install the Violentmonkey extension
- Refresh this page if you just installed this extension (or the download link won't work)
- Install this userscript
By default, Violentmonkey will auto-update scripts from the original install location once a day. You can force an update from the extensions menu.
- Reviews where you are the last reviewer are marked "Last Reviewer" in red
- Reviews show how many files you need to review
- Reviews show build status (if it's empty, there isn't a merge commit or a build configured)
- If a PR has bug work items associated with it, we add a label with the severity of such bugs (if SEV == 1 or 2)
- Repo pull request listings will also link to the overall account-wide PR dashboard
- At NI, some labels get coloring (e.g. "bypass owners" gets a red background)
- At NI, reviews are annotated with how long you've been on it if it's been over 1 weekday and you haven't voted or commented
- An Edit button that quickly takes you to the edit UI for that file. No need to have source code or an IDE handy to make a quick edit!
- You can now use keyboard shortcuts to quickly switch between PR tabs (e.g. Overview, Files, etc). In Chrome, it'd be
Alt+1
,Alt+2
, etc. In FireFox, it isAlt+Shift+Num
. See this table for details on your browser. - Not working at the moment: PR threads that start with
note:
(case insensitive) will appear expanded on page load, even if they are closed. They are also highlighted with a light border. Use this to mark interesting things for your reviewers in your PR! - Not working at the moment: PR comments that start with
await:
(case insensitive) will appear highlighted. Use this to help developers focus their attention on the comments that you want to see again (e.g. the reason why you voted Waiting on Author or Rejected). - Not working at the moment: Folder-level PR diffs are now syntax highlighted!
Note: Not all highlights will be correct; it can only highlight the code that appears in the diff; so multi-line strings may appear weird. Practically, these sorts of issues are rare and overshadowed by the benefit of syntax highlighting in all other cases.
- In the multi-file diff view, which diffs you have expanded/collapsed will now be remembered as you navigate between folders (or between tabs) in the same PR.
These features are only available in NI AzDO accounts.
- The PR file tree will now highlight the files you need to review with a letter to represent your role (Owner, Alternate, Reviewer):
- Collapsed folders are highlighted if they contain files you need to review:
- In the multi-file diff view, files that are not your files are automatically collapsed, unless you are the one that filed the PR
- In the multi-file diff view, your files are also highlighted with a blue hedaer (vs. the typical gray)
- Bypass owners reminder: For PRs into branches requiring a passing
ni/owners-approved
status, hovering over the Approve button pops up a reminder to consider bypassing owners - Some tags/labels are colored (e.g. red if the label contains "Blocked")
- Scrollbars throughout the site will now match the current Azure DevOps color theme
- Drop down menus are bigger!
- Prompts to add links to work items are much less prominent, unless hovered over
- "Show More" buttons on work item forms and on Kanban boards are auto-clicked for you! (But only if the New column is expanded)
- Work item forms show under the comment box who else is following the work item (disclaimer: also shows people that are only following state changes)
In the builds results logs view, the left pane is now resizable so that job and step names are more visible.
These features are only available in NI AzDO accounts.
- The build results view will have an additional "Known Infrastructure Errors" section that lists known infrastructure errors under the build step that they occurred in.
- Additionally, in the Errors section, each error item from a build step that had infrastructure errors will be decorated with a warning indicator. All this is intended to make it easier to tell which errors are actual developer errors that need to be fixed.
When using this userscript on Windows, a button to launch the "NI Binary Git Diff" protocol handler will be displayed.
This button will be added to binary files with the following extensions: .vi
, .vim
, .vit
, .ctt
, .ctl
.
Note: This is a preview feature. Please contact Humberto Garza (NI) for more details and instructions.
Trophies are awarded for notable PRs and shown in a trophies section on the Overview tab. For example:
The update URL goes through a URL redirect service to get a rough idea of how many people are using this script. To opt-out, change the update URL to the original download URL your usescript dashboard (or disable updates). This redirect service may also help if the URL needs to change; e.g. if the file is moved or renamed.
No other data is collected. The script is sourced and updated directly from the master branch of this repo.
Inspired by a PR filtering script originally written by Tian Yu, which faded out approved PRs. Further improved by Alejandro Barreto.
MIT. Issues and pull requests welcomed ❤️