Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(oven): resolve git ref for manual build triggers

Manual POST /native-build without a ref now resolves HEAD from the
oven git repo so build name and commit message display correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+7
+7
oven/native-builder.mjs
··· 205 205 job.percent = 0; 206 206 207 207 const repoDir = path.resolve(NATIVE_DIR, "../.."); 208 + 209 + // Resolve ref from git HEAD if manual trigger didn't provide one 210 + if (!job.ref || job.ref === "unknown") { 211 + const headRef = await runSync("git", ["rev-parse", "HEAD"], repoDir); 212 + if (headRef) job.ref = headRef; 213 + } 214 + 208 215 const buildName = await runSync("bash", ["scripts/build-name.sh"], NATIVE_DIR) || `oven-${job.ref.slice(0, 7)}`; 209 216 const commitMsg = await runSync("git", ["log", "-1", "--format=%s", job.ref], repoDir) || ""; 210 217 job.buildName = buildName;