File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ export type Repo = {
1313
1414const GITHUB_USERNAME = 'Gamedirection'
1515
16+ // Forks worth showing despite the fork filter below (real contribution work).
17+ const PINNED_FORKS = new Set ( [ 'AffinityOnLinux' ] )
18+
1619export async function fetchRepos ( ) : Promise < Repo [ ] > {
1720 const response = await fetch (
1821 `https://api.github.com/users/${ GITHUB_USERNAME } /repos?per_page=100&sort=updated` ,
@@ -26,7 +29,10 @@ export async function fetchRepos(): Promise<Repo[]> {
2629 const repos : Repo [ ] = await response . json ( )
2730
2831 return repos
29- . filter ( ( repo ) => ! repo . fork && ! repo . archived )
32+ . filter (
33+ ( repo ) =>
34+ ( ! repo . fork || PINNED_FORKS . has ( repo . name ) ) && ! repo . archived ,
35+ )
3036 . sort ( ( a , b ) => {
3137 if ( b . stargazers_count !== a . stargazers_count ) {
3238 return b . stargazers_count - a . stargazers_count
You can’t perform that action at this time.
0 commit comments