diff options
author | 2023-08-01 11:21:22 +0200 | |
---|---|---|
committer | 2023-08-01 11:21:22 +0200 | |
commit | 912aaafbe68a5f538bfc350747958a62f8cbfa6c (patch) | |
tree | 204dfae4d5a2dd019d25e1bd05f9e2dd208ff7aa /source/features/link-to-github-io.tsx | |
parent | 642fae4e8070a4c61ece1784ac880bd2e74945eb (diff) | |
download | refined-github-912aaafbe68a5f538bfc350747958a62f8cbfa6c.tar.gz refined-github-912aaafbe68a5f538bfc350747958a62f8cbfa6c.tar.zst refined-github-912aaafbe68a5f538bfc350747958a62f8cbfa6c.zip |
Review `hasRepoHeader` usage (#6804)
Diffstat (limited to 'source/features/link-to-github-io.tsx')
-rw-r--r-- | source/features/link-to-github-io.tsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/features/link-to-github-io.tsx b/source/features/link-to-github-io.tsx index c161150b..f2f22164 100644 --- a/source/features/link-to-github-io.tsx +++ b/source/features/link-to-github-io.tsx @@ -42,7 +42,7 @@ void features.add(import.meta.url, { () => /\.github\.(io|com)$/.test(getRepo()?.name ?? 'shush eslint'), ], include: [ - pageDetect.hasRepoHeader, + pageDetect.isRepoHome, ], init: initRepo, }, { @@ -52,3 +52,13 @@ void features.add(import.meta.url, { ], init: initRepoList, }); + +/* + +Test URLs: + +- Repo: https://github.com/yashshah1/yashshah1.github.io +- List, user: https://github.com/yashshah1?tab=repositories&q=GitHub.io&type=source +- List, org: https://github.com/Qv2ray?q=GitHub.io + +*/ |