Azure DevOps: Highlight PR Reviewer Votes v1.0.0
Highlights PRs based on reviewer approval status in Azure DevOps to quickly identify PRs needing attention.
What it does
This style rule improves PR list scanning by:
- Multiple reviewers with approval: Purple background for PRs with at least 2 reviewers where at least one has approved
- Waiting for author: Orange background for PRs where a reviewer is waiting for the author to respond
This helps prioritize which PRs to review or respond to when viewing PR lists.
Style Content
/* ==UserStyle==
@name Azure DevOps: Highlight PR Reviewer Votes
@namespace https://www.timhilton.xyz/stylus-rules/
@version 1.0.0
@description Highlights PRs based on reviewer approval status in Azure DevOps to quickly identify PRs needing attention
@author Tim Hilton
@homepageURL https://www.timhilton.xyz/stylus-rules/azure-devops/highlight-pr-reviewer-votes/
@updateURL https://www.timhilton.xyz/stylus-rules/azure-devops/highlight-pr-reviewer-votes/latest/highlight-pr-reviewer-votes.user.css
==/UserStyle==*/
@-moz-document regexp("https://dev.azure.com/.*/pullrequests.*") {
/* Highlight PRs which already have at least 2 reviewers, at least one of whom has approved the PR. */
.bolt-table-row:has(.pr-reviewer:nth-child(2)):has(.repos-pr-reviewer-vote.approved) {
background: #800040;
}
/* Highlight PRs where a reviewer is waiting for the author */
.bolt-table-row:has(.repos-pr-reviewer-vote.waiting) {
/* Using !important to override the more specific selector above when a PR has one approval and one reviewer waiting for the author */
background: #ffa5003d !important;
}
}