diff options
author | 2019-04-24 11:34:49 +0800 | |
---|---|---|
committer | 2019-04-24 11:34:49 +0800 | |
commit | 2190e1a6f68e483f43bfda3a03d82542cda6f05f (patch) | |
tree | 3c2f8aa13e11676fc1a662e261869fa778f0165c /source/features/show-names.tsx | |
parent | b3a1b2702482b4de868d681aa1bf511ce3e49079 (diff) | |
download | refined-github-2190e1a6f68e483f43bfda3a03d82542cda6f05f.tar.gz refined-github-2190e1a6f68e483f43bfda3a03d82542cda6f05f.tar.zst refined-github-2190e1a6f68e483f43bfda3a03d82542cda6f05f.zip |
Add support for user-less commits in 2 features
- `show-names`
- `add-co-authored-by`
Context: https://github.com/sindresorhus/refined-github/pull/1924#issuecomment-485340003
Diffstat (limited to 'source/features/show-names.tsx')
-rw-r--r-- | source/features/show-names.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/show-names.tsx b/source/features/show-names.tsx index 6255ffb5..1067e255 100644 --- a/source/features/show-names.tsx +++ b/source/features/show-names.tsx @@ -5,7 +5,8 @@ import features from '../libs/features'; import {getUsername} from '../libs/utils'; async function init(): Promise<false | void> { - const usernameElements = select.all('.js-discussion .author:not(.rgh-fullname):not([href*="/apps/"])'); + // `a` selector needed to skip commits by non-GitHub users + const usernameElements = select.all('.js-discussion a.author:not(.rgh-fullname):not([href*="/apps/"])'); const usernames = new Set(); const myUsername = getUsername(); |