--- interface Props { href: string; src: string; alt: string; target?: string; props?: any; class?: string; } const { href, src, class: className, target = "_blank", props } = Astro.props; const url = href || src; const split = url.split("github.com/"); const repoName = split[1].split("/")[1]; const owner = split[1].split("/")[0]; const response = await fetch( `https://api.github.com/repos/${owner}/${repoName}` ); const data = await response.json(); const description = data.description; const avatarUrl = data.owner?.avatar_url || `https://github.com/${owner}.png`; ---

{description}