MCPcopy Create free account
hub / github.com/api-platform/website / getContributorBySlug

Function getContributorBySlug

pwa/api/contributors.ts:20–29  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

18};
19
20export function getContributorBySlug(slug: string): Contributor {
21 const allContributors = getAllContributors();
22 const contributor = allContributors.find(
23 (contributor) => contributor.login === slug
24 );
25 if (contributor) {
26 return contributor;
27 }
28 notFound();
29}
30
31// TODO: replace the method when events pages will be done
32export async function getContributorConferencesBySlug(slug: string) {

Callers 2

generateMetadataFunction · 0.90
PageFunction · 0.90

Calls 1

getAllContributorsFunction · 0.70

Tested by

no test coverage detected