From 1c49fdb48ac4fa8f00f7d26bd1c4d43da9142369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Sat, 14 Mar 2026 21:23:30 -0600 Subject: [PATCH] fix: correctly pad decimal phase numbers in init.cjs (closes #915) (#1052) Co-authored-by: Claude Opus 4.6 (1M context) --- get-shit-done/bin/lib/init.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-shit-done/bin/lib/init.cjs b/get-shit-done/bin/lib/init.cjs index 70ffed8b7..d63f489f2 100644 --- a/get-shit-done/bin/lib/init.cjs +++ b/get-shit-done/bin/lib/init.cjs @@ -113,7 +113,7 @@ function cmdInitPlanPhase(cwd, phase, raw) { phase_number: phaseInfo?.phase_number || null, phase_name: phaseInfo?.phase_name || null, phase_slug: phaseInfo?.phase_slug || null, - padded_phase: phaseInfo?.phase_number?.padStart(2, '0') || null, + padded_phase: phaseInfo?.phase_number ? normalizePhaseName(phaseInfo.phase_number) : null, phase_req_ids, // Existing artifacts @@ -397,7 +397,7 @@ function cmdInitPhaseOp(cwd, phase, raw) { phase_number: phaseInfo?.phase_number || null, phase_name: phaseInfo?.phase_name || null, phase_slug: phaseInfo?.phase_slug || null, - padded_phase: phaseInfo?.phase_number?.padStart(2, '0') || null, + padded_phase: phaseInfo?.phase_number ? normalizePhaseName(phaseInfo.phase_number) : null, // Existing artifacts has_research: phaseInfo?.has_research || false,