summaryrefslogtreecommitdiff
path: root/source/features/show-names.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-04-24 11:34:49 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-04-24 11:34:49 +0800
commit2190e1a6f68e483f43bfda3a03d82542cda6f05f (patch)
tree3c2f8aa13e11676fc1a662e261869fa778f0165c /source/features/show-names.tsx
parentb3a1b2702482b4de868d681aa1bf511ce3e49079 (diff)
downloadrefined-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.tsx3
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();