Skip to content

Commit

Permalink
Review hasRepoHeader usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Aug 1, 2023
1 parent 1495e8d commit 3a6a522
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/features/archive-forks-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function init(signal: AbortSignal): void {

void features.add(import.meta.url, {
include: [
pageDetect.hasRepoHeader,
pageDetect.isRepo,
],
init,
});
Expand Down
12 changes: 11 additions & 1 deletion source/features/link-to-github-io.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}, {
Expand All @@ -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
*/

0 comments on commit 3a6a522

Please sign in to comment.