Skip to content

Better Github PRs by CorentinDeBoisset

Screenshot of Better Github PRs

Details

AuthorCorentinDeBoisset

LicenseMIT

Categorygithub.com

Created

Updated

Size1.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Highlight unassinged PRs, and dim the ones in draft or already assigned

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Better Github PRs
@version      20240912.11.22
@namespace    https://userstyles.world/user/CorentinDeBoisset
@description  Highlight unassinged PRs, and dim the ones in draft or already assigned
@author       CorentinDeBoisset
@license      MIT
==/UserStyle== */

@-moz-document domain("github.com") {
/* Dim draft pull requests */
div[aria-label="Issues"] .Box-row:has(.octicon-git-pull-request-draft) a {
    font-weight: normal !important;
    opacity: 0.65 !important;
}

/* Dim assigned open pull requests */
div[aria-label="Issues"] .Box-row:has(.octicon-git-pull-request):has(a.avatar-user) a {
    font-weight: normal !important;
    opacity: 0.65 !important;
}

/* Hide successfull tests markers from PRs */
div[aria-label="Issues"] .Box-row .color-fg-success .octicon.octicon-check {
    visibility: hidden !important;
}


div[aria-label="Issues"] .Box-row a[aria-label$="review approval"], a[aria-label="Review required before merging"] {
    margin-right: 18px;
}

div[aria-label="Issues"] .Box-row a[aria-label$=" review approval"]:before {
    content: "✅";
    animation: none !important;
    position: absolute;
    left: calc(100% + 3px);
    bottom: -2px;
}

div[aria-label="Issues"] .Box-row a[aria-label="Review required before merging"]:before {
    content: "⌛️";
    animation: none !important;
    position: absolute;
    left: calc(100% + 3px);
    bottom: -2px;
}

div[aria-label="Issues"] .Box-row a[aria-label$=" review requesting changes"]:before {
    content: "🚧";
    animation: none !important;
    position: absolute;
    left: calc(100% + 3px);
    bottom: -2px;
}
}

Reviews

No reviews yet.