Skip to content

Commit 1ec97bf

Browse files
Gamedirectionclaude
andcommitted
Pin AffinityOnLinux fork in project list
It's excluded by the default fork filter but represents real contribution work worth showing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 92d9749 commit 1ec97bf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/lib/github.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export type Repo = {
1313

1414
const GITHUB_USERNAME = 'Gamedirection'
1515

16+
// Forks worth showing despite the fork filter below (real contribution work).
17+
const PINNED_FORKS = new Set(['AffinityOnLinux'])
18+
1619
export 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

0 commit comments

Comments
 (0)