sindresorhus/refined-github

`highlight-non-default-base-branch` Should exclude branch master #3910

yakov116 posted onGitHub


Some repositories use something other than master as their default branch (e.g. dev) and have treated master as a "production" branch, so PRs pointing to master don't necessarily match the current situation ("this PR was merged into the default branch at the time").

Given that we do not have a history of default branches to properly address this issue, perhaps we can hide master if the default branch is main, so we cover this use-case exactly.

posted by fregante about 4 years ago

This also applies to clean-conversation-headers

posted by fregante about 4 years ago

Also keep in mind this should only happen on deleted branches. Since if the branch was changed the PR branch (if it was open) would also change

posted by yakov116 about 4 years ago

Rather than deleted branches I’d do that for “closed PRs”

posted by fregante about 4 years ago

Rather than deleted branches I’d do that for “closed PRs”

Merged too? or only closed?

posted by yakov116 about 4 years ago

Merged and closed

posted by fregante about 4 years ago

I tried looking for a simple CSS selector to include only open PR's and could not find one. Can you give a look?

posted by yakov116 about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests