Azure DevOps: Highlight PR Reviewer Votes latest version (currently v1.0.0)
← Back to Stylus Rules
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;
}
}