Removing login filter

I only have one GitHub account now and its this one :)
This commit is contained in:
Luke Hagar
2024-04-10 09:50:01 -07:00
committed by GitHub
parent 986ff4c76a
commit 0d26b706bd

View File

@@ -7,7 +7,7 @@ export const load: PageLoad = async ({ fetch }) => {
const res = await fetch('https://api.github.com/repos/skeletonlabs/skeleton/contributors?per_page=102'); const res = await fetch('https://api.github.com/repos/skeletonlabs/skeleton/contributors?per_page=102');
if (!res.ok) return []; // return an empty list if (!res.ok) return []; // return an empty list
const body = (await res.json()) as Contributor[]; const body = (await res.json()) as Contributor[];
return body.filter((c) => c.login !== 'github-actions[bot]' && c.login !== 'LukeHagar'); return body.filter((c) => c.login !== 'github-actions[bot]');
}; };
return { contributors: getContributors() }; return { contributors: getContributors() };
}; };