--- import { execSync } from "child_process"; interface Props { title: string; description?: string; activeNav?: string; } const { title, description = "Community-driven collection of custom agents, prompts, and instructions for GitHub Copilot", activeNav = "", } = Astro.props; const base = import.meta.env.BASE_URL; // Get git commit SHA and build date at build time let commitSha = "unknown"; let buildDate = new Date().toISOString().split("T")[0]; try { // Use GITHUB_SHA env var in GitHub Actions, fallback to git command locally const githubSha = process.env.GITHUB_SHA; if (githubSha) { commitSha = githubSha.substring(0, 7); } else { commitSha = execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).trim(); } } catch { // Fallback if git is not available } --- {title} - Awesome GitHub Copilot